Is there source code for a Central device running on a PC. (preference would be C++ (or C#))
Is there source code for a Central device running on a PC. (preference would be C++ (or C#))
Hello,
Can you tell us a bit more about what you want to do (your use case)? Then I may provide some suggestions.
Kenneth
Hi Kenneth,
Thanks for your response..
in general i would like to be able to run an own-build application on windows-10 (like the nRF Connect app im using on the mobile device).. would be nice if Nordic would provide starters (template) source codes to do this. In C++ or C#
For now im developing some code using 'bleak' in python. For now, i can Scan,. connect, and can discover Services, charateristics and discriptors... still working on the actual reading and writing's... but this all in python for now... . This helps me to go back to the controller again nRf52480, when i have this all working i probably step up to the nRf5340.
The use case is just an acquisition system, to get 16-bit samples with a rate of 200Hz over a BLE channel.
But would be nice to have code for a central (in C++ or C# ) directly on de PC. (Not via a central in a dongle/or nrf-controler via USB)
Theo
I guess you have seen this:
https://github.com/NordicSemiconductor/pc-ble-driver
This can work with for instance the DK's listed there. There is however one problem with the example project, none of them support bonding/pairing, and adding support for this is not straight forward.
You would need to look into the central security procedures if you want to support this:
https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.3.0/group___b_l_e___g_a_p___c_e_n_t_r_a_l___s_e_c___m_s_c.html
Alternatively you may look into using the built in Bluetooth api in Windows 10 (this does not use any nRF devices):
App: https://www.microsoft.com/en-us/p/bluetooth-le-explorer/9n0ztkf1qd98?activetab=pivot:overviewtab
Source: https://github.com/microsoft/BluetoothLEExplorer
Kenneth
I guess you have seen this:
https://github.com/NordicSemiconductor/pc-ble-driver
This can work with for instance the DK's listed there. There is however one problem with the example project, none of them support bonding/pairing, and adding support for this is not straight forward.
You would need to look into the central security procedures if you want to support this:
https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.3.0/group___b_l_e___g_a_p___c_e_n_t_r_a_l___s_e_c___m_s_c.html
Alternatively you may look into using the built in Bluetooth api in Windows 10 (this does not use any nRF devices):
App: https://www.microsoft.com/en-us/p/bluetooth-le-explorer/9n0ztkf1qd98?activetab=pivot:overviewtab
Source: https://github.com/microsoft/BluetoothLEExplorer
Kenneth
thanks Kennith for the pointers