Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

xmedeko/bgcheck

Repository files navigation

bgcheck

A tool to check basic functionality of BlueGiga BLED112 Dongle.

Usage

Dongle installation

  1. Insert the BlueGiga BLED112 Dongle into an USB port.
  2. Make sure the drivers are installed and the dongle has created a COM port. Check it in the Windows Device Manager. You should see Ports (COM & LPT) --> Bluegiga Bluetooth Low Energy (COM3). The COM3 is the serial port created by the dongle, you may have different port number.
  3. If you do not see the COM port in the Device Manager, try install the drivers. You should have drivers with the app you have for the Dongle. Or try Rouvy drivers.

bgcheck

  1. Select the port where is your dongle installed. Click Open port.
  2. You should see a text like:
    Port opened: COM3
    hello: ok
    get_info: version: 1.3.2.122, ll_version: 3, protocol_version: 1, hw: 3
    Then your dongle is OK. If you see some errors or do not see the get_info in the output, then your dongle has another COM port (try another one), or is broken.
  3. Try BLE scan by the buttons in the bottom right corner. You must have some BLE devices broadcasting BLE advertisements. If you do not see any advertisements in the blecheck output, then first check you have some BLE device nearby. If you are sure you have some, then your dongle may be misconfigured or broken.

Note: if you see errors like:

  • port closed! - click Open port again.
  • ble_scan_end: error 385 - you have already clicked the Start or Stop Scanning.

Thanks to

  • @jrowberg for the BGLib. This project is based on the BLEScanner example from the BGLib project.
  • Rouvy for sponsoring work on this tool.