SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By persiaprince
#194500
Hello, I'm working on a project which relies on ble scanning to determine the distance between two ble devices. As this is a school project we're not allowed to use an arduino and instead we have the SparkFun BLE Mate 2 hooked up to a MSP430 LaunchPad via UART. We are successfully communicating between the Mate 2 and the MSP. However, we can't figure out how to display the scan information. The scan command seems to work as it returns an "ok". The "advertising" ble device is not a SparkFun BLE Mate 2 and so we think an actual connection may not be an option. The end goal would be to routinely scan for our advertising device and use the signal strength to determine the distance. Any help would be appreciated. Thank you!

P.S. We have also discovered a possible error with the Melody Smart Command Set Manual. The SCN (state) command is labeled to work in the periphery state but not the central state. However, the command sends back an error in peripheral state, but works in central!