Establish communication between nrf52840 and nrf9160

Hello,

we are currently developing an MQTT Bridge Application. We plan to use a nrf52840 in combination with the nrf9160 as our Bridge which is going to send its data it received via MQTT to another nrf5280 via secure BLE. So far we figured out how to give the nrf9160 the ability to use BLE over BLE HCI. The next Part is to evaluate how to send the given Bytes over BLE and back. After some research on this Devzone we found several Answers including the UART client/server examples. But we don't need UART in this. So my Question is the following:

How can one establish a connection with Security Level 4 between two nrf5280 and send/receive Data without using any UART containing Librarys. And are there any examples or a good starting point to help us with  this?

Help is appreciated, my thanks,

Philipp

Parents
  • Hello,

    I guess you have stumbled upon a lot of cases where we refer to the peripheral_uart and the central_uart samples, and you want to do this without the need to use UART? Really, you should only need to comment out the uart_init functions (and callback), and you can use the bt_nus_send() function without relying on the UART. 

    You don't need to use the peripheral/central uart samples either. I guess you just want something that you can send data between the peripheral and the central. To see how to do that, you can have a look at this blog post

    Now, as for the nRF52840 that you have connected to your nRF9160, the nRF52840 needs to be programmed with the HCI controller, and the application needs to be running on the nRF91. This way, all the times where the nRF91 needs to do something bluetooth-related, it will just send the messages over HCI to the nRF52, acting as the Host Controller.

    Best regards,

    Edvin

Reply
  • Hello,

    I guess you have stumbled upon a lot of cases where we refer to the peripheral_uart and the central_uart samples, and you want to do this without the need to use UART? Really, you should only need to comment out the uart_init functions (and callback), and you can use the bt_nus_send() function without relying on the UART. 

    You don't need to use the peripheral/central uart samples either. I guess you just want something that you can send data between the peripheral and the central. To see how to do that, you can have a look at this blog post

    Now, as for the nRF52840 that you have connected to your nRF9160, the nRF52840 needs to be programmed with the HCI controller, and the application needs to be running on the nRF91. This way, all the times where the nRF91 needs to do something bluetooth-related, it will just send the messages over HCI to the nRF52, acting as the Host Controller.

    Best regards,

    Edvin

Children
No Data
Related