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

Hi,

I am trying to send commands to a FMB640, however the commands are not accepted by the device. I receive regular avl data without problems. This is what I do:

1) receive registration of device (using TCP)

2) confirm with 0x1

3) receive data of device (codec 8)

4) confirm with 0x000000yy where yy is the number of records

5) wait for 0.5sec, then send command to device using codec 14

I do not receive a response. This is the command I send:

00000000000000160e01050000000e359632108633367867657476657201000036ad

The log file says:

[2020.01.23 15:01:21]-[REC.SND]-> Records found: 1

[2020.01.23 15:01:21]-[REC.SND]-> New LOW Priority Data Available

[2020.01.23 15:01:21]-[BAT.POWER.MAN]-> Unit Exit Error State 490 sec

[2020.01.23 15:01:22]-[D.T.S]-> Creating TID_TCP_SEND_1 Task

[2020.01.23 15:01:22]-[D.T.S]-> Success

[2020.01.23 15:01:23]-[N.F]-> PDOP:0.00, HDOP:0.00, Valid:0Q: 0, Sats: 0 Retry: 0

[2020.01.23 15:01:23]-[SOCKET]-> Connect to id:0, ip:xx.xx.xx.xx port:yyyy

[2020.01.23 15:01:23]-[TACHO.CAN] Same State Evt Send Retry After: 30

[2020.01.23 15:01:23]-[CAN2]-> Flags got: 04

[2020.01.23 15:01:23]-[CAN1]-> Reinit CAN:1 @470

[2020.01.23 15:01:23]-[CAN]-> Reinit Done

[2020.01.23 15:01:23]-[CAN2]-> Flags got: 2C

[2020.01.23 15:01:23]-[CAN]-> FMS state change Disabled -> SetBitrate

[2020.01.23 15:01:24]-[MODEM]-> Socket: 3

[2020.01.23 15:01:24]-[SOCKET]-> domain_out: 46, sATSockets[user_socket_id].IP xx.xx.xx.xx

[2020.01.23 15:01:24]-[SOCKET]-> Connect Success Handler: Data, socket_id: 3

[2020.01.23 15:01:24]-[SOCKET]-> HANDLES info:

[2020.01.23 15:01:24]-[SOCKET]-> HANDLE 0 Data socket: 3, taken: 1

[2020.01.23 15:01:24]-[SOCKET]-> HANDLE 1 Config socket: 0, taken: 0

[2020.01.23 15:01:24]-[SOCKET]-> HANDLE 2 Log2srv socket: 0, taken: 0

[2020.01.23 15:01:24]-[SOCKET]-> HANDLE 3 NTP socket: 5, taken: 0

[2020.01.23 15:01:24]-[SOCKET]-> HANDLE 4 TACHO socket: 0, taken: 0

[2020.01.23 15:01:24]-[SOCKET]-> HANDLE 5 Fota socket: 1, taken: 0

[2020.01.23 15:01:24]-[SOCKET]-> HANDLE 6 Data_2nd socket: 0, taken: 0

[2020.01.23 15:01:24]-[SOCKET]-> HANDLE 7 Connect socket: 0, taken: 0

[2020.01.23 15:01:24]-[CAN]-> Setting manual CAN bit rate: 250 kbps

[2020.01.23 15:01:24]-[CAN]-> Setting 250 bps bitrate

[2020.01.23 15:01:24]-[CAN]-> FMS state change SetBitrate -> Active

[2020.01.23 15:01:25]-[APP.SND.TCP]-> Send IMEI to Server... srv:0

[2020.01.23 15:01:25]-[APP.SND.TCP]-> Releasing mutex after imei sent

[2020.01.23 15:01:25]-[APP.SND.TCP]-> Waiting for Server Response...

[2020.01.23 15:01:25]-[D.P.TCP]-> IMEI Acknowledge Received: 1

[2020.01.23 15:01:25]-[1-Wire]-> 2 DS18B20 sensors detected

[2020.01.23 15:01:25]-[MODEM]-> Socket: 4

[2020.01.23 15:01:25]-[MODEM]-> Socket: 3

[2020.01.23 15:01:26]-[REC.SND]-> Search Mode: Newest Record First

[2020.01.23 15:01:26]-[APP.SND.TCP]-> 1 Record(s) of LOW/ 1 Priority collected

[2020.01.23 15:01:26]-[REC.SND]-> Trying Too Pack: 1 Rec

[2020.01.23 15:01:26]-[APP.SND.TCP]-> Packing Done. TCP/IP Packet Length:[161]

[2020.01.23 15:01:26]-[APP.SND.TCP]-> [Data]TCP/IP Data Packet Sent 0nd

[2020.01.23 15:01:26]-[APP.SND.TCP]-> Waiting for Server Response...

[2020.01.23 15:01:27]-[D.P.TCP]-> Number of Data Received: 1

[2020.01.23 15:01:27]-[APP.SND.TCP]-> AVL DATA accepted

[2020.01.23 15:01:27]-[APP.SND.TCP]-> AVL Records deleted Successfully

[2020.01.23 15:01:27]-[REC.SND]-> Search Mode: Newest Record First

[2020.01.23 15:01:27]-[APP.SND.TCP]-> 0 Record(s) of LOW/ 1 Priority collected

[2020.01.23 15:01:27]-[REC.SND]-> Search Mode: Newest Record First

[2020.01.23 15:01:27]-[APP.SND.TCP]-> No New Records to Send

[2020.01.23 15:01:27]-[APP.SND.TCP]-> Ping: 3599 second(s) left

[2020.01.23 15:01:28]-[REC.SND]-> Min LOW Prio Rec to Send: 1

[2020.01.23 15:01:28]-[D.P.TCP]-> CODEC12 not supported CODECID 14

[2020.01.23 15:01:28]-[MODEM]-> Socket: 4

[2020.01.23 15:01:28]-[MODEM]-> Socket: 3

[2020.01.23 15:01:28]-[MODEM]-> Socket: 4

[2020.01.23 15:01:28]-[MODEM]-> Socket: 3

[2020.01.23 15:01:29]-[APP.SND.D]-> 1 Time until data sending 118

I am surprised by the line

[2020.01.23 15:01:28]-[D.P.TCP]-> CODEC12 not supported CODECID 14

Is this the error message triggered by my command? Can you point me to the right direction?

Thanks!

1 Answer

0 votes
by anonymous

Hello,

Thank you for your query.

I believe you already have FMB640 protocol document how device communicates with the server. I have to mention that FMB640 firmware does not support Codec14. This was added only to the FMB units (light trackers) from firmware version FMB.Ver.03.25.04.Rev.00,

There is a description of all Codecs: https://wiki.teltonika.lt/view/Codec#Codec_for_communication_over_GPRS_messages

Best Regards,

Teltonika Support.

Best answer
by anonymous
Thanks, codec 12 works fine with the FMB640.