arduinobluetooth-lowenergyibeaconuarthm-10

iBeacon notification data comes unreadable?


I am using a HM-10 (v709) as a master, with a Arduino. I want to get a value from a iBeacon's notification.

I connect to the iBeacon and turn on notifications for the characteristic, but the notifications I receive look like this: or or x⸮⸮⸮⸮ or just question marks, depending on the serial rate of my monitor.

edit: There are four square characters in the first two code snippets above along with a question mark, which don't appear on stackoverflow for me.

Any ideas on what I should do? What kind of data I am receiving or what the problem may be? The data from the notification should look similar to this 0x04020311870100.

Edit: When I send a AT command to read RD characteristics I get the correct data (such as manufacturers name, version, etc) that come as strings, but the hex values are what don't work. I am experimenting with this.


Solution

  • Spent hours troubleshooting to finally realize Arduino's serial monitor is unable to display raw hex values hence the undreadable characters. To solve this I used a different terminal https://sites.google.com/site/terminalbpp/ which allows me to switch to HEX.