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

nRF51822 as Central/Peripheral device

I'm using a nRF51822 on a PCB to connect with a mobile phone. I would like to know whether there is an existing example or library available to work as a central device and peripheral using AT commands for nRF51822. The functionality required by the Bluetooth module is pairing/unpairing a mobile phone, detecting whether there is a connection and send/receive data via UART to an STM32 microcontroller from the mobile phone app. I had a look at the SDK and the soft device S130 but I'm not sure how to use this. 

I also would like to know how I can flash the processor and which hardware and software I would require to do this in a production line?

  • Hi

    We don't have any drivers for implementing the AT command set, no.

    We have a set of serialization drivers that allow you to control the Bluetooth stack over the UART interface, but the API is similar to the standard BLE stack API, and doesn't follow the AT standard. 

    Also, the serialization drivers are only available for the nRF52832, not the nRF51822. 

     

    There are a couple of different companies making production programmers that support Nordic devices, including Elnec and System General
    Typically you would use one of these programmers to either program the chip before it is mounted on the PCB, or program it "in circuit" after it is mounted. 

    Best regards
    Torbjørn

Related