Bridge
CAN-CAN-Bluetooth Bridge¶
In operation as a CAN-CAN-Bluetooth Bridge, CAN data is transmitted wirelessly between two CANlink® wireless 4000 devices via a Bluetooth connection.
The CAN-CAN-Bluetooth Bridge acts as a substitute for CAN cables, e.g. in drag chains or remote control units.
Configuring a Bluetooth Bridge¶
SERVER
-
Disable Wi-Fi
Write0(Disable) to0x3008:0x02 [Wlan Enable] -
Disable BLE
Write0(Disable) to0x3008:0x09 [BLE Enable] -
Enable Bluetooth
Write1(Enable) to0x3008:0x03 [Bluetooth Enable] -
Enable Server
Write2(Server Enabled) to0x3010:0x15 [EEP Connection Direction Configuration/Server or Client1] -
Enable Bluetooth SPP
Write2(SPP) to0x3010:0x16 [EEP Connect Type 1] -
Make Discoverable
Write1(Enabled) to0x3002:0x01 [Discoverable] -
Read and save the MAC address for Client access
Read0x3007:0x01 [Bluetooth Mac Address (Bluetooth Address)] -
Optionally set a PIN for secure access by a Client device
- Write PIN into
0x3002:0x06 [BT Classic Pin Code].
The maximum length of the PIN code is 15 bytes. - Also set
0x3002:0x07 [BT Classic Enforce Pin Code]to1(Enable).
- Write PIN into
CLIENT
-
Disable Wi-Fi
Write0(Disable) to0x3008:0x02 [Wlan Enable] -
Disable BLE
Write0(Disable) to0x3008:0x09 [BLE Enable] -
Enable Bluetooth
Write1(Enable) to0x3008:0x03 [Bluetooth Enable] -
Enable Client
Write3(Client Enabled) to0x3010:0x15 [EEP Connection Direction Configuration/Server or Client1] -
Enable Bluetooth SPP
Write2(SPP) to0x3010:0x16 [EEP Connect Type 1] -
Set Server MAC address
Write the value read in step (7) in the Server directions to0x3010:0x1A [EEP Bluetooth SP MAC Address 1].- This is a 12-character ASCII field, that represents a 6-byte Hexadecimal MAC Address.
For example84BA20096D04 - (This is not case-sensitive).
- This is a 12-character ASCII field, that represents a 6-byte Hexadecimal MAC Address.
-
Optionally configure the PIN
- Write the appropriate PIN into
0x3002:0x06 [BT Classic Pin Code].
- Write the appropriate PIN into