To bridge large distances - i.e. for building automation - with a CAN bus, a meshed network can be set-up. Each Avisaro WLAN Box / Cube relayes the data to its neighbor boxes. The whole network is one CAN bus - each CAN message is send to all clients.
| Script name: | wc3-1.txt |
| Current version: | wc3-1 , dated from 19.05.2009 |
| Firmware: | v4.24 or higher required |
| Hardware: | CAN WLAN Cube, CAN WLAN Box, WLAN Module |
| History: | v3-1: Initial release |
Power Up and Connect to your device as described in the User Manual section "First Steps" (
here).
This application is - if not otherwise stated - not preloaded when Avisaro products are purchased. Load the script WC3 as described
here.
Configure the CAN port as described
here using the Web interface.
To summarize, the default settings of the data and WLAN / TCP interface are:
Baudrate: 125 kbits/s
CAN ID send: 49 (hex)
CAN ID receive: 49 (hex)
All devices are linked to a chain. All CAN messages are transfered from hop to hop. Thus, this chain works like a long CAN cable with several clients connected to it. All clients see all messages.
Assign each node within this chain an individual IP adress. Navigate to the "IP" settings on the configuration web site to do so (
here).
This application can be used in Infrastructure (using an Access Point) and in Ad-hoc mode (using direct communication):
Infrastructure Mode: Connect all Avisaro devices with the Access Points. The network must be configured such that all devices can communicate with eachother - this is particular important if this is a large scale installation with many Access Points involved.
Ad-Hoc Mode: No additional infrastructure is necessary. The Avisaro Devices can communicate directly with each other. All data flow hop-to-hop. There is a naming requirement to ensure proper functionality. The network name (SSID) must be "*", a 5 letter word, "#". See (
here) for details.
All devices are linked to a chain. All CAN messages are transfered from hop to hop. Thus, this chain works like a long CAN cable with several clients connected to it. All clients see all messages.
For setup, navigate to the 'scripting' section of the Avisaro device. The 3x2 matrix should be filled similar to the picture shown to the right.
Perform the following settings:
First device in chain: Enter '0' in "Uplink Adress" and "Start" in the second row.
Middle device in chain: Enter the IP adress of the next device in "Uplink Adress". I.e. enter the IP adress of the first device in the second device. Enter "Mitte" in the second row.
Last device in chain: Enter the IP adress of the second to last device and 'Ende' into the second row.
Key:
Not used. Except: Reset to default - see
here for details.
Green LED:
Indicates power up.
Red LED:
Flashing (1sec): Waiting for IP connection to be established
Solid: Indicates a successfull established TCP connection