Hi,
I am trying to develop an application for Thingy:91, which would allow me getting data from BLE and sending it to the cloud with LTE. I am working on NCS 1.3.0.
Of course the 'default' way to do it would be just to use lte_ble_gateway sample, but as you know it is not ported to the NCS 1.3.0. This issue has been noted in this topic, where 8 months ago there was released a patch by Sigurd to the NCS 1.1.0, but there was no updates for newer NCS since that time.
I tried to manually patch all necessary files, according to .diff files included by Sigurd, but I run into compilation errors I couldn't resolve. The problem was that in the file board.c that has been added in this patch in there are two defines DT_GPIO_P0_DEV_NAME and DT_GPIO_P1_DEV_NAME, which are not declared and apparently not used in the 1.3.0 or maybe used with other names:
p0 = device_get_binding(DT_GPIO_P0_DEV_NAME); + if (!p0) { + LOG_ERR("GPIO device " DT_GPIO_P0_DEV_NAME "not found!"); + return -EIO; + } + + p1 = device_get_binding(DT_GPIO_P1_DEV_NAME); + if (!p1) { + LOG_ERR("GPIO device " DT_GPIO_P1_DEV_NAME " not found!"); + return -EIO; + }
I am attaching the patch package posted by Sigurd in that topic:
I am going to use another cloud for my usage, so the lte_ble_gateway sample is not the one I need to use, but I believe it is the closest to what I want and it's a good starting point for developing application sending data gathered from BLE.
My main question would be:
- how can I actually access data gathered on nRF52 chip on Thingy:91 to send it with LTE? Is there any solution that works on NCS 1.3.0?
If the only way is porting the HCI_UART and developing application on lte_ble_gateway sample,
- are you planning to release any official patches so that HCI_UART works on Thingy:91?
if no,
- would you have any tips as to how manually port HCI_UART sample to NCS 1.3.0?
I will be grateful for any help.
Maciek