change send data order to counts first

This commit is contained in:
cyberman54 2020-12-21 22:07:24 +01:00
parent 5edb904d7c
commit f29f295826
2 changed files with 6 additions and 6 deletions

View File

@ -490,15 +490,15 @@ Send for example `8386` as Downlink on Port 2 to get battery status and time/dat
0x14 set payload mask 0x14 set payload mask
byte 1 = sensor data payload mask (0..255, meaning of bits see below) byte 1 = sensor data payload mask (0..255, meaning of bits see below)
0x01 = GPS_DATA 0x01 = COUNT_DATA
0x02 = ALARM_DATA 0x02 = ALARM_DATA
0x04 = MEMS_DATA 0x04 = MEMS_DATA
0x08 = COUNT_DATA (default) 0x08 = GPS_DATA
0x10 = SENSOR_1_DATA (ENS-COUNTS) 0x10 = SENSOR_1_DATA (also ENS counter)
0x20 = SENSOR_2_DATA 0x20 = SENSOR_2_DATA
0x40 = SENSOR_3_DATA 0x40 = SENSOR_3_DATA
0x80 = BATT_DATA 0x80 = BATT_DATA
bytes can be combined eg COUNT_DATA ;SENSOR_1_DATA ;BATT_DATA: `0x08 | 0x10 |0x80 = 0x98` bytes can be combined eg COUNT_DATA + SENSOR_1_DATA + BATT_DATA: `0x01 | 0x10 | 0x80 = 0x91`
0x15 set BME data on/off 0x15 set BME data on/off

View File

@ -19,10 +19,10 @@
#include <bsec.h> #include <bsec.h>
// bits in payloadmask for filtering payload data // bits in payloadmask for filtering payload data
#define GPS_DATA (0x01) #define COUNT_DATA (0x01)
#define ALARM_DATA (0x02) #define ALARM_DATA (0x02)
#define MEMS_DATA (0x04) #define MEMS_DATA (0x04)
#define COUNT_DATA (0x08) #define GPS_DATA (0x08)
#define SENSOR1_DATA (0x10) #define SENSOR1_DATA (0x10)
#define SENSOR2_DATA (0x20) #define SENSOR2_DATA (0x20)
#define SENSOR3_DATA (0x40) #define SENSOR3_DATA (0x40)