This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Writing hex values to characteristics using nRF Connect?

I'm programming an application that uses the NUS, and I'm trying to test my code using the Android version of nRF Connect. I'm using a nRF52832 on dev board PCA10040, and my code uses SoftDevice S132. I can connect to the dev board and discover/enable services. However, when I try to write to the RX characteristic of the NUS, the following is the prompt I receive. It has no options for what format I'd like to send the data in. I've tried programming the dev board with the NUS example provided with the SDK, but the same thing happens. image description

When I use nRF Connect to connect to the dev board running a different project and try to write to a characteristic, I get the following prompt, which has a lot more options: image description

I can't figure out why I sometimes have options for how to send data and sometimes don't. Could someone provide some insight on what I should change in order to be able to write hex through nRF Connect?

Thank you!

Parents
  • Hi,

    The RX/TX characteristics are typically parsed as string, and nRF Connect considers the two characteristics as “known characteristics” and will automatically parse the data as string.

    If you want to input your data as something else, you can disable this option and input the data as you want. To disable the option, uncheck the “Parse known characteristics” box.

    image description

    You should now get this promt when trying to write to the RX characteristic:

    image description

Reply
  • Hi,

    The RX/TX characteristics are typically parsed as string, and nRF Connect considers the two characteristics as “known characteristics” and will automatically parse the data as string.

    If you want to input your data as something else, you can disable this option and input the data as you want. To disable the option, uncheck the “Parse known characteristics” box.

    image description

    You should now get this promt when trying to write to the RX characteristic:

    image description

Children
Related