MDOT I2C communication with Arduino
- This topic has 2 replies, 2 voices, and was last updated 7 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
I’m struggling with this task, I have an MDOT with a Development Board. I’ve successfully managed to flash the firmware to an mDot and receive on the gateway some dummy sensor data (just based on this example: https://github.com/ARMmbed/mbed-os-example-lorawan).
What I want now is to replace the DummySensor.h C header with my own I2CArduino.h which will read from i2c bus data from the Arduino. The problem I’m facing is that there’s little to no documentation for doing something like this for the ARMBed platform.
I leave my github project link: Github
And my Arduino sketch: Arduino Sketch
Now I got it to compile, but I am not being able to retrieve data from the i2c bus from the Arduino. I’m using this code https://github.com/cipiasentini/lorai2c/blob/master/mBed%20Firmware/mbed-os-example-lorawan/main.cpp the connection to the gateway is done, and dummy data is sent. But if I try to read from Arduino i2c I get nothing being sent. My Arduino sketch is here https://github.com/cipiasentini/lorai2c/blob/master/Arduino%20Sketch/nuevo_dht_simplificado_lora_i2c/nuevo_dht_simplificado_lora_i2c.ino