I am very new here.
ChatGPT - Gemini and Grok could not help me anymore so trying my luck here.
I am trying to connect a Scarlet WindPro sensor to my Teltonika gateway (TRB256/RUT955). The goal is to send a start command to the sensor and then read the continuous data stream over the network.
The connection works perfectly when using a computer with terminal software (like CoolTerm). The key to success is sending the command in “Line Mode,” which ensures the correct CR+LF termination.
The problem arises on the Teltonika gateway. When I configure ‘Serial over IP’ (in TCP Server mode), I am unable to send the start command. It appears this mode can only receive data from the RS232 port, but cannot transmit data to it.
Important test: If I first start the sensor with my computer and then connect it to the Teltonika gateway (while it is already sending data), the data is correctly received through the ‘Serial over IP’ connection. This proves that receiving data works, but transmitting the initial command does not.
My question is: How can I configure the gateway to transmit an initial ASCII string (like QINFO-START with a CR+LF) to the RS232 port, in order to then receive the data stream? Is there a script (Lua, shell) or another mode that supports this initial two-way communication?
You can connect our router/gateway to your Scarlet sensor to support bidirectional communication over TCP/IP using their RS232 serial ports.
One device is set as a TCP Server, the other as a TCP Client connecting to the server’s IP and port. Both devices then can send and receive serial data through their respective TCP connections.
This is the method advised to be used in your use case. You may be able to achieve this by using a custom script, however that would be above the scope of our assistance. In regards to Teltonika advice, as above mentioned: