TFT100 GPRS Server Integration

Hello,
I can receive data from TFT100 GPRS devices with java in my spring boot project on my Ubuntu server. So actually the devices are sending data to my TCP server.
This is my first integration, please help me.

Now there are 4 questions I want to ask.
1. When the device sends data to my TCP server, with which protocol does it send data and according to which standard should I parse it in order to match it according to AVL packet ids?

2. My devices are connected to a scooter and the integration is complete. When I send CAN commands via SMS or Bluetooth, I can unlock, turn the engine on and off, do everything. I want to send the “mcan_cmd:2” command to this device. Which standard byte should I send the data in? Hexadecimal or something?

While sending data to the IOT device, I want to send this command for the relevant IP address and port information, so what should I do to reach the device?

3. When the device sends me IMEI, I verify it and send an ACK confirmation message, and then it sends me 1 packet. I give my approval and he sends the 2nd package. Do I need to combine these 2 packages or do these 2 packages represent something separate?

4. In my question, while these devices are sending data to my server, the port information changes every 5 minutes. Is this normal?

Thank you very much.

Hi @yakupzengin,

Good day! I have shared some comments below regarding your clarifications.

1. When the device sends data to my TCP server, with which protocol does it send data and according to which standard should I parse it in order to match it according to AVL packet ids?

2. My devices are connected to a scooter and the integration is complete. When I send CAN commands via SMS or Bluetooth, I can unlock, turn the engine on and off, do everything. I want to send the “mcan_cmd:2” command to this device. Which standard byte should I send the data in? Hexadecimal or something?

  • In sending commands to the device you have the option to send it either via SMS or GPRS command ( through the server end). For the SMS command it would be using ASCII characters while for the GPRS command, you need to send it through Hexadecimal Data, the protocol that supports these GPRS commands was Codec 12. More information can be found on this link: Codec - Wiki Knowledge Base | Teltonika GPS

While sending data to the IOT device, I want to send this command for the relevant IP address and port information, so what should I do to reach the device?

  • Device communication is only 1-way, which means the device should initiate and establish a connection to your server first before you can send the command.

3. When the device sends me IMEI, I verify it and send an ACK confirmation message, and then it sends me 1 packet. I give my approval and he sends the 2nd package. Do I need to combine these 2 packages or do these 2 packages represent something separate?

  • You may refer on the Codec Protocol as mentioned above to parse the data received from the device, in that case you would be aware on all the data received from the device.

4. In my question, while these devices are sending data to my server, the port information changes every 5 minutes. Is this normal?

  • The device connects to a server in a Dynamic IP and Port, in which every time the connection has been lost/cut it would again connect on a different Port. So, it is normal if the connection between the device and server has been disconnected.

I hope this helps.

Kind regards,
Patrick

0000 0000 0000 04BF 8E06 0000 0189 73D5 3178 0000 0000 0000 0000 0000 0000 0000 0000 0000 000D 0006 00EF 0100 F000 0015 0000 C800 0045 0200 7100 0006 00B5 0000 00B6 0000 0042 3A4D 0018 0000 0043 0000 0044 0000 0001 00F1 0000 0000 0000 0000 0000 018C 6769 6690 0000 0000 0000 0000 0000 0000 0000 0000 0000 000D 0006 00EF 0000 F000 0015 0000 C800 0045 0200 7100 0006 00B5 0000 00B6 0000 0042 B758 0018 0000 0043 0000 0044 0000 0001 00F1 0000 0000 0000 0000 0000 018C 676B B850 0000 0000 0000 0000 0000 0000 0000 0000 0000 001E 0006 00EF 0100 F001 0050 0100 1504 00C8 0000 4502 0006 00B5 0000 00B6 0000 0042 B6BF 0018 0000 0043 0F61 0044 008B 0000 0012 0384 0000 0000 0000 0000 0385 0000 0000 0000 0000 0386 0000 0000 0000 0000 0387 0000 0000 0000 0000 0388 0000 0000 0000 0000 0389 0000 0000 0000 0000 038A 0000 0000 0000 0000 038B 0000 0000 0000 0000 038C 0000 0000 0000 0000 038D 0000 0000 0000 0000 038E 0000 0000 0000 0000 038F 0000 0000 0000 0000 0390 0000 0000 0000 0000 0391 0000 0000 0000 0000 0392 0000 0000 0000 0000 0393 0000 0000 0000 0000 0394 0000 0000 0000 0000 0395 0000 0000 0000 0000 0000 0000 018C 676C A2B0 0000 0000 0000 0000 0000 0000 0000 0000 0000 001E 0006 00EF 0100 F001 0050 0100 1504 00C8 0000 4502 0006 00B5 0000 00B6 0000 0042 B6BA 0018 0000 0043 0F62 0044 008B 0000 0012 0384 0000 0000 0000 0000 0385 0000 0000 0000 0000 0386 0000 0000 0000 0000 0387 0000 0000 0000 0000 0388 0000 0000 0000 0000 0389 0000 0000 0000 0000 038A 0000 0000 0000 0000 038B 0000 0000 0000 0000 038C 0000 0000 0000 0000 038D 0000 0000 0000 0000 038E 0000 0000 0000 0000 038F 0000 0000 0000 0000 0390 0000 0000 0000 0000 0391 0000 0000 0000 0000 0392 0000 0000 0000 0000 0393 0000 0000 0000 0000 0394 0000 0000 0000 0000 0395 0000 0000 0000 0000 0000 0000 018C 676D 8D10 0000 0000 0000 0000 0000 0000 0000 0000 0000 001E 0006 00EF 0100 F001 0050 0100 1503 00C8 0000 4502 0006 00B5 0000 00B6 0000 0042 B6B4 0018 0000 0043 0F63 0044 008A 0000 0012 0384 0000 0000 0000 0000 0385 0000 0000 0000 0000 0386 0000 0000 0000 0000 0387 0000 0000 0000 0000 0388 0000 0000 0000 0000 0389 0000 0000 0000 0000 038A 0000 0000 0000 0000 038B 0000 0000 0000 0000 038C 0000 0000 0000 0000 038D 0000 0000 0000 0000 038E 0000 0000 0000 0000 038F 0000 0000 0000 0000 0390 0000 0000 0000 0000 0391 0000 0000 0000 0000 0392 0000 0000 0000 0000 0393 0000 0000 0000 0000 0394 0000 0000 0000 0000 0395 0000 0000 0000 0000 0000 0000 018C 676E 7770 0000 0000 0000 0000 0000 0000 0000 0000 0000 001E 0006 00EF 0000 F001 0050 0100 1504 00C8 0000 4502 0006 00B5 0000 00B6 0000 0042 07A4 0018 0000 0043 0F40 0044 0000 0000 0012 0384 0000 0000 0000 0000 0385 0000 0000 0000 0000 0386 0000 0000 0000 0000 0387 0000 0000 0000 0000 0388 0000 0000 0000 0000 0389 0000 0000 0000 0000 038A 0000 0000 0000 0000 038B 0000 0000 0000 0000 038C 0000 0000 0000 0000 038D 0000 0000 0000 0000 038E 0000 0000 0000 0000 038F 0000 0000 0000 0000 0390 0000 0000 0000 0000 0391 0000 0000 0000 0000 0392 0000 0000 0000 0000 0393 0000 0000 0000 0000 0394 0000 0000 0000 0000 0395 0000 0000 0000 0000 0000 0600 0005 56

Hello, I am reading the data over the TCP socket and the data comes to me like this. But in the incoming data, coordinate data, speed etc. They all come back to zero.

Why does data come like this? We established a connection on GPSGateserver and the data is coming there correctly. There is a problem with the data coming to me. What is the reason? I don’t think there is a problem when parsing, I do it as follows.

What is the reason why these values are zero?

Data field length = 1215 bytes
Codec type = 8E
Number of records = 6
TimeStampt = 0000018973D53178
Record priority = 00
Longitude = 00000000
Latitude =00000000
Altitude = 0000
Angle = 0000
Satellites= 00
Speed2 = 0000
EventId2 = 0000
Total I/O elements in record 1 = 13

This topic was automatically closed after 3 days. New replies are no longer allowed.

Hi @yakupzengin,

Good day! Kindly try to test the device in an open area so there would be available visible satellites in your location. It is normal to receive zero values for GPS data if you are testing inside the office or building.

I hope this helps.

Kind regards,
Patrick