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
203 views
in Vehicle tracking by

Viewing this link:

https://wiki.teltonika-gps.com/view/FM63_Testing_RS-232_and_RS-485_TCP_Lin

In the example from Teltonika,  test text will be sent: Hello, lets test TCP link mode. In Codec.12 format it looks: 00000000000000260C01050000001e48656c6c6f2c206c657473207465737420544350206c696e6b206d6f64650100001aef
 

If I send from the Hercules software running on a PC that message as HEX through the RS485 port of the FM6300 configured as COM TCPLINK MODE, no ASCII characters appear on the server receiving the message.

In the server appears

000000000000003A0C010600000032FEFFFFFFFFFFFFB3E7FDF5FFFFFFC36F35272721A7BF27351719BF17351917BF57795FBF272D2329BF25213735FDFFFFCB21010000279F

There are no ASCII characters there

And if I send this only ASCII text: HELLO   HOLA

On the server appears the following: 00000000000000170C01060000000FBED59D9D85FDFBFB7B859DF595EBFF010000C296
With codec 12 decoding, we get: BED59D9D85FDFBFB7B859DF595EBFF which is not ASCII.
 

Please explain what encoding the FM6300 applies and how it must be decoded to obtain the ASCII characters sent.

1 Answer

0 votes
by anonymous

Hello.

Are You sure that server decodes Codec12 message correctly? Because from the looks of it Your server does not decode this HEX message as Our protocols describe. This part of "Hello, lets test TCP link mode" 48656c6c6f2c206c657473207465737420544350206c696e6b206d6f6465 has to be decoded from HEX to ASCII on the server side.

You could try looking at the examples of Codec12 messages here: https://wiki.teltonika-gps.com/view/Teltonika_Data_Sending_Protocols#Codec_12

To get better idea of how decoding of Our protocols work.

If there are more questions please ask.

Best Regards