TFT100 Codec DATA PARSER

Hello, I have opened this topic before, but the topic was closed even though I responded instantly, so I opened a new topic since I could not respond to the topic.

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 C 800 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 0 0B6 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 0 F61 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 000 0 038D 0000 0000 0000 0000 038E 0000 0000 0000 0000 038F 0000 0000 0000 0000 0390 0000 0000 0000 0000 0391 0000 0000 0000 000 0 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 000 0 0391 0000 0000 0000 0000 0392 0000 0000 0000 0000 0393 0000 0000 0000 0000 0394 0000 0000 0000 0000 0395 0000 0000 0000 000 0 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 000 0 038B 0000 0000 0000 0000 038C 0000 0000 0000 0000 038D 0000 0000 0000 0000 038E 0000 0000 0000 0000 038F 0000 0000 0000 000 0 0390 0000 0000 0000 0000 0391 0000 0000 0000 0000 0392 0000 0000 0000 0000 0393 0000 0000 0000 0000 0394 0000 0000 0000 000 0 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 000 0 0385 0000 0000 0000 0000 0386 0000 0000 0000 0000 0387 0000 0000 0000 0000 0388 0000 0000 0000 0000 0389 0000 0000 0000 000 0 038A 0000 0000 0000 0000 038B 0000 0000 0000 0000 038C 0000 0000 0000 0000 038D 0000 0000 0000 0000 038E 0000 0000 0000 000 0 038F 0000 0000 0000 0000 0390 0000 0000 0000 0000 0391 0000 0000 0000 0000 0392 0000 0000 0000 0000 0393 0000 0000 0000 000 00394 0000 0000 0000 0000 0395 0000 0000 0000 0000 0000 0600 0005 56

Hello, I am reading data over TCP socket and the data comes to me like this. But the incoming data includes coordinate data, speed, etc. they all return to zero.

Why does the data sound like this? We connected via GPSGateserver and the data comes 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?

TimeStampt value shows July 2023 instead of February 2024.
0000018973D53178. Does a device that is indoors not provide up-to-date data?

My 2nd Question: Dates and location information are always up to date on GPSGateServer.
Some of the devices I tested are devices that I control while driving. Not in a closed area.

Available in indoor devices. But why do open-air devices throw data like this?

Data field length = 1215 bytes
Codec type = 8E
Number of records = 6
Timestamp = 0000018973D53178
Recording priority = 00
Longitude = 00000000
Latitude =00000000
Height = 0000
Angle = 0000
Satellite = 00
Speed = 0000
EventId = 0000
Total I/O items in the register 1 = 13

My 3rd Question: The devices are connected to my server with 7355 port. Now, while sending commands to the devices, can I send data from a different port via TCP by providing the IP and port information of the relevant TFT100 device? Does the device allow this or can commands be sent via the server port it is connected to?

Thankyou.

Hi,

For your 1st question.

Answer

  • The device does not have a GNSS fix that is the reason why you received zero values for coordinate data, speed, etc.

Second Question

Answer

  • The time of the device is not synchronized kindly try to change the settings as per the screenshot below:

Third Question

Answer

  • Codec 12 Commands can only be sent on the same port that you are using.

If you need more clarification or more details you can visit our wiki page: Codec - Wiki Knowledge Base | Teltonika GPS (teltonika-gps.com)

If you need online support please create an HD ticket or contact your sales manager.

If you don’t have any contacts with our Sale managers, please contact with 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 description of your situation to us: Teltonika - IoT, Internet of Things

Best Regards
Maynard C

Hello, I have solved the process, the devices’ sending and receiving data process is complete.

Thank you.

I want to ask one last question. In some packages, device data is missing. For example, battery percentage. Sometimes it comes, sometimes it does not, or some AVL IDs do not come at all, even though the device supports it. What is the reason of this?

Hi,

You can check from the IO if you enable it or not, you can also check if you select the eventual records only

None - Records will not be generated.

Reference: FMC130 I/O settings - Wiki Knowledge Base | Teltonika GPS (teltonika-gps.com)

Best Regards
Maynard C.

Hello,
Now I want to make the device talk via Bluetooth. I will do this with UART mode, right?

1- Is there a standard on the extra Bluetooth side that I should know about?

2- Should I still apply the codec standard when sending data to the device via Bluetooth?

3- On the Bluetooth side, do the devices contain UART Mode service UUID constant?

In short, on the Bluetooth side, can you tell me what I need to know in summary integration?

Thank you!

Hi,

Good day, the Bluetooth protocol is available through our helpdesk, kindly contact your sales manager or create an HD ticket.

We have a wiki page that shows how we can collect logs via Bluetooth serial terminal application.

Please check this wiki page to know more: How to debug FMB device over Android smartphone? - Wiki Knowledge Base | Teltonika GPS (teltonika-gps.com)

Best Regards
Maynard C

Hello, I am already using these applications.
The question I am asking is actually sending and receiving data with UART UUID and tx rx characteristic information after connecting to the device.

I am establishing a connection to the device while sending data.

var ServiceUART_UUID = 6E400001-B5A3-F393-E0A9-E50E24DCCA9E
var txCharacteristics = 6E400002-B5A3-F393-E0A9-E50E24DCCA9E
var RxCharacteristics = 6E400003-B5A3-F393-E0A9-E50E24DCCA9E

But after sending data to the device, I cannot receive any response.

@sms_dbg:getinfo
I don’t get any reaction when I type.
But Other BluefruitConnect app etc. When I send this command with different UART mode supported applications, I can receive data safely.

When I send data, do I need to send it according to the codec8 standard? That’s my real question. Or is it enough to send it directly?

Hi,

If you are going to send @sms_dbg:getinfo make sure that you put 2 spaces after @sms_dbg: if you didn’t configure the username and password for SMS commands

For example:
image

@sms_dbg:abc abc getinfo

image
@sms_dbg: getinfo

By default, the SBT app displays text and sends text commands to any external Bluetooth device, so we will just send the commands directly from the app.

Best Regards
Maynard C

List commands = [
@sms_dbg: mcan_cmd:0”,
@sms_dbg: mcan_cmd:1”,
@sms_dbg: mcan_cmd:2”,
@sms_dbg: mcan_cmd:3”,
@sms_dbg: mcan_cmd:4”,
@sms_dbg: mcan_cmd:5”,
@sms_dbg: mcan_cmd:6”,
@sms_dbg: getinfo”,
@sms_dbg: getgps”,
];

Example commands I will use. Of course there are 2 spaces between them. But I can’t get a response from the device and I don’t understand why.

Hi,

Please connect using GATT protocol or Bluetooth LE

image

Regards
Maynard C

Also, make sure that you selected allow from the BLE connection Control
image

FlutterBluePlus is a Bluetooth Low Energy plugin for Flutter.

It connects via Bluetooth Low Energy using this package. Does this pose a problem?

I am connecting to the device, but while sending commands. Just no reaction. The commands do not do anything on the device. Is the screenshot you posted the solution?

Hello,

In any case if it didn’t work, please contact your sales manager or the local Teltonika support team from your region, so that we can analyze the issue further.

If you don’t have any contacts with our Sale managers, please contact with 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 description of your situation to us: Teltonika - IoT, Internet of Things When contacting Us, please provide:
IMEI
Logs
Configuration file
Intenational GSM number
Firmware version
ect
,

Please follow these recommendations: Recommendations for filling a query description - Wiki Knowledge Base | Teltonika GPS

I sent you a screenshot.
Here it says GATT_SUCCESS, meaning access to the device and sending commands are successful.
But there is no reaction in the device. When I send a request to the device from UART mode with a different application, the device reacts successfully with commands etc.

{
“error_string”:“GATT_SUCCESS”,
“service_uuid”:6e400001-b5a3-f393-e0a9-e50e24dcca9e,
“success”:1,
“remote_id”:“E2”:“A8”:“B1”:“D2”:“66”:9E,
“error_code”:0,
“characteristic_uuid”:6e400002-b5a3-f393-e0a9-e50e24dcca9e,
“value”:40736d735f6462673a20206d63616e5f636d643a30
}

value = 40736d735f6462673a20206d63616e5f636d643a30
ValueToString : @sms_dbg: mcan_cmd:0

Thank you!

Hello!!

@sms_dbg: mcan_cmd:0\n”
It was necessary to complete 22 bytes. I provided the solution by adding a space character at the end of the commands. All commands are working now.

Thanks for your interest and quick responses.

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