I have a project that has up to 40 DS18B20 sensors on a chain, the data needs to be collected and sent via a Satellite up link. Now the sensors are working perfectly and I am formatting the data as a JSON sting (i have tried both packed and unpacked json.
The Sat service charges 1 credit per 50 bytes of data so I need to squish the data down as small as possible. She sensors need to be set to output in 12bit resolution.
The JSON sting is something like this...
{"NODE1":[-12.99,12.123,99.99,133.999,999.009,99.99,12.123,123.99,133.999,99.99,99.99,12.123,123.99,133.999,999.009,99.99,12.123,123.99,133.999,99.99,99.99,12.123,123.99,133.999,999.009,99.99,12.123,123.99,133.999,99.99,99.99,12.123,123.99,133.999,55.009,99.99,12.123,123.99,26.9997]
}
At present even when packing the data its about 170bits.
because the resolution is 12bit all the sensors are likely to have some variation to the last reading. the system also goes in to a deep sleep between each reading do conserve power so holding the last reading in memory and just sending the variation may not work that well unless i write the last reading to eprom and that has its own issues and will impact the devices longevity in the field.
Has anyone got any creative ideas how I could tackle this problem?
Regards
Andrew