LoRa frame decoding for beginners

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: LoRa frame decoding for beginners

Post by libelium-dev » Thu Sep 05, 2019 9:25 am

Hi,

These are the values of the sensors
BAT : 82
COND : 0.63212698698044
DO : 108.29177856445
ORP_E : 0.45462536811829
PH : 11.03572845459
WT : 13.897644042969

The values depend on where the sensors are installed and the calibration values set.

Regards

nguillou
Posts: 41
Joined: Wed Jun 05, 2019 9:58 am
Company: ANIAN

Re: LoRa frame decoding for beginners

Post by nguillou » Thu Sep 05, 2019 11:16 am

Thank you,

Are you detailing as per byte order? According to my device configuration and how my sensors are connected :
port A : PH
port B : DO
port C : EC
port D :Not used
port E: No ORP
port F : temperature (no turbidity)

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: LoRa frame decoding for beginners

Post by libelium-dev » Fri Sep 06, 2019 9:24 am

Hi,

You can find how the tiny frames are generated in the following link
http://www.libelium.com/downloads/docum ... df#page=11

The frame you shared includes the follwoing information
21
1d
34 - 52 - battery
82 - 58923041 - ph
84 - 6495d842 - do
85 - 13d3213f - cond
8b - a8c4e83e - orp
86 - c05c5e41 - temp

If you don't have ORP sensor please, check that it wasn't included when generating the code with the pcs

Regards

nguillou
Posts: 41
Joined: Wed Jun 05, 2019 9:58 am
Company: ANIAN

Re: LoRa frame decoding for beginners

Post by nguillou » Sun Sep 22, 2019 9:46 am

Hi,

Regarding DO value, the value coming from P&S Do sensor indicate around 110 but when I check in the spec of DO sensor in smart_water_sensor_board,
I find following :
Sensor type: Galvanic cell
Range: 0~20 mg/L
Accuracy: ±2%
Maximum operation temperature: 50 ºC
Saturation output: 33 mV ±9 mV
Pressure: 0~100 psig (7.5 Bar)
Calibration: Single point in air
Response Time: After equilibration, 2 minutes for 2 mV

The range should be between 0 and 20 mg/L or the sensor is reporting in another unit and need additional conversion ?

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: LoRa frame decoding for beginners

Post by libelium-dev » Mon Sep 23, 2019 8:45 am

Hi,

The DO sensor returns the value in percentage.

Regards

nguillou
Posts: 41
Joined: Wed Jun 05, 2019 9:58 am
Company: ANIAN

Re: LoRa frame decoding for beginners

Post by nguillou » Mon Sep 23, 2019 10:37 am

Thanks,

As previous message and decoding from your side, the percentage is then 110 %?

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: LoRa frame decoding for beginners

Post by libelium-dev » Tue Sep 24, 2019 9:21 am

Hi,

The dissolved oxygen value is a float value and it's 108.29%

Regards

nguillou
Posts: 41
Joined: Wed Jun 05, 2019 9:58 am
Company: ANIAN

Re: LoRa frame decoding for beginners

Post by nguillou » Wed Sep 25, 2019 5:41 am

Hello,

I did following :
- Calibration of 3 sensors (PH, DO, EC)
- Reprogramming of device using PCS and removing ORP as I have no sensor
- Test with sea water
- I have following results :
"payloadhex": "0518346482aa9101418488eef44185ed3ee9c786d084ca41",
"battery": 100,
"ph": 8.1,
"do2": 30.62,
"ec": -119421.852,
"temp": 25.3

All looks OK except EC !

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: LoRa frame decoding for beginners

Post by libelium-dev » Wed Sep 25, 2019 11:26 am

Hi,

What calibration points and calibration values did you set?

What is the serial ID of the node?

Regards

nguillou
Posts: 41
Joined: Wed Jun 05, 2019 9:58 am
Company: ANIAN

Re: LoRa frame decoding for beginners

Post by nguillou » Wed Sep 25, 2019 2:12 pm

Hi,

Image of the calibration results :
https://ibb.co/jkPLcmK
https://ibb.co/jzXVRcT

extract of the script :
// Value 1 used to calibrate the sensor
#define point1_cond 80000
// Value 2 used to calibrate the sensor
#define point2_cond 12880

// Point 1 of the calibration
#define point1_cal 53.00
// Point 2 of the calibration
#define point2_cal 123.00

Serial ID : 686C7C32C8913EB7

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest