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
1,222 views 2 comments
by anonymous
Hey,

is it possible by software to get a "High" Signal out of the DTR pin 4 or the RTS pin 7 of the serial port? Currently they both have 0 V. I need it for powering a RS232 Converter: https://www.victronenergy.com/live/vedirect_protocol:faq#q2when_using_the_vedirect_to_rs232_interface_what_pins_do_i_need

Thank You.

1 Answer

0 votes
by anonymous

Hi,

For this you will have to use crossover adapter.

Also, with our stock firmware you will not be able to change DTR to high, you will have to write yourself a C program/script or use picocom (or microcom) to do so.

https://www.xanthium.in/Controlling-RTS-and-DTR-pins-SerialPort-in-Linux

EB.

by anonymous

Thank You very much, I'll soon look into the software side, and if I find a solution, I'll post a summary here.

But I think, I need a straight cable, not crossover, since the solar charger is a DTE component (sending on 3 and receiving on 2) and the RUT955 is a DCE component (sending on 2 and receiving on 3), referring to here: https://wiki.teltonika-networks.com/view/RUT955_RS232/RS485#RS232_Connector_Pinout

by anonymous
Ok, now I start digging into it.

First option: c-progam. Is there a recommended (hopefully easy) way of compiling programs for the RUT955?

Second option: picocom. It has at least an option to toggle the DTR line. But how can I get picocom on the RUT955? It is not installed, nor found by opkg.

Third option: microcom. I don't see any option to set RTS or DTR. Have I missed something? Or are there any commands I could send? But as I understand, the commands get send VIA serial, not parsed by the serial device itself. So, I don't see any sense in sending AT commands or something. Still tried it and expectedly it didn't work.

Any help / pointing in the right direction is appreciated.

Thank You.