Parse RFID data

ak20158 years ago

Hi Anton,

I am using teltonika fm1120 with 1 wire RFID reader, I am getting below data at server.
,"event":78,"io78":72069690697717651,

As per rfid technical document, after 2 bytes there is 4 bytes of RFID card data. How can I get RFID card data from above io78 value ?

Anton Tananaev8 years ago

Can I see the technical document and the original HEX for the message?

ak20158 years ago

Hi Anton,

Below is the HEX data

47455420687474703a2f2f7777772e62616964752e636f6d2f63616368652f676c6f62616c2f696d672f67732e67696620485454502f312e310d0a486f73743a207777772e62616964752e636f6d0d0a557365722d4167656e743a204d6f7a696c6c610d0a49662d4d6f6469666965642d53696e63653a205468752c2031392041707220323031322030393a35313a323020474d540d0a0d0a

RFID reader technical doc
https://drive.google.com/file/d/0B8atmLC5JrAkRXY3Sktlam9rNjQ/view

Anton Tananaev8 years ago

The HEX that you provided is definitely not from Teltonika device. Try to decode it here.

As for documentation, it doesn't explain how the RFID data is included in the main communication protocol.

ak20158 years ago
5027 < 111.14.8.71] HEX: 000000000000009f080400000159738f76b8012e13b796110ab27600d700000b00004e01000000014e000000000000000000000159738f6ee8012e13b796110ab27600d700000a00004e01000000014e01000b00791c179300000159738f6b00012e13b796110ab27600d700000a00004e01000000014e000000000000000000000159738f5f48012e13b796110ab27600d700000b00004e01000000014e01000b00791c17930400009671
Anton Tananaev8 years ago

What's the expected rfid id?

ak20158 years ago

There are two no mentioned on card 0007937047 121,07191

Anton Tananaev8 years ago

Here is the number I get from your example - 0B00791C (hex).

ak20158 years ago

Can u give me some idea, how can I extract RFID Id value in decoder.

Anton Tananaev8 years ago

I don't know how. The format doesn't seem to match the documentation.

ak20158 years ago

Hi Anton,

When I decode above HEX code using your online tool, I get some strange data.

Can U tell me, how u decode data ?

Anton Tananaev8 years ago

Teltonika is binary protocol. Take a look at Traccar code if you want to know how it's done now.

nejck8 years ago

Parameter 78 in Teltonika protocol is iButton, and your RFID reader seems to emulate iButton.

There is a great chance you won't be able to get the exact numbers that are written on the card itself, so maybe you'll have to create some kind of mapping between read value and id on cards.

hornyakna year ago

I have FMB140, but there is no io78 data at all... Somebody can help me whats wrong? (The ID is readed, the immobilizer is working fine)

ak2015a year ago

Please check Teltonika AVL ID, you have to enable first, then it will come in data