Skip to content

Conversation

@jaxxzer
Copy link
Member

@jaxxzer jaxxzer commented Feb 20, 2020

No description provided.

print("failed to initialize at %d bps", baudrate)
exit(1)
print("ok")
time.sleep(0.01)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When will this finish ?

Copy link
Member Author

@jaxxzer jaxxzer Feb 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when you push ctrl + c like ping, or the sensor fails to communicate

if baudrate is not None:
self.iodev.baudrate = baudrate
self.iodev.send_break()
self.iodev.write("U".encode("utf-8"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that this should be ascii, since it's the U char that we want, and not the utf-8 representation.

Copy link
Member Author

@jaxxzer jaxxzer Feb 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks correct on the wire with a probe (0x55), I will try ascii though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants