Ethernet Gateway connection to Raspberry Pi
-
Hi. I did originally do that but thought I had misunderstood the instructions as my understanding is that I need a host for the control software (the pi) and a separate gateway (arduino) to relay info from the nodes so I stopped and constructed the ethernet gateway
-
I'm seriously thinking of taking up knitting! This is driving me bananas.
So, as I'm unable to get the ethernet gateway working I thought I would follow the advise given and connect the radio direct to the pi and set it as a serial gateway following the instruction on this site.
Software installs okay. Using a RPi 2 and a NRF24+. Connections triple checked and as per the drawing.
When I run the sudo ./bin/mysgw -d command to test the link I get:mysgw: Starting gateway...
mysgw: Protocol version - 2.1.1
mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1
mysgw: TSM:INIT
mysgw: TSF:WUR:MS=0
mysgw: !TSM:INIT:TSP FAIL
mysgw: TSM:FAIL:CNT=1
mysgw: TSM:FAIL:PDTI have checked the radio using the UNO/Ethernet shield as above and it works but no matter what I do on the pi I cannot get past the above error.
Help or directions to a nearby wool shop please!
-
I'm seriously thinking of taking up knitting! This is driving me bananas.
So, as I'm unable to get the ethernet gateway working I thought I would follow the advise given and connect the radio direct to the pi and set it as a serial gateway following the instruction on this site.
Software installs okay. Using a RPi 2 and a NRF24+. Connections triple checked and as per the drawing.
When I run the sudo ./bin/mysgw -d command to test the link I get:mysgw: Starting gateway...
mysgw: Protocol version - 2.1.1
mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1
mysgw: TSM:INIT
mysgw: TSF:WUR:MS=0
mysgw: !TSM:INIT:TSP FAIL
mysgw: TSM:FAIL:CNT=1
mysgw: TSM:FAIL:PDTI have checked the radio using the UNO/Ethernet shield as above and it works but no matter what I do on the pi I cannot get past the above error.
Help or directions to a nearby wool shop please!
-
Hi, Thanks in advance for the help.
This is what I get from asmod on the pi:
Module Size Used by
8192cu 582217 0
cfg80211 543027 1 8192cu
rfkill 20851 2 cfg80211
evdev 12423 1
joydev 9988 0
spidev 7373 0
snd_bcm2835 24427 0
snd_pcm 98501 1 snd_bcm2835
snd_timer 23904 1 snd_pcm
snd 70032 3 snd_timer,snd_bcm2835,snd_pcm
spi_bcm2835 7596 0
bcm2835_gpiomem 3940 0
uio_pdrv_genirq 3923 0
rpi_ft5406 4783 0
uio 10204 1 uio_pdrv_genirq
rpi_backlight 2632 0
fixed 3285 0
i2c_dev 6913 0
fuse 99603 1
ipv6 406751 30attached are two photos. One shows the arduino with ethernet and NRF and the other shows the RPi with the NRF. I have several NRF units, both types- and they all show on the Arduino running the given sketch so I know the radio modules are ok. I have a slightly different capacitor on the 2 units shown but I have tried with the same cap and the result is the same.


-
I should point out that grey has been used instead of orange on the RPi connection - I ran out of Dupont leads!
-
Hi,
I used
./configure --my-transport=nrf24
and./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway
The Uno is working fine but I can't get the ethernet connection to the pi to work on that, hence why I took the advise to use the pi as both gateway and controller. It does work as a good testbed for the radio modules though! -
Hi,
I used
./configure --my-transport=nrf24
and./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway
The Uno is working fine but I can't get the ethernet connection to the pi to work on that, hence why I took the advise to use the pi as both gateway and controller. It does work as a good testbed for the radio modules though!@urbanus only the last configure command will be considered, so the first command will be completely ignored.
That doesn't matter in this case though, since nrf24 is the default transport.
I'm out of ideas. It is time to go to http://www.ebay.com/itm/New-Knitting-Tools-Kit-Crochet-Needle-Hook-Accessories-Supplies-With-Case-/291870313249
-
I have managed to get a working system by using Arduino Mega with the NRF24 (the one with the Aerial Connection) running the serial sketch - connected to a RPi2 running Domoticz and connected to the Arduino by USB.
This seems an expensive way to sort out a gateway so I will persevere with trying to find why I cannot get the other versions up and running but at least now I have a system - knitting will have to wait!!
Thanks for the help, much appreciated.