Hi,
I have a NRF52840 and a bluetooth device. Is there a way to automate the communication by writing/reading the HEX code. It is essential for product testing. Example: Command Prompt
Hi,
I have a NRF52840 and a bluetooth device. Is there a way to automate the communication by writing/reading the HEX code. It is essential for product testing. Example: Command Prompt
Hi Simon,
Thanks for your reference. However, I am looking for the method to communicate with the Bluetooth device with command prompt using Bluetooth connection. Can pynrfprog.exe do it? I always get "No Dongle Connected to the PC" when I try to send --com or --ids even with the NRF52840 connected to my laptop. Do you have any other references for it?
Below is the items I wish to achieve through command prompt:
1. Connect NRF52840 to a Bluetooth Device (UUT)
2. Send Hex Code
Teoh Wei Jian said:Below is the items I wish to achieve through command prompt:
1. Connect NRF52840 to a Bluetooth Device (UUT)
2. Send Hex Code
If you buy an nRF52840 Dongle you can run the hci_usb sample on it and connect it to a computer where you can control it from the command prompt using Bluez. It seems like this is only supported on Linux, see nRF5340 as a Bluetooth Controller for Windows
Like this:
Bluetooth device <--------------Bluetooth-------------->Dongle<--USB-->Computer
You can also use the nRF52840 dongle in combination with the pc-ble-driver:
RE: How can I connect an nRF52840 with a computer over Bluetooth 5?
https://github.com/NordicSemiconductor/pc-ble-driver-py
https://github.com/NordicSemiconductor/pc-ble-driver
Using either of these options, you should be able to connect and communicate with your Bluetooth device from a computer+dongle.
Does this seem like some good options for you? Or were you looking for direct Bluetooth communication between your Bluetooth device and the computer?
Best regards,
Simon
Hi Simon,
Yes, Bluez is only for Linux.
I had been trying with pc-ble-driver-py and able to connect to my Bluetooth Device with the nRF52840 Dongle by modifying the hear_rate_collector.py script. However, I still need to send HEX packet with python which is similar like the 1401 in the nRF Connect Desktop.
My knowledge about the pc-ble-driver is limited. Could you open a new ticket about that question? Then the ticket will get assigned to a person with more knowledge about it.
Thanks
Simon