undefined reference to `blecm_set_static_random_bd_addr'

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
TaSa_2191066
Level 2
Level 2
First like given

Hello,

I'm newbie to wiced-smart platform.

Now I'm trying to make my device having a static random BD_ADDRESS, and read

Re: Static random device address

and already understood the mechanisms of wiced's static random address creation process.

But, when I insert following two lines in my _create() function

  UINT8 bd_addr[6];

  blecm_set_static_random_bd_addr(bd_addr);

with inserting following one line in top of my source code

  #include "blecm_set_static_bd_addr.h"

and build, make says:

  undefined reference to `blecm_set_static_random_bd_addr'

Is this function already deprecated?

If so, what is the name of the new alternative function?

Best,

Takashi

====

An update.

Adding one line into my makefile.mk in the last line resolved build issue.

APP_PATCHES_AND_LIBS += bd_addr_control.a


But again, the device just becomes FF:FF:FF:FF:FF:FF (because I appended BT_DEVICE_ADDRESS=ffffffffffff), and the Address Type bit is still set as Public (by looking at a sniffer provided by nordic).


Any one have a suggestion?


Best,

Takashi

0 Likes
17 Replies
Anonymous
Not applicable

Hello pukaso

1.  You need to perform a Clean and Build.

Please let us know the result

Thanks

JT

0 Likes

Dear j.t, boont,

thank you for suggestion.

I'll try it several hours later and report the result.

Best,

Takashi    

0 Likes

Dear j.t,

Clean and Build doesn't make difference. So the device still has a public address.

スクリーンショット 2015-05-22 22.57.48.png

Best,

Takashi

0 Likes
Anonymous
Not applicable

Hello Takashi,

1.  blecm_set_static_random_bd_addr(bd_addr); - What was the return values of that function?

Thanks

JT

0 Likes

Hello JT,

the return of the function blecm_set_static_random_bd_addr() is 0, so it seems to be failed.

By using

blecm_startAdv(0x00,

   100,

   HCIULP_ADV_CHANNEL_MAP_MASK,

   HCIULP_RANDOM_ADDRESS,

   HCIULP_INITIATOR_FILTER_POLICY_WHITE_LIST_NOT_USED,

   HCIULP_RANDOM_ADDRESS,

   NULL);

instead of

bleprofile_Discoverable(HIGH_UNDIRECTED_DISCOVERABLE, NULL );

, the address type have changed into random address, however,

the address now became all zeros: 0x000000000000.

I'll extract the key structure of the source in the form of such as edited version of mybeacon, and attach.

Best,

Takashi    

0 Likes

Is this still an issue? pukaso

0 Likes

Dear boont,

yes, still I don't have a solution.

0 Likes

I tried out your method and I was able to have a random bd addr whenever I power up, as opposed to the all zeros you have reported. I'm using the hello_sensor.c on the tag3, and wiced_explorer app on a samsung s4.

0 Likes

Dear boont,

Thanks for checking re-occurrence.

I'm now doubting of hardware ( circuitry ).

Could you please pass your e-mail to share our confidential circuit data?

My e-mail is: sagisaka@ux-xu.com

Best,

Takashi

0 Likes

Dear boont,

We don't have TAG3 now, so I cannot try it out right now, but one apparent difference between TAG3 and

our board is that our design doesn't have an external EEPROM.

Do you have any idea about how to make bd_addr_control.a adjusted for our design?

( Key structure around BCM in our design is extracted below )

pukaso01.png


Otherwise, we have to somehow prepare several thousand public addresses by the week starts at 21th June... 😞

Best,

Takashi

0 Likes

I noted from Victor's reply that the app will create a random bd address upon booting up, after which this address will be saved in the NVRAM (eeprom). If you do not have an eeprom, then this could be an issue.

From whom are you getting your 736/737? Do you happen to work with Macnica or Tecstar?

0 Likes

Yes, we've got our's from Macnica Tecstar.

I now got a BCM920737_LE_KIT, so am trying to follow your and dmiya's successful reports.

0 Likes

pukaso

Is this still an issue?

0 Likes

Dear boont

We and the vendor could not find out the cause, so we finally bought our

OUI.

Static random seems not working on our board using 20737S depicted above.

If you have already succeeded in ena bling the feature on any board with

20737S, I hope you to include the schematic and code into newer SDK

releases.

Best,

Takashi

2015/06/17 11:14 "boont" <communities-list@community.broadcom.com>:

<http://community.broadcom.com/?et=watches.email.thread> undefined

reference to `blecm_set_static_random_bd_addr'

reply from boont

<http://community.broadcom.com/people/boont?et=watches.email.thread> in *WICED

Smart Forums* - View the full discussion

<http://community.broadcom.com/message/16685?et=watches.email.thread#16685>

0 Likes

Just to clarify, what did you buy? What is OUI?

0 Likes

We bought our IEEE's Organizationally Unique Identifier, to write public

address in our product.

2015/06/17 12:51 "boont" <communities-list@community.broadcom.com>:

<http://community.broadcom.com/?et=watches.email.thread> undefined

reference to `blecm_set_static_random_bd_addr'

reply from boont

<http://community.broadcom.com/people/boont?et=watches.email.thread> in *WICED

Smart Forums* - View the full discussion

<http://community.broadcom.com/message/16706?et=watches.email.thread#16706>

0 Likes
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

Did you have a chance to try out JT's suggestion?

0 Likes