I have used BTool to communicate with my BLE device to much success for practice. I am now using a python script to act as my client to talk to the same BLE device. I first am using HCI Tester to slowly build the scripts I want to eventually include in my app, but just want to make sure I can do simple connection, read etc within the HCI Tester application.
I can successfully do the following:
- GAP_DeviceInit
- GAP_GetParam
- GAP_DeviceDiscoveryRequest
That is where my luck ends.
When I discover I can see the address of my device is the same as observed in BTool. Use that address to then call GAP_EstablishLinkRequest but I keep getting either error status 0x11 "bleAlreadyInRequestedMode" and I've tried entering the peerAddr for the establishLinkRequest in both little endian, big endian with no luck.