Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Locked Block and Memory Variables Values show TagID not User Name on Web Server in v4.17.5
On a Layout editor panel, when a memory variable or block icon is included, and linked to an RFID Reporter, RFIDs tags show in the block or MV with their user names defined in the ID Tags table.
However, when that same panel is displayed on the web it shows the System Name in the form ID04D1949A74. This is the value shown in the Value column of the Blocks table. However, this is converted on the native panel into the User Name defined in the ID Tags table. One feature that I'm using is the ability to show html formatted text on the display. I'm doing this by creating a User Name (in the ID Tags table) including html tags e.g: <html> <font size="4" color="blue">T1</font> <font size="4" color="red"><b>LMS Wagon (1)</b><br/> <font size="3" color="black"> HF RFID Test Wagon </font></p> </html> This works really well on the 'native' panel, allowing me to display quite big blocks of formatted text. I'm hoping this will also work on the web panel at some stage (We have a show coming up next weekend where I was hoping to use it, but I think it might have to wait!!) I'm using Ubuntu 19:10 JMRI 4.17.5 Java 11.0.5-ea (en_GB) This issue is similar in some ways to an issue I've raised before -? /g/jmriusers/topic/32307293 Thanks Andy |
Hi Steve
I've so far failed to recreate the scenario with a simulated connection; I'm not sure how to simulate a new report! I've tried typing into the Report column of the Reporters table, but that doesn't seem to do the same as having a real (MERG) reporter connected and reading a tag. When a real tag is read, the Report column in the Reporters table shows the ID Tag User Name, and the Value column in the Block and Memory Variables tables shows the ID Tag System Name. When displayed on the 'native' panel, this is converted back to show the (friendly) User Name. However, on the web display of the same panel it shows as the (unfriendly) System Name (i.e. the tag ID with no conversion to User Name). I've uploaded a panel that demonstrates the problem - but only with a MERG reporter connected! (see /g/jmriusers/files/ProblemsBeingWorkedOn/Andy%20Brown%20-%20161045/Block%20and%20Memory%20Variables%20Values%20show%20TagID/BlockOnWebProblem01.xml ). Included in the folder is also the ID tags xml which goes in the idtags sub folder. I have also created a document with a couple of screen shots that 'show' the problem (/g/jmriusers/files/ProblemsBeingWorkedOn/Andy%20Brown%20-%20161045/Block%20and%20Memory%20Variables%20Values%20show%20TagID/BlockOnWebProblem.pdf ) . I know it's not exactly what you asked for, but it's the nearest I've been able to create at the moment. Thanks Andy |
Hi Andy,
See this post on the MERG forum, CBUS reporters only respond to INCOMING CAN Frames. This was to facilitate the development of sending data from JMRI to a writeable RFiD tag, as the same OPC was used, updating Reporters when the outgoing message was heard was prematurely updating the location. In July the development module code was tweaked to use new OPC DDWS for writing so I'll be updating CBUS reporters to both incoming / outgoing, in theory that'll be one less gotcha for people! In meantime to simulate this, in the JMRI Send CAN / event frame tool. Enter the frame and select to send as incoming CanReply
eg. incoming Reporter 4 with IDTag 2 the body of the Can Frame would be sent like X FA 0004 0000000002X - Send Hex CAN Frame FA -?Device data event (short mode) (DDES) 0004 - Hex Reporter number 0000000002 - Hex ID Tag number With Send CAN Frame you can keep the spaces ( they'll be trimmed ) for increased readability. See screenshot :? /g/jmriusers/album?id=174929 Remember though, Incoming CanReply MUST be checked at present for reporters to respond! Steve. |
Thanks for that Steve (Young) - I can now recreate the problem using CAN simulation.
I've updated the links I provided before with a new panel, id tags file and pdf. Method to recreate is as follows:
Andy |
Hi SteveT
I think all that's need is to put the IDTags xml file - /g/jmriusers/files/ProblemsBeingWorkedOn/Andy%20Brown%20-%20161045/Block%20and%20Memory%20Variables%20Values%20show%20TagID/PanelProIdTags.xml in the idtags directory. Andy |
Making some progress on this. Turns out memories can store various object types, so the panel display logic handles each type individually. Most are easily converted to a string, but one of the types is an ImageIcon.
Andy, (or anyone else), do you know how to store an ImageIcon in a memory? Do you have an example panel with that? |
Hi Steve
I'm not sure about the term ImageIcon, but I've always created images in memories by modifying the panel xml by hand as mentioned in /g/jmriusers/topic/32307293? I've created an updated panel using some images from the resources directory - /g/jmriusers/files/ProblemsBeingWorkedOn/Andy%20Brown%20-%20161045/Block%20and%20Memory%20Variables%20Values%20show%20TagID/BlockOnWebProblem02.xml You can use the same method to animate that was discussed earlier in /g/jmriusers/message/165625 Hope this helps Andy |
to navigate to use esc to dismiss