sandeepmistry / node-flower-power

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

Problem after update flower power to version v2.0.3 #18

Closed tj2000bch closed 3 years ago

tj2000bch commented 7 years ago

Hi Sandeepmistry After I updatet the "flower power" to the version v.2.0.3 the script does not get all information. Did you also try the script with a new firmware?

Regards, Tobi

connectAndSetup readSystemId system id = a0:14:3d:00:00:84:xx:xx readSerialNumber serial number = PI040298ADxxxxxxx����� readFirmwareRevision firmware revision = 2016-09-14_hawaii-2.0.3_hardware-config-MP readHardwareRevision hardware revision = 2013-07-26_hawaiiProduction-1.2_protoDV-bootloader readManufacturerName manufacturer name = Parrot readBatteryLevel battery level = 39 readFriendlyName friendly name = Flower power 86xx� writeFriendlyName disconnected!

sandeepmistry commented 7 years ago

Hi @tj2000bch,

Did you also try the script with a new firmware?

I have not tried with the latest firmware.

Are you using Linux or Mac?

tj2000bch commented 7 years ago

Hi @Sandeepmistry

I’m using Linux. Bat now I have deleted the following part of the script and it works again.

/* function(callback) { console.log('readFriendlyName'); flowerPower.readFriendlyName(function(error, friendlyName) { console.log('\tfriendly name = ' + friendlyName);

    console.log('writeFriendlyName');
    flowerPower.writeFriendlyName(friendlyName, callback);
  });
},
*/

/* function(callback) { console.log('readCalibratedEa'); flowerPower.readCalibratedEa(function(error, ea) { console.log('calibrated EA = ' + ea.toFixed(2));

          callback();
        });
      },
      function(callback) {
        console.log('readCalibratedEcb');
        flowerPower.readCalibratedEcb(function(error, ecb) {
          console.log('calibrated ECB = ' + ecb.toFixed(2) + ' dS/m');

          callback();
        });
      },
      function(callback) {
        console.log('readCalibratedEcPorous');
        flowerPower.readCalibratedEcPorous(function(error, ecPorous) {
          console.log('calibrated EC porous = ' + ecPorous.toFixed(2) + ' dS/m');

          callback();
        });
      },
      */
sandeepmistry commented 7 years ago

Ok, seems like a reasonable workaround.

eedomusbox commented 7 years ago

Thank you for the correction

capitainabloc commented 6 years ago

Hi all,

I try to make it working on Rpi3 but I only get

connectAndSetup
disconnected!

with no info. I also tryed to remove the above parts of the script, with no success. Anyone would have an idea of how to make it good again?

Thx!