BLE Raw advertising some company id's are showing as Unknown company

zazas321
Posts: 231
Joined: Mon Feb 01, 2021 9:41 am

BLE Raw advertising some company id's are showing as Unknown company

Postby zazas321 » Thu Aug 04, 2022 8:57 am

Hello. I use BLE raw advertisment and I notice that some company ID's that I try from :
https://www.bluetooth.com/specification ... entifiers/

Are showing as Unknown company ID.

I use the following raw advertising structure:

Code: Select all

    raw_adv_data2[0] = 0x02;
    raw_adv_data2[1] = 0x01;
    raw_adv_data2[2] = 0x06;

    raw_adv_data2[3] = 0x03; // length
    raw_adv_data2[4] = 0xFF; // flag company ID
// must be set in reverse. If I want to set 0x0BB0 I must write first 0xB0 and then 0x0B
    raw_adv_data2[5] = 0xB0; 
    raw_adv_data2[6] = 0x0B;


    raw_adv_data2[7] = 0x05; // length
    raw_adv_data2[8] = 0x09; //local name
    raw_adv_data2[9] = 0x33; 
    raw_adv_data2[10] = 0x33;
    raw_adv_data2[11] = 0x33; 
    raw_adv_data2[12] = 0x33; 
For example, the above sets the company ID to Ecolab Inc (0x0BB0) . When I check at raw data on the LightBlue app, I see the following company ID:
https://imgur.com/a/jwR1L1z


I then try to set to company ID to 0x02 0xff which is (Silicon Laboratories)

Code: Select all

    raw_adv_data2[0] = 0x02;
    raw_adv_data2[1] = 0x01;
    raw_adv_data2[2] = 0x06;

    raw_adv_data2[3] = 0x03; // length
    raw_adv_data2[4] = 0xFF; // flag company ID
// must be set in reverse. If I want to set 0x0BB0 I must write first 0xB0 and then 0x0B
    raw_adv_data2[5] = 0xff; 
    raw_adv_data2[6] = 0x02;


    raw_adv_data2[7] = 0x05; // length
    raw_adv_data2[8] = 0x09; //local name
    raw_adv_data2[9] = 0x33; 
    raw_adv_data2[10] = 0x33;
    raw_adv_data2[11] = 0x33; 
    raw_adv_data2[12] = 0x33; 
I can see the company ID displayed as Silicon laboratories:

https://imgur.com/a/zveNvVT


Could someone help me understand what is the issue here?

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: BLE Raw advertising some company id's are showing as Unknown company

Postby chegewara » Thu Aug 04, 2022 11:27 pm

Im guessing you are asking about company IDs displayed in nrf connect.
Here is better place to ask the question:
https://github.com/nrfconnect/sdk-nrf

but the answer is simple; the database in app is not updated.

Who is online

Users browsing this forum: Bing [Bot] and 106 guests