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

nRF51822 UART modes

Dear Nordic,

is it possible to build a simple data bridge at speed of 115200 and up based on nRF51822 with CTS/RTS support and a fixed pin code for nRF51822 pairing?

  • Hi Aleksey,

    For the second question, see if you can find the answer in this post: devzone.nordicsemi.com/.../pincode

    for the first question: the nRF51822 support UART speed with CTS/RTS up to 1Mbit, but it depends on the device connected to it. If you are using the Evaluation kit, with the segger, then you can set this one up to 1MBit, and it should work okay. If you are using the development kit, then it is limited to 115200 as most operating system is limited to that. If it is a custom board, then it depends on the UART driver you are using.

    -- Pål

  • Hi Pål!

    Thank you!

    The first question is ok, but involves configuring speed - is it done by modifying a firmware or via an (AT-like) interface?

    The second question is discussed in that topic, but what was meant by 'complete control' of the connecting end (a PC and a smartphone are to be used in my case)? Again, how exactly the passcode is sent from nRF51822 to a display? If on pairing th nRF51822 knows the code and sends it to display then gets it from keyboard, it can be short-circuited.

    Update - I now see I can do pairing with a button, which is ok. But please answer if I can use the pin code that nRF51822 recieved as the nRF51822`s response.

    Please provide a datasheet or some other docs/pages on how to configure and interact with nRF51822, if possible.

  • If you want to make some kind of UART-over-BLE solution, you'd have to do some firmware development. We've made a very simple application that does something similar, that is available here, but that is by no means production quality.

    For information on how to use the nRF51822, I'd recommend you to take a look on the nRF51822 Product Specification and the nRF51 Reference Manual, both of which are available on the download tab for the chip itself. The application note nAN-36 may also be useful, along with the SDK documentation.

Related