Minidron Battery Level Checking command for BLE


#1

Product: [Rolling Spider]

I am making windows10 BLE interface using VisualStudio2015.
Does anyone know how to check battery check command?

I am trying to get the battery level by sending the command Common-AllState, "2, 1, 0, 4, 0, 0 " , to the characteristics “9a66fa0b-0800-9191-11e4-012d1540cb8e”, and got some info from “9a66fb0a-0800-9191-11e4-012d1540cb8e” including battery status from “9a66fb0f-0800-9191-11e4-012d1540cb8e”.

The battery status comming from minidrone is fine as follows:
02-01-00-05-01-00-64 <== 0x64 = 100% charged.

However, minidron sends other status together such as Piloting status and internal disk status also.
Even though it gives battery status automatically when the battery level has changed, I need to check battery level any time, especially before take off.

Is there other command checking battrey status any time we want?

It would be appreciated even though short answer.
Thanks!


#2

Hi,

In the official library libARController, those pieces of data are saved in a cache. So when you need to know the current battery, you just get the current cached value.

Also, please note that you should send the AllSettings, AllState and Date and Time commands when you want to connect to the Minidrone. This way, you’ll receive the initial battery level (and other initial values).

Regards,
Djavan


#3

Thanks Djavan!!

I have more questions on Initialization sequence as you mentioned.

please note that you should send the AllSettings, AllState and Date and Time commands when you want to connect to the Minidrone.

I saw some example that set Date and Time command with the argument data a bit different, ‘:’ were not inserted, from ISO 8601 as following,
YYYY-MM-DD (eg 2016-03-16) and Thh:mm:ss.sTZD (eg T19203045+0100).

Should I correct the Time parameter with “T19:20:30.45+01:00”?


#4

Hi keonyi,
I am wonder how to find the command. And what each characteristic stands for?
I check the Github repos but can’t find the answer. Could you tell me how to acquire command for BLE?
I am trying to develop an Android app(Product MiniDrone) without SDK.

Thank you so much!


#5

You can find out what command/status are from two files, MiniDrone_commands.xml and common_commands.xml, under the folder https://github.com/Parrot-Developers/libARCommands/blob/master/Xml.
The characteristics are explained in the Jessica’s blog, http://robotika.cz/robots/jessica/en.

Unfortunately, I am experiencing some trouble having battery status and sending command.
RS responds well at the very beginning. However, it would not respond to the command but it responds the command retransmitted.

Good luck!


#6

Thank you so much!!!:grinning:
I’ll try this.


#7

Unfortunately https://github.com/Parrot-Developers/libARCommands/blob/master/Xml no longer exists :frowning:


#8

Yes, it moved to