RFID Event

MDSD5 months ago

Hello,

Is RFID Change Driver based on Event and Positions?

jinzo5 months ago

Depends on which protocol/decoder are you using.

MDSD5 months ago

After I review the source code I found that in DriverEventHandler.java it depends on the position.

Is there a solution to detect the RFID once turn on the car immediately without depending on the position?

MDSD5 months ago

I use Teltonika FMC130.

jinzo5 months ago

The stuff you are asking is mostly depending on device configuration (eg. when does it send the driver data) not Traccar itself. Traccar just get's the data and decodes it. "TeltonikaProtocolDecoder.java" is where the actual decoding is happening. I don't have experience with teltonika but:
a) Configure the device so that it sends the event/driver id when you wish
b) if the driver is not decoded, check TeltonikaProtocolDecoder.java

MDSD5 months ago

Hello,

I tested the devices with Flespi and all the RFIDs has been reflected to Server as double check.

The issue I face that the the first Driver Change is detected but when switch vehicle off until it comes offline then switch the vehicle using another RFID it show the previous one.

Attached the Route Report and with Green Rectangle where the driver must change and keep showing the old driver.

Screenshot 2024-07-30 at 12.28.28 PM.png

Anton Tananaev5 months ago

Have you checked the raw data to see what your device is sending?

MDSD5 months ago

Here is Row Data in Sequence:

000000000000003c08010000019106fad6e00122c9c8ba0e10222e001700e70e00004e0906ef01f00015050101b4017100024230cc18000000014e01f75b660010005a0100009662 --> Driver Change Reported

000000000000003c08010000019106fb19480122c9c8ba0e10222e001700e70d00004e0906ef01f00015050101b4007100024230c718000000014e0118195d0008007b010000518e --> Driver Change Reported

000000000000003c08010000019106fb53e00122c9c8ba0e10222e001700e70e00004e0906ef01f00015050101b4007100024230c618000000014e00000000000000000100003066 --> No Driver Reported Here. Is this Normal?

000000000000003c08010000019106fcbf280122c9c8ba0e10222e000600e70e00004e0906ef01f00015050101b4007100024230cc18000000014e016e99b3003c00d00100002491 --> Driver Change Not Reported

000000000000003c08010000019106fcf9c00122c9c8ba0e10222e000600e70e00004e0906ef01f00015050101b4007100024230cc18000000014e0000000000000000010000f0dd --> No Driver Reported Here.

000000000000003c08010000019106fd38400122c9c8ba0e10222e000600e70e00004e0906ef01f00015050101b4007100024230cc18000000014e01f15a67001000aa010000aded --> --> Driver Change Not Reported

I got confuse Why some of Driver Change Reported and Some not Reported.

Below the Driver Change Report in Traccar.

Screenshot 2024-07-31 at 8.46.52 AM.png

Anton Tananaev5 months ago

I believe any time driver id changes, it should be reported as an event.

MDSD5 months ago

Yes, Agree but I got confused why it report some of them and other not reported. I figure that who not reported will not reported in other vehicle also as well and who has been reported it will reported in all vehicles.

Do you have any suggestions how resolve this?

Anton Tananaev5 months ago

Actually I think I know what could cause this. We only check this event if it's the latest position. So it might ignore it for historical data:

https://github.com/traccar/traccar/blob/master/src/main/java/org/traccar/handler/events/DriverEventHandler.java#L36

MDSD5 months ago

Hi,

I already comment that code before I deploy to server from yesterday.