Generic Mode Network and Device Communication
42 (62)
11.3.3
MAC Commands Security
D MAC_MASTER_ADD
Adds a MAC address or a MAC address range to the Master MAC address list. Slave devices
then only accept Bluetooth connections from devices which MAC addresses are listed in the
Master MAC address list. In the Master MAC address list 10 entries are available.
D MAC_MASTER_ADD <adr1> <adr2>
Parameter
Parameter
Description
adr1
MAC address, value: 6 Byte hexadecimal
If
adr2
is also defined, this address is the start address of the range.
adr2
Optional, end address of the MAC address range, value: 6 Byte hexadecimal
Example
D MAC_MASTER_ADD 001122334455
Possible Return Values
Return Value
Description
I OK: MAC_MASTER_ADD
Function succeeded
E 51 MAC-list is full
Only 10 MAC address list entries are supported. Not possible to add
another MAC address.
E 52 Wrong MAC address
MAC address is invalid. Valid MAC address consists of 12 digits.
E 53 MAC address already exists
MAC address is already used for a connection to a server.
E 54 Invalid MAC Address range
Address range is invalid. Make sure, that
adr2
is higher than
adr1
.
D MAC_SLAVE_ADD
Adds a MAC address or a MAC address range to the Slave MAC address list. If the Slave MAC
address list is not empty, the Master device scans the network and searches for Bluetooth
devices. The Master connects to the detected devices, that are in the Slave MAC address list.
In the Slave MAC address list 10 entries are available.
D MAC_SLAVE_ADD <ADDR1> <ADDR2>
Parameter
Parameter
Description
ADDR1
MAC address, value: 6 Byte hexadecimal
If
ADDR2
is also defined, this address is the start address of the range.
ADDR2
Optional, end address of the MAC address range, value: 6 Byte hexadecimal
Example
D MAC_SLAVE_ADD 001122334455
CANblue II User Manual
4.01.0126.20000 EN 3.2