Do you want to get cracking asap with your new WiFi CANLogger3000?
Then this guide is for you!
Here we explain how you'll easily configure your wireless CAN bus logger in either Access Point (AP) mode or Station (STA) mode.
Before starting, make sure you’ve got the latest version of our free CANvas software!
Also, if you haven’t yet read our CANLogger3000 intro, check it out here - it gives a light overview of both AP and STA mode.
CUSTOMIZING THE LOG FILE SIZE LIMIT
Before going through each mode, it's important to understand how the CANLogger3000 web server interface works.
Essentially, every time a log file is "closed", it will appear in the list and be available for download.
This has one important implication:
If you do not fully turn off your application (e.g. car) and you've set the log file size limit to be large, you may experience that the log files do not appear in the web server interface. This is simply because the log file is not yet closed and no size limit has been hit.
In many applications, there will be a natural "closure" to the log file as you e.g. turn off your car. But if this is not the case, it can be helpful to set the MB file size limit in CANvas to something low (e.g. a few MB) to break up your logging into chunks. This way you will always be able to get the vast majority of your data regardless of whether your application fully shuts down before accessing the files.
The MB file size limit is easily changed under General/Log File settings.
CUSTOMIZING ACCESS POINT (AP) MODE
By default, your WiFi CAN logger will arrive in AP mode.
What does AP mode mean?
It means that you will see the CANLogger3000 pop up as a “hotspot” in your WiFi hotspot list on e.g. a phone, tablet or PC. The CAN logger will appear as soon as it’s powered via either the CAN bus or USB and you’re in range.
AP mode is great for e.g. accessing log files from a hard-to-reach CAN logger in the field. You do not have to disconnect the logger, but instead simply enter the “Hostname” (or website name) in a browser on your wireless device.
By default, you can enter the hostname “id0001” followed by a “/” to get access to the web interface (cf. below picture).
AP MODE CONFIGURATION
In CANvas, it’s easy to customize the key features of AP mode.
When you open CANvas, simply choose “CONFIGURE LOGGER”, set your “CANLogger model number” to 3000 and go to the WiFi tab - you will see a screen similar to below:
As evident, there are two main settings: WiFi Settings and Web Server Settings.
Below we detail each field in brief:
- WiFi mode: This lets you switch between AP and STA mode (more below)
- SSID name: This is the name that will appear in your WiFi hotspot list - we recommend leaving this equal to the logger ID
- WiFi password: This has to be entered when connecting to the logger
- Hostname: This name acts as the logger “URL” - once connected to the logger, simply enter “[Hostname]/” in your browser
- Authentication user name / password: You can set up a user and password that will be required to enter the web server
Once you’re done editing, just hit the export button to load the new CONFIG.INI file onto your USB-connected CANLogger3000.
CONFIGURING STATION (STA) MODE
AP mode is perfect for ad hoc, single logger use cases.
However, it’s far less convenient if you e.g. need to pull data from 20 loggers by connecting 1-by-1 to each of them.
In this case, we instead recommend using Station mode.
How does this help?
In STA mode, each logger can connect to a WiFi hotspot - e.g. from a phone, router, PC or mobile truck / bus hotspot.
This makes the logger web interfaces available on the local network of that WiFi hotspot - allowing you to easily grab files from each of the unique URLs (e.g. “truck12A/”, “truck25B”, …).
You can even set up basic scripts to loop through each URL and pull the raw CAN bus data to a folder, cloud server or similar for post processing!
EXAMPLE: You may have a CANLogger3000 in a fleet of 20 trucks. The loggers could then be set up to connect to the garage router so that files become available when the trucks return to the garage.
Or, you could set up each logger to connect individually to the respective mobile truck WiFi hotspot to make the loggers accessible on-the-go.
Want to access the data online via the internet?
Typically, you will be able to access the loggers within the same VPN business network - or alternatively you may be able to set up port forwarding to bring the loggers online so they can be accessed remotely.
Below we explain how to easily set STA mode up in practice.
STA MODE CONFIGURATION
As before, cf. below a picture of the CANvas settings for STA mode.
Note that the fields are identical to AP mode, but some now have different meanings.