3/29/2017 11:38 AM | |
Posts: 25 Rating:
|
Hello, I am doing a project in IOT2040. I need to get a serial data (RS232) from a vibration sensor through X30/ X31. Before interfacing the sensor i checked the serial communication using the python codes that i have attached here. However 'HELLOWORLD' is not getting printed.. the screenshots of output are also attached. can anyone help me in how to choose the port /dev/tty** Is there any driver needed? I am using a serial to usb converter inorder to connect X30/X31 to host windows system. Thank you ------------------------------------------------------------------------------------------ Attachmentseial.zip (802 Downloads) |
Last edited by: Min_Moderator at: 3/29/2017 2:28:29 PMNew subject after splitting |
|
3/31/2017 9:24 AM | |
Posts: 25 Rating:
|
it is ttyS2 for X3O and ttyS3 for X31 Now it is working... |
This contribution was helpful to
1 thankful Users |
4/28/2017 10:41 AM | |
Posts: 25 Rating:
|
Sorry for the late reply For that you have to download and install a package named pyserial |
4/28/2017 11:01 AM | |
Joined: 4/22/2016 Last visit: 5/29/2024 Posts: 25 Rating:
|
Hello anjaliran, no roblem. I had problems with the installing of PIP for python @ V2.1.2 like this description ==> This shows how to get pip:https://www.rs-online.com/designspark/python-and-lorawan-enabling-the-siemens-iot2020 But in the new SD version V2.1.3 is PIP already installt and it works. |
Follow us on