Hi,
I am trying to implement protobuf for my application. I have seen that nano-pb library is there in SDK file. I want to use it in BLE-UART communication. How to do with that and is there any example related on it
I am using nrf52832 SDK17.0.2 SES
Hi,
I am trying to implement protobuf for my application. I have seen that nano-pb library is there in SDK file. I want to use it in BLE-UART communication. How to do with that and is there any example related on it
I am using nrf52832 SDK17.0.2 SES
It looks like the protobuf is used by the bootloader (SDK17.0.2\examples\dfu\secure_bootloader\) but not anything other than that, it looks like. It is used to organize the bootloader settings and so on. I see from your case history that you have touched into DFU before, so perhaps you can dig into the bootloader example to figure out how it is used.
BR,
Edvin
Hey Edvin,
Thanks for the quick response. I would like to serialize the data via BLE_UART when I send it as a string, it take much time to transfer. I'm planning to implement the nano-pb to make it faster. Help me get it started.
Sunil vignesh said:it take much time to transfer.
So what is your bottlenect? BLE or UART? And is this before you have added the nano-pb or after?
Sunil vignesh said:it take much time to transfer.
So what is your bottlenect? BLE or UART? And is this before you have added the nano-pb or after?
Hi Edvin,
I didn't use nano-pb before. I have look the DFU as you said but in SDK folder i didn't find any related proto files for DFU dfu.proto like that. and also I found the nano-pb folder in external folder there i have seen the generator folder which have some py files and protoc compiler i thing so.
I don't know is this nano-pb is able to link in normal BLE_UART application
for sending message to phone through BLE
I some across this link for using protobuf in nrf52 but i didn't go thorough fully.
Can you come across this link before is it work?
Sunil vignesh said:Can you come across this link before is it work?
I have not tested it, so I don't know.
Please note that there is no predefined file transfer service in Bluetooth Low Energy, so you will have to implement this yourself in a custom service. I am not sure whether this .proto/nano-pb is the way to go. Why do you need to use this to send a message to a phone? Can you not just send a message without the protobuf? Have you tried the ble_app_uart example?
Best regards,
Edvin