Ping Sonar Python Error

Any ideas why I’d be getting this message? (we have /dev/ttyPING1 aliased by udev rule to /dev/USB1 where the sonar is attached - get the same error if I open USB1 too)

>>> from brping import Ping1D
>>> myPing = Ping1D("/dev/ttyPING1", 115200) 
Opening /dev/ttyPING1 at 115200 bps 
>>> myPing.initialize()
('message id not recognized: 0', None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.linux-armv7l/egg/brping/ping1d.py", line 101, in initialize
  File "build/bdist.linux-armv7l/egg/brping/ping1d.py", line 116, in request
  File "build/bdist.linux-armv7l/egg/brping/pingmessage.py", line 480, in __init__  
KeyError: 0
>>>

Nevermind. Uninstalled and reinstalled

sudo -H pip install bluerobotics-ping

And we’re back online!

Hi,

I’m glad that you figure it out, please let us know if you need any further assistance.