This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Use nrf51 dk to connect to a bluetooth device

Hi,

I just got my nrf51 dk and my task is to connect it with a bluetooth device, say a bluetooth treadmill, and retrieve data from it. The bluetooth treadmill was designed to be connected from a mobile phone that has a bluetooth module. Assuming that I know the MAC address of bluetooth module of the treadmill and use it to connect to the treadmill, I wonder if there are any relevant examples in library that you would recommend me to read?

Thanks.

Parents
  • Hi. What @michaeld said. You can use your nRF51 DK (or a smartphone) together with Master Control Panel (or sniffer software like Wireshark) and try to connect with the treadmill. If you can connect and read the services then you should be alright. But as @michaeld said the treadmill manufacturer might have used some security or proprietary protocol that will ruin your project. And the nRF51 is Bluetooth Low Energy (aka Bluetooth Smart, aka Bluetooth 4.x) only. You will not be able to connect to devices using older Bluetooth protocols.

  • I don't have experience with BT Classic and I'm not sure what you mean. You want to hook the HC06 to the nRF51 DK via wired UART and then send data over the air using a virtual UART? This should be no problem. In fact there is an example in the SDK, ble_app_uart demonstrating this. The example establishes a virtual UART and sends data to, e.g., an iPhone or Android app and at the same time connects to the J-Link Segger chip on the nRF51 DK via (wired) UART and sends data to an emulated COM port via the USB cable. In your case you could just chose to send data back and forth to the HC06 instead of the Segger chip.

Reply
  • I don't have experience with BT Classic and I'm not sure what you mean. You want to hook the HC06 to the nRF51 DK via wired UART and then send data over the air using a virtual UART? This should be no problem. In fact there is an example in the SDK, ble_app_uart demonstrating this. The example establishes a virtual UART and sends data to, e.g., an iPhone or Android app and at the same time connects to the J-Link Segger chip on the nRF51 DK via (wired) UART and sends data to an emulated COM port via the USB cable. In your case you could just chose to send data back and forth to the HC06 instead of the Segger chip.

Children
No Data
Related