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
- Jmriusers
- Messages
Search
Re: Why is LogixNG triggering on startup?
Heath, Uncheck Startup in the ConditionalNG list. Dave Sand ----- Original message ----- From: "Heath @ Human[c]ity Junction" <heath@...> Subject: [jmriusers] Why is LogixNG triggering on startup? Date: Thursday, May 15, 2025 12:43 PM I am assuming that the LogixNG are triggering because of the way I have them setup, so the longer question is what do I need to do to change the programming of LogxNG so that they do not execute when I startup JMRI. ? Here is an example of one of the LogixNG that runs, that I would like to not run on startup. ? ? Thanks in advance -- Heath @ Human[c]ity |
Why is LogixNG triggering on startup?
I am assuming that the LogixNG are triggering because of the way I have them setup, so the longer question is what do I need to do to change the programming of LogxNG so that they do not execute when I startup JMRI.
?
Here is an example of one of the LogixNG that runs, that I would like to not run on startup.
?
?
Thanks in advance
--
Heath @ Human[c]ity |
Re: NX routing sensor direction
Mike, You have a number of issues that need to be addressed. There are 5 crossings/diamonds that have to be made using the "Level Crossing" tool. ? The Layout Editor "Tools -> Check -> Non-Contiguous Blocks" menu item needs to be clear before SML or NX will work correctly. ?This shows some of the level crossing issues. The double crossover on the right side only has two blocks. ?SML and NX need three blocks for double crossovers. After you clean up these issues, use the "Paths -> Delete Paths" menu item in the Block table. ?After doing a Store and Quit, restarting PanelPro will create new paths. I use custom icons for NX sensors. This way I don't have to remember which direction is which. If you still have problems after fixing the issues, upload a new version of the layout xml file. Dave Sand ----- Original message ----- From: "Mike Johnson via groups.io" <919.mike=[email protected]> Subject: Re: [jmriusers] NX routing sensor direction Date: Thursday, May 15, 2025 5:48 AM I upload the file. ? If I delete sensors and make changes, then I can't set up routes. If I save, I still can't. If I close PanelPro and restart, things are better. If I close PanelPro and restart windows then more things work. ? Mike Johnson ? |
Locked
File /ProblemsBeingWorkedOn/dsand/NX Icons.zip uploaded
#file-notice
Group Notification
The following items have been added to the Files area of the [email protected] group. By: Dave Sand <ds@...> Description: |
Re: What¡¯s the optimum blocks in a fiddle/storage yard
I have storage lines that store two trains too - although the assumption is that they will each store one long train and one short train, as they're not long enough for two long ones.
?
I did it with three sensors -
1 - the front of the storage line, don't cross this one
2 - just after the length of my longest short train - short trains will not cover this sensor so long trains can pull up behind. Long trains will cover this sensor so short trains won't be able to pull up and cover it
3 - just after the length of my longest long train - meaning short trains can pull up behind
?
I used IR sensors for this as they're more straightforward and the intention is to determine static positioning, not motion.
?
Chris |
What¡¯s the optimum blocks in a fiddle/storage yard
Can you give me some views on the right number off blocks in a storage yard.? I intend to store 2 trains in line in each fiddle/storage yard. So my thinking was three blocks. One near the end about the length of a long loco. Say last 10%. That will detect the first loco and stop near the exit when using dispatcher.? the second block being about 40% into the storage line. This would detect a following train and stop it after crossing the boundary.? With the remaining entry block covering the first 40% would act to slow the loco. ?Prior to crossing the next block.? on the other hand do I need four blocks.? Such as 40%,10%,40% and last 10% or is this a waste? |
Re: How do I hook up a bar code reader to JMRI
That looks like you have a baud rate mismatch between how the port has been set in the script and what the reader is sending.
Does the documentation say anything about the proper rate? I think you¡¯ve tried with the baud rate at 9600. If that¡¯s not what the script is setting, please try that one first. If the manual doesn¡¯t specify something, or if it seems wrong, could you also try 19200 38400 57600 4800 2400 Those are the usual rates for an RS-232 interface. Bob On May 15, 2025, at 7:51?AM, Nick Brownsberger via groups.io <nbrownsbe@...> wrote:¡ª Bob Jacobsen rgj1927@... |
Re: How do I hook up a bar code reader to JMRI
As I was trying to interpret the 'self.line' information, I realized that I have a 2-d barcode reader and I'm trying to read 1-d barcodes. Didn't completely understand "2-D". I'm so sorry for all the wasted effort. But I did learn a lot. I'll get a 1-D reader with a USB interface and try again. Hopefully I can figure it out this time around.
?
Nick |
Re: How do I hook up a bar code reader to JMRI
Tried again while also printing 'self.line', i.e. "print (i, self.line)". The barcode is 0347 and here's the result of one read with suffix = 0x0D 0x0A:
--
(0, '')
(1, '\x00') (2, '\x00\x98') (3, '\x00\x98x') (4, '\x00\x98x\x06') (5, '\x00\x98x\x06\xf3') (6, '\x00\x98x\x06\xf3\xcc') (7, '\x00\x98x\x06\xf3\xcc\x1e') (8, '\x00\x98x\x06\xf3\xcc\x1e3') (9, '\x00\x98x\x06\xf3\xcc\x1e3\x80') (10, '\x00\x98x\x06\xf3\xcc\x1e3\x80\x98') ?
Nick |
Re: How do I hook up a bar code reader to JMRI
I set the barcode reader to factory defaults and followed your instructions.
--
... a = SerialPortDevice()
... a.open("/dev/cu.usbserial-ftE1GQVJ") ... a.start() Opening ?/dev/cu.usbserial-ftE1GQVJ Port opened OK Skipped character count: 0 Skipped character count: 0 Skipped character count: 0 Ready to process --
This time we got the "ready to process". Then I scanned 20 barcodes with evidently no results. Nothing on the system console. I tried the same procedure with the barcode set to factory default, USB interface, RS232 serial port and USB virtual serial port. All got the same result.
--
I added some print statements in the code. It got past the "next = self.inputStream.read()", but did not get to "values = self.parse(self.line)". I added a counter in the 'while' statement. With one barcode read it counted to nine. After 3 reads, the count reached 28 and after many reads reached 254. So, the code isn't getting out of the loop. Don't understand the code well enough to experiment further.
--
? ? ? ? next = self.inputStream.read() ? ? ??
? ? ? ? print ('past next = self.inputStream.read()') ? ? ? ? i=0 ? ? ? ? while (next != 13) : ?# unless CR, return - if CR, process line ? ? ? ? ? ? print (i) ? ? ? ? ? ? if (next != 10) : self.line += chr(next) ?# ignore LF 10 ? ? ? ? ? ? next = self.inputStream.read() ? ? ? ? ? ? i=i+1 ? ? ? ? ? ? ? ?? ? ? ? ? # split line into array of string values ? ? ? ? values = self.parse(self.line) ? ? ? ? print ('past values = self.parse(self.line)') --
Opening ?/dev/cu.usbserial-ftE1GQVJ
Port opened OK Skipped character count: 0 Skipped character count: 0 Skipped character count: 0 Ready to process past next = self.inputStream.read() 0
1 2 3 4 5 6 7 8 9 .
.
--
P.S. I'm having to put () after the print statement now. Not sure why.
?
? |
Re: jmri & Arduino DCC-EX
#dcc-ex
The Pi isn't refusing to allow anything to connect, it's not aware that anything is trying to connect - because there's no network.
?
Networks aren't easy things to set up - if you have an old internet router lying around you could try taking that out to the shed and plugging it in (it doesn't need to be plugged into a phone line). That will give you a little more than a standard switch would (DHCP server for example) and may allow the Pi and computer (when either plugged into the router via ethernet or connected to its wireless network) to communicate with each other. |
Re: jmri & Arduino DCC-EX
#dcc-ex
¿ªÔÆÌåÓýHi Trevor thanks for the reply , I have had some successThe whole idea was to repurpose some old tech to run my layout in the garden shed under dcc , I have an old iPad which is no longer supported by apple , a raspberry model 2b and an Arduino uno with motor shield? It turns out that if I did a standard install of the latest dcc-ex command station which was part of the problem as it disables the program track and the Arduino then refuses to send signals to the track so this needed some custom settings which with the help of the discord channel they were able to solve that problem for me My next problem is to get the project to be stand alone without any network as the shed is too far away so I have tried various raspberry pi installs and since my pi is underpowered by todays standerds this needed some more work So currently I can connect my old iPad to the pi provided the pi is connected to the network but if it is not then the pi refuses to allow anything to connect and this is across all devices , both windows 7 ,8 and 10 , my iMac¡¯s and iPhone Eventually I have settled on Steve Todds distribution and trying to get the home made system to work as I want it Here is a pic of my current progress as I want the system to be headless with no keyboard or mouse and currently this project has cost only time as everything has been repurposed If anyone can assist the the pi configuration in being stand alone with no network that is my last hurdle A picture of the project Rob
|
Re: Losing occupancy when trying to record a warrant
#warrants
All of the blocks work perfectly with an NX warrant |
Locked
File /ProblemsBeingWorkedOn/TWES.xml uploaded
#file-notice
Group Notification
The following items have been added to the Files area of the [email protected] group. By: Mike Johnson <919.mike@...> Description: |
Re: jmri & Arduino DCC-EX
#dcc-ex
Hi Rob,
?
In order to detect messages from the loco, you need to have current detection - usually hall sensors in this case - sat between the track and your Arduino.
?
You sound knowledgeable so you may already know this and have it set up but it's worth a mention just in case.
?
There's a table on this page that shows which motor boards have current sensing built in, and which don't.
?
?
Regards,
Chris
?
? |
to navigate to use esc to dismiss