Arduino BLE Raspberry reading data -
trying send data on ble redbear blend micro arduino board raspberry pi (raspian), bluez 5.37.
i'm using nrf8001 helloworld.ino sketch.
i can receive "hello world" if running redbear ble controller app on android.
from rpi can use gatttool , connect blend micro.
questions:
- how can find out the different handles represents?
- how can read "hello world" gatttool?
my end purpose read data dht11 humidity sensor , display on dashboard using d3js on websockets. got chain work fine serial usb "only" need bluetooth going. python code i'm trying go vanilla possible using pexpect , gatttool.
thanks in advance.
pi@raspberrypi:~ $ sudo gatttool -b ec:ea:fa:d8:f9:77 -t random -i [ec:ea:fa:d8:f9:77][le]> connect attempting connect ec:ea:fa:d8:f9:77 connection successful [ec:ea:fa:d8:f9:77][le]> primary attr handle: 0x0001, end grp handle: 0x0007 uuid: 00001800-0000-1000-8000-00805f9b34fb attr handle: 0x0008, end grp handle: 0x000b uuid: 00001801-0000-1000-8000-00805f9b34fb attr handle: 0x000c, end grp handle: 0x0011 uuid: 713d0000-503e-4c75-ba94-3148f18d941e attr handle: 0x0012, end grp handle: 0xffff uuid: 0000180a-0000-1000-8000-00805f9b34fb [ec:ea:fa:d8:f9:77][le]> char-desc handle: 0x0001, uuid: 00002800-0000-1000-8000-00805f9b34fb handle: 0x0002, uuid: 00002803-0000-1000-8000-00805f9b34fb handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb handle: 0x0004, uuid: 00002803-0000-1000-8000-00805f9b34fb handle: 0x0005, uuid: 00002a01-0000-1000-8000-00805f9b34fb handle: 0x0006, uuid: 00002803-0000-1000-8000-00805f9b34fb handle: 0x0007, uuid: 00002a04-0000-1000-8000-00805f9b34fb handle: 0x0008, uuid: 00002800-0000-1000-8000-00805f9b34fb handle: 0x0009, uuid: 00002803-0000-1000-8000-00805f9b34fb handle: 0x000a, uuid: 00002a05-0000-1000-8000-00805f9b34fb handle: 0x000b, uuid: 00002902-0000-1000-8000-00805f9b34fb handle: 0x000c, uuid: 00002800-0000-1000-8000-00805f9b34fb handle: 0x000d, uuid: 00002803-0000-1000-8000-00805f9b34fb handle: 0x000e, uuid: 713d0003-503e-4c75-ba94-3148f18d941e handle: 0x000f, uuid: 00002803-0000-1000-8000-00805f9b34fb handle: 0x0010, uuid: 713d0002-503e-4c75-ba94-3148f18d941e handle: 0x0011, uuid: 00002902-0000-1000-8000-00805f9b34fb handle: 0x0012, uuid: 00002800-0000-1000-8000-00805f9b34fb handle: 0x0013, uuid: 00002803-0000-1000-8000-00805f9b34fb handle: 0x0014, uuid: 00002a27-0000-1000-8000-00805f9b34fb
able read device name reading handle 3. char-read-hand 0x00003
and request data handle 11. char-write-req 0x0011 0100
still trying figure out handles represent.
Comments
Post a Comment