• AVR Freaks

Hot!RN4871 Secure Connection

Author
ASICAlex
Starting Member
  • Total Posts : 49
  • Reward points : 0
  • Joined: 2018/02/27 15:40:02
  • Location: 0
  • Status: offline
2020/06/10 22:18:17 (permalink)
0

RN4871 Secure Connection

Are there any examples out there about how to secure the BLE connection between the client and server?  Right now I am using a RN4871 and it is talking to an android mobile app.  The transparent UART is working fine and some private services are working fine as well.  I am not a BLE expert, so I am not sure how to make sure my connection is secure.  I have read up on the different pairing modes and procedures.  On my device the default pairing procedure is "NoInputNoOutput".  It seems if I want the BLE connection to be secure that I need to have PINs that need to be entered? The device with the RN4871 doesn't have a display, so I am not sure how this would work.  It seems that the BLE connection is using Just Works? Does this provide any security at all?  I guess the worry is someone with a BLE sniffer able to see the data. 
#1

4 Replies Related Threads

    RISC
    Super Member
    • Total Posts : 5776
    • Reward points : 0
    • Status: offline
    Re: RN4871 Secure Connection 2020/06/10 23:44:37 (permalink)
    0
    Hi,
    There are a couple of boards which implement secure connections & authentication using RN4871 :
    https://www.microchip.com/design-centers/internet-of-things/iot-dev-kits/avr-ble-and-pic-ble-development-boards.
    Easisest solution is to add an ATECC608 nearby as done in these kits.
    Source code and schematics are available on the website
    Regards
    #2
    ASICAlex
    Starting Member
    • Total Posts : 49
    • Reward points : 0
    • Joined: 2018/02/27 15:40:02
    • Location: 0
    • Status: offline
    Re: RN4871 Secure Connection 2020/06/11 15:53:20 (permalink)
    0
    Actually I do have the ability to display and enter PIN via the other uart.  So hopefully I can do this without the need for crypto chip?
    #3
    RISC
    Super Member
    • Total Posts : 5776
    • Reward points : 0
    • Status: offline
    Re: RN4871 Secure Connection 2020/06/11 16:00:13 (permalink)
    0
    Duplicate :
     
    Please dont post multiple threads on the same device....
    Put all your questions in the same one... :
     
    https://www.microchip.com/forums/FindPost/1143355
    #4
    ASICAlex
    Starting Member
    • Total Posts : 49
    • Reward points : 0
    • Joined: 2018/02/27 15:40:02
    • Location: 0
    • Status: offline
    Re: RN4871 Secure Connection 2020/06/11 21:10:38 (permalink)
    4 (1)
    That thread isn't really related to what I posted:they had general communication issues.  The other thread on this topic had no replies except for your links.  I think I got this working though using PINs.  My mobile application asks for the PIN, I type it in, and the devices connect and bond. I now see the %secured% and %bonded% status messages.  Microchip should have more app notes on this topic. 
    #5
    Jump to:
    © 2020 APG vNext Commercial Version 4.5