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

Testing coded PHY with UART?

I have two nRF52840-pdk's and two laptops. I was thinking to send test strings using the following Basic setup:

       laptop1 - usb1 - pdk1 ....(coded PHY transmission)....pdk2 - usb2 - laptop2

Can I use directly some existing example codes for making this to happen?

I tested the ble_app_uart example in a laptop - usb - pdk....(bt4.2)....android-phone
-setup and it worked well, but I am not sure if it could also apply in my pdk-to-pdk case.

  • FormerMember
    0 FormerMember

    Both UART central and the peripheral examples, ble_app_uart_c and ble_app_uart can be used with the nRF52840-pdk.

    Note: SDK 13.0.0 supports S140 v.5.0.0-2.alpha, while the latest version is S140 v. 5.0.0-3.alpha.

    The main difference between 2.alpha and 3.alpha is that 3.alpha supports advertising/connection initiation on coded phy and 2 Mbps, while 2.alpha supports advertising/connection initiation on 1Mbps and the phy can be changed to coded phy/2Mbps after a connection has been established.

  • Ok, thanks! However, I wasn't too successfull:

    1. S140 3.alpha seems not to work together with the ble_app_uart example (from nRF5_SDK_13.0.0_04a0bfd), I get "Error: Flash Download failed - Cortex-M4".

    2. With 2.alpha I get both boards up. Terminal for the peripheral (ble_app_uart) says now "UART Start!"

    and the terminal of the central (ble_app_uart_c) "BLE UART central example started. Connected to device with Nordic UART Service."

    But, what next? Should I give some commands or are the boards now ready to transfer strings? Typing some characters in either terminal seems not to lead any reactions in the peer. Did I do/understand something wrong :-) ?

  • FormerMember
    0 FormerMember in reply to FormerMember

    1) To use S140 3.alpha with SDK 13, you will need to do the following:

    • Change the ROM / RAM settings in the project files according to the S140 3.alpha release notes.
    • Include the S140 3.alpha header files in you project.
    • Make some modifications to the project, because of API changes from 2.alpha to 3.alpha.

    2) To transfer strings from the central to the peripheral or opposite, you should type in the terminal windows, see the example documentation on the infocenter.

  • Thanks,

    1. This set of actions may be too complicated for me, so I'll probably need wait for a new SDK release. Anyway, thanks for the tips, I will try.

    2. I believe that is exactly what I did.

Related