I've been fiddling with the radio alone (serial gw), softspi and changing pins, and I think there's something else here.
Well those are my findings:
With this base definition and without the module wired:
#define MY_RADIO_RFM69
#define MY_RFM69_NEW_DRIVER
#define MY_IS_RFM69HW
#define MY_DEBUG_VERBOSE_RFM69
#define MY_GATEWAY_ENC28J60
It works as expected.
0 MCO:BGN:INIT GW,CP=RPNGA---,REL=255,VER=2.3.1
4 TSM:INIT
5 TSF:WUR:MS=0
6 RFM69:INIT
7 RFM69:INIT:PIN,CS=10,IQP=2,IQN=0
11 RFM69:PTX:LEVEL=5 dBm
13 TSM:INIT:TSP OK
15 TSM:INIT:GW MODE
16 TSM:READY:ID=0,PAR=0,DIS=0
19 MCO:REG:NOT NEEDED
72 GWT:TIN:IP=192.168.50.211
1075 MCO:BGN:STP
1077 MCO:BGN:INIT OK,TSP=1
1081 TSM:READY:NWD REQ
1083 RFM69:SWR:SEND,TO=255,SEQ=0,RETRY=0
1088 RFM69:CSMA:RSSI=-98
1090 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
If I try to change CS pin to any other with #define MY_RFM69_CS_PIN 4 for example, I always get:
0 MCO:BGN:INIT GW,CP=RPNGA---,REL=255,VER=2.3.1
4 TSM:INIT
5 TSF:WUR:MS=0
6 RFM69:INIT
7 RFM69:INIT:PIN,CS=4,IQP=2,IQN=0
11 RFM69:PTX:LEVEL=5 dBm
13 TSM:INIT:TSP OK
14 TSM:INIT:GW MODE
16 TSM:READY:ID=0,PAR=0,DIS=0
19 MCO:REG:NOT NEEDED
So I revert the CS pin change and activate softspi and change irq #define MY_SOFTSPI and #define MY_RFM69_IRQ_PIN 3 And it works well:
0 MCO:BGN:INIT GW,CP=RPNGA---,REL=255,VER=2.3.1
4 TSM:INIT
5 TSF:WUR:MS=0
6 RFM69:INIT
7 RFM69:INIT:PIN,CS=10,IQP=3,IQN=1
11 RFM69:PTX:LEVEL=5 dBm
13 TSM:INIT:TSP OK
15 TSM:INIT:GW MODE
16 TSM:READY:ID=0,PAR=0,DIS=0
19 MCO:REG:NOT NEEDED
72 GWT:TIN:IP=192.168.50.211
1075 MCO:BGN:STP
1077 MCO:BGN:INIT OK,TSP=1
1079 TSM:READY:NWD REQ
1081 RFM69:SWR:SEND,TO=255,SEQ=0,RETRY=0
1086 RFM69:CSMA:RSSI=-98
1091 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
Then I add the eth module and I get:
0 MCO:BGN:INIT GW,CP=RPNGA---,REL=255,VER=2.3.1
4 TSM:INIT
5 TSF:WUR:MS=0
6 RFM69:INIT
7 RFM69:INIT:PIN,CS=10,IQP=3,IQN=1
11 RFM69:PTX:LEVEL=5 dBm
13 TSM:INIT:TSP OK
15 TSM:INIT:GW MODE
16 TSM:READY:ID=0,PAR=0,DIS=0
19 MCO:REG:NOT NEEDED
And stays here forever.
Of course all those test are made using a double (5v+3v3) good power source, a level shifter... and changing the wires accordingly.
I have some questions:
Its normal MY_RFM69_CS_PIN not having effect and breaking the radion connection?
Without being able to change this, I don't know if it's spi interference.
In the last test, it seems to halt when initialising the network. Doesn't it?
Is there a way I can further know if the problem is with the eth module? I've tried it alone with the nano and it works.
I would thank guidance for debugging this.