Gateway Moteino not sending command to SwitchMote [solved]

Started by mario.almeida, February 05, 2017, 10:45:13 AM

mario.almeida

Hi All,

Setup:
Pi2, MoteinoUSB and SwitchMote 2x10A. Both Moteino have no flash. RFM69HW 868M

Image installed from here -> https://drive.google.com/file/d/0B89HtwH5i2d0S01jTFk3aDgxNTA/view as instructed here https://lowpowerlab.com/guide/gateway/?view=all.

I am using Gateway and SwitchMote code from RFM69 examples. Only changed the NETWORKID to 250 and ENCRYPTKEY.

SwitchMote is registered and shown in the gateway UI. ON/OFF action on SwitchMote is reflected in the gateway UI, but no action from the gateway UI is sent to SwitchMote and in the log file I have this entry
Quote[LOG]   NODEACTION: {"nodeId":10,"action":"BTN0:0"}
:'(

Any configuration that I have missed?

mario.almeida


Felix

Hi Mario,

Make sure you have the PiGateway sketch on your Pi.
Also make sure you configure the IS_RFM69HW parameter in the sketches according to each of your RFM69, match frequency and network ID, etc.

FWIW You only need the FLASH MEM if you plan to use wireless programming, which would be recommended for SwitchMote once wired to mains.

mario.almeida

Thanks Felix, I had the Gateway sketch instead of PiGateway  ;D