Server data parsing Teltonika FMB130

Bakok2 years ago

Hello everyone.

We have a teltonika FMB130 tracker and our own traccar server.
The tracker and our server are working properly.

But we attached a 2pc reed relay and one analog sensor to the tracker.
I set the tracker Pulse counter DIN1 and DIN2 port.
See the link about the setting.
https://community.teltonika-gps.com/?qa=blob&qa_blobid=14865764088806488369

When I attach my laptop to the device I see the live data and counting the reed relay connection.
But I don't know how to parse the data on the server side.

Here is the server log that contains the DIN port data.
Server log:

2023-01-24 09:41:29  INFO: [T5d35707d] connected
2023-01-24 09:41:29  INFO: [T5d35707d: teltonika < 37.76.10.97] 000f333530333137313735343335373533
2023-01-24 09:41:29  INFO: [T5d35707d: teltonika > 37.76.10.97] 01
2023-01-24 09:41:29  INFO: [T5d35707d: teltonika < 37.76.10.97] 00000000000000da080300000185e2efbf28000ce0e6611c57acdd00000000000000000d05ef00f0001500c802450305b50002b60001422f45430fcb44000003f10000547e10000002b24a000000000000000185e2efc6f8000ce0e6611c57acdd00000000000000050e05ef00f0001500c800450305b50001b60001422f40430fcb44000004f10000547e10000002b24a0000000005000000000000000185e2efcae0000ce0e6611c57acdd00000000000000f00d05ef00f0011500c800450205b50000b60000422f28430fcb44000003f10000547e10000002b24a000000000003000044d9
2023-01-24 09:41:29  INFO: [T5d35707d: teltonika > 37.76.10.97] 00000003
2023-01-24 09:41:29  INFO: [T5d35707d] id: 350317175435753, time: 2023-01-24 09:40:41, lat: 47.55079, lon: 21.60656, course: 0.0
2023-01-24 09:41:29  INFO: [T5d35707d] id: 350317175435753, time: 2023-01-24 09:40:43, lat: 47.55079, lon: 21.60656, course: 0.0
2023-01-24 09:41:29  INFO: [T5d35707d] id: 350317175435753, time: 2023-01-24 09:40:44, lat: 47.55079, lon: 21.60656, course: 0.0
2023-01-24 09:41:55  INFO: [T5d35707d: teltonika < 37.76.10.97] 0000000000000049080100000185e2f0e420000ce0c82c1c57a82d003a0133050000f00d05ef00f0001504c800450105b50032b60031422f32430fcb44000003f10000547e10000002b24a00000000000100000e1d
2023-01-24 09:41:55  INFO: [T5d35707d: teltonika > 37.76.10.97] 00000001
2023-01-24 09:41:55  INFO: [T5d35707d] id: 350317175435753, time: 2023-01-24 09:41:56, lat: 47.55067, lon: 21.60579, course: 307.0
2023-01-24 09:41:56  INFO: [T5d35707d: teltonika < 37.76.10.97] 000000000000004e080100000185e2f0ebf0000ce0c82c1c57a82d003a0133050000050e05ef00f0001504c800450105b50032b60031422f20430fcb44000004f10000547e10000002b24a00000000050000000000010000c3bc
2023-01-24 09:41:56  INFO: [T5d35707d: teltonika > 37.76.10.97] 00000001
2023-01-24 09:41:56  INFO: [T5d35707d] id: 350317175435753, time: 2023-01-24 09:41:58, lat: 47.55067, lon: 21.60579, course: 307.0
2023-01-24 09:46:57  INFO: [T5d35707d] disconnected

Any idea how to find out DIN 1 or DIN2 counted data?

code_af2 years ago

What the documentation says about? The protocol documentation should tell how this data is being transferred, then it is possible to check if mentioned data is being processed by traccar or not.

Bakok2 years ago

What do you think exactly?

I use 03.27.13.Rev.03 firmware on the tracker.
Here is the FMB130 Teltonika Data Sending Parameters ID list.
https://wiki.teltonika-gps.com/view/FMB130_Teltonika_Data_Sending_Parameters_ID
Here is the link about Teltonika Data Sending Protocols
https://wiki.teltonika-gps.com/view/Teltonika_Data_Sending_Protocols

But I can't figure out my solution.

Any ideas how I can set up my server that displays the DIN 1 or 2 pulse data?

Anton Tananaev2 years ago

What attributes do you see in Traccar and what's the io IDs you're expecting?

Bakok2 years ago

Dear Anton Tananaev!

What attributes do you see in Traccar and what's the io IDs you're expecting?
-I can't see anything in the server log or GUI interface.

-Attribute table what you look for:
Property ID in AVL packet Property Name Bytes Type Value range Multiplier Units
4 Pulse Counter Din1 4 Unsigned 0 4294967295 - -
5 Pulse Counter Din2 4 Unsigned 0 4294967295 - -
6 Analog Input 2 2 Unsigned 0 65535 0.001 mV Voltage

Do you have any ideas hogy to solve my problem?

Anton Tananaev2 years ago

You don't see any data at all? But you showed in your original post that you do have data. I'm very confused.

Bakok2 years ago

Dear Anton Tananaev!

Sorry for being imprecise.
I see the basic information on GUI interface(id, time , lat , lon, course)

But how to parse out my interesting data(DIN 1, DIN2 analog input 2)
Is there any method for this?

Sorry again for the imprecise wording.

Anton Tananaev2 years ago

Please click on More Details and provide a screenshot.

Bakok2 years ago

Dear Anton Tananaev!

Here is the screenshot https://ibb.co/jMXnShR
Did you mean "more details"?
Or what menu point do you want to screenshot?

Here is the server log about this moment.
2023-01-26 08:15:22  INFO: [Td856b572] connected
2023-01-26 08:15:24  INFO: [Td856b572: teltonika < 37.76.10.71] 000f333530333137313735343335373533
2023-01-26 08:15:24  INFO: [Td856b572: teltonika > 37.76.10.71] 01
2023-01-26 08:15:25  INFO: [Td856b572: teltonika < 37.76.10.71] 0000000000000037080100000185ececcca0000ce0c82c1c57a82d00000000000000000804ef00f000c802450303422f82430fcb4400000110000002b200010000ab4e
2023-01-26 08:15:25  INFO: [Td856b572: teltonika > 37.76.10.71] 00000001
2023-01-26 08:15:25  INFO: [Td856b572] id: 350317175435753, time: 2023-01-26 08:13:40, lat: 47.55067, lon: 21.60579, course: 0.0
2023-01-26 08:58:04  INFO: [T6a22b074] connected
2023-01-26 08:58:04  INFO: [T6a22b074: teltonika < 37.76.21.173] 000f333530333137313735343335373533
2023-01-26 08:58:04  INFO: [T6a22b074: teltonika > 37.76.21.173] 01
2023-01-26 08:58:05  INFO: [T6a22b074: teltonika < 37.76.21.173] 00000000000000c8080300000185ed1426d8000ce0c82c1c57a82d00000000000000f00804ef00f001c802450303422f73430fcb4400000110000002b20000000185ed143290000ce0c82c1c57a82d00000000000000050e05ef00f0011500c800450205b50000b60000422c42430fae44000004f10000547e10000002b24a0000000005000000000000000185ed154400000ce0d0d41c57aa3100a70108040000f00d05ef00f0001505c800450105b50031b60030420000430f3a44000003f10000547e10000002b24a0000000000030000d51f
2023-01-26 08:58:05  INFO: [T6a22b074: teltonika > 37.76.21.173] 00000003
2023-01-26 08:58:05  INFO: [T6a22b074] id: 350317175435753, time: 2023-01-26 08:56:39, lat: 47.55067, lon: 21.60579, course: 0.0
2023-01-26 08:58:05  INFO: [T6a22b074] id: 350317175435753, time: 2023-01-26 08:56:42, lat: 47.55067, lon: 21.60579, course: 0.0
2023-01-26 08:58:05  INFO: [T6a22b074] id: 350317175435753, time: 2023-01-26 08:57:52, lat: 47.55072, lon: 21.60601, course: 264.0
2023-01-26 09:03:06  INFO: [T6a22b074] disconnected

Maybe contain more information.
I use the traccar-windows-64-5.5 version on my server.

Anton Tananaev2 years ago

Click the green button on the pop-up and click more info. That's what I'm asking you to take a screenshot of. That would show all the data your device is sending. That way we can verify your previous statement about Traccar not receiving anything.

Bakok2 years ago

Dear Anton Tananaev!

Here is the 3 screenshots about the more details:
https://ibb.co/kqLxVrC
https://ibb.co/xDGw9YN
https://ibb.co/qnWD8kp

Sorry for the beginner's attitude.
The previous statement is false now.
Because Traccar is getting the tracker data.

But the base statement (topic opening post) is alive.
Here is the configurator pic about the live data. https://ibb.co/vxhTkJB
I'm looking for the data in the red rectangle.
But I don't know where and how to find the data in the hash.
Or maybe must I will set an extra option in the tracker?
That the tracker will send these extra data for the server.

Or I have no idea for the solution.

Anton Tananaev2 years ago

Now you need to figure out what IO IDs are those values coming as.

Bakok2 years ago

Dear Anton Tananaev!

Thanks for your helping

What do you think this link is useful for me?:
https://wiki.teltonika-gps.com/view/FMB130_Teltonika_Data_Sending_Parameters_ID
This is the "Property ID in AVL packet" that what can I seeking in the hash?

This table contains (on the link) my interesting IO ID?
Am I getting this right?

The next step is to slice the "Hash on my server" step by step?
Is This PDF document helping me solve my problem?
https://www.traccar.org/protocol/5027-teltonika/FMXXXX%20Protocols%20v2_7.pdf

What do you think, am I on the right path towards a solution?

Anton Tananaev2 years ago

Yes, it is useful. You have to figure out the right IO ID.

Bakok2 years ago

Dear Anton Tananaev!

Thanks for useful tips.

I finally found the right IO IDs and places with values.

Thanks for your help.