LinkSprite Lora Radio Shield support RFM95
-
I have been trying to get the LinkSprite Lora Radio shield with Arduino Uno to work with MySensors with no success.
Here is a link to the specific shield I am trying to get working with MySensors:
http://linksprite.com/wiki/index.php5?title=Lora_Radio_ShieldI have downloaded the latest development branch from Github (2.2-beta) and have configured a Passive Node and GatewaySerial as below.
Here is my Gateway Serial configuration:
#define MY_DEBUG // Enable and select radio type attached #define MY_RADIO_RFM95 #define MY_DEBUG_VERBOSE_RFM95
Here is my Passive Node configuration:
// Enable debug prints #define MY_DEBUG // Enable passive mode #define MY_PASSIVE_NODE // Passive mode requires static node ID #define MY_NODE_ID 100 // Enable and select radio type attached #define MY_RADIO_RFM95 #define MY_DEBUG_VERBOSE_RFM95 #include <MySensors.h> #define CHILD_ID 0 // Id of the sensor child // Initialize general message MyMessage msg(CHILD_ID, V_TEMP); void setup() { } void presentation() { // Send the sketch version information to the gateway and controller sendSketchInfo("Passive node", "1.0"); // Register all sensors to gw (they will be created as child devices) present(CHILD_ID, S_TEMP); } void loop() { // generate some random data send(msg.set(25.0+random(0,30)/10.0,2)); sleep(2000); }
I see the gateway and passive node each start up and init ok. The passive node send messages every 2 seconds however I never see any messages come through to the gateway.
One other note, I have been able to successfully get these LoRaSender and LoRaReceiver examples below to successfully send messages to each other, but they are using a different set of libraries.
The link to these examples is here:
LoRaSender - https://github.com/sandeepmistry/arduino-LoRa/blob/master/examples/LoRaSender/LoRaSender.ino
LoRaReceiver - https://github.com/sandeepmistry/arduino-LoRa/blob/master/examples/LoRaReceiver/LoRaReceiver.inoAnyone else out there got the LinkSprite LoraShield working with MySensors or any pointers to help me get past this would be much appreciated.
Thanks,
Wes