Gateway and Node not communicating over radios

Started by Rick, June 22, 2015, 03:39:22 PM

Rick

I have a gateway and GarageMote using RF69_433MHZ radios on R4 Moteinos. 

The GarageMote will communicate over FDDI and respond in the serial monitor with
GarageMote : 433 Mhz...
UNKNOWN

upon connection, show status changes and operate the relay with character "r" input while blinking the appropriate status.

The gateway will also communicate over FDDi and respond in the serial monitor with
Listening at 433 Mhz...
SPI Flash Init OK!

The led will flash during the above message display and remains dark afterwards.

PROBLEM
If I send characters to the gateway over serial port, I get:
d returns Flash Content: (values)
e returns Erasing Flash chip ... DONE
i returns DeviceID: EF30
p returns Promiscuous mode on/off
r returns 1 - 10 - 10000, 2 - 0 - 0, ...etc (Should send relay test character)
t returns Radio Temp is 25C, 77F

PROBLEM
No communication from Garagemote through radio to gateway serial port.


The following changes were made to the gateway sketch at
https://github.com/LowPowerLab/RFM69/blob/master/Examples/PiGateway/PiGateway.ino
and
https://github.com/LowPowerLab/RFM69/blob/master/Examples/GarageMote/GarageMote.ino
using"Arduino Uno" board in Arduino.

withthe following changes:

BOTH MOTEINOS
#include <RFM69.h>         
#include <SPIFlash.h>     
#include <WirelessHEX69.h> //doesn't look like I really need this
#include <SPI.h>         
//#define IS_RFM69HW    //uncomment only for RFM69HW! Leave out if you have RFM69W!

GATEWAY MOTEINO
#define NODEID          1
#define NETWORKID     100
#define FREQUENCY     RF69_433MHZ
#define ENCRYPTKEY    "thisIsEncryptKey

GarageMote MOTEINO
#define GATEWAYID     1
#define NODEID        99
#define NETWORKID     100
#define FREQUENCY     RF69_433MHZ
#define ENCRYPTKEY    "thisIsEncryptKey

I have loaded TxRx Blinky on both moteinos and tested ok to verify the hardware.
I have built and loaded these sketches many many times and feel confident that it is not a typo.

Thanks in advance,
Rick

Felix

The PROBLEM part you describe doesn't sound like a problem. What did you expect to see when you type those characters?

Try sending "99:STS" through serial to your PiGateway moteino. When you give this command to your PiGateway moteino, it extracts the ID of the target (see this line where it happens) and sends the rest of the message to the node with that ID. So your garage mote should wirelessly receive "STS" (see this line where garage mote listens to this command)and it should respond back with whatever the status is (OPEN, OPENING, CLOSED, CLOSING, UNKNOWN).

Rick

Great!  That worked.  I sent 99:STS through the gateway using minicom and read the status of the Garagemote.
I guess I expected some kind of communication over the serial port, but I see now that I need to request it and didn't know how.

Now that I see we are communicating over the radios, let me restate the problem.  We are not communicating from the GarageMote to the UI of the Gateway..

I thought that I had a gateway problems solved in a different thread, but the node is not populated in the UI of my gateway.

Quote from: Felix on June 22, 2015, 12:50:47 PM
Ok great. Regarding the gateway moteino again...

. Then you can expect the nodes to talk to your gateway and listen for commands from it. A simple node activity like garage open/close should pop that node in the UI of your gateway. Then you can select the node type (garage Mote) and you should see the OPEN/CLOSE button.