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
541 views 2 comments
by anonymous
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 anonymous

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 anonymous
<<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 anonymous

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