开云体育

Locked Using Two Different Computers


 

My main JMRI computer is a laptop connect to a NCE USB card.? I have added a turnout table that has 16 entries with matches my Tam Valley Octopus controllers.? I have started to work on creating panels to utilize the turnout tables.? Rather than continue to design my panels on the laptop I would rather use my desktop computer that has multiple monitors connect to it.? When I save the current panel that I am working, have not attached the turnouts just yet, I don't see the table information being saved.? Is there a different file being created?? I want to be able to move between the two computers without have to go out an buy another NCE USB card.


 

Craig,

I think what you want to do is use the desktop computer to edit the panel
offline from the layout? If that's right, you would:
1. copy the profile directory from the layout computer to the desktop.
2. edit the preferences to change from the physical connect to the
'simulator' for that system type.
3. Save and restart.

Now you should have the panel and all the underlying tables. Note:
everything starts up as 'unknown' for the state. So using tools like scripts
to set turnouts to CLOSED and sensors to INACTIVE will make the panels look
better.

If that's not what you are hoping for, just clarify what you are after.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com
www.syracusemodelrr.org


 

开云体育


Craig,

On 15 Jan 2019, at 6:08 AM, Craig Snyder <csnyder1@...> wrote:

My main JMRI computer is a laptop connect to a NCE USB card. ?I have added a turnout table that has 16 entries with matches my Tam Valley Octopus controllers.

So the turnout System Names will start with "NT..."

?I have started to work on creating panels to utilize the turnout tables. ?Rather than continue to design my panels on the laptop I would rather use my desktop computer that has multiple monitors connect to it. ?When I save the current panel that I am working, have not attached the turnouts just yet, I don't see the table information being saved. ?Is there a different file being created?

Your turnouts will be saved into the panel. But opening the panel will not make the tables visible. Suggest you set "Open Turnout Table" as an action in Preferences->Startup. It will be populated when you open your panel. You can also automatically open the panel file as a startup action.

I want to be able to move between the two computers without have to go out an buy another NCE USB card.

You will need a connection with the same system prefix, usually "N" for an NCE system, otherwise your table will show load errors. The most suitable connection type is NCE Simulator; it has the same default prefix of "N".

You can try just copying the profile between computers as Ken has suggested and modifying it, but I think you will have better success if you create a clean NCE Simulator profile on the desktop, then set up and share a separate User Files area, preferably using a file syncing solution such as Dropbox <> rather than Sneakernet**. This will also make it trivial to have multiple profiles on each computer (say a real and simulator on the laptop), all sharing the same data (panels and tables, roster, etc.).

Dave

**<>


--
Dave in Australia


 

I recommend Dave Heap's Dropbox solution, works great for multiple computers. Very good instructions in the JMRI help library
Stefan
--
Stefan Bartelski

Home layout: The Blue Ridge Line, an HO representation of the L&N Etowah Old Line from Etowah to Elizabeth, set in 1986 9under construction)
Modular Layout: Shoofly module of the Country RRoads Modular group


 

Just don't have both the laptop and the desktop playing around in the " shared files "? at the same time or something will give.

Marc


 

开云体育

With Dropbox, there's no problem having panels, throttles, tables, even roster entries open at the same time on different machines. I'm often in that situation. You can't corrupt files because Dropbox is not real-time sharing, each machine is working on a local copy.

The worst-case situation is that you open, edit and save the same (panel or roster) file on two computers at the same time. In that case you may lose one set of edits, or you may end up with both sets separately saved, with one having a (Conflicted...) added to the filename. You can sort out which to keep.

The other situation is that if you add a new roster entry on one while both machines are running JMRI. In that case you may have to "Rebuild Roster" later (with only one machine running JMRI) to see the new entry.

But at no stage do you get file corruption and every change saved (or deletion) in the past 30 days is fully retrievable and recoverable.

Many times I've used that to recover from a whoopsie while testing new code!


On 15 Jan 2019, at 9:03 AM, forfoum@... wrote:

Just don't have both the laptop and the desktop playing around in the " shared files "? at the same time or something will give.

--?
Dave in Australia



 

I edit JMRI on my main computer up in the house. I have a networked drive attached to my homehub, and can be accessed by any domestic machine. My railway is in a garden shed where I have a PC with the USB connections to the control systems, and connected by wi-fi to the house. I prefer to do the editing in the house, and use the Shed machine for running the railway and for fine tuning. I have connected the house machine to the layout by using the Web server and I have managed to change the turnouts (switches) and signals. As my internet connection is very slow 134Kb/S I try not to use any cloud based storage. Think of how long it takes to download my roster with the the images plus the Layout XML file total of 243MB. My system works for me and if my internet crashes which it does quite frequently, I can still run the layout.


 

Ken was not aware of the simulator selection, but that is exactly what I was looking for.


 

开云体育

SwissChris,

1) Be aware that Dropbox is not simply cloud-based storage. It is cloud-synced storage. Full local copies are kept on every connected machine. So you can use your layout when your Internet connection is down and your files will load at full hard-drive speed. The Internet connection is only needed to sync file changes. Agree that if you have a slow connection it will take a while to upload a changed large file, but that only has to happen once. Dropbox uses LAN Sync so if your master copy changes the Dropbox app will first look for an up-to-date copy on another machine and transfer at full LAN speed.

2) Be aware that with a local networked drive, the risk of file corruption is real because if you have a JMRI file open on more than one machine, both machine are simultaneously using the same physical file and if any changes are made, corruption is a real possibility.

On 15 Jan 2019, at 1:30 PM, SwissChris <chris@...> wrote:

As my internet connection is very slow 134Kb/S I try not to use any cloud based storage. Think of how long it takes to download my roster with the the images plus the Layout XML file total of 243MB. My system works for me and if my internet crashes which it does quite frequently, I can still run the layout.

--?
Dave in?Australia


 

开云体育

It has been my experience that in that case, one copy is kept with the original (xxx.yyy) file name. A second file (xxx zzz conflicted copy.yyy) is created. The zzz is the username of the second person. At least it works this way with our clubs sharing of business files between the club machine an officer’s home machines.

I don’t know if it is possible to set it up with each computer being a different named user. I haven’t tried. All my my machines (iMac, MacBook, iPhone, iPad and my XP notebook) all sign in with the same username.

I keep my JMRI files in a directory of my own and the club’s JMRI files in a shared directory. When I work on a club loco at home, I copy its xml file from the club roster to mine; open DecoderPro; rebuild my roster and go to work. When the loco returns to the club, I copy the (revised) xml file from my roster to the club’s roster. When I get to the club, a rebuild of the roster has the new file accessible there. Being meticulous about copying the file and rebuilding the roster is the key here. If someone doesn’t have the loco, they shouldn’t be messing with the file!
--
Bruce Petrarca, Mr. DCC; MMR #574

On Jan 14, 2019, at 10:54 PM, Dave Heap <dgheap@...> wrote:

2) Be aware that with a local networked drive, the risk of file corruption is real because if you have a JMRI file open on more than one machine, both machine are simultaneously using the same physical file and if any changes are made, corruption is a real possibility


 

Bruce,

On 16 Jan 2019, at 1:55 AM, Bruce Petrarca via Groups.Io <bfpetrarca@...> wrote:

It has been my experience that in that case, one copy is kept with the original (xxx.yyy) file name. A second file (xxx zzz conflicted copy.yyy) is created. The zzz is the username of the second person. At least it works this way with our clubs sharing of business files between the club machine an officer’s home machines.
My experience with Dropbox has always been that the filename is of the form:
filename (computername's conflicted copy yyyy-mm-dd).extension

A real example from my Dropbox right now:
roster (Trains's conflicted copy 2018-12-19).xml

"Trains" is my computer name, not my username (which tends to be the same across quite a few of my computers).

I don’t know if it is possible to set it up with each computer being a different named user. I haven’t tried. All my my machines (iMac, MacBook, iPhone, iPad and my XP notebook) all sign in with the same username.
Dropbox sharing in JMRI is oblivious to both computer-name and username. JMRI files in User Files Location are all saved with paths in our own portable format relative to User Files Location. So I happily share between various flavours of Mac, Windows and Linux.

The problem only arises if you save your Panels, images etc. outside User Files Location.
--
Dave in Australia