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

nRF52840 BLE Central

We would like to use a Dongle based on the nRF52840 as a BLE Central communication via NUS to our product. The example in the nRF Connect Desktop does just wat we need on the PV side of the link. What is the protocol for communication with the firmware loaded by nRF Connect to the dongle. Opening the module as a com port with a terminal program produces a repeated series of characters, but there is no other response. 

  • Hello,

    The BLE central NUS example forwards input received over BLE to the serial port using UART, and vice verse - input received on serial port is forwarded to the connected peripheral over BLE.

    The example in the nRF Connect Desktop does just wat we need on the PV side of the link.

    Could you elaborate what you mean by 'PV side of the link'? I am not certain I understand what you mean.

    What is the protocol for communication with the firmware loaded by nRF Connect to the dongle.

    If you are asking how to communicate with the dongle over a serial port: the default UART settings for the BLE Central Nordic UART example is: 115200 BAUDRATE, 8 data bit, 1 stop bit, no parity, HW flow control: None. If you open any serial terminal with these UART settings, you will be able to communicate with the dongle, and receive the serial input on a connected Nordic UART peripheral device( outputted to its serial port ).
    If this is not what you were asking about, please elaborate.

    Opening the module as a com port with a terminal program produces a repeated series of characters, but there is no other response. 

    This sounds strange. Could you provide a serial log for this, along with a sniffer trace? So that I may see what is being sent over BLE, and what is being written to the terminal.

    For the record, have you flashed the dongle with the BLE Central Nordic UART example, without modification? Could you also tell me how you are communicating with the dongle over BLE - are you using the nRF Toolbox application for a mobile phone, or have you flashed another Nordic device with the BLE peripheral UART/Serial Port Emulation over BLE example?

    Best regards,
    Karl

     

     

     

     

  • Karl,

    This line was a typo

    The example in the nRF Connect Desktop does just wat we need on the PV side of the link.

    The example in the nRF Connect Desktop does just wat we need on the PC side of the link.

    This is the stream received by RealTerm from the PCA10059.

    Using nRF Connect we can transfer data to and from NRF Toolbox  UART on iOS or Android.

    The pca10059 has been programmed with the code that is loaded by nRF Connect Desktop when the BLE Low Energy button is clicked (V2.3.2)

    Our peripheral device is using NUS on an nRF52810.

    We would like to perform the same functions as the nRF Connect BLE does; scan for devices, connect to one, and transfer data via NUS.

    Thanks for the response.

    Corky

  • Hello Corky,

    I understand, I just wanted to make sure I understood you correctly.

    crb said:
    This is the stream received by RealTerm from the PCA10059.

    Is the data you are receiving unexpected? It is hard for me to see if this is the intended output if you do not provide a sniffer trace as well. A sniffer trace listens for BLE packages, and provides the same kind of log for them, as the one you provided for the serial port.
    Are you unable to receive the serial data from the nRF52810 on the nRF52840 Dongle?

    crb said:
    The pca10059 has been programmed with the code that is loaded by nRF Connect Desktop when the BLE Low Energy button is clicked (V2.3.2)

    Could you please elaborate what you mean by this. Have you programmed the Dongle using the "Programmer" feature of the nRF Connect desktop application with an example from the SDK? For example the BLE central Nordic UART example?

    crb said:
    Our peripheral device is using NUS on an nRF52810.

    The BLE peripheral Nordic UART example from the SDK? If so, have you made any modifications to the example?

    crb said:
    We would like to perform the same functions as the nRF Connect BLE does; scan for devices, connect to one, and transfer data via NUS.

    I am not sure I completely understand you intention, could you confirm if I have understood you correctly: You would like to use the nRF52840 Dongle to transmit data it receives on its serial port to a nRF52810 peripheral device over a BLE connection? Possibly also having the nRF52810 write the received BLE data out on a connected serial port?

    Best regards,
    Karl

Related