Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
¿ªÔÆÌåÓýAwesome Steve - Works perfectly And thanks to Dave Sand and Mike for helping me understand better what it was I was trying to do NOW I can get building the JMRI side of my layout safe in the knowledge I now have a working link between JMRI and AnyRail Great work everyone Phil G On 06/08/2024 21:49, Steve Todd via
groups.io wrote:
|
Locked
Re: Using disconnected connections??
¿ªÔÆÌåÓýBrill!! I'd never really needed to worry about Profiles before (having a simple layout and a single control point) But now, with two Lenz systems and a SPROG, profiles suddenly become important. Though I hadn't noticed the simulator connection options THANKS Phil G On 07/08/2024 17:17, Dave Sand via
groups.io wrote:
|
Locked
Re: Using disconnected connections??
As Dave said make a new profile, then select Xpressnet simulator as the layout connection.
If you set the User File Location the same as your other connection then you will be able to easily open panels etc. used by that one.
?
I do this to setup modular layouts at home on the simulator and then connect to the layout a meeting with a LIUSB.
?
You can control the virtual turnouts and turn on and off sensors, so you can see if Logix, panels, routes etc. will work.
?
Mike |
Locked
Precise position of trains and maneuvers automation
Hello,
?
I have a few questions.
?
Does JMRI can deduce the precise location of a train from its speed, it's size and a few object detectors ?
?
If yes:
?
Do you know of other software than JMRI who can do that ?
?
?
For my diploma work for engineering, I need to develop a system that can measure, or deduce, the precise location of a train, with a precision of 2-3 cm.
Then, using this location, the system need to automate the maneuvers, including uncoupling and train formation.
?
But before developing this system, I need to document what's already exist in the field of model making. And then found a new way of doing it.
I'm only allowed to develop something that nobody have already done.
?
For the detectors, it's seems that model makers have already done every possibilities.
Including using 2 objects detectors to measure speed (and JMRI already have a speedometer).
?
For positon deduced from other data, I have seen that JMRI already have a Train Tracker [1].
But, as I have only used the Decoder Pro until now, I don't know if the Train Tracker correspond to what I'm asked to develop or not.
?
Best regards.
?
PS: If my diploma work can be done, I plan to release the result software and hardware as free (as in freedom) software and hardware.
?????? And all the documents in similar licence. And if it implies modifying JMRI, I would be very happy to send my modifications as contribution to JMRI.
?
[1] https://www.jmri.org/help/en/package/jmri/jmrit/logix/Tracker.shtml |
The way to bypass the problem (not the command) is to have something like a Raspberry Pi running JMRI at the layout, and then connect over the network using whatever the NCE equivalent of LoconetOverTCP from whatever other computers you want to use. On Mon, 5 Aug 2024 at 00:33, Canadian Locomotive Logistics via <CanadianLocomotiveLogistics=[email protected]> wrote:
|
Locked
Re: Using disconnected connections??
Phil, Create a second profile with a simulated XpressNet connection. Use Preferences -> Config Profiles to enable the profile selector. Set Preferences -> File Locations to share the user files location. Dave Sand ----- Original message ----- From: Phil G <phil@...> Subject: [jmriusers] Using disconnected connections?? Date: Wednesday, August 07, 2024 10:58 AM This may be a stupid question, but .... My laptop CAN connect to my XpressNet based DCC command station (and? that's how I run? my layouts) BUT I also use the laptop to manage JMRI when it is NOT connected to? XpressNet - when I just get an "internal" connection Is it at all possible to have JMRI operate as IF there was a valid? connection (so I can create turnouts and routes etc)? I accept that I? won't be able to actually CONTROL anything, but at this point that's? moot (no layout!) It would just be nice to be able to pre-prepare some stuff...... Thanks Phil G |
Locked
Using disconnected connections??
This may be a stupid question, but ....
My laptop CAN connect to my XpressNet based DCC command station (and that's how I run? my layouts) BUT I also use the laptop to manage JMRI when it is NOT connected to XpressNet - when I just get an "internal" connection Is it at all possible to have JMRI operate as IF there was a valid connection (so I can create turnouts and routes etc)? I accept that I won't be able to actually CONTROL anything, but at this point that's moot (no layout!) It would just be nice to be able to pre-prepare some stuff...... Thanks Phil G |
Locked
Re: How Many COM ports do I need?
#com-ports
Nigel & Mark.
?
As neither of you have told me otherwise, I¡¯ll assume that I was correct in terms of the number of COM ports I need in each scenario.
?
Nigel. I only expect to do monitoring while troubleshooting my sketch. I have completed the coding, transferring some code from a proof of concept to the sketch which runs my layout, but it may still need some tweaking. Once it¡¯s running OK, I won¡¯t need to send messages to the Serial Monitor.
?
Alternatively, is there some way I can send Serial.print output to JMRI? That would save a COM port.
--
Thanks and Regards Ron Ventura Melbourne, Australia JMRI 5.6+R89a87446cb Java 11.0.14 Windows 11 |
Locked
Re: How Many COM ports do I need?
#com-ports
¿ªÔÆÌåÓýSo long as there are sufficient USB sockets available, a Windows computer will allocate COM Port numbers to each device which behaves as a serial device when it is plugged in. ? You may only need one USB port on the computer. I am using a Win7 computer with only one USB port. I have a 4-port USB hub attached with 3 devices plugged into the hub (NCE interface, Sprog IIv3, LokProgrammer). Windows assigns a separate COM number to each. ? Mark Granville |
Locked
Re: PanelPro already running
I went in to the museum yesterday to work some more on this problem. I found that the Java version is 8 or "1.8" as displayed in JMRI. Checked the log files, the last line is always that shutdown completed normally. I thought maybe my two Jython scripts could be the problem so I disabled them and the problem persisted. As I previously mentioned, Java is shown in Task Manager as still running after the shutdown. I can't "end task" on it. I guess I should have looked in the Windows syslog. That will have to wait until my next trip in there.
?
Any thing else I can do to investigate this?
?
George |
Locked
Re: How Many COM ports do I need?
#com-ports
¿ªÔÆÌåÓýFor the devices you've outlined, they are all USB.? ?So long as there are sufficient USB sockets available, a Windows computer will allocate COM Port numbers to each device which behaves as a serial device when it is plugged in.? ?(There
are some USB devices which present multiple serial connections, so request two or three COM ports from Windows, but you don't have one listed in your posting (eg. Digikeijs/Yamorc command stations).? ? I sometimes program groups of Arduino or similar devices,
and may have half a dozen different COM port numbers active for each of them).? ??
Within JMRI, for a given "profile",? you can have multiple layout connections.? You can have multiple profiles, including making those profiles point to the same data files or same folder/directory.? ? ?So, for the situation you've outlined,
I can see two approaches:
a)? always connect both the Arduino/CMRI and the NCE system, and just use what you require of them.? If you don't use one component that's fine, but it is plugged into the USB and powered.? ?One profile, with two layout connections,
does the lot.?
b)? select any combination of what is connected.? Three profiles, all pointing to same data files.? One for each of the options outlined:? Arduino/CMRI only,? NCE only and combined NCE/CMRI.?
You can monitor a serial connection with another software tool whilst using it, but its flying very near the limit.? There will be problems if the tool for monitoring also sends any commands over the connection used by the active system
(which it may do when opening, or changing the baud-rate).? ? There are some software applications which can do a "virtual serial port" split of the COM-port, and present two separate ones, whether that's worth getting doing depends how much monitoring you'll
be doing.??
------ Original Message ------
From "Ron Ventura" <rventura.57@...>
Date 07/08/2024 06:24:40
Subject [jmriusers] How Many COM ports do I need? #com-ports
|
Locked
Re: Help with multiple panels showing and web server
Mike, The web view shows the current contents of the panel. Dave Sand ----- Original message ----- From: Mike Yeoman <mike@...> Subject: Re: [jmriusers] Help with multiple panels showing and web server Date: Wednesday, August 07, 2024 1:49 AM Hi Dave, ? Brilliant, many thanks. I now manually launch the mimic panel once Panel Pro has started, and almost immediately I could also project the working panel to the webpage and on to my tablet. Can now walk about changing points via the tablet. ? I assume blocks and signals can be added later? ? Best Regards, ? Mike ? Tel (Mobile):??? +64 210 570003 ? Postal Address: PO Box 401025, Mangawhai Heads, Mangawhai, New Zealand, 0541 ? email: mike@... gmail: mr.mahoose@... ? ? ¡°The purpose of economic forecasting is to make astrology look respectable¡¡¡± ? From: [email protected] <[email protected]> On Behalf Of Dave Sand ? Mike, ? You are loading two xml data files. ?That almost never works. ? C:\Users\mike\JMRI\Aberdeen_test_1.jmri\Turnouts.xml C:\Users\mike\JMRI\Aberdeen_test_1.jmri\Panel.xml ? Start by removing Turnouts.xml from "Preferences -> Start Up". ?See if "Panel.xml" has the correct panel. ? ? ? Dave Sand ? ? ? ----- Original message ----- From: Mike Yeoman <mike@...> Subject: Re: [jmriusers] Help with multiple panels showing and web server Date: Tuesday, August 06, 2024 5:58 PM ? Hi Dave, ? Thanks for this. ? I created another file ¡°panel backup.xml¡± a few weeks ago as I was paranoid about losing the panel I¡¯d spent days creating! Perhaps this is at the root of my issues. Should I just delete this file? If so will my good panel stay in ¡°panel.xml¡±? ? I attach the system console as you asked below. ? It¡¯s very important for me to use JMRI as a webpage so I can use my touchscreen, but all I get at the moment when on 192.168.1.48:12080 is ¡°no discoverable panels¡±¡ ? 10:34:47,110 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- * JMRI log ** [main] ERROR StatusConsoleListener Unable to copy file C:\Users\mike\JMRI\log\messages.log to C:\Program Files (x86)\JMRI\${jmri.log.path}messages.1.log: java.nio.file.AccessDeniedException C:\Users\mike\JMRI\log\messages.log -> C:\Program Files (x86)\JMRI\${jmri.log.path}messages.1.log 10:34:47,235 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- This log is stored in file: C:\Users\mike\JMRI\log\session.log [main] 10:34:47,235 apps.util.Log4JUtil ? ? ? ? ? ? ? ? ? INFO ?- This log is appended to file: C:\Users\mike\JMRI\log\messages.log [main] 10:34:47,360 apps.Apps ? ? ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- PanelPro version 5.6+R89a87446cb starts under Java 11.0.12 on Windows 10 amd64 v10.0 at Wed Aug 07 10:34:47 NZST 2024 [main] 10:34:50,140 apps.Apps ? ? ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- Starting with profile Aberdeen_test_1.3ee232d8 [main] 10:34:50,640 jmri.util.node.NodeIdentity ? ? ? ? ? INFO ?- Using d7bbcf9d-f93e-4bac-8d88-9b2ebfc0c7c5 as the JMRI storage identity for profile id 3ee232d8 [AWT-EventQueue-0] 10:34:51,015 xml.AbstractSerialConnectionConfigXml INFO ?- Starting to connect for "NCE" [main] 10:34:51,686 .nce.serialdriver.SerialDriverAdapter INFO ?- NCE COM3 port opened at 9600 baud [main] 10:34:52,108 jmri.jmrix.mqtt.MqttAdapter ? ? ? ? ? INFO ?- MQTT starting connect with MQTTchannel = "" [main] 10:34:52,124 jmri.jmrix.mqtt.MqttAdapter ? ? ? ? ? INFO ?- Connection M is using a clientID of "MyJMRIRailroadMjmri00E9" [main] 10:34:52,670 jmri.jmrix.mqtt.MqttPowerManager ? ? ?INFO ?- Subscribed to track/power [main] 10:34:53,904 jmri.util.startup.PerformFileModel ? ?INFO ?- Loading file C:\Users\mike\JMRI\Aberdeen_test_1.jmri\Turnouts.xml [main] 10:35:01,824 mri.jmrix.AbstractMRTrafficController WARN ?- Timeout on reply to message: AA consecutive timeouts = 0 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 10:35:01,933 jmri.jmrix.nce.NceConnectionStatus ? ?WARN ?- Incorrect or no response from NCE command station [nce.NceTrafficController Transmit thread] 10:35:02,636 jmri.util.startup.PerformFileModel ? ?INFO ?- Loading file C:\Users\mike\JMRI\Aberdeen_test_1.jmri\Panel.xml [main] 10:35:04,930 utEditor.configurexml.LayoutEditorXml WARN ?- File contains a panel with the same name (My Layout) as an existing panel [AWT-EventQueue-0] 10:35:08,880 rit.display.layoutEditor.LayoutEditor WARN ?- File contains a panel with the same name (My Layout) as an existing panel [AWT-EventQueue-0] 10:35:11,357 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path program: is C:\Program Files (x86)\JMRI\ [main] 10:35:11,357 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path preference: is C:\Users\mike\JMRI\Aberdeen_test_1.jmri\ [main] 10:35:11,357 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path profile: is C:\Users\mike\JMRI\Aberdeen_test_1.jmri\ [main] 10:35:11,357 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path settings: is C:\Users\mike\JMRI\ [main] 10:35:11,357 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path home: is C:\Users\mike\ [main] 10:35:11,357 jmri.util.FileUtilSupport ? ? ? ? ? ? INFO ?- File path scripts: is C:\Program Files (x86)\JMRI\jython\ [main] 10:35:11,935 mri.jmrix.AbstractMRTrafficController WARN ?- Timeout on reply to message: AA consecutive timeouts = 1 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 10:35:12,044 jmri.jmrix.nce.NceConnectionStatus ? ?WARN ?- No response from NCE command station [nce.NceTrafficController Transmit thread] 10:35:12,903 jmri.web.server.WebServer ? ? ? ? ? ? INFO ?- Starting Web Server on port 12080 [WebServer] 10:35:14,059 jmri.web.server.WebServer ? ? ? ? ? ? INFO ?- Starting ZeroConfService _http._tcp.local for Web Server with properties {path=/, json=5.4.0} [WebServer] 10:35:14,918 apps.PanelPro.PanelPro ? ? ? ? ? ? ? ?INFO ?- Main initialization done [main] 10:35:22,058 mri.jmrix.AbstractMRTrafficController WARN ?- Timeout on reply to message: AA consecutive timeouts = 2 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 10:35:22,167 jmri.jmrix.nce.NceConnectionStatus ? ?WARN ?- No response from NCE command station [nce.NceTrafficController Transmit thread] 10:35:32,180 mri.jmrix.AbstractMRTrafficController WARN ?- Timeout on reply to message: AA consecutive timeouts = 3 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 10:35:32,289 jmri.jmrix.nce.NceConnectionStatus ? ?WARN ?- No response from NCE command station [nce.NceTrafficController Transmit thread] 10:35:42,302 mri.jmrix.AbstractMRTrafficController WARN ?- Timeout on reply to message: AA consecutive timeouts = 4 in nce.NceTrafficController [nce.NceTrafficController Transmit thread] 10:35:42,411 jmri.jmrix.nce.NceConnectionStatus ? ?WARN ?- No response from NCE command station [nce.NceTrafficController Transmit thread] ? ? Best Regards, ? Mike ? ? From: [email protected] <[email protected]> On Behalf Of Dave Sand ? Mike, ? Do the two panels have the same name? ?If so, change one of them and then do a store. ?Stop and re-start PanelPro and load the xml file. ?Now try deleting the old panel and do the store process again. ? After restarting PanelPro you should only have one panel. ?If not, go to "Help -> System Console", click on the "Copy to clipboard" button and paste into a reply. ? Dave Sand ? ----- Original message ----- From: Mike Yeoman <mike@...> Subject: Re: [jmriusers] Help with multiple panels showing and web server Date: Tuesday, August 06, 2024 2:11 AM ? Thanks Leo. I managed to get rid of the blank panel, but not the other one. Not sure what to do.? ? Thanks for replying,? ? Mike? ? ? ? ? ? ? -------- Original message -------- From: leo pesce <lpescester@...> Date: 6/08/24 14:55 (GMT+12:00) Subject: Re: [jmriusers] Help with multiple panels showing and web server ? Hello Mike. I am assuming that after the deletion of the two unwanted panels, that you save the file. Otherwise the two panel will come back. Do not know on #2. Cheers Leo P ? On Mon, Aug 5, 2024, 7:41 PM Mike Yeoman via <mike=[email protected]> wrote:
? ? ? |
The AA commands get sent by JMRI to see what is connected or not on
the port. A reply with three digits is expected. Nominally it is on a 10 second loop. This accounts for why some people say on starting JMRI it says there is a connection but 10 seconds later, it 'goes red'. Until that times out, it leaves the status alone which defaults as green. My guess is your network hardware is delaying or buffering some of the data and that is confusing things. The proof for this would be temporarily moving the computer and command station together and eliminate the network connection. If the error goes away, that points to something in the net connection. If it remains the same, then it would seem the network connection isn't making a difference. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com |
Locked
Re: Interchange vs Spur
#operationspro
On Wed, Aug 7, 2024 at 05:46 AM, Brian & Cherry Clark wrote:
I do wonder whether changing the track type to "Interchange" will improve matters further.Most likely not.? Track type has little to nothing to do with car movement.? However, the track restrictions, on a spur or interchange, will influence car movement.? For example, an interchange will not by default allow the same train to set out and pull a car from the track.? Whereas a spur track type allows the same train to service it. ?
The program uses the car's move count to determine the order cars are pulled from a location, the track type isn't considered.? The program at the very start of a build, will determine if there are track restrictions with regards to pulling cars from the various tracks, and if there are restrictions, states in the train's build report "Exclude car (xyz) at? ...." if the train can't pull the car. Excluded cars are not serviced by the train.
?
Dan |
Locked
Re: Move an icon on layout panel
If it is a large icon, it may be on level 1, which is locked.
That's what JMRI does when the image is "large"
I don't know what the size cutoff is, but its best to shrink the icon before inserting it.
Edit the XML file. Change level 1 to another level e.g. 2.
?
?
--
Vinny DeRobertis ~ Apex, NC New York & Hudson Valley RR Windows 7 Pro / Java 11 / JMRI v5.7.7 Command Station: Digikeijs DR5000. Booster: Digikeijs DR5033 Interface: Samsung A7 10.4" Tablets/Fully Kiosk.
DCC/DMX Gateway: Pricom LLS. LocoNet Input Modules: Digikeijs DR4088LN DCC Output Modules: Digikeijs DR4018 / Yamorc YD8116. Sensors: Model Train Technology: DETECTOR-HO. Turnout Motors: MTB MP1 |