Jun-08-2017, 05:37 PM
Hello everyone,
I am opening this thread because I need to retrieve numeric data from a serial port RS232.
This is what I would like to accomplish:
1- Read data from my device (Serial Port RS232)
2- Store data in some variables
3- Read more data
4- Repeat 2,3
The way I get data from my device is the following
1- I need to open a terminal
2- I am not able to read data unless I terminate the cat /dev/ttyUSB0 > result.txt
So, my question is, is there a way to do everything from Python? Is so, could someone please help me out?
I am opening this thread because I need to retrieve numeric data from a serial port RS232.
This is what I would like to accomplish:
1- Read data from my device (Serial Port RS232)
2- Store data in some variables
3- Read more data
4- Repeat 2,3
The way I get data from my device is the following
cat /dev/ttyUSB0 > result.txtThe problem with the above solution is :
1- I need to open a terminal
2- I am not able to read data unless I terminate the cat /dev/ttyUSB0 > result.txt
So, my question is, is there a way to do everything from Python? Is so, could someone please help me out?