Pyserial question

  • Thread starter Diez B. Roggisch
  • Start date
D

Diez B. Roggisch

Hi,
I am using Pyserial to work with a RS232 device. My question is, how do I
write hex to the device or cannot write hex to it pyserial?

Look into the module struct - it will allow you to convert arbitrary data to
strings representing this data as binary string. Then you simply write that
to the serial connection. Reading is the same. I used that sucessfully for
a Vernier LabPro.

Regards,

Diez
 
K

Kelia Nichols

Hello,

I am using Pyserial to work with a RS232 device. My question is, how do I
write hex to the device or cannot write hex to it pyserial?

Kelia Nichols
______________________________________
No trees were killed in the sending of this message. However a large number
of electrons were terribly inconvenienced.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top