Writing guide¶
Every building block these manuals use, shown live next to the markup that produces it. Copy from here rather than inventing a new one.
Voice and rules¶
- Talk to the reader as "you", in the present tense. One action per step, and say what they will see after it.
- Name screens, buttons and fields exactly as the device shows them, in the label style below.
- Keep a page to one job. A reader on a phone, sitting in the car, should always see the next action.
- No long dashes (em or en dash) anywhere: use a colon, a comma, parentheses or two sentences.
- A number that changes what the reader does goes in a table or on its own line, not in the middle of a sentence.
- Every picture has alt text that says what is on it and a caption that says what to notice.
Labels from the device screen¶
Wrap any button, page, field or menu name the reader will see on the device in double equals signs. Put a › between the levels of a path.
Tap Save and restart, then open Settings › WiFi and choose Station.
Keyboard keys are for a computer only, never for the device: ++ctrl+shift+r++ renders as Ctrl+Shift+R.
Step-by-step guides¶
A guide is an ordered list inside a steps block. The first line of a step is its title in bold. Everything else that belongs to the step (text, notes, pictures) is indented by four spaces.
-
Plug WiCAN PRO into the OBD-II port
On most cars the port is under the dashboard on the driver side. The LED lights within a few seconds.
-
Join the WiCAN access point from your phone
Open the WiFi settings on your phone and pick the network whose name starts with
WiCAN_. The password is on the quick start card.Tip
Your phone may warn that this network has no internet. Stay connected anyway.
-
Open the setup page
In a browser, go to
http://192.168.0.10. On a new device Quick Setup opens by itself.
Quick Setup opens with the three safety rules. Continue stays grey until all three are ticked.
<div class="steps" markdown>
1. **Plug WiCAN PRO into the OBD-II port**
On most cars the port is under the dashboard on the driver side. The LED lights within a few seconds.
2. **Join the WiCAN access point from your phone**
Open the WiFi settings on your phone and pick the network whose name starts with `WiCAN_`.
!!! tip
Your phone may warn that this network has no internet. Stay connected anyway.
3. **Open the setup page**
In a browser, go to `http://192.168.0.10`.
<figure class="shot" markdown>
{ width="720" }
<figcaption>Quick Setup opens with the three safety rules.</figcaption>
</figure>
</div>
Keep a guide under ten steps. If it needs more, it is two guides.
Screenshots¶
Pictures of the device web interface are taken by a script, never by hand, so every page shows the same window size, the same theme and no personal data:
The script opens the real web interface over its mock data (no device needed), walks to each screen and writes docs/<product>/img/<set>/NN-<screen>.png. When the interface changes, run it again: the file names stay the same, so the pages do not change.
A screenshot is a figure with the shot class and a caption. Set a width so the text in the picture stays readable; readers can click any picture to enlarge it.
<figure class="shot" markdown>
{ width="640" }
<figcaption>With the three rules ticked, Continue turns blue.</figcaption>
</figure>
A picture taken on a phone gets the shot-phone class instead, which draws a rounded phone frame around it. A picture with no caption can carry the class directly: { .shot width="480" }.
Videos¶
A YouTube video is a figure with the video class: the iframe sits in a frame div that keeps the 16:9 shape at any width, and the caption says who made the video and what it is called. Several videos go in a grid videos div, which puts them side by side on a wide screen. Embed only videos that stay useful when the interface changes, and always say whose they are.
<figure class="video">
<div class="frame"><iframe src="https://www.youtube.com/embed/<id>" title="<the video's title>" loading="lazy" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></div>
<figcaption>Who made it: the video's title.</figcaption>
</figure>
Numbered callouts on a picture¶
When a step talks about several parts of one screen, number them on the picture instead of describing where they are. The markers are placed in percent of the picture width and height, so they stay put at any size, and the list below uses the same numbers.
- The step list: the current step is highlighted, finished steps get a tick.
- The rules to accept before setup starts.
<div class="annotated" markdown>
{ .shot width="720" }
<i class="m" style="left:9%;top:22%">1</i>
<i class="m" style="left:52%;top:50%">2</i>
</div>
<ol class="callouts">
<li>The step list: the current step is highlighted, finished steps get a tick.</li>
<li>The rules to accept before setup starts.</li>
</ol>
Notes, tips and warnings¶
Use them sparingly, at most one or two per screen of text, and always with a title that says what the box is about.
Where the OBD-II port is
Most cars have it under the dashboard on the driver side, sometimes behind a small cover.
Keep the quick start card
It has the access point name and the setup address printed on it.
Driving
Set WiCAN up while parked. Never use a phone to configure it while driving.
Battery
WiCAN draws power while the engine is off. Leave sleep mode on if the car will sit for days.
Why is the access point password changed during setup?
The factory password is printed on every card, so anyone near the car could join. Quick Setup asks for a new one before anything else is saved.
!!! note "Where the OBD-II port is"
Most cars have it under the dashboard on the driver side.
!!! tip "Keep the quick start card"
It has the access point name and the setup address printed on it.
!!! warning "Driving"
Set WiCAN up while parked.
!!! danger "Battery"
WiCAN draws power while the engine is off.
??? info "Why is the access point password changed during setup?"
A collapsed box for the curious; the guide works without it.
Different phones and computers¶
When a step differs by platform, use tabs. The reader picks one and the choice follows them down the page.
Open Settings › Network & internet › Internet and tap the WiCAN_ network.
Open Settings › Wi-Fi and tap the WiCAN_ network.
Click the network icon in the taskbar, then the WiCAN_ network, then Connect.
Click the Wi-Fi icon in the menu bar and pick the WiCAN_ network.
=== "Android"
Open ==Settings== › ==Network & internet== › ==Internet== and tap the `WiCAN_` network.
=== "iPhone"
Open ==Settings== › ==Wi-Fi== and tap the `WiCAN_` network.
LED colours¶
Show an LED state as a coloured dot, with blink for a blinking pattern. The names are blue, green, red, amber, cyan, purple, white and off.
| LED | Meaning |
|---|---|
| Blue | Example: the access point is up, nobody is connected |
| Green | Example: connected to your WiFi |
| Amber, blinking | Example: a firmware update is being written |
| Red | Example: something needs attention |
| Off | Example: asleep |
Pills and key facts¶
A pill marks a condition in passing: firmware 6.0+ tested beta removed. A guide that applies to several products starts with one pill per product.
<span class="pill">firmware 6.0+</span> <span class="pill ok">tested</span> <span class="pill warn">beta</span>
A key facts block sums up a product or a feature at the top of its landing page.
- Access point
WiCAN_followed by the device address, password on the card- Setup address
http://192.168.0.10- Needs
- A phone or laptop with WiFi and a browser
<dl class="facts" markdown>
<dt>Access point</dt><dd>`WiCAN_` followed by the device address, password on the card</dd>
<dt>Setup address</dt><dd>`http://192.168.0.10`</dd>
</dl>
Tables, code and addresses¶
Tables carry settings and their meaning, one row per setting, the default marked. An address, a file name or a value the reader types goes in inline code. Something the reader runs on a computer goes in a code block with a copy button:
| Setting | Default | What it does |
|---|---|---|
| Sleep mode | Off | Puts WiCAN to sleep when the car is off |
| Sleep voltage | 13.1 V | The battery voltage below which sleep starts |
| Wake on motion | Off | Wakes WiCAN when the car moves |
Chapters shared by two products¶
WiCAN OBD and WiCAN USB run the same firmware and the same web interface, so their manuals say the same thing on most pages. Such a chapter is written once, under docs/shared/wican/<chapter>.md, without front matter and starting with its heading, and each product has a small page that includes it with a snippet:
---
title: WiFi
---
<!-- This chapter is shared by WiCAN OBD and WiCAN USB. Its text lives in
docs/shared/wican/wifi.md and is included here with a snippet; edit it there. -->
# WiFi
<p class="lead">WiCAN has two WiFi faces: its own access point, which phones and laptops join directly, and a station that joins your network. This chapter covers both, the Auto-Disable AP switch, how WiCAN is found on a network, and how to get back in when something goes wrong.</p>
All of it lives under ==Settings== › ==AP Config== and ==Station Config==. Changes apply from ==Submit Changes==, which restarts WiCAN.
## WiFi mode
| Mode | What it means |
| --- | --- |
| ==AP== | WiCAN is an access point and nothing else. Your phone or laptop joins it; there is no internet on it. The mode a new device starts in, and the only mode in which Bluetooth LE can be enabled. |
| ==AP+Station== | WiCAN also joins your WiFi. You reach it through your network, Home Assistant and MQTT work, and the access point stays on unless Auto-Disable AP turns it off. Bluetooth LE is not available in this mode. |
There is no station-only mode; Auto-Disable AP is how the access point goes away.
<figure class="shot" markdown>
{ width="640" }
<figcaption>AP Config with AP+Station chosen. Auto-Disable AP becomes available in this mode.</figcaption>
</figure>
## The access point
<dl class="facts" markdown>
<dt>Name</dt><dd>`WiCAN_` followed by the device id, twelve hexadecimal characters. It cannot be changed.</dd>
<dt>Password</dt><dd>`@meatpi#` from the factory; 8 to 63 characters of your own. Change it on a new device: the factory password is the same on every WiCAN.</dd>
<dt>Security</dt><dd>WPA2, with WPA3 accepted from phones that have it.</dd>
<dt>Address</dt><dd>`192.168.80.1`. WiCAN hands out addresses in `192.168.80.x` to the devices that join.</dd>
<dt>Channel</dt><dd>1 to 14, 6 from the factory. In AP+Station the access point follows the channel of the network the station joined, whatever this setting says.</dd>
<dt>Clients</dt><dd>Up to 4 at a time.</dd>
</dl>
!!! note "A phone on the access point switches Bluetooth off"
With Bluetooth LE enabled, the moment a phone joins the access point WiCAN stops advertising over Bluetooth, and starts again when the phone leaves. The other way round, a phone connected over Bluetooth switches the access point off. See [Bluetooth LE](bluetooth.md).
## Your network (the station)
Type the ==SSID== and ==Password== of your network and choose its ==Security==:
| Security | When |
| --- | --- |
| ==WPA3== | Your router runs WPA3 (or WPA2/WPA3 mixed mode with WPA3 on). The factory setting. |
| ==WPA2== | Your router runs WPA2, which is most home routers. A WPA2-only network is not joined while WPA3 is selected. |
WiCAN joins 2.4 GHz networks only. After the restart it takes an address from your router and keeps trying every second until it gets one; the Status tab shows ==WiFi Station== `Connected` and the ==Station IP==.
<figure class="shot" markdown>
{ width="640" }
<figcaption>Station Config. Pick the security your router uses.</figcaption>
</figure>
### Finding WiCAN on the network
- **The router's device list** shows it as `WiCAN_<device id>`, the same name as the access point.
- **mDNS**: `wican_<device id>.local` (lower case) resolves to the station address on networks that carry mDNS, which is most home networks; the Status tab shows the name under ==mDNS==. Home Assistant's WiCAN integration finds the device this way.
- **The Status tab**, reached over the access point while it is still on, shows the ==Station IP==.
## Auto-Disable AP
In AP+Station mode, ==Auto-Disable AP== set to ==Enable== switches the access point off as soon as the station has an address from your router. WiCAN is then reachable through your network only, and the radio is free for it. If the station loses the network and cannot rejoin, the access point comes back so you can still reach the device.
With ==Disable==, the factory setting, the access point stays on next to the station.
!!! tip "Turn it on once your network works"
Keep the access point on during setup. Once WiCAN is reachable on your network, enabling Auto-Disable AP removes an open door near the car; you can always get the access point back by changing the setting over the network, or by taking the network away.
## Getting back in
WiCAN has no button. When you cannot reach the web interface:
| Situation | Way in |
| --- | --- |
| AP mode, you forgot the new access point password | [Recovery over USB](../firmware/usb-flash.md): flashing with the erase step returns the factory password |
| AP+Station with Auto-Disable AP, the access point is gone | WiCAN is on your network: open its address there. Away from that network, the access point comes back by itself once the station gives up on it |
| A phone was connected over Bluetooth and the access point disappeared | Expected: disconnect the phone and power cycle WiCAN; the access point is back |
| The settings you submitted were wrong (a bad WiFi password, a mistyped SSID) | In AP+Station the access point stays reachable unless Auto-Disable AP is on; fix the settings there. Otherwise recovery over USB |
| WiCAN went quiet in a parked car | Sleep mode: it wakes when the engine runs, see [Sleep and battery alert](../power/sleep-and-wake.md) |
## Troubleshooting
| Symptom | Likely cause | What to do |
| --- | --- | --- |
| The station never connects | the wrong ==Security== (a WPA2 router with WPA3 selected), a 5 GHz-only network, a mistyped password | choose WPA2; a 2.4 GHz network; retype the password |
| It connected once, now the Status tab says `Not Connected` | the router changed channel or restarted; WiCAN retries by itself | wait a minute; power cycle WiCAN if it stays off |
| `wican_<id>.local` does not open | the network blocks mDNS, or the computer does not resolve `.local` names | use the address from the router's device list |
| Settings came back as factory after a restart | a value the firmware refuses, for example a WiFi password shorter than 8 characters: the whole configuration file is replaced by defaults | enter the settings again within the limits |
| The access point is on a different channel than set | AP+Station: the access point follows the station's channel | nothing to fix |
The shared files are not pages of their own (exclude_docs in mkdocs.yml keeps them out of the build), so write their links and picture paths as seen from the including page: ../connectivity/wifi.md for another chapter, ../../shared/wican/img/pages/00-status.png for a picture. Both products have the same folders, so one path works for both.
Where a part of a chapter applies to one product only, mark sections in the shared file and let each product page compose its own sequence:
<p class="lead">WiCAN stays powered when the vehicle is parked, so it has to know when to stop drawing current. It reads the battery voltage: high while the engine charges, lower when the car rests. Below a voltage you choose, for a few minutes, it goes to sleep; when the voltage comes back it wakes and starts afresh. The same voltage can raise an alert over MQTT when the battery runs down. All of it is on the <mark>Power Saving</mark> tab.</p>
<figure class="shot" markdown>
{ width="640" }
<figcaption>Power Saving. Sleep mode is off from the factory; the sliders set the voltage and the delay.</figcaption>
</figure>
## How it decides
| Rule | What happens |
| --- | --- |
| **Sleep** | The voltage stays below the ==Sleep Voltage== for ==Sleep After== minutes: WiCAN switches the CAN controller, WiFi and Bluetooth off and sleeps. Factory values 13.1 V and 2 minutes. |
| **Wake** | Asleep, WiCAN measures the voltage every 2 seconds. Above the sleep voltage it restarts, like a fresh power-on. |
Asleep, WiCAN draws under 1 mA. It wakes by itself when the engine runs, because the alternator or the charger lifts the battery above the sleep voltage.
| Setting | Range | Factory |
| --- | --- | --- |
| ==Sleep Mode== | Enable, Disable | Disable |
| ==Sleep Voltage== | 12.0 to 15.0 V | 13.1 V |
| ==Sleep After== | 1 to 30 min | 2 min |
Typical numbers: a healthy 12 V battery rests at 12.4 to 12.8 V and charges at 13.8 to 14.8 V, so the factory 13.1 V sits between the two. Cars with a smart alternator sometimes charge lower than that for a while; if WiCAN falls asleep while driving, lower the sleep voltage towards 12.9 V. The ==Battery Voltage== on the Status tab is the reading sleep mode works with.
!!! danger "Keep sleep on in a parked car"
With sleep mode off WiCAN draws power continuously. A car that is driven every day will not notice; a car that sits for weeks will.
!!! note "Everything stops while asleep"
Polling, MQTT, the web interface and the apps are all off until the voltage comes back; Home Assistant keeps the last values. There is no way to wake WiCAN from the network. Enable sleep mode only once the rest of the setup is done.
## The battery alert
With sleep mode on and Bluetooth off, ==Battery Alert== can be set to ==Enable==. While WiCAN sleeps, if the battery sinks below the ==Alert Voltage==, it wakes briefly, joins the WiFi named in the alert settings, publishes one MQTT message and goes back to sleep. It repeats the alert every 1, 6, 12 or 24 hours while the voltage stays low.
<figure class="shot" markdown>
{ width="640" }
<figcaption>The Battery Alert card, shown once Battery Alert is set to Enable.</figcaption>
</figure>
| Setting | What it is |
| --- | --- |
| ==SSID==, ==Password== | The WiFi WiCAN joins to send the alert: your home network, if the car is parked in its range. The station settings of the Settings tab are not used for this. |
| ==Alert Voltage== | 8.0 to 15.0 V, 11.0 V from the factory: a 12 V lead-acid battery below 11.5 V at rest is nearly flat. |
| ==Alert Protocol== | MQTT is the only one. |
| ==Alert URL==, ==Alert Port==, ==Alert MQTT User==, ==Alert MQTT Pass== | The broker, as on the MQTT card; plain MQTT only. The factory values point at a public test broker, `mqtt.eclipseprojects.io`, which is fine for a try and wrong for a real car: use your own broker. |
| ==Alert Topic== | Where the message goes, `CAR1/voltage` from the factory. |
| ==Alert every== | 1 hour, 6 hours, 12 hours or 1 day. |
The message:
```json
{"alert": "low_battery", "battery_voltage": 11.400000}
A broker on your home network and an automation that sends you a notification turn it into a text on your phone before the battery is too flat to start the car.
On WiCAN USB¶
The voltage sleep mode reads is the one on Vin. Two consequences:
- Powered from the USB cable alone, Vin reads near zero, so with sleep mode on WiCAN sleeps after the delay and cannot wake. Enable sleep mode only when Vin is wired to the vehicle battery.
- On a 24 V vehicle the reading sits above the 15 V ceiling of the slider, so WiCAN would never sleep: leave sleep mode off there. ```
A product page can also put its own paragraphs between two included sections. Pages that differ throughout (the landing page, first setup, hardware) are written per product, without snippets.
Files and names¶
- Pages: lowercase with hyphens, grouped by product and section, for example
wican-pro/getting-started/quick-setup.md. - Sections inside a product manual, in this order:
getting-started,connectivity,vehicle-data,integrations,tools,power,firmware,troubleshooting, thenhardwarefor the pinout and the datasheet, which sit in the sidebar as pages of their own. - Pictures:
docs/<product>/img/<page>/NN-<screen>.png, numbered in the order they appear. Pictures of a shared chapter:docs/shared/wican/img/<set>/NN-<screen>.png. - Product photos for the cards on the home page:
docs/assets/products/<product>.jpg, 1600 x 900 on a white background. - A guide that applies to every product lives under
integrations/and names its products with pills at the top.
