¿ªÔÆÌåÓý

Date

Locked Re: WiFi on Raspberry Pi

 

Bruce

Steve Todd designed his RPi-JMRI image to be used with a Raspberry Pi 3 Model B,
which has built-in Wi-Fi (2.4 GHz), RJ-45 socket for 100 MBit/s Fast Ethernet LAN, HDMI socket for an optional monitor and four USB sockets (type A) for optional keyboard/mouse connection.

This image also works the same on a slightly more expensive Raspberry Pi 3 Model B+,
which has built-in dual-band Wi-Fi (2.4 GHz/5 GHz), RJ-45 socket for max. 300 MBit/s "Gigabit" Ethernet LAN, HDMI socket for an optional monitor and four USB sockets (type A) for optional keyboard/mouse connection.
But you cannot make use of the hardware advantages in a B+ versus a B model (!). In particular the Wi-Fi will only operate in 2.4 GHz band and the Ethernet remains on max. 100 MBit/s due to the drivers in the image. I tried that.

Older Raspberry Pi's do not have built-in Wi-Fi, so you need some Wi-Fi Transceiver to plug into a USB socket and may need to install its Unix drivers. Other drivers in the image for built-in hardware interfaces may also not work correctly. But I can't tell because I've never tried images released this year on older Pi's.

It's unlikely that you need an USB-hub with the 4 existing USB sockets (type A) in Raspberry Pi 3 Model B or B+.

You can directly connect a monitor, keyboard and mouse - but you don't have to. You can also remotely control the Raspberry Pi from another computer (f.e. with free VNC client software), either wireless through Wi-Fi or tethered through Ethernet.

Like every Wi-Fi Access Point, the Raspberry Pi should be up (min. 1.5 m / 5 ft. above ground) and without other electronic devices near it (within a radius of about 1 m / 3 ft.) for best working conditions. Although it may also work, nobody would put a radio antenna into a drawer or down on the floor - Wi-Fi is radio (and the rules for wave propagation apply).

Daniel Sieber
Zurich, Switzerland


Locked Re: Saving Sensors by RailCom

 

Although I understand the graph-coloring argument itself, I don¡¯t see how it applies.

Consider this case: Block B, with neighbors A and C, and block Y, with neighbors X and Z, are connected to a single sensor S. Now we start with A and X showing occupied, all others including S not occupied. Train 1 is in A and Train 2 is Y.

That¡¯s a _completely_ general setup, applicable to any layout topology.

Now sensor S goes active, hence indicating that B or Y or both are now occupied.

Where are the trains? How do you know?

Bob

On Sep 5, 2018, at 1:46 AM, halasz <halasz.gabor@...> wrote:

There are two extremes. A graph can be coloured by as many colours as its
size, by size I mean the number of vertices. This trivial colouring corresponds
to the generally accepted concept "at least one sensor to every block". Unless
the graph is complete - and complete graphs are not likely occurring as a layout
graph - fewer colours suffice, their least possible number is called the
chromatic number that may be much less than the size, allowing, occasionally, a
drastic reduction of detectors. Any number of colours, that is any number of
detectors between the chromatic number and the size is feasible. (For specific
purposes more should be installed - this topic has been touched upon in this
series - but I am restricting myself here, just as in my first post, to the
simplest case, one detecting position in every block.) I cannot rule out the
possibility but would be much surprised if - even in a highly complex layout -
the maximal number were the optimal. (I willingly concede that this may hold for
the other extreme, the minimum, as well.)
--
Bob Jacobsen
rgj1927@...


Locked Re: Roster addition

 

Dave

I have successfully completed the transfer of settings to Decoder Pro.

My THANKS TO ALL for your comments and suggestions.

Jerry Hampton


Locked Re: Audio Coding

 

Dave,

Here is a solution that works for me:

dict = {}
for i in range(1, 3):
dict["buffer_horn_Loco" + str(i)] = audio.provideAudio("IAB_horn_Loco" + str(i))
dict["buffer_horn_Loco" + str(i)].setURL(sounds_path + "horn" + str(i) + ".wav")
dict["source_horn_Loco" + str(i)] = audio.provideAudio("IAS_horn_Loco" + str(i))
dict["source_horn_Loco" + str(i)].setAssignedBuffer("IAB_horn_Loco" + str(i))
print("Variable buffer_horn_Loco{} has value {}".format(i, dict["buffer_horn_Loco" + str(i)]))
print("Variable source_horn_Loco{} has value {}".format(i, dict["source_horn_Loco" + str(i)]))

Please note that I deleted the spaces in the variable names.
Please adapt the "range" for your needs.
See the result in the JMRI Audio Table.


Klaus


Am 07.09.2018 um 11:43 schrieb David Smith via Groups.Io:

I have been experimenting with adding sound
There are several sounds I want to assign to each loco.
I use, for example, just showing 2 sounds assigned to 2 locos,
sounds_path = "C:/Users/Home/Documents/train-n/sounds/ds/"
buffer_horn_Loco1 = audio.provideAudio("IAB_horn_ Loco1 ")
buffer_horn_ Loco1.setURL(sounds_path+"horn1.wav")
source_horn_ Loco1 = audio.provideAudio("IAS_horn_ Loco1 ")
source_horn_ Loco1.setAssignedBuffer("IAB_horn_ Loco1 ")
buffer_startup_Loco1 = audio.provideAudio("IAB_ startup _ Loco1 ")
buffer_ startup _ Loco1.setURL(sounds_path+" startup 1.wav")
source_ startup _ Loco1 = audio.provideAudio("IAS_ startup _ Loco1 ")
source_ startup _ Loco1.setAssignedBuffer("IAB_ startup _ Loco1 ")
buffer_horn_Loco2 = audio.provideAudio("IAB_horn_ Loco2 ")
buffer_horn_ Loco2.setURL(sounds_path+"horn2.wav")
source_horn_ Loco2 = audio.provideAudio("IAS_horn_ Loco2 ")
source_horn_ Loco2.setAssignedBuffer("IAB_horn_ Loco2 ")
buffer_startup_Loco2 = audio.provideAudio("IAB_ startup _ Loco2 ")
buffer_ startup _ Loco2. setURL(sounds_path+" startup 2.wav")
source_ startup _ Loco2 = audio.provideAudio("IAS_ startup _ Loco2 ")
source_ startup _ Loco2. setAssignedBuffer("IAB_ startup _ Loco2 ")
This gets very longwinded for multiple sounds per loco and multiple locos
I am sure that it must be possible to code the above using a for loop with the sounds and locos read from a list or dictionary
Can anyone suggest how I might do that - I have used lists, dictionaries and for loops before, but cannot see how to apply them to this particular need.
Many thanks in advance
Dave


Locked Re: WiFi on Raspberry Pi

 

¿ªÔÆÌåÓý

Given a Raspberry 3 B or 3 B + even BlueTooth? keyboards and mice are usable.? USB... 4 USB2 so connected mouse and keyboard... to get really weird... VNC connection from your tablet or desktop.

I've used all the above...

Jim Albanowski



Locked Re: WiFi on Raspberry Pi

Steve Spence
 

I use a logitech wireless combo with usb dongle.


Steve Spence, KK4HFJ


On Fri, Sep 7, 2018 at 11:29 AM Bruce Petrarca via Groups.Io <bfpetrarca=[email protected]> wrote:
One more question. What about a keyboard / mouse for DecoderPro? USB hub?
--
Bruce Petrarca, Mr. DCC; MMR #574

On Sep 7, 2018, at 8:10 AM, Steve Spence <greentrust@...> wrote:

The newest Pi has wifi built in, the older ones need a usb adapter. I use the edimax.


Steve Spence, KK4HFJ


On Fri, Sep 7, 2018 at 10:12 AM Bruce Petrarca via Groups.Io <bfpetrarca=[email protected]> wrote:
Understood what you, Bob and Steve, said. Guess I wasn¡¯t clear.

What is needed to get the Pi to talk WiFi?
--
Bruce Petrarca, Mr. DCC; MMR #574

On Sep 7, 2018, at 7:08 AM, Steve Todd <mstevetodd@...> wrote:

Bruce, if you use my image (), you can be up and running with WiThrottle and EngineDriver very quickly. Just download the image, unzip it, write it to a new SD card, insert it in the RPi, plug in the LocoBuffer-USB and turn it on. The image will autoidentify the LocoBuffer-USB and autostart PanelPro with WiThrottle Server, Web Server and LoconetOverTCP. It creates it's own network access point, so in a minute or so, you can connect your phones and run trains.
--SteveT


Locked Re: WiFi on Raspberry Pi

 

¿ªÔÆÌåÓý

One more question. What about a keyboard / mouse for DecoderPro? USB hub?
--
Bruce Petrarca, Mr. DCC; MMR #574

On Sep 7, 2018, at 8:10 AM, Steve Spence <greentrust@...> wrote:

The newest Pi has wifi built in, the older ones need a usb adapter. I use the edimax.


Steve Spence, KK4HFJ


On Fri, Sep 7, 2018 at 10:12 AM Bruce Petrarca via Groups.Io <bfpetrarca=[email protected]> wrote:
Understood what you, Bob and Steve, said. Guess I wasn¡¯t clear.

What is needed to get the Pi to talk WiFi?
--
Bruce Petrarca, Mr. DCC; MMR #574

On Sep 7, 2018, at 7:08 AM, Steve Todd <mstevetodd@...> wrote:

Bruce, if you use my image (), you can be up and running with WiThrottle and EngineDriver very quickly. Just download the image, unzip it, write it to a new SD card, insert it in the RPi, plug in the LocoBuffer-USB and turn it on. The image will autoidentify the LocoBuffer-USB and autostart PanelPro with WiThrottle Server, Web Server and LoconetOverTCP. It creates it's own network access point, so in a minute or so, you can connect your phones and run trains.
--SteveT


Locked Re: WiFi on Raspberry Pi

Steve Spence
 

The newest Pi has wifi built in, the older ones need a usb adapter. I use the edimax.


Steve Spence, KK4HFJ


On Fri, Sep 7, 2018 at 10:12 AM Bruce Petrarca via Groups.Io <bfpetrarca=[email protected]> wrote:
Understood what you, Bob and Steve, said. Guess I wasn¡¯t clear.

What is needed to get the Pi to talk WiFi?
--
Bruce Petrarca, Mr. DCC; MMR #574

On Sep 7, 2018, at 7:08 AM, Steve Todd <mstevetodd@...> wrote:

Bruce, if you use my image (), you can be up and running with WiThrottle and EngineDriver very quickly. Just download the image, unzip it, write it to a new SD card, insert it in the RPi, plug in the LocoBuffer-USB and turn it on. The image will autoidentify the LocoBuffer-USB and autostart PanelPro with WiThrottle Server, Web Server and LoconetOverTCP. It creates it's own network access point, so in a minute or so, you can connect your phones and run trains.
--SteveT


Locked Re: Linux instead of Windows XP with JMRI plus my compiled railroad interface programs?

 

Don - I'll jump in on the recommendation of using a Raspberry Pi.

A number of us have been successfully using the RPi for JMRI for a couple of years and there are significant advantages over using an old PC.

First - remember an old PC is just waiting to fail.? The hard drive has a finite life.? Especially something that is old enough to have been pre-loaded with XP.? That thing is well past it's prime.

The RPi is current and well supported and more than powerful enough. The Raspian operating system is very much like windows. Most things are in a different place, but you won't find it extremely different.

So far I haven't found the need to separately load Java or any drivers.? Everything has been included with the distribution file. And if you're using Steve Todd's image - JMRI is ready to go.

The best thing is the stability. Nothing "automatically" upgrades itself.? ?Nothing changes until I change it.

All software is on the micro-SD card.? When and if I decide to upgrade, I copy everything to a new card, and make all of the changes to the new card.? If something doesn't work, I can slide in the old card and be back to the old, working system in about 30 seconds.? So changes and upgrades are no, or low, risk.

And the killer is the cost.? Even at full retail, you're only out about $50. Here's a kit with everything you need to get started <https://www.canakit.com/raspberry-pi-3-model-b-plus-basic-kit.html>? Add your own memory card, monitor and keyboard.

gs


Locked Re: WiFi on Raspberry Pi

 

Steve¡¯s default image sets up the RPi as an access point to it¡¯s own "RPi-JMRI¡± network, so you can just connect your phone to that and go.

If you want to instead connect the RPi to an existing network, there are some command-line things you have to do. Look about half-way down this page:

Bob

On Sep 7, 2018, at 7:11 AM, Bruce Petrarca via Groups.Io <bfpetrarca@...> wrote:

Understood what you, Bob and Steve, said. Guess I wasn¡¯t clear.

What is needed to get the Pi to talk WiFi?
--
Bruce Petrarca, Mr. DCC; MMR #574
bfpetrarca@...
On Sep 7, 2018, at 7:08 AM, Steve Todd <mstevetodd@...> wrote:

Bruce, if you use my image (), you can be up and running with WiThrottle and EngineDriver very quickly. Just download the image, unzip it, write it to a new SD card, insert it in the RPi, plug in the LocoBuffer-USB and turn it on. The image will autoidentify the LocoBuffer-USB and autostart PanelPro with WiThrottle Server, Web Server and LoconetOverTCP. It creates it's own network access point, so in a minute or so, you can connect your phones and run trains.
--SteveT
--
Bob Jacobsen
rgj1927@...


Locked Re: Linux instead of Windows XP with JMRI plus my compiled railroad interface programs?

 

Thank you, everyone for your quick and helpful replies!

Seems I need a newer computer, as I'm not looking for yet another hobby! I'm 74, and it's going to be a several year project to get my railroad rebuilt in our new home, functional, and with basic scenery to give a reasonable impression and keep derailed trains from falling to the floor.

There is plenty more to add later: working signals, paint on those brass locos, more and better structures. I'm sure many of you are in the same situation, with an endless set of possible projects. Isn't it great to have so many choices of how to spend our free time! I feel sorry for people who don't have lives beyond work.

Don Weigt


Locked Re: WiFi on Raspberry Pi

 

Bruce,
The RPi has built-in wifi. My image turns that into an access point. That's it.

If you want to run JMRI on your laptop (also), connect its wifi to the RPi-JMRI access point, and use the LoconetOverTCP connection. Then you laptop can "see" the layout via the RPi.

--SteveT


Locked Linux problem with DCC4PC Reader Board

 

My setup works fine on my Win 10 Dell laptop and can read my 16 channel reader board. Using test version 4.13.2.

i also have a DCC++ system using a RPi 3 and have downloaded three versions on JMRI (2 test versions and the latest release version) also Steve Todds latest image and they all don't show the DCC4PC 16 channel reader board. Even changes the board number from 1 to 0 and makes no difference.? The interface is active but no reader boards show in the DCC4PC window. i have two 16 Gigi SD cards, one for Steve Todd and the other for JMRi off the internet.? Both are setup with the same preferences.

I really want to use the RPi to free up my laptop for other uses.

What is the best way to send my information for it to be analyzed fro the Linux system.


Locked Re: WiFi on Raspberry Pi

 

¿ªÔÆÌåÓý

Understood what you, Bob and Steve, said. Guess I wasn¡¯t clear.

What is needed to get the Pi to talk WiFi?
--
Bruce Petrarca, Mr. DCC; MMR #574

On Sep 7, 2018, at 7:08 AM, Steve Todd <mstevetodd@...> wrote:

Bruce, if you use my image (), you can be up and running with WiThrottle and EngineDriver very quickly. Just download the image, unzip it, write it to a new SD card, insert it in the RPi, plug in the LocoBuffer-USB and turn it on. The image will autoidentify the LocoBuffer-USB and autostart PanelPro with WiThrottle Server, Web Server and LoconetOverTCP. It creates it's own network access point, so in a minute or so, you can connect your phones and run trains.
--SteveT


Locked Re: WiFi on Raspberry Pi

 

Bruce, if you use my image (), you can be up and running with WiThrottle and EngineDriver very quickly. Just download the image, unzip it, write it to a new SD card, insert it in the RPi, plug in the LocoBuffer-USB and turn it on. The image will autoidentify the LocoBuffer-USB and autostart PanelPro with WiThrottle Server, Web Server and LoconetOverTCP. It creates it's own network access point, so in a minute or so, you can connect your phones and run trains.
--SteveT


Locked Re: Panel cannot create sensors

 

To follow on with Bob's suggestion...

Start JMRI
Load the panel file (so it logs all the issues)
Then use Help->Upload Debugging Info, make sure you check the boxes so it
includes all the parts.

That should give us a good view of what you are trying to read and what is
happening.

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


Locked Re: decoder pro operations

 

Hello Bob? no matter what I try I cannot open my profile to change it
David


Locked Re: WiFi on Raspberry Pi

 

Do you mean use the Raspberry Pi _instead_ of the Win 7 machine, taking the Win 7 machine out of the picture?

The RPi can be set up using Steve Todd¡¯s preloaded image. He¡¯s got a page of instructions:

The only remaining thing is moving any panel files, roster, etc over. Easiest way do to that might be a USB stick.

Bob

On Sep 7, 2018, at 7:00 AM, Bruce Petrarca via Groups.Io <bfpetrarca@...> wrote:

Don¡¯t know nuthin¡¯ ¡®bout ¡®me. But one might be the answer for our club.

We have an older Win 7 machine running JMRI and doing some word processing or web activities.

What would it take to interface a Pi to a Loco-Buffer USB and be able to support WiThrottle and Engine Driver?
--
Bruce Petrarca, Mr. DCC; MMR #574
bfpetrarca@...
--
Bob Jacobsen
rgj1927@...


Locked WiFi on Raspberry Pi

 

¿ªÔÆÌåÓý

Don¡¯t know nuthin¡¯ ¡®bout ¡®me. But one might be the answer for our club.

We have an older Win 7 machine running JMRI and doing some word processing or web activities.

What would it take to interface a Pi to a Loco-Buffer USB and be able to support WiThrottle and Engine Driver?

--
Bruce Petrarca, Mr. DCC; MMR #574


Locked Re: decoder pro operations

 

What goes wrong when you try to do that?

Bob

On Sep 7, 2018, at 6:52 AM, david.brown299 via Groups.Io <david.brown299@...> wrote:

Sorry Dan to come back to you but I cannot seem to be able to change my profile from English/English to American English as the British Railways section suggests, any ideas?
--
Bob Jacobsen
rgj1927@...