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

NRF Dongle Protocol

Hi

I need to develop PC software to Discover, Connect, Get and Set data to the nrf device that we developed.

I am using the MCP and nrf connect but my client want to have his own app.

Where can I get the communication protocol for the dongle or the firmware source code . In other words in the MCP if you click on the discover button what command is being send to the dongle over uart to go into discover mode.

regards

Parents
  • Hi,

    MCP is based on the Master Emulator, and the DLL file for Master Emulator can be found in C:\Program Files (x86)\Nordic Semiconductor\Master Emulator folder, if you have MCP installed. This can be used to implement your own C# program, but as MCP have been replaced by nRF Connect, I would not recommend that you use this anymore.

    Instead, I would recommend you to check out the pc-ble-driver library source on Nordic's GitHub. This library "provides serial port communication (using SoftDevice API serialization) to an nRF5x IC running the connectivity firmware included". It has bindings for Python and JavaScript, making it suitable for easy application development. Unfortunately, the driver is not well documented yet, but some examples for both Python and Javascript bindings are provided.

    Best regards,

    Jørgen

  • Hi

    Ok so here is my steps (do not get this to work)

    I programed my PCA1000 with the "connectivity_1.0.1_115k2_with_s130_2.0.1.hex" that was downloaded with the "pc-ble-driver-master". This was done via the nrg go studio in the program application window

    I then run the "NetworkAvailabilityDemo" in PF(x86)/Master emulator/2.1.13.14/example code I click connect and then perform discovery when connect is done.

    I get the following

    Starting up Ready Open Could not read device address. Could not read controller version info. Could not read buffer size. Reset Setup: add service 0x180B store LOCAL_STORE Setup: add char def 0x2A3E Setup: assigned pipenumber 1 type TRANSMIT Setup: assigned pipenumber 2 type REQUEST_TRANSMIT Run Device discovery Failed to start device discovery

    What am I doing wrong.

Reply
  • Hi

    Ok so here is my steps (do not get this to work)

    I programed my PCA1000 with the "connectivity_1.0.1_115k2_with_s130_2.0.1.hex" that was downloaded with the "pc-ble-driver-master". This was done via the nrg go studio in the program application window

    I then run the "NetworkAvailabilityDemo" in PF(x86)/Master emulator/2.1.13.14/example code I click connect and then perform discovery when connect is done.

    I get the following

    Starting up Ready Open Could not read device address. Could not read controller version info. Could not read buffer size. Reset Setup: add service 0x180B store LOCAL_STORE Setup: add char def 0x2A3E Setup: assigned pipenumber 1 type TRANSMIT Setup: assigned pipenumber 2 type REQUEST_TRANSMIT Run Device discovery Failed to start device discovery

    What am I doing wrong.

Children
No Data
Related