spectraphilic / wasp_sketches

Waspmote sketches develoded by our group
1 stars 0 forks source link

Optimize frame size #50

Open johnhulth opened 5 years ago

johnhulth commented 5 years ago

A standard frame is 87 bytes (no GPS), can this be optimized more? For example BME pressure to INT instead of FLOATetc...?

=== Binary Frame: 9 fields in 87 bytes === Frame type: 6 Serial ID: 0x7C4E18FDC337DE07 Waspmote ID: 4g_uio_test Sequence: 1 Sensor 123 (TST): 1549630500 Sensor 52 (BAT): 82 Sensor 63 (ACC): 33 Sensor 63 (ACC): -12 Sensor 63 (ACC): 986 Sensor 209 (BME int): 22.8400 Sensor 209 (BME int): 17.7617 Sensor 209 (BME int): 98690.9900 Sensor 210 (BME ext): 21.6299 Sensor 210 (BME ext): 17.7812 Sensor 210 (BME ext): 98747.5500 Sensor 211 (MLX): 20.8900 Sensor 211 (MLX): 21.1300 Sensor 212 (TMP): 21.3750 Sensor 213 (VL): 825360635 Sensor 203 (DS18B20): 353

jdavid commented 5 years ago

I've worked on the SDI-12 sensors (CTD-10, DS-2 and ATMOS-22).

I've the CTD-10 here, but I need your help to verify the DS-2 and ATMOS-22. My changes for these sensors are based in their datasheets, but I feel like the information there may be wrong.

The changes in frame size are:

jdavid commented 5 years ago

This issue is strongly related to issue #9

This has been fixed for SDI-12 sensors. I'm going to move this issue to the to verify column. Please test the new sketch and report whether everything is correct from the mote to the server.

I'm going to open a new issue to do the same for other sensors.