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

Hi, I ' m traing to send GPRS Command to FMB920, but It seams that device doesn't recognize the message.

I'm traing to send getIo command, like theexample in documentation.

Could you help me? What is the problem?

I attach the log File.

Many thanks

Fabio

Log File :

[2022.10.03 14:14:22]-[NETWORK] connection established! acc id: 52, socket id: 3, evt sending: enabled

[2022.10.03 14:14:22]-[NETWORK] VR socket 0 open! real socket id: 3

[2022.10.03 14:14:22]-[REC.SEND.1] link timeout reset for server: 0

[2022.10.03 14:14:22]-[REC.SEND.1] launching link monitoring

[2022.10.03 14:14:22]-[SCH] Task eM2M_Tid_link_tmo_checking[11] has been scheduled. Period: 1s

[2022.10.03 14:14:22]-[REC.SEND.1] [CHANGE.STATE.0558] Server: 0, check link => send imei

[2022.10.03 14:14:22]-[REC.SEND.1] send imei

[2022.10.03 14:14:22]-[NETWORK] attempting to send data by socked id: 3, data len: 17

[2022.10.03 14:14:22]-[NETWORK] [SEND.DATA.0599] Waiting for socket send result, waiting: 10 sec

[2022.10.03 14:14:22]-[NETWORK] data send to socket: 3, successfull! evt sending: enabled, VR socket: 0

[2022.10.03 14:14:22]-[REC.SEND.1] imei send OK, waiting 30 sec for imei answer

[2022.10.03 14:14:23]-[NETWORK] [IND] received data from socket!

[2022.10.03 14:14:23]-[NETWORK] notification, socket id: 3 has data which must be read!

[2022.10.03 14:14:23]-[NETWORK] VR socket 0, real socket id: 3, attempt automatic data reading for application

[2022.10.03 14:14:23]-[NETWORK] attempting to read data from socked id (real): 3

[2022.10.03 14:14:23]-[NETWORK.PARSER] Parsing data from 0 socket, data len: 1

DUMP DATA START:

01 

DUMP DATA END

[2022.10.03 14:14:23]-[NETWORK.PARSER] imei answer received!

[2022.10.03 14:14:23]-[REC.SEND.1] server accepted imei

[2022.10.03 14:14:23]-[REC.SEND.1] [CHANGE.STATE.0606] Server: 0, send imei => send records

[2022.10.03 14:14:23]-[REC.SEND.1] send records

[2022.10.03 14:14:23]-[REC.GEN] Server: 0, not all min records send: 1/1

[2022.10.03 14:14:23]-[CODEC.APP] Rec found at 0x0001F891, sort:1

[2022.10.03 14:14:23]-[CODEC.APP] Rec found at 0x0001F892, sort:1

[2022.10.03 14:14:23]-[CODEC.APP] Rec found at 0x0001F893, sort:1

[2022.10.03 14:14:23]-[CODEC.APP] Rec found at 0x0001F894, sort:1

[2022.10.03 14:14:23]-[CODEC.APP] Rec found at 0x0001F895, sort:1

[2022.10.03 14:14:23]-[CODEC.APP] Rec found at 0x0001F896, sort:1

[2022.10.03 14:14:23]-[CODEC.APP] Rec found at 0x0001F897, sort:1

[2022.10.03 14:14:23]-[CODEC.APP] Rec found at 0x0001F898, sort:1

[2022.10.03 14:14:23]-[NETWORK] attempting to send data by socked id: 3, data len: 495

[2022.10.03 14:14:23]-[NETWORK] [SEND.DATA.0676] Waiting for socket send result, waiting: 10 sec

[2022.10.03 14:14:23]-[NETWORK] data send to socket: 3, successfull! evt sending: enabled, VR socket: 0

[2022.10.03 14:14:23]-[REC.SEND.1] records packed: 8, waiting 30 sec for answer

[2022.10.03 14:14:23]-[REC.SEND.1] link timeout reset for server: 0

[2022.10.03 14:14:24]-[TRIP] Periodic info: State -> Moving. Spd:0km/h, Mov:YES, Ign:ON, TripBT:0

[2022.10.03 14:14:24]-[TRIP] Distance driven: 0 km

[2022.10.03 14:14:25]-[NETWORK] [IND] received data from socket!

[2022.10.03 14:14:25]-[NETWORK] notification, socket id: 3 has data which must be read!

[2022.10.03 14:14:25]-[NETWORK] VR socket 0, real socket id: 3, attempt automatic data reading for application

[2022.10.03 14:14:25]-[NETWORK] attempting to read data from socked id (real): 3

[2022.10.03 14:14:25]-[NETWORK.PARSER] Parsing data from 0 socket, data len: 4

DUMP DATA START:

00 00 00 08 

DUMP DATA END

[2022.10.03 14:14:25]-[NETWORK.PARSER] Server: 0, Record ACK received: 8, expected 8

[2022.10.03 14:14:25]-[CODEC.APP] 0x0001F898 record marked for server:0

[2022.10.03 14:14:25]-[CODEC.APP] 0x0001F897 record marked for server:0

[2022.10.03 14:14:25]-[CODEC.APP] 0x0001F896 record marked for server:0

[2022.10.03 14:14:25]-[CODEC.APP] 0x0001F895 record marked for server:0

[2022.10.03 14:14:25]-[CODEC.APP] 0x0001F894 record marked for server:0

[2022.10.03 14:14:25]-[CODEC.APP] 0x0001F893 record marked for server:0

[2022.10.03 14:14:25]-[CODEC.APP] 0x0001F892 record marked for server:0

[2022.10.03 14:14:25]-[CODEC.APP] 0x0001F891 record marked for server:0

[2022.10.03 14:14:25]-[REC.SEND.1] server accepted records

[2022.10.03 14:14:25]-[REC.SEND.1] Min required records was sent

[2022.10.03 14:14:26]-[REC.GEN] Not enough records to send! Min:1 Server:0

[2022.10.03 14:14:26]-[REC.SEND.1] [CHANGE.STATE.0762] Server: 0, send records => waiting

[2022.10.03 14:14:26]-[REC.SEND.1] waiting

[2022.10.03 14:14:26]-[NETWORK] [IND] received data from socket!

[2022.10.03 14:14:26]-[NETWORK] notification, socket id: 3 has data which must be read!

[2022.10.03 14:14:26]-[NETWORK] VR socket 0, real socket id: 3, attempt automatic data reading for application

[2022.10.03 14:14:26]-[NETWORK] attempting to read data from socked id (real): 3

[2022.10.03 14:14:26]-[NETWORK.PARSER] Parsing data from 0 socket, data len: 50

DUMP DATA START:

30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 44 30 43 30 31 30 35 30 30 30 30 30 30 30 35 36 37 36 35 37 34 36 39 36 46 30 31 30 30 30 30 30 30 43 42 

DUMP DATA END

[MODEM.STATUS]

CCID        : 89882280666020382010

IMSI        : 901405102038201

Data Link   : 1/0/0/0/0/0

GPRS Status : 1

Phone Status: 0

PIN Attemts : 3,3

GSM Operator: 22210

Bat. Charge : 5

GSM Signal  : 5

Service     : 1

New Message : 0

Roaming     : 1

SMS Full    : 0

Voice Call  : 0

LAC         : 11086

Cell ID     : 3942

CFUN        : 1

CSQ (rssi)  : 27

[0]SIM detected: 1

Network Type: 1/2G

[2022.10.03 14:14:29]-[OVERSPD] Scenario disabled!

[2022.10.03 14:14:29]-[REC.SEND.1] Mode: 5/Unknown on Moving. Time for next periodic data sending: 9 / 120

[2022.10.03 14:14:29]-[SLEEP] Sleep:0, not allowed! Reason:Disabled by CFG

[2022.10.03 14:14:35]-[REC.SEND.1] link timeout: 10/259200. State:0

[2022.10.03 14:14:39]-[OVERSPD] Scenario disabled!

[2022.10.03 14:14:39]-[TRIP] Periodic info: State -> Moving. Spd:0km/h, Mov:YES, Ign:ON, TripBT:0

[2022.10.03 14:14:39]-[TRIP] Distance driven: 0 km

[2022.10.03 14:14:39]-[REC.SEND.1] Mode: 5/Unknown on Moving. Time for next periodic data sending: 19 / 120

[2022.10.03 14:14:39]-[SLEEP] Sleep:0, not allowed! Reason:Disabled by CFG

[2022.10.03 14:14:39]-[LiPo] cant en charger; Vext: 0, Vbat: 1, first charger: 1, addon: 1, dsleep: 1

[2022.10.03 14:14:39]-[LiPo] BatState: 1 FSMState: ACTIVE ChargerIC: OFF ExtV: 5044 BatV: 3555 BatI: 0

[2022.10.03 14:14:39]-[MODEM.ACTION] GSM Update Reason:Periodic

[2022.10.03 14:14:39]-[ATCMD] <<AT+CPAS

[2022.10.03 14:14:39]-[ATCMD] >>[124] +CPAS: 0

[2022.10.03 14:14:39]-[ATCMD] >>[124] OK

[2022.10.03 14:14:39]-[ATCMD] <<AT+CIND?

[2022.10.03 14:14:39]-[ATCMD] >>[126] +CIND: 5,5,1,0,0,1,0

[2022.10.03 14:14:39]-[AT.RSP] in cind handler: 5,5,1,0,0,1,0

[2022.10.03 14:14:39]-[ATCMD] >>[126] OK

[2022.10.03 14:14:39]-[ATCMD] <<AT+CIMI

[2022.10.03 14:14:39]-[ATCMD] >>[153] 901405102038201

[2022.10.03 14:14:39]-[ATCMD] >>[153] OK

[2022.10.03 14:14:39]-[ATCMD] <<AT+CREG?

[2022.10.03 14:14:39]-[ATCMD] >>[129] +CREG: 2,5,"2B4E","00000F66",0

[2022.10.03 14:14:39]-[AT.RSP] Status: 5

[2022.10.03 14:14:39]-[AT.RSP] Area Code: 11086

[2022.10.03 14:14:39]-[AT.RSP] Cell ID: 3942

[2022.10.03 14:14:39]-[AT.RSP] Registration Mode: 0

1 Answer

0 votes
by anonymous
Hello.

GPRS command schould be sent to device in codec 12 format:

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

String with getio command sent to device in your example schould be: 000000000000000D0C010500000005676574696F01000000CB

Regards
by anonymous

Hello,

I sent this : 000000000000000D0C010500000005676574696F01000000CB , 

and devices received : 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 44 30 43 30 31 30 35 30 30 30 30 30 30 30 35 36 37 36 35 37 34 36 39 36 46 30 31 30 30 30 30 30 30 43 42 

I don't understand if user and password are necessary like SMS command or not.

by anonymous

Hello.

It means that GPRS message was not sent in HEX. If you use Hercules terminal, HEX box must be checked to send GPRS message in HEX.

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