Ethernet Gateway connection to Raspberry Pi
-
- Correct
2)Good idea, haven't tried that! Will get onto that now.
3)Assuming you mean connect by ethernet, as above, will try that after 2) - Yes they do.
debug code is as below:
0;255;3;0;9;MC0:BGN:INIT GW,CP=RNNGA--,VER=2.1.1
0;255;3;0;9;TSM:INIT
0;255;3;0;9;TSF:WUR:MS=0
0;255;3;0;9;TSM;INIT:TSP OK
0;255;3;0;9;TSM:INIT:GW MODE
0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0
0;255;3;0;9;MC0:REG:NOT NEEDED
DHCP FAILURE...0;255;3;0;9;!MC0:BGN:TSP FAIL - Correct
-
Sorry, not sure why my bullet numbers are wrong, they are correct on the reply section. I think you get which answer is for which point though.
thanks@urbanus I do, thanks!
My guess is that your laptop is configured to share the wireless network with its ethernet port, but the raspberry pi is not configured that way.EDIT: Does the "Virgin Superb" have ethernet ports? If so, can you connect the ethernet shield directly to the "Virgin Superb" and see if that works?
-
Hi. If I connect the gateway to my laptop by cable it picks up an IP address without issue (using the gateway sketch). I guess this points to the problem being at the PI end. I came to this conclusion last night (around midnight!!) and checked the /etc/interfaces on the pi but it seemed okay.
-
@urbanus I do, thanks!
My guess is that your laptop is configured to share the wireless network with its ethernet port, but the raspberry pi is not configured that way.EDIT: Does the "Virgin Superb" have ethernet ports? If so, can you connect the ethernet shield directly to the "Virgin Superb" and see if that works?
@mfalkvidd Yes, it does. Didn't realise I could do that. Will try that as soon as Question Time finishes (I know thats sad but what can I say...)
Will also search for the raspberry pi configuration you pointed to - thanks a lot. I learn a great deal from forums but sometimes you just need a second pair of eyes to point you in the right direction -
@mfalkvidd Yes, it does. Didn't realise I could do that. Will try that as soon as Question Time finishes (I know thats sad but what can I say...)
Will also search for the raspberry pi configuration you pointed to - thanks a lot. I learn a great deal from forums but sometimes you just need a second pair of eyes to point you in the right direction@urbanus have you considered wiring the nrf24 directly to the gpio ports on your raspberry pi (instructions: https://www.mysensors.org/build/raspberry ) ?
That would eliminate the need for the ethernet shield and you can use your Uno for other stuff. -
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.