M
M
MaxEpt2019-02-21 10:37:14
Python
MaxEpt, 2019-02-21 10:37:14

How to properly control uart operation in raspberry pi?

Hello. I am using pySerial. How to wait until the end of the wirte command?
Here is the code:
5c6e544745af8728111367.png
The point is that before the start of the transfer of 5 bytes, the 12th leg is pulled up to 1, then lowered to 0.
This is how it looks in operation: That is
5c6e54ab26edc924988932.png
, the processor receives the command to send, and processes it in parallel.
How to make commands run sequentially? Need to work with ctsrts ? Or maybe there are other ways?
Can't find any examples..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfg21, 2019-02-21
@pfg21

to get into ser.write and make processing of inclusion of transfer in it??

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question