Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation migrated from README.md #233

Merged
merged 2 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
151 changes: 3 additions & 148 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@

[www.meatpi.com](https://www.meatpi.com)
---
## MeatPi [Discord server](https://discord.com/invite/2hpHVDmyfw)
## Please update to the [latest firmware version](https://github.com/meatpiHQ/wican-fw/releases/)
# [Documentation](https://meatpihq.github.io/wican-fw/) | [Firmware updates](https://github.com/meatpiHQ/wican-fw/releases/) | [Discord server](https://discord.com/invite/2hpHVDmyfw)

---
# [Official Docs](https://meatpihq.github.io/wican-fw/)
We are currently in the process of migrating from this large README.md into the proper docs.

## Order on [**Mouser**](https://www.mouser.com/c/?m=MeatPi) or [**Crowd Supply!**](https://www.crowdsupply.com/meatpi-electronics)

<br/><br/>

---
# WiCAN PRO

### Ongoing crowdfunding campaign for a new product in development! If you would like to support this project, please subscribe for updates on [**Crowd Supply!**](https://www.crowdsupply.com/meatpi-electronics/wican-pro)
Expand Down Expand Up @@ -46,15 +41,6 @@ We are currently in the process of migrating from this large README.md into the
- [API](#api)
- [Build](#build)
- [Description](#description)
- [Configuration](#configuration)
- [WiFi/CAN Configuration](#1-wifican-configuration)
- [BUSMaster](#2-busmaster)
- [Realdash](#3-realdash)
- [SavvyCAN](#4-savvycan)
- [webCAN](http://webcan.meatpi.com)
- [SocketCAN](#socketcan)
- [WiFi](#1-wifi)
- [USB](#2-usb)
- [ELM327 OBD2 Protocol](#elm327-obd2-protocol)
- [Firmware Update](https://meatpihq.github.io/wican-fw/config/firmware-update)
- [OTA](https://meatpihq.github.io/wican-fw/config/firmware-update)
Expand Down Expand Up @@ -113,137 +99,6 @@ WiCAN-USB can also be used as a USB-to-CAN adapter when Wi-Fi connectivity is no

![Modes](https://user-images.githubusercontent.com/94690098/222961571-bd137341-808a-4f0a-9528-789fe24d640e.png "Connection Mode")

# Configuration:
--------

## 1. WiFi/CAN Configuration:
1. Power up the device using the USB cable, or by plugging into the OBD-II connector.
2. The blue LED will light ON, and a WiFi device access point will start. The SSID will look like: WiCAN_xxxxxxxxxxxx
3. Connect to the SSID using the default password: @meatpi#
4. Using a web browser, go to http://192.168.80.1/
5. The status menu shows the device current configuration, if in Ap+Station mode it will show the device IP on your local network if connected successfully.
6. The WiFi menu lets you configure the WiFi parameters. It is recommended that you change the AP access point.
7. The CAN menu allows to choose the protocol set the bitrate and TCP/UPD port number.
8. When ready click submit Changes button and the device will store the configuration reboot immediately.

**Note: If you intend to use the device in AP mode it is recommand that you disable the BLE function**

![Configuration page](https://github.com/meatpiHQ/WiCAN/blob/main/images/settings40.png?raw=true "Config page")

## 2. BUSMaster
You need to download the right version of BUSMaster provided in this [**Link**](https://drive.google.com/drive/folders/1qJelUAHGrn_YbNIP0Jk_KmNENG-hKbtl?usp=sharing). Here is how to setup the hardware.

### **Device Configuration:**

1. Go to configuration webpage.
2. Baudrate can be set in BUSMaster configuration
3. Set "Port Type" = TCP
4. Set "Protocol" = slcan
5. Click submit changes.

### **BUSMaster Configuration:**

1. Select VSCom CAN-API by clicking on 'Driver Selection -> VSCom CAN-API"
2. Then Click on 'Channel Configuration -> Advanced'
3. Fill in the IP and port. **Example: 192.168.80.1:3333**
4. Check the 'Hardware Timestamps' check box.
5. Choose the Baudrate.
6. Click 'OK', then Click the Connect button on the top left corner.


<img src="https://user-images.githubusercontent.com/94690098/158798541-0317aa4f-ebf5-4e57-83b0-ea3fefeaf4e9.png" width="350" height="500" >

## 3. RealDash
WiCAN-OBD and WiCAN-USB can connect with RealDash using either WiFi or BLE. **The protocol and CAN bitrate must be set using the configuration page**. BLE is supported only on Android and iOS. Windows 10 supports only WiFi connections. Additionally, _WiCAN-USB can connect using the USB interface_.

### USB Device Configuration (WiCAN-USB only):
1. Go to garage then click on the dashboard.
2. Click Add connection.
3. Select Adapter (CAN/LIN)
4. Select RealDash CAN
5. Select SERIAL/USB
6. Select device
7. Set Baud RATE: 4000000 (This is the usb/serial buadrate not the CAN bitrate)
8. Click next then Done

### WiFi Device Configuration:

1. Go to configuration webpage.
2. Select the baudrate
3. Set "Port Type" = TCP
4. Set "Protocol" = reladash 66
5. Click submit changes.

### RealDash Configuration:
1. Go to garage then click on the dashboard.
2. Click Add connection.
3. Select Adapter (CAN/LIN)
4. Select RealDash CAN
5. Select WIFI/LAN
6. Enter IP and Port
7. Click Done

### BLE Device Configuration:

**If you're using firmware verion v1.64 or below please update to the [latest version](https://github.com/meatpiHQ/wican-fw/releases/) before enabling BLE**

1. Go to configuration webpage.
2. Select the baudrate
3. Set the "BLE Status" to enable

**Note: When the BLE is connected, the device will automatically turn off the WiFi configuration access point. Once BLE is disconnected the configuration access point will turn back on.**

## 4. SavvyCAN

1. Download [SavvyCAN](https://www.savvycan.com/)
2. Connect to the device AP.
3. Open SavvyCAN and Click Connection->Open Connection Window->Add New Device
4. Select "Network Connection", if you're on the same network it auto detect the IP.
5. Click Create New Connection.
6. Then select "Enable Bus" checkbox.

# SocketCAN

## 1. WIFi:

Change to protocol in the device configuration page to "slcan", then create a virtual serial port over TCP on your Linux machine. If WiCAN is connected to your home network replace "192.168.80.1" with device IP.

```
sudo socat pty,link=/dev/netcan0,raw tcp:192.168.80.1:3333 &
sudo slcand -o -c -s8 /dev/netcan0 can0
sudo ifconfig can0 txqueuelen 1000
sudo ifconfig can0 up
```

## 2. USB

```
sudo slcand -o -s6 -t sw -S 4000000 /dev/ttyACM0 can0
sudo ifconfig can0 txqueuelen 1000
sudo ifconfig can0 up
```
# ELM327 OBD2 Protocol

**If you're using firmware verion v1.64 or below please update to the [latest version](https://github.com/meatpiHQ/wican-fw/releases/) before enabling BLE**

1. Go to configuration webpage.
2. Select the baudrate
3. Set "Port Type" = TCP
4. Set "Protocol" = elm327
5. Enable BLE if needed. [Note](https://github.com/meatpiHQ/wican-fw#important-notes)
6. Click submit changes.

### OBD2 in RealDash

1. Go to garage then click on the dashboard.
2. Click Add connection.
3. Select Adapter ``` OBD2 ```
4. Select Bluetooth or WiFi
5. If WiFi fill in the IP 192.168.80.1 and port 3333.
6. Click on ``` OBD2 PROTOCOL ``` and select your car protocol, (11 bit ID, 500Kbit) or (11 bit ID, 250Kbit)
7. Activate ``` Request Only First Reply ```
8. Click Done.

---

© 2023 meatPi Electronics | www.meatpi.com | PO Box 5005 Clayton, VIC 3168, Australia
© 2024 meatPi Electronics | www.meatpi.com | PO Box 5005 Clayton, VIC 3168, Australia
4 changes: 3 additions & 1 deletion docs/content/0.Config/1.WiFi.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Configuring WiFi

## Access point mode
By default your WiCAN will act as Access Point and create its own WiFi network named `WiCAN_xxxxxxx`. You can connect to it with the default password `@meatpi#`.
By default your WiCAN will act as Access Point and create its own WiFi network named **`WiCAN_xxxxxxx` where `xxxxxxx` is the device ID of the WiCAN** you are using. You can connect to it with the default password `@meatpi#`.

If you are using a phone, you may need to wait a few seconds and confirm you want to connect to a network that does not provide internet.

Expand All @@ -11,6 +11,8 @@ Once connected you can open `http://192.168.80.1` in your browser to access the

It is probably a good idea to change the Access point password in the user interface on the "Settings" tab. Otherwise anyone can connect to your WiCAN if he can get close to your car while the WiCAN is powered on.

**Note: If you intend to use the device in AP mode it is recommand that you disable the BLE function**

## Connect WiCAN to your home WiFi network
In the user interface of the WiCAN go to the `Settings` tab to change `Mode` to `AP+Station`, and input the `SSID` and `Password` of your home WiFi network and press the `Submit changes` button.

Expand Down
16 changes: 16 additions & 0 deletions docs/content/0.Config/2.CAN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# CAN

On the "Settings" tab CAN access has to be configured:

![image](/config/can.png)

## ELM327 OBD2 Protocol

**If you're using firmware verion v1.64 or below please [update to the latest version](4.Firmware-Update.md) before enabling BLE**

1. Go to configuration webpage.
2. Select the baudrate
3. Set "Port Type" = TCP
4. Set "Protocol" = elm327
5. Enable BLE if needed. [Note](https://github.com/meatpiHQ/wican-fw#important-notes)
6. Click submit changes.
13 changes: 13 additions & 0 deletions docs/content/0.Config/3.MQTT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# MQTT

Currently only non-secure MQTT is supported, it's highly recommended that you only use it with local MQTT broker and not use public brokers otherwise your CAN bus might be publicly exposed.

To use the MQTT client it has to be enabled on the "Settings" tab:

![image](/config/mqtt_enable.png)

Of couse the broker, topics and logging have to be configured as well:

![image](/config/mqtt.png)

The [WiCAN device ID](../0.Config/1.WiFi.md) is part of the topics in order to be able to communicate with multiple WiCAN devices if needed.
3 changes: 3 additions & 0 deletions docs/content/0.Config/Automate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Automate

Not yet documented ...
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Overview of Home Assistant Integration with WiCAN

## Home Assistant

WiCAN integrates seamlessly with Home Assistant using the official integration, which communicates via HTTP, eliminating the need for MQTT. We recommend using the official integration for the best experience.
WiCAN integrates seamlessly with [Home Assistant](https://www.home-assistant.io/) using the official integration, which communicates via HTTP, eliminating the need for MQTT. We recommend using the official integration for the best experience.

Alternatively, WiCAN can still connect to Home Assistant via MQTT. For setup instructions, refer to the [MQTT guide](/home-assistant/mqtt/).

Expand Down
2 changes: 0 additions & 2 deletions docs/content/2.Automate/_dir.yml

This file was deleted.

3 changes: 3 additions & 0 deletions docs/content/2.Car_Scanner/Usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Car Scanner

Not yet documented ...
2 changes: 2 additions & 0 deletions docs/content/2.Car_Scanner/_dir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: Car Scanner
icon: material-symbols:car-rental
24 changes: 24 additions & 0 deletions docs/content/3.BUSMASTER/Usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## BUSMASTER
[BUSMASTER](https://rbei-etas.github.io/busmaster/) is an Open Source Software tool to Simulate, Analyze and Test data bus systems such as CAN, LIN.
You need to download the right version of BUSMaster provided in this [**Link**](https://drive.google.com/drive/folders/1qJelUAHGrn_YbNIP0Jk_KmNENG-hKbtl?usp=sharing).

Here is how to set up the hardware:

### **Device Configuration:**

1. Go to configuration webpage.
1. Baudrate can be set in BUSMaster configuration
1. Set "Port Type" = TCP
1. Set "Protocol" = slcan
1. Click submit changes.

### **BUSMaster Configuration:**

1. Select VSCom CAN-API by clicking on 'Driver Selection -> VSCom CAN-API"
1. Then Click on 'Channel Configuration -> Advanced'
1. Fill in the IP and port. **Example: 192.168.80.1:3333**
1. Check the 'Hardware Timestamps' check box.
1. Choose the Baudrate.
1. Click 'OK', then Click the Connect button on the top left corner.

![image](/busmaster/vscan_api_device_config.png)
2 changes: 2 additions & 0 deletions docs/content/3.BUSMASTER/_dir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: BUSMASTER
icon: material-symbols:partner-exchange
52 changes: 52 additions & 0 deletions docs/content/4.RealDash/Usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
## RealDash
WiCAN-OBD and WiCAN-USB can connect with [RealDash](https://realdash.net) using either WiFi or BLE. BLE is supported only on Android and iOS. Windows 10 supports only WiFi connections. Additionally, _WiCAN-USB can connect using the USB interface_.

**The protocol and CAN bitrate must be set using the configuration page**

### USB Device Configuration (WiCAN-USB only):
1. Go to garage then click on the dashboard.
1. Click Add connection.
1. Select Adapter (CAN/LIN)
1. Select RealDash CAN
1. Select SERIAL/USB
1. Select device
1. Set Baud RATE: 4000000 (This is the usb/serial buadrate not the CAN bitrate)
1. Click next then Done

### WiFi Device Configuration:

1. Go to configuration webpage.
1. Select the baudrate
1. Set "Port Type" = TCP
1. Set "Protocol" = reladash 66
1. Click submit changes.

### RealDash Configuration:
1. Go to garage then click on the dashboard.
1. Click Add connection.
1. Select Adapter (CAN/LIN)
1. Select RealDash CAN
1. Select WIFI/LAN
1. Enter IP and Port
1. Click Done

### BLE Device Configuration:

**If you're using firmware verion v1.64 or below please update to the [latest version](https://github.com/meatpiHQ/wican-fw/releases/) before enabling BLE**

1. Go to configuration webpage.
1. Select the baudrate
1. Set the "BLE Status" to enable

**Note: When the BLE is connected, the device will automatically turn off the WiFi configuration access point. Once BLE is disconnected the configuration access point will turn back on.**

### OBD2

1. Go to garage then click on the dashboard.
1. Click Add connection.
1. Select Adapter ``` OBD2 ```
1. Select Bluetooth or WiFi
1. If WiFi fill in the IP 192.168.80.1 and port 3333.
1. Click on ``` OBD2 PROTOCOL ``` and select your car protocol, (11 bit ID, 500Kbit) or (11 bit ID, 250Kbit)
1. Activate ``` Request Only First Reply ```
1. Click Done.
2 changes: 2 additions & 0 deletions docs/content/4.RealDash/_dir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: RealDash
icon: material-symbols:electric-meter
8 changes: 8 additions & 0 deletions docs/content/5.SavvyCAN/Usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## SavvyCAN
[SavvyCAN](https://www.savvycan.com/) is a cross platform CAN bus reverse engineering and capture tool.
1. Download [SavvyCAN](https://www.savvycan.com/)
1. Connect to the device AP.
1. Open SavvyCAN and Click Connection->Open Connection Window->Add New Device
1. Select "Network Connection", if you're on the same network it auto detect the IP.
1. Click Create New Connection.
1. Then select "Enable Bus" checkbox.
2 changes: 2 additions & 0 deletions docs/content/5.SavvyCAN/_dir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: SavvyCAN
icon: material-symbols:camera-rounded
20 changes: 20 additions & 0 deletions docs/content/6.SocketCAN/Usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## SocketCAN

[SocketCAN](https://github.com/linux-can/) is a set of open source CAN drivers and a networking stack contributed by Volkswagen Research to the Linux kernel.

### 1. WiFi:
Change to protocol in the device configuration page to "slcan", then create a virtual serial port over TCP on your Linux machine. If WiCAN is connected to your home network replace "192.168.80.1" with device IP.

```
sudo socat pty,link=/dev/netcan0,raw tcp:192.168.80.1:3333 &
sudo slcand -o -c -s8 /dev/netcan0 can0
sudo ifconfig can0 txqueuelen 1000
sudo ifconfig can0 up
```

### 2. USB
```
sudo slcand -o -s6 -t sw -S 4000000 /dev/ttyACM0 can0
sudo ifconfig can0 txqueuelen 1000
sudo ifconfig can0 up
```
2 changes: 2 additions & 0 deletions docs/content/6.SocketCAN/_dir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: SocketCAN
icon: material-symbols:ecg
Loading