Closed ES-Alexander closed 2 years ago
@patrickelectric has mentioned it should just require sending alternating 10101010... for a while on startup, if the baud isn't 115200. Not sure if this only handles 9600 or if it's also possible to use other bauds in between.
Have confirmed that this approach works, when sending 0b01010101
, like the ascii-encoded 'U'
character sent in ping-python. Only 115200 and 9600 baudrates are valid, ~and baudrate can only be set on first connection after device startup (changing baudrate after communication has already been established requires power-cycling the device).~ and they can be swapped between as long as the device is re-initialised.
It's a great start, we can check higher baudrates in future issues. IIRC it was requested to move to 3.28 a long time ago, I'll check.
Currently this library doesn't support our latest firmware (
Ping_V3.28_auto.hex
), so users wanting to use Software serial generally need to downgrade their firmware to get it working, or use 115200 baud at the risk of communication reliability issues.[x] @patrickelectric has mentioned it should just require sending alternating
10101010...
for a while on startup, if the baud isn't 115200. Not sure if this only handles 9600 or if it's also possible to use other bauds in between.[x] If production doesn't already flash and ship with 3.28 then that should be changed.
This should reduce issues like #27 and #19, and other similar problems from people not reading or understanding our Ping with Arduino guide.