After clicking on Raw Data in Nrf connect App I am getting this 0x0201041AFF590000150112233445566778899AABBCCDDEEFF0FFFFFFFFC3. what are 0201041AFF these bytes ? can I remove it?
After clicking on Raw Data in Nrf connect App I am getting this 0x0201041AFF590000150112233445566778899AABBCCDDEEFF0FFFFFFFFC3. what are 0201041AFF these bytes ? can I remove it?
The advertising packet has nothing in common with characteristics. A characteristic may have any value you want. When it comes to advertising packet, you need to use AD and SRD (described above) data types, which have syntax described above.
When you advertise from a phone, you cannot remove or change those 5 bytes. You may use Scan Response, which can contain additional 31 bytes (of those at least 2 will be used for Length and Type of another, possible again Manufacturer Data, data type.
I haven't understood what you want to say and I am advertising it "from" the phone., I am advertising it "to" the phone
First, you wrote:
> I am advertising the data on android phone and my device is Nrf52.
Which I understand, that the phone has Peripheral Role, and your nRF52 is a Central (scans).
Now, you write:
> I am advertising it "from" the phone., I am advertising it "to" the phone
Which is missing "not", but I don't know where.
You may also check out the documentation by silabs in this case, in short it is not possible to replace the data no:
https://www.silabs.com/community/wireless/bluetooth/knowledge-base.entry.html/2017/02/10/bluetooth_advertisin-hGsf
You may consider using scan response packet if you need more data to be advertised.
sorry i wanted to say that I am not advertising it "from" the phone,I am advertising it "to" or "on" the phone.