3

How to send some Hex Data to a usb device..

1
  • What do you mean with "Hex Data"? Do you want to send binary (raw) data on the wire, or an ascii string which the Pi then will convert to binary? What have you tried, or where are you stuck? Commented Aug 22, 2015 at 6:35

1 Answer 1

2

Have a look at PySerial. That is available on RasPi and PC. For sending/receiving data, use bytes (constant) or bytearray (variable), which are standard Python types (note the differences between Python3 and 2).

Sign up to request clarification or add additional context in comments.

1 Comment

It just about connecting Serial port to Raspberry Pi We want some example about sending/receiving data in hex form in raspi.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.