FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

4167 questions

4739 answers

3460 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
393 views
in Vehicle tracking by anonymous
I have a Teltonika with rs485 wired up to a specific device.

I need to read data from this custom device via rs485.

How do I go about programming my gsm server to send a message on rs485 and get the response back?

1 Answer

0 votes
by anonymous

Hello.

Communications have to go via Coded12 protocol.

Link: https://wiki.teltonika-gps.com/view/Teltonika_Data_Sending_Protocols#Codec_12

See here for instructions regarding TCP link mode: https://wiki.teltonika-gps.com/view/FMB125_Testing_RS-232_and_RS-485_TCP_link_mode

Once everything is set up, from the server a command encoded in Codec12 has to be send to the device and it will forward it to the external device. It is important that the command which is sent would be recognised by external device and that it would return response which then would be send to the FMB device and forwarded to the server.

If there are more questions regarding this, please ask.

Best Regards

by anonymous
Thank you for this, this is very helpful.

One further question.  Codec 12 talks about sending commands etc.

Is there a specific command,  like "Forward to serial" command that I have to send with the payload?  How does the FMB device know which messages are for it or for the external rs485 device?
by anonymous

Hello.

If command sent is not recognised by the FMB device it will forward it via serial.

And available commands for the device can be seen here: https://wiki.teltonika-gps.com/view/FMB125_SMS/GPRS_Commands

Best Regards