Hello, I have a nRF52832 DK and a nRF9160 DK and I would like to establish a Bluetooth connection between them and also send data to each other. How can I do that?
Hello, I have a nRF52832 DK and a nRF9160 DK and I would like to establish a Bluetooth connection between them and also send data to each other. How can I do that?
I have tested with the nRF Connect app. Basically, the UART works on the nRF52832 DK but not on the nRF9160 DK. Can I know which code should I flash on them in order to connect them together via Bluetooth?
Siang said:Do you mean ble_app_uart_c and ble_app_uart? I have flashed them into the boards and not sure if they're working.
None of these samples are supported on nrf9160 according to documentation. You can try with the LTE sensor gateway sample, and remove the cloud stuff if you don't need it. Remember to flash the HCI uart on the nrf52840 board controller.
Hello Hakon, thank you for the reply. I have been testing the LTE sensor gateway sample that you suggested. I could use the cloud stuff so I just left it there. I have flashed hci_lpuart on the nRF52840 board controller and also flashed lte_ble_gateway on the nRF9160 main controller. Everything seems to work fine. So how exactly can I send messages/data from an nRF52832 DK to nRF9160DK?
Siang said:So how exactly can I send messages/data from an nRF52832 DK to nRF9160DK?
Are you able to get a BLE connection to an nRF52832 DK? The LTE BLE gateway sample scans for thingy:52 peripherals by default, so you would need to change or remove the scan filter so it will find your device. The sample code should demonstrate quite well how to receive BLE data on the central device. In order to advise you on how to send the data from the nRF52832 I would need to know if you are using NCS or the nRF5 SDK for that device.
No, I have removed the scan filter as you said and also tried to flash both hci_lpuart and peripheral_uart on the nRF52832 DK but it didn't work because they couldn't connect to the nRF9160 DK. I am using NCS to do all the flashing.
Previously, I have also tried to flash (NCS) central_uart and peripheral_uart on nRF52832 DK and nRF9160 DK respectively and it worked well. I could send data through the BLE connection using HTerm. Is it possible for me to use central_uart instead of the hci_lpuart on the nRF52840 on the nRF9160 DK for the BLE connection and data transferring? I will also need to send the data to the cloud as I am planning to build a cloud gateway for my sensors.