Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture case where gpsd is not yet ready #19

Open
renestraub opened this issue Aug 29, 2020 · 0 comments
Open

Capture case where gpsd is not yet ready #19

renestraub opened this issue Aug 29, 2020 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@renestraub
Copy link
Owner

When starting too fast, gpsd might no have devices list ready.

root@am335x-nmhw21:~/prj/ubxlib# python3 -m examples.show_version    
2020-08-29 15:44:45,881 INFO     connecting to gpsd
2020-08-29 15:44:45,883 INFO     waiting for receive thread to become active
2020-08-29 15:44:46,887 ERROR    timeout while connecting to device
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/sysroot/home/root/prj/ubxlib/examples/show_version.py", line 30, in <module>
    res = ubx.poll(poll_version)
  File "/sysroot/home/root/prj/ubxlib/ubxlib/server.py", line 83, in poll
    self.send(message)
  File "/sysroot/home/root/prj/ubxlib/ubxlib/server.py", line 123, in send
    assert self.selected_device
AssertionError
@renestraub renestraub self-assigned this Aug 29, 2020
@renestraub renestraub added bug Something isn't working enhancement New feature or request labels Aug 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant