NRF52840 Proprietary 2 Mbps.

Hi friend,

I used SDK16.0 and softdevice is S140.  I want to use nRF52840 proprietary 2Mbps mode. Do you have example code to provide me?

Thank you in advance.

  • Hi

    I'm afraid the SoftDevice isn't used with proprietary radio applications The SoftDevices are BLE central/peripheral protocol stacks. You can use the rather basic radio transmitter example here to use the radio in proprietary mode. You can configure the radio settings in the radio_configure() function by setting the NRF_RADIO->MODE = RADIO_MODE_MODE_Nrf_2Mbit.

    Best regards,

    Simon

  • Hi Simon,

    Thank you for your reply. I don't have the RRF52840 evaluation board. But I have its target board. If I want to use my 2 target boards to emulate a transmitter (examples\peripheral\radio\transmitter) and a receiver (examples\peripheral\radio\receiver).

    1: I also need to port (examples\peripheral\usbd_cdc_acm) project to the transmitter and receiver project, correct?

    2: How to connect transmitter and receiver board?

    3: Does the transmitter pass the uart data to receiver automatically?

    4: How do I insert data into the transmitter to send them to receiver?

    Thank you,

    Ted Wu 

  • Hi

    For development, I would strongly recommend getting a DK, as that will make development, testing various revisions of code, etc. In order to flash target boards you will need a J-Link device anyways, so if you don't already, the nRF52 DKs come with an interface MCU that can be used to flash external boards as well.

    1. That depends on what you want to use the transmitter and receiver as. If you want USB functionalities you should also implement the USBD peripheral indeed.

    2. Since these example projects are just transmitters and receivers, there is no connection implemented. It is explained in the examples how to set them up and receive/transmit data.

    3. Yes, when an event is ready, the packet is transmitted from a transmitter, and received on the receiver. Once received, it prints the received packet on UART.

    4. The packet is set in the transmitter example as "packet" and is prepared by pressing various buttons on the DK/board. You're free to modify this as you wish to set the "packet" to whatever you'd like.

    Best regards,

    Simon

  • Hi Simon,

    I got an evaluation board of PCA10056. I flashed the project of the transmitter to the evaluation board and got the following information. I don't know what is the contents of the package. How to print the contents of package? I use the Teraterm to send out the UART message. Where can I get the data and print it out (UART data)? I want to know what data it sends. If I want to insert a package (like $RB9#), how to do it?

    Best regards,

    Ted Wu

    RTT Message:

    00> <info> app: Press Any Button
    00>
    00> <info> app: The packet was sent
    00>
    00> <info> app: The contents of the package was 2
    00>
    00> <info> app: The packet was sent
    00>
    00> <info> app: The contents of the package was 1
    00>
    00> <info> app: The packet was sent
    00>
    00> <info> app: The contents of the package was 4
    00>
    00> <info> app: The packet was sent
    00>
    00> <info> app: The contents of the package was 8

  • Hi again

    The contents of the package is printed in the NRF_LOG_INFO("The contents of the package was %u", (unsigned int)packet); line. As this is just a transmitter example, the packet is just a number based on what button(s) you have pressed. You will need to change this to contain whatever you'd like it to to fit your use case.

    Best regards,

    Simon

Related