How to change/configure Major & Minor UUID

10 posts / 0 new
Last post
ngchinping
Offline
Last seen:4 years 10 months ago
Joined:2015-07-13 02:32
How to change/configure Major & Minor UUID

Hi Dialog Team,

I am in the process of developing my first Android Apps using PAN1740 Beacon Module.

Need you advise in step to step guidance on how to change/configure Major & Minor UUID.

Sorry for newbie question. Really appreciate you input on this.

MT_dialog
Offline
Last seen:3 months 4 days ago
Staff
Joined:2015-06-08 11:34
Hi ngchinping,

Hi ngchinping,

Sorry, but i dont get the question, the major and minor are fields in the advertising string, what is that you want to change ?

Thanks MT_dialog

ngchinping
Offline
Last seen:4 years 10 months ago
Joined:2015-07-13 02:32
I am using sample code from

Thanks MT dialogs

I am using sample code from DA14580_BEACON_3.40.6.zip

From my understanding the beacon configuration strings are at following location in DA14580_BEACON_3.40.6:

app_dialog_beacon_proj.c as below : line 79- 86

#if (BLE_DEVICE_CONFIG)
//configuration params maps. It is provided to app_device_config during initialization. Initilizes the API of project space code with app_dialog_beacon code
const struct app_device_config_param beacon_params[6] = {{(uint8_t *) app_beacon_config.uuid, (uint8_t) 16},
{(uint8_t *) &app_beacon_config。major, (uint8_t) 2},
{(uint8_t *) &app_beacon_config。minor, (uint8_t) 2},
{(uint8_t *) &app_beacon_config。company_id, (uint8_t) 2},
{(uint8_t *) &app_beacon_config。adv_int, (uint8_t) 2},
{(uint8_t *) &app_beacon_config。权力,(uint8_t) 1}};

Please confirm are my understanding correct as per above?

Do you reference values * (Hexadecimal) when configure beacon Major/Minor/Company id/adv_int parameter?

MT_dialog
Offline
Last seen:3 months 4 days ago
Staff
Joined:2015-06-08 11:34
Hi ngchinping,

Hi ngchinping,

您是美国灯塔取决于配置ing in what parameters it will use. The default parameters are in the app_default_beacon_config. The beacon_params is the placeholder that points to the values and indicates their length. The actual data are located in the app_beacon_config struct and are being loaded either from the SPI or from the default values.

Thanks MT_dialog

ngchinping
Offline
Last seen:4 years 10 months ago
Joined:2015-07-13 02:32
Thanks MT dialog

Thanks MT dialog

In short I have to modify the default value in the app_default_beacon_config :

Change Beacon Major ID >> modify default value 0x0100 to example 0x0200
Change Beacon Minor ID >> modify default value 0x0200 to example 0x0300
Change Beacon company ID >> modify default value 0x00D2 (Dialog Beacon) to example MIMOS ( Do you have reference guide on how to convert MIMOS to hexdecimal)
Change Advertising Interval >> modify default value 0xA0 to example 500ms (Do you have reference guide on how to convert 500ms to hexdecimal)

Does Dialog have any plan to release GUI tools to change the Beacon Advertising Parameters such as above?

As you are aware Estimote beacons can configure the above using a mobile app & web base tools beside SDK.

MT_dialog
Offline
Last seen:3 months 4 days ago
Staff
Joined:2015-06-08 11:34
Hi ngchinping,

Hi ngchinping,

If the configuration of your device reads data from the default configuration, then yes by changing this you will get different values in your advertising string.

About the GUI tools for changing beacon parameters there's no such plan, but you are able to change the advertising data from a generic ble application, you can check the beacon Reference application note for more info about that. Briefly you can configure your device in connectable mode, connect on it and by using a generic app to change the adv string through a custom profile.

Thanks MT_dialog

ngchinping
Offline
Last seen:4 years 10 months ago
Joined:2015-07-13 02:32
Thanks MT-dialog,

Thanks MT-dialog,

Thanks for the advise.

By the way, I really need your guidance on the following :

Device Name >> Dialog Beacon = 0x00D2 >> How to you convert this?
I try to convert " Dialog Beacon to Hexadecimal Code" using ASC to Hex converter but end up I cannot get 0x00D2.

Do you have reference guide for the above conversion? Or I just input as ASCII the API will help to convert it?

MT_dialog
Offline
Last seen:3 months 4 days ago
Staff
Joined:2015-06-08 11:34
Hi ngchinping,

Hi ngchinping,

The number 0x00D2, is dialog's id, it isn't translated to Dialog Beacon. If you want your device to advertise "Dialog Beacon" just place the string in the device name.

Thanks MT_dialog

ngchinping
Offline
Last seen:4 years 10 months ago
Joined:2015-07-13 02:32
Thanks MT_Dialog

Thanks MT_Dialog

Base on your advise the code should look like following : << Please help to confirm whether I understand correctly >>

//beacon configuration structure default value.
const struct app_beacon_config_tag app_default_beacon_config = { {0x58, 0x5C, 0xDE, 0x93, 0x1B, 0x01, 0x42, 0xCC, 0x9A, 0x13, 0x25, 0x00, 0x9B, 0xED, 0xC6, 0x5E,}, //Beacon uuid
20, //Beacon Major
10, //Beacon Minor
Dialog Beacon, //Beacon company ID
500, //Advertisisng interval
0xC5,}; //Beacon Tx output power at 1 meter

MT_dialog
Offline
Last seen:3 months 4 days ago
Staff
Joined:2015-06-08 11:34
Hi ngchinping,

Hi ngchinping,

The Beacon id that is just a code that corresponds to Dialog. The beacon advertising string advertises in a specific format please check the beacon reference design app note. But if you want your device (not the beacon reference design but a generic application) to advertise the string "Dialog Beacon" you can place the string in the DEVICE NAME. If you want to place this string in the dialog beacon you can place it in the uuid area. Usually names and strings in general are being attached to the advertising string after the 0x09 tag that indicates the complete local name of the device. You can find the code that attaches the name in the string at the end of the app_adv_func() function.

Thanks MT_dialog