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

128-bit UUID byte swap problem

I'm implementing a custom service with one characteristic and 128-bit UUID.

I am able to set the custom base UUID using sd_ble_uuid_vs_add() but the resulting bytes look swapped in nRF MCP Android application. This is on Softdevice 7.0.0 and SDK 6.1.0.

#define BASE_UUID {0xAB, 0xCD, .., 0x12, 0x34}

the resulting UUID I see is first and last 2 octets swapped, also within themselves like this;

{0x34, 0x12, .., 0xCD, 0xAB}

All the octets in between these 4 are fine.

Any idea what could cause this behavior?

EDIT Attaching screenshot from Android MCP: image description

Parents
  • @Kerem: What you described is pretty strange. Could you provide a screenshot of what you experienced ? Where did you read the UUID that have swapped bytes ?

    Have you tried our example ble_app_uart in \Board\pca10001\s110\experimental folder ? I that example we also declare 128bit UUID service. I don't see the swapping issue when testing with this example and the Master Control panel.

Reply
  • @Kerem: What you described is pretty strange. Could you provide a screenshot of what you experienced ? Where did you read the UUID that have swapped bytes ?

    Have you tried our example ble_app_uart in \Board\pca10001\s110\experimental folder ? I that example we also declare 128bit UUID service. I don't see the swapping issue when testing with this example and the Master Control panel.

Children
No Data
Related