Molinem, yes, it’d be very useful to have a few raw samples from your device and their corresponding data displayed by the App.
With the samples vampcp posted in this thread on Oct 18, 2021, I think the salinity calculation is straightforward:
23ab093207ab0a7800240e
"salinity":4.9,"conductivity":8742,"temperature":24.8,"ph":7.93,"orp":685
23a6093007b70a78001e0e
"salinity":4.9,"conductivity":8742,"temperature":24.7,"ph":7.94,"orp":688,
23ab093407980a7b00240e
"salinity":4.8,"conductivity":8528,"temperature":24.8,"ph":7.92,"orp":680
…you just divide the raw value by 25 and you get the value in g/l with 0.04 resolution, displayed by the App with just 1 decimal place.
23 ab 09 32 07 ab 0a 78 00 24 0e
^^-^^---------- SAL 0x0078 = 120 / 25 = 4.80 <-- MOSTLY OK
^^-^^---- COND 0x0e24 = 3620 / 8742 = K 0.4140 ?
23 a6 09 30 07 b7 0a 78 00 1e 0e
^^-^^---------- SAL 0x0078 = 120 / 25 = 4.80 <-- MOSTLY OK
^^-^^---- COND 0x0e1e = 3614 / 8742 = K 0.4134
23 ab 09 34 07 98 0a 7b 00 24 0e
^^-^^---------- SAL 0x007b = 123 / 25 = 4.92 <-- MOSTLY OK
^^-^^---- COND 0x0e24 = 3620 / 8528 = K 0.4244
For the conductivity, assuming a linear relationship, we can calculate a constant of approx K=0.4134, yielding a value in uS/cm with 2.4 resolution. The app seems to display it discarding the decimal part.
We need some more samples to try to calculate an accurate value for this constant. I wonder if some of the BLE characteristics of the device may provide the values for these constants (calibration data), but that would be another decoding nightmare.
I’m a little confused. According to some screenshots of the App found on Google, the Android one displays the conductivity in uS, and the iOS one displays the salinity in g/l, but none of them show both magnitudes at the same time:
Do recent versions of the App display both Salinity and Conductivity for the BlueConnect Plus?