I
I
Ilya2017-03-27 21:14:34
Python
Ilya, 2017-03-27 21:14:34

How to send data by uart with given structure?

How to send data in Python via uart(serial) like this?
jgmvwzeC449Q2a.jpg
By simply sending a series of bytes:

ON= b"\x55\xAA\x01\x00\x01\x00\x00\x00\x01\x00\x02\x01"
ser.write(ON)

They will not have the required length and indents required in the table, etc.
How to form and send a request?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question