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

NuS (Nordic Uart Service) windows example?

My Win10 app - needs to connect to an NRF52 that is using the "NuS" Service - and I can't use the WinRT or dotNET.

In this post:  https://devzone.nordicsemi.com/f/nordic-q-a/49090/looking-for-a-pc-ble-dongle-that-supports-nordic-uart-service

The suggestion is to use a usb-ble dongle

My laptop has a BLE interface, I'd like to use the existing windows BLE interface to talk to the nrf52 running the NuS service.

I can't find examples for this on Windows - i can find Android examples, and IoS examples - but no win 10 examlples.

This post:  https://devzone.nordicsemi.com/f/nordic-q-a/26471/trouble-with-nrf-uart-in-windows

The reply from Joakim is to look at the Windows BLE Explorer ... which is a Windows App Store ...

These things are not command line tool friendly, and require a huge overhead that won't link with my existing codebase

What I'm looking for is a DLL or something - that can do four things:

1) Scan for existing NUS devices providing a list

2) connect to one of those - ie: open() or connect()

3) Let me read and write the tx/rx characteristics, ie:  read() and write()

4) Disconnect, ie: close() or disconnect()

It would be great if this was in C and worked directly with devices running the NuS service.

Thanks

Parents
  • I found this old thread in google, so perhaps it makes sense to write a little update for it. Essentially, you could now use the Microsoft tool "Bluetooth LE Explorer" to do all the things you describe. That tool is very basic, though and if you want something more comfortable, I am writing an applicaiton that works like the terminal in the NRF app, just on PC and with some added features, like listening and writing to multiple characteristics at the same time. It's still early in development, but already functional.

    github.com/.../NUSig

    Just run NUSig.py to start an interactive selection menu, or NUSconsole.py to go stratight to a terminal. For the latter, you need to replace the "DEVICE_ADDRESS" for the one you are trying to connect to.

Reply
  • I found this old thread in google, so perhaps it makes sense to write a little update for it. Essentially, you could now use the Microsoft tool "Bluetooth LE Explorer" to do all the things you describe. That tool is very basic, though and if you want something more comfortable, I am writing an applicaiton that works like the terminal in the NRF app, just on PC and with some added features, like listening and writing to multiple characteristics at the same time. It's still early in development, but already functional.

    github.com/.../NUSig

    Just run NUSig.py to start an interactive selection menu, or NUSconsole.py to go stratight to a terminal. For the latter, you need to replace the "DEVICE_ADDRESS" for the one you are trying to connect to.

Children
No Data
Related