CAN-CAN Wi-Fi® Bridge¶
In operation as a CAN-CAN Wi-Fi bridge, CAN data is transmitted wirelessly between two CANlink mobile or CANlink wireless devices via a Wi-Fi connection. The CAN-CAN Wi-Fi bridge acts as a substitute for CAN cables, e.g. in cable carriers or with remote-control units. One device is configured as a Wi-Fi Access Point, acting as server; the other connects as a Wi-Fi client, establishing the bridge between the two devices. This function is available on types 3733, 3737, 3773, and 3777.
Server Configuration¶
The following objects are mandatory to configure the CANlink® mobile 3700 as a Wi-Fi Access Point, acting as server in the bridge.
| Object | Object Name | Value | Notes |
|---|---|---|---|
0x3008:0x09 |
BLE Enable | 0 |
Disabled |
0x3008:0x02 |
WiFi Enable | 1 |
Enabled |
0x3000:0x0F |
WLAN - Access Point Channel | 149 |
Channel 149 in 5GHz band |
0x3000:0x01 |
WLAN - Operating Mode | 2 |
Mini Access Point |
0x3000:0x09 |
WLAN - DHCP Mode | 2 |
DHCP Server |
0x3000:0x12 |
WLAN - Mini Access Point SSID | CLM3700 |
Name of Network SSID |
0x3000:0x13 |
WLAN - Mini Access Point Authentication Type | 6 |
WPA2 |
0x3000:0x14 |
WLAN - Mini Access Point Authentication Key | ChocolateOnly4Breakfast! |
Network Key |
0x3003:0x01 |
WLAN - Socket Server Enable | 1 |
Enabled |
0x3000:0x0A |
WLAN - Static IP Address | 192.168.0.39 |
Address of Server |
0x3000:0x0B |
WLAN - Static Network Mask | 255.255.255.0 |
Network Mask |
0x3000:0x0C |
WLAN - Static Gateway Address | 192.168.0.1 |
Gateway Address |
0x3000:0x0D |
WLAN - Static Primary DNS Server | 192.168.0.1 |
Address of Server |
0x3000:0x0D |
WLAN - Static Secondary DNS Server | 192.168.0.1 |
Address of Server |
0x3003:0x02 |
WLAN - Socket Listen Port Number | 30000 |
Port Number |
0x3000:0x30 |
WLAN - Country Code | DE |
Germany |
0x3004:0x00 |
WLAN - Socket Auto Connect Enable | 0 |
Must be 0, otherwise no server socket is opened |
- Add other settings such as
0x4050:0x03 [CAN 1: Device CANopen Node ID]according to requirements. (In this example,39). - Reboot device
- Verify that
0x3001:0x0DreadsValid WiFi softAP configuration(see note below for common errors).
Note
Typical error texts in 0x3001:0x0D are Error in SoftAP Configuration: Invalid Channel - Check valid channels in object 0x3001:0x10, ... unsecure password (24-63 chars, mixed case+digits+special), ... Empty SSID, and ... Invalid authentication type.
In Access Point mode, no scan result (0x3006:0x03) or RSSI (0x3001:0x03) is available, since both are station-mode only. 0x3001:0x02 (BSSID) and 0x3001:0x04 (channel) are filled in both modes.
To check which channels are valid for a given country code before configuring, enable the WiFi module, set the country code, and restart the device; the supported channel list is then available in object 0x3001:0x10.