Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5130

Interfacing (DSI, CSI, I2C, etc.) • Re: RS485 Raspberry Pi

$
0
0
Do you know a way of converting the ASCII to hex and printing it?
Erm, what you care about is Bytes (strictly octets) they can be be displayed in many forms ASCII/ HEX/Binary, etc.
I've not done any of this type of stuff in Python - sorry. I've done various protocol work in the past so just recognised the outputs as the same.
On the transmission side, I want to send the hex values not the ASCII ones because the servos will be expecting HEX. Is there a good way to write out Hex?
As above the servo is expecting a byte stream - I suggest you dig through the manual as it will give you all of the commands and responses that the device is capable of and the correct formatting of the data frames and things like checksums - DO NOT just use that test app and copy a few commands

Statistics: Posted by Multiplex — Tue Mar 12, 2024 4:25 pm



Viewing all articles
Browse latest Browse all 5130

Trending Articles