New Protocol not updating State

Willem6 years ago

I am new to Traccar (awesome product) and I'm trying out some new protocol decoders. I have it setup and running, all working just fine. I am now trying to add my own Protocol Decoder (which is basically a copy of OsmAnd Protocol Decoder). I made changes to the "decoding part", and that all works well with decoding the message payload.

I have two Apps running on my mobile phone, using Xexun" and "OsmAnd" protocols respectively, and they work just fine, i.e. updates in the "Device" panel, and in the "State" panel update all attributes accordingly.

I have two devices using my Protocol Decoder, on a new port (5185). It all works well up to the point where I can actually see both devices turning green (in "Devices" panel and on the map), but their "State" (in the "State" panel) does not change/update. I'm using Netbeans IDE 10, and did everything as described in the "help", i.e. build & run. I've added break points, and when I "manually" step through the code, the "State" is updated (as it should and all variable display the correct information), however when the exact same code execute in "run" mode, it does not update the "State". When I inspect the object, passed from my Protocol Decoder [line with code: return position;] to [public abstract class ExtendedObjectDecoder extends ChannelInboundHandlerAdapter] (in file ExtendedObjectDecoder.java), I can see all the decoded variable values as it should be (when I "step" through the code), but when it's running (execute in "run" mode), it does not update the State.

Any ideas why this would be, or what am I doing wrong? Please.