mDot Sensornode Firmware Ready to use


#81

Check main.h there are all IDs defined.
`/**

  • @defgroup LoRa Message IDs
  • @{
    */

#define MAX44009_MESSAGE_ID “L”
#define UBLOX_GPS_MESSAGE_ITOW_ID “G1”
#define UBLOX_GPS_MESSAGE_LONGITUDE_ID “G2”
#define UBLOX_GPS_MESSAGE_LATITUDE_ID “G3”
#define UBLOX_GPS_MESSAGE_HEIGHT_ID “G4”
#define UBLOX_GPS_MESSAGE_HMSL_ID “G5”
#define UBLOX_GPS_MESSAGE_HACC_ID “G6”
#define UBLOX_GPS_MESSAGE_VACC_ID “G7”
#define BME280_TEMPERATURE_MESSAGE_ID “B1”
#define BME280_PRESSURE_MESSAGE_ID “B2”
#define BME280_HUMIDITY_MESSAGE_ID “B3”
#define MPU9250_X_ACCELERATION_MESSAGE_ID “M1”
#define MPU9250_Y_ACCELERATION_MESSAGE_ID “M2”
#define MPU9250_Z_ACCELERATION_MESSAGE_ID “M3”
#define MPU9250_X_GYROSCOPE_MESSAGE_ID “M4”
#define MPU9250_Y_GYROSCOPE_MESSAGE_ID “M5”
#define MPU9250_Z_GYROSCOPE_MESSAGE_ID “M6”
#define MPU9250_X_TESLA_MESSAGE_ID “M7”
#define MPU9250_Y_TESLA_MESSAGE_ID “M8”
#define MPU9250_Z_TESLA_MESSAGE_ID “M9”
#define SI1143_PROXIMITY_MESSAGE_ID “P1”

#define LORA_MEASURMENT_RSSI_MESSAGE_ID “Z1”
#define LORA_MEASURMENT_SNR_MESSAGE_ID “Z2”
#define LORA_MEASURMENT_SPREADING_FACTOR_MESSAGE_ID “Z3”
#define LORA_MEASURMENT_TX_POWER_MESSAGE_ID “Z4”`

also
#define BME280_TEMPERATURE_MESSAGE_ID “B1”
#define BME280_PRESSURE_MESSAGE_ID “B2”

you can change them in your project to any id if you would like to: e.g.

#define BME280_TEMPERATURE_MESSAGE_ID “whateveryoulike”


(Youssefbaiji) #82

{
“payload”: “B1:23.22,B2:96029.30,”
hey thank you very much i really apperictare what are you doing here.

i got the pressure as 96029.30 is that for example air pressure in Pa


#83

You’re welcome.

Dont know if you are aware of the api documentation I wrote https://developer.mbed.org/users/mitea1/code/mDot_LoRa_Sensornode/docs/tip/

How much programming experience do you have?
If you check the code of BME280.h you will notice in the function comment that it returns the pressure in hPa.


(Youssefbaiji) #84

i dont have much am learning, i asked because my readings are giving me 95681.64 hPa which for me it doesnt make sense right? its about 95.6 bar
}


(Youssefbaiji) #85

even in the above post by @
skramer she has the same readings maybe its a mistake in the program ?


#86

You’re right. The value actualy seems to be to big by a factor of 100. I will take a deeper look into the code this weekend if i find some time. For now I guess you just have to divide it by 100.
Edit: i guess the comment in the code is wrong and its actually Pa not hPa then.


(Youssefbaiji) #87

yes i divided by 100