¿ªÔÆÌåÓý

Re: Multiple RFID tags in one block


 

¿ªÔÆÌåÓý


Perhaps re-thinking what is tagged, and how it is handled might be worth doing.

One reason to tag all stock is to feed information into software for operations (whether OperationsPro or something else is a detail).? ?For this, knowing where every item of stock might be is important.?

But, for a train, in a block, what is important is the "train".? ? ?


So, if you are using tags on every piece of stock, I suggest you need something to filter things, and only put "locomotive" or a "representation of a train" into a block reporter.? ? ?
This could be done with LogixNG (I've got the elements written in code I've used on three layouts).? I can think if several ways to approach it, but which to choose depends on your use of tags, what a train consists, of etc..?

Or it could be done with the devices doing the "reading" and giving information from some tags (eg. Locomotive) into the Reporter structure for the blocks, but others are passed to the system through other means (one idea would be different reporters used for freight cars).? ?


Alternatively, and without requiring anything done in LogixNG or filtering the input data,??I have a couple of web-page views into JMRI which I need to write up for JMRI distribution as demonstration examples.? Those will do roughly what you have asked.??
The first takes the ID-Tag table (which will be populated from a Reporter reading tags as they pass a reader), and displays graphically all the stock in a block as it passes a reader.? When the stock passes another reader, it is removed from the first location, and appears at the second location.? ?Items appear in "train order".? ?
The second demonstration uses OperationsPro data, to not only show stock position, but also its destination and other details relevant to OperationsPro.??



- Nigel



------ Original Message ------
From "Torgrim Gjelsvik via groups.io" <torgrimg@...>
Date 23/04/2025 08:50:31
Subject [jmriusers] Multiple RFID tags in one block

I must admit I am having a hard time grasping all the options available for RFID, reporters and block tracking.
?
Is there a way to handle more than one RFID tag in a block?
If I had RFID tags on all units, and RFID readers on all block borders, I would have a train of tags moving around.
A double reader could indicate the direction of travel. On my 1:8 scale garden railroad this is quite feasible.?
A Cbus node with an arduino nano and 2 cheap readers on every block border could do the job.
?
A tag should be in only 1 block - when a it enters a block it should be removed from any previous block.
Block occupancy is based on at least 1 tag in the block, to be shown on the panel.
?
But how can I do this in JMRI?
?
Regards, Torgrim
?

Join [email protected] to automatically receive all group messages.