So best solution is to have unique MAC addresses.
I think MAC is codded on below define inside app_preinclude.h
#define BD_ADDR 0x13,0x00,0x00,0x9F,0x04,0x00
Can I use some chip serial number or signature to get some unique address ?
What about NXP OUI with some chip signature SS ?
MM:MM:MM:SS:SS:SS
Organizationally Unique Identifier is a 24-bit number that uniquely identifies a vendor or manufacturer.
http://standards-oui.ieee.org/oui.txt
like
AC-9A-22 (hex) NXP Semiconductors
AC9A22 (base 16) NXP Semiconductors
411 E. Plumeria Drive
San Jose CA 95134
US
00-60-37 (hex) NXP Semiconductors
006037 (base 16) NXP Semiconductors
High Tech Campus 32, Office 1.21
SAF AD 13456
NL
E0-51-24 (hex) NXP Semiconductors
E05124 (base 16) NXP Semiconductors
411 E. Plumeria Drive
San Jose CA 95134
US
--------------------
Got confused by these settings:
file gap_types.h it seems that I can choose some random address.
typedef struct gapAdvertisingParameters_tag {
.......
bleAddressType_t ownAddressType; /*!< Indicates whether the advertising address will be the public address (BD_ADDR) or the random address (set by Gap_SetRandomAddress). Default: public address. */
typedef struct gapScanningParameters_tag {
..........
bleAddressType_t ownAddressType; /*!< Indicates whether the address used in scan requests will be the public address (BD_ADDR) or the random address (set by Gap_SetRandomAddress). Default: public address. */
typedef struct gapConnectionRequestParameters_tag {
.....
bleAddressType_t ownAddressType; /*!< Indicates whether the address used in connection requests will be the public address (BD_ADDR) or the random address (set by Gap_SetRandomAddress). Default: public address. */
found in ble_general.h
/*! Bluetooth Device Address Types */
typedef enum {
gBleAddrTypePublic_c = 0x00, /*!< Public Device Address - fixed into the Controller by the manufacturer. */
gBleAddrTypeRandom_c = 0x01 /*!< Random Device Address - set by the Host into the Controller for privacy reasons. */
} bleAddressType_t;
and set in app_config.c
gapAdvertisingParameters_t gAdvParameters =
{ \
.............
/* addressType */ gBleAddrTypePublic_c, \
/* directedAddressType */ gBleAddrTypePublic_c, \
Thank you, and
Best Regards,
Lucian