Hi,
I'm using code derived from simple_peripheral. I'm trying to write a serial number in the format YYMMDDSSS using the command line interface of the SmartRF Flash Programmer.
I modified devinfoservice.c as follows:
// Serial Number String characteristic
static uint8 devInfoSerialNumberProps = GATT_PROP_READ;
static uint8 devInfoSerialNumber[DEVINFO_STR_ATTR_LEN+1] = "YYMMDDSSS";
built the project and then flashed it. I can connect over BLE and read the YYMMDDSSS serial number. So far, so good. In the SmartRF Flash Programmer, I read out the Flash contents to a file and then searched it to find YY.
There is an unexpected BF byte 4 bytes into the string, and after the "SSS" (0x53 0x53 0x53) there is an unexpected 0x01 0x4F before the expected 0x00.
What are these unexpected bytes? Can I simply write the locations where the bytes of my serial number exist?
Thanks,
Jim