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
560 views
in Vehicle tracking by
Can fmb125 device receive command to raise digital output value(set it to 1). If yes when does it expect the message im sending it after avl data ack in codec 12 but it seems i'm doing something wrong or its not the right way to do it. Thanks in advance.
by

[2020.02.26 10:49:43]-[NETWORK] [IND] received data from socket!

[2020.02.26 10:49:43]-[NETWORK] notification, socket id: 0 has data which must be read!

[2020.02.26 10:49:43]-[NETWORK] VR socket 0, real socket id: 0, attempt automatic data reading for application

[2020.02.26 10:49:43]-[NETWORK] attempting to read data from socked id (real): 0

[2020.02.26 10:49:43]-[NETWORK.PARSER] Parsing data from 0 socket, data len: 37

DUMP DATA START:

00 00 00 00 00 00 00 25 0C 01 05 00 00 00 11 20 20 73 65 74 64 69 67 6F 75 74 20 31 20 31 30 30 01 00 00 00 00 

DUMP DATA END

i got this on my terminal log

1 Answer

0 votes
by anonymous

Hello,

To activate output setdigout command can be used. Example:

login pass setdigout 1 

In hexadecimal: 7365746469676f75742031

When device opens link with server you can right away send the command and receive the response. 

Full message you can build by checking codec 12 page: https://wiki.teltonika-gps.com/view/Codec#Codec_12

setdigout command @ https://wiki.teltonika-gps.com/view/FMB125_setdigout

Hope this will help.

Regards.

by

Hello,

Thanks for help. I have used that command and teltonika apparently received it since i see it in terminal log that i will attached.

I've double checked the message read by device and i can't see whats wrong, when i parse that hex i got my msg packed in codec 12

example from log:

[2004.01.01 01:07:26]-[NETWORK.PARSER] Parsing data from 0 socket, data len: 33

DUMP DATA START:

00 00 00 00 00 00 00 21 0C 01 05 00 00 00 0D 20 20 73 65 74 64 69 67 6F 75 74 20 31 01 00 00 A4 47 

DUMP DATA END

00 00 00 00 - 4 zeroes
00 00 00 21 - lenght
0C  - codec id 
01  - cmd quantity
05  - cmd type
00 00 00 0D - cmd lenght
20 20 73 65 74 64 69 67 6F 75 74 20 31 - command (  setdigout 1) i've added 2 spaces for login pass, have tried without it
01 - cmd quantity 2
00 00 A4 47  - crc

Thanks again for your time!