Gateway Uno R3 + W5100 Ethernet Shield for Uno not working.
-
@Yveaux said in Gateway Uno R3 + W5100 Ethernet Shield for Uno not working.:
@pw44 why are spi clk/miso/mosi connected to A0.. 2 ¿
as described in https://www.mysensors.org/build/ethernet_gateway
-
@Yveaux said in Gateway Uno R3 + W5100 Ethernet Shield for Uno not working.:
@pw44 why are spi clk/miso/mosi connected to A0.. 2 ¿
as described in https://www.mysensors.org/build/ethernet_gateway
@pw44 said in Gateway Uno R3 + W5100 Ethernet Shield for Uno not working.:
as described in https://www.mysensors.org/build/ethernet_gateway
Yes, but the sketch just below it has
//#define MY_W5100_SPI_EN 4You actually have enabled this line, which causes the arduino to use hardware spi. And hardware spi uses different pins for clk/miso/mosi.
You wired for software spi, so comment that line as in the example. -
@pw44 said in Gateway Uno R3 + W5100 Ethernet Shield for Uno not working.:
as described in https://www.mysensors.org/build/ethernet_gateway
Yes, but the sketch just below it has
//#define MY_W5100_SPI_EN 4You actually have enabled this line, which causes the arduino to use hardware spi. And hardware spi uses different pins for clk/miso/mosi.
You wired for software spi, so comment that line as in the example.thanks man, you're right. commenting out
//#define MY_W5100_SPI_EN 4solved it.
now, debug shows:
0 MCO:BGN:INIT GW,CP=RNNGA---,FQ=16,REL=255,VER=2.3.2 4 MCO:BGN:BFR 6 TSM:INIT 7 TSF:WUR:MS=0 13 TSM:INIT:TSP OK 15 TSM:INIT:GW MODE 16 TSM:READY:ID=0,PAR=0,DIS=0 19 MCO:REG:NOT NEEDED 696 GWT:TIN:IP=192.168.80.9 1699 MCO:BGN:STP 1701 MCO:BGN:INIT OK,TSP=1 1703 TSM:READY:NWD REQ 1709 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:just another question: does the 3.3v line from Uno R# enough power to handle the RF24 radio?
Thx in advance!
-
@pw44 said in Gateway Uno R3 + W5100 Ethernet Shield for Uno not working.:
as described in https://www.mysensors.org/build/ethernet_gateway
Yes, but the sketch just below it has
//#define MY_W5100_SPI_EN 4You actually have enabled this line, which causes the arduino to use hardware spi. And hardware spi uses different pins for clk/miso/mosi.
You wired for software spi, so comment that line as in the example. -
@pw44 no
The IRQ pin is only required to be connected if the MY_RX_MESSAGE_BUFFER_FEATURE is defined in the sketch. Using this feature is recommended for high traffic nodes or gateways. Enabling it will result in better throughput but will require some additional memory to keep the message in memory before processing.
More information: https://www.mysensors.org/build/connect_radio and MY_RX_MESSAGE_BUFFER_FEATURE
-
@pw44 no
The IRQ pin is only required to be connected if the MY_RX_MESSAGE_BUFFER_FEATURE is defined in the sketch. Using this feature is recommended for high traffic nodes or gateways. Enabling it will result in better throughput but will require some additional memory to keep the message in memory before processing.
More information: https://www.mysensors.org/build/connect_radio and MY_RX_MESSAGE_BUFFER_FEATURE
@mfalkvidd
thank for the answer.i guess the UNO R3 is capable to do it, so, i tried
#define MY_RX_MESSAGE_BUFFER_FEATURE #define MY_RF24_IRQ_PIN 3and got the following error:
#error RF24 IRQ usage cannot be used with Soft SPIAny hint? The idea is having something like 80 nodes when all is done.
Thx
-
@mfalkvidd
thank for the answer.i guess the UNO R3 is capable to do it, so, i tried
#define MY_RX_MESSAGE_BUFFER_FEATURE #define MY_RF24_IRQ_PIN 3and got the following error:
#error RF24 IRQ usage cannot be used with Soft SPIAny hint? The idea is having something like 80 nodes when all is done.
Thx
-
@pw44 unless your nodes send very frequently, you probably don’t need irq.
If you need irq, you’ll need to use hardware spi.
@mfalkvidd said in Gateway Uno R3 + W5100 Ethernet Shield for Uno not working.:
@pw44 unless your nodes send very frequently, you probably don’t need irq.
If you need irq, you’ll need to use hardware spi.
Ok, but just in case, how to use the hardware spi in this configurartion (sorry if it seams stupid, but i'm just a very beginner on this).
Thx for the understanding and also for educating me,.
-
@mfalkvidd said in Gateway Uno R3 + W5100 Ethernet Shield for Uno not working.:
@pw44 unless your nodes send very frequently, you probably don’t need irq.
If you need irq, you’ll need to use hardware spi.
Ok, but just in case, how to use the hardware spi in this configurartion (sorry if it seams stupid, but i'm just a very beginner on this).
Thx for the understanding and also for educating me,.
-
ok, i was curious as i didn't find how to.
Anyway, is it possible to have the "RF24 IRQ" used as soft?
-
ok, i was curious as i didn't find how to.
Anyway, is it possible to have the "RF24 IRQ" used as soft?