FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
504 views 0 comments
by
Hello,

I want to use the RS232 to read serial data from an external device and process them in a python script.

I also want to do the some thing with de I/O interface.

What are adresses so i can read them? (For the RS232 ttyACM0? of something like that?)

1 Answer

0 votes
by anonymous

Hello,

For communication with RS232 you can use either /dev/rs232 or /dev/ttyUSB1.

GPIO pins are located in /sys/class/gpio.

Input values located in:

  • D1: /sys/class/gpio/gpio3
  • D2: /sys/class/gpio/gpio4
  • D3: /sys/class/gpio/gpio12

Output values:

  • D1: /sys/class/gpio/gpio509
  • D2: /sys/class/gpio/gpio510
  • D3: /sys/class/gpio/gpio511
Best regards,
Tomas