sandeepmistry / node-flower-power

node.js lib for the Parrot Flower Power
MIT License
45 stars 32 forks source link

Bad Soil Moisture Value #23

Closed cagodoy closed 7 years ago

cagodoy commented 7 years ago

At the moment of measuring the soil moisture returns the value 0, either for the normal mode or for the calibrated mode. The rest of the values ​​work well, such as temperature and light intensity, among others.

ReadSunlight
Sunlight = 0.12969122901677757 mol / m² / d
ReadSoilTemperature
Soil temperature = 18.191411727240006 ° C
ReadAirTemperature
Air temperature = 21.50425284000001 ° C
--> ReadSoilMoisture
--> Soil moisture = 0%
--> ReadCalibratedSoilMoisture
--> Calibrated soil moisture = 0%
ReadCalibratedAirTemperature
Calibrated air temperature = 22.44425392150879 ° C

However in live mode, the values ​​arrive correctly.

Live mode
Sunlight = 0.12969122901677757 mol / m² / d
Soil temperature = 29.115586223160005 ° C
Air temperature = 24.353039365119994 ° C
--> Soil moisture = 28.49311637263926%
Sunlight = 0.12969122901677757 mol / m² / d
Soil temperature = 29.15973568 ° C

In addition, the values ​​corresponding to EC are invalid. (#20)

ReadCalibratedEa
Calibrated EA = undefined
ReadCalibratedEcb
Calibrated ECB = undefined dS / m
ReadCalibratedEcPorous
Calibrated EC porous = undefined dS / m

Attached more information:

ReadFirmwareRevision
Firmware revision = 2016-09-14_hawaii-2.0.3_hardware-config-MP
ReadHardwareRevision
Hardware revision = 2013-07-26_hawaiiProduction-1.2_protoDV-bootloader

I will be attentive to any comments

cagodoy commented 7 years ago

UPDATE I try using other parrot device and read soil moisture method has worked correctly but when i try readed EC values, program has failed

sandeepmistry commented 7 years ago

Close as resolved for the original topic of soil moistiure.

The EC values depend on the firmware version, and the newer 2016 firmware version most likely changed UUID's or something...

cagodoy commented 7 years ago

@sandeepmistry do you close the issue? I still can not read the EC correctly

How can we fix the problem with EC? How can you change or find the respective EC UUID?

igorissen commented 3 years ago

@cagodoy it is maybe too late but I just saw that there is some missing characteristics in the live service using firmware v2.0.3

Parrot BLE spec documentation

Screenshot 2020-12-17 at 09 38 04

My flower power available characteristics (firmware v2.0.3)

Service: 39e1fa00-84a8-11e2-afba-0002a5d5c51b
[
  '39e1fa01-84a8-11e2-afba-0002a5d5c51b',
  '39e1fa02-84a8-11e2-afba-0002a5d5c51b',
  '39e1fa03-84a8-11e2-afba-0002a5d5c51b',
  '39e1fa04-84a8-11e2-afba-0002a5d5c51b',
  '39e1fa05-84a8-11e2-afba-0002a5d5c51b',
  '39e1fa06-84a8-11e2-afba-0002a5d5c51b',
  '39e1fa07-84a8-11e2-afba-0002a5d5c51b',
  '39e1fa09-84a8-11e2-afba-0002a5d5c51b',
  '39e1fa0a-84a8-11e2-afba-0002a5d5c51b',
  '39e1fa0b-84a8-11e2-afba-0002a5d5c51b'
]

So it is normal that some Calibrated EC values are undefined. You need to use regular EC values