8297 questions

9760 answers

15547 comments

13864 members

0 votes
87 views 2 comments
by
Team,

I just want to confirm is it possible to write some custom code in C  or python in TRB142 to communicate with any device that is connected to TRB142's RS232 port. My topology is like below:

<<Cloud application>> --4G-- <<TRB142>> --RS232-- <<End device with serial port>>.

My end device sends data in raw format over RS232 to TRB142. And TRB142 needs to arrange data in proper format (HTTP/MQTT) and then send to Cloud application.

Any way to achieve this directly without code (Only configuration) ?

I have checked option : https://wiki.teltonika-networks.com/view/TRB142_Data_to_Server

But it has 2 options for data source : Modbus and DNP3. But my data is raw data from end device.

1 Answer

0 votes
by

Hello,

Thank you for contacting.

By default you can only send modbus and dnp3 data to the server.

But if you are using the TCP/IP you can simply do a port forwarding on the device that is generating data.

Then on the server side you can request the data on the IP and port forwarded.

But as you are using serial communication its not possible with port forwarding. You can do it by over ip functionality .

Thanks. 

Regards,

Ahmed

by
<<Cloud application>> --4G-- <<TRB142>> --RS232-- <<End device with serial port>>.

In above topology, end device does not support either mqtt or serial over IP. End device only supports serial port communication.

So how can I use serial over IP in this case ?
by

Hello,

The Over IP serial type is used to manage serial connections over a TCP/IP network.

Device doesn't need to support any protocol only serial port should be there. 

https://wiki.teltonika-networks.com/view/TRB142_RS232

Thanks