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
281 views
in Vehicle tracking by anonymous
Hi,

I have developped a web application that dialogues with my FMB640 device via TCP protocol, in order to get all the available information.

Now I have to send a command (using TCP Protocol) that generates a pulse on a specific device pin. Is it possible?

Thank you in advance.

1 Answer

0 votes
by anonymous
Hello there,

Good day. Thank you for contacting us.

Please elaborate more on your use case here, especially the type of pulse here.

Kind regards.
by anonymous

Hello Vivek,

yesterday I've found that I have to use "setdigout" command in order to digital output 1 (which is connected to my pin).

If I have correcty understood, the sintax is "setdigout 0 3" where 3 corresponds to the timeout in seconds (used for the pulse duration).

So I tryed to send commands to the device (starting with simple commands) but now I'm struggling with this step. In fact, instead of receiving response to my command, I keep receiving AVL packets. The algorithm I use is the following:

1) Establish tcp connection 

2) Receive IMEI number from the device

3) Send command "0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x0C, 0x01, 0x05, 0x00, 0x00, 0x00, 0x07, 0x67, 0x65, 0x74, 0x69, 0x6E, 0x66, 0x6F, 0x01, 0x00, 0x00, 0x43, 0x12" (this is getinfo, as seen here https://wiki.teltonika-gps.com/view/Codec#Codec_for_communication_over_GPRS_messages)

4) Receive standard AVL packets instead of the response to my command

I've also tried to send 0x01 command and wait 5 seconds before sending my getinfo command, but it's still the same

Thank you in advance

Kind regards.

by anonymous

Hello there, 

Good day. Thank you for your reply.

We would like to analyze your issue. Please reach out to us via VIP Helpdesk or contact your sales manager. If you don't have any contacts with our Sales managers, please contact them on our official website https://teltonika-gps.com/ and click on the "Contact Us" button. When you will click, please fill the form and submit it.

Note: as a topic, please choose "Vehicle telematics" or you can send an e-mail with the description of your situation to info@teltonika.lt

Thank you for your understanding.

Kind regards.