- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi, i am a beginner to Intel Edison and i have some questions, i am using python scripts on Edison (pygattlib) and i need to communicate with Bluetooth module(Beacon HM-11) and i need help concerning some points:
-self.requester.write_by_handle(0x10, "AT")
in this line of code it returns an error: RuntimeError: Characteristic value/descriptor operation failed: No attribute found within the given range
and when i change the handle .. it sometimes give "Device is not responding" and sometimes give "Attribute cant be written" ..
So i need someone to elaborate the types of handles
All i want to do is that i want to send "AT" command to the beacon and the beacon replies by "OK" so i need to read the "OK" message
Reading code: data = self.requester.read_by_handle(0x1)[0]
also i don't understand the type of handle used and what to use to receive the "OK" message.
Thanks for your time .
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
I think you mixed several things:
->AT Commands need to be sent over the UART interface to configure the HM-11 module (http://www.blueluminance.com/HM-10-as-iBeacon.pdf http://www.blueluminance.com/HM-10-as-iBeacon.pdf)
->The HM-11 module is used for "UART over BLE" (http://www.instructables.com/id/Control-RGB-lights-from-Android-with-Arduino-Bluet/step4/Install-the... Control RGB lights from Android with Arduino & Bluetooth LE (BLE) - 4)
what means that you write data to the bluetooth characteristic and that data is going out of the TX port of the HM-11 module
the data you write to the hardware RX can be sent back over BLE
Datasheet can be found here: https://www.seeedstudio.com/wiki/images/c/cd/Bluetooth4_en.pdf https://www.seeedstudio.com/wiki/images/c/cd/Bluetooth4_en.pdf
->Please do not use the term beacon, a beacon can just advertise data and not receive any (the HM-11 is a BLE device that can be configured as an iBeacon)
Flo1991

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page