MeatPi Discord server
Back this project on Crowd Supply!
Note: If the switch is set to VT then UARTA/B voltage must be set by target board. Otherwise VT pins will follow the voltage level set by the swtich.
Download and extract the ZIP file. After extraction, go to serial folder and run the SETUP.EXE file and click on the "Install" button. Then open the CAN folder right click on MEATPI_CAN.inf and click install.
If the installation is successful, the names of COM ports will change, each corresponding to its function.
Follow the instruction to build and install CH344 linux drivers
Note: By default Ollie-v2 will not work as USB CDC-ACM. If you need to use it as a CDC-ACM device you must remove resistor R20
![image](https://private-user-images.githubusercontent.com/94690098/297063982-d7396ae4-ea81-4a3c-9f4d-2ab10486b3b7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI1OTc4NDcsIm5iZiI6MTcyMjU5NzU0NywicGF0aCI6Ii85NDY5MDA5OC8yOTcwNjM5ODItZDczOTZhZTQtZWE4MS00YTNjLTlmNGQtMmFiMTA0ODZiM2I3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODAyVDExMTkwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQxZWUwZjgxODA3MTg5ZjI3YzU1OGFkMTljZGQ0YzJiNTIzYzIyZjZlMWUwNDZhOWIyNDM2NDE0MTUyNzFjNmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.g92dl01Xyr6ep7Fy6Klpt9psoPm5DA_bcAW0QI7MEHQ)
Download and follow the instructions below.
sudo chmod +x ollie_v2.sh
sudo ./ollie_v2.sh # This will create /dev/MEATPI-CAN0 /dev/MEATPI-RS232 /dev/MEATPI-RS485 /dev/MEATPI-UARTA /dev/MEATPI-UARTB
sudo slcand -o -s6 /dev/MEATPI-CAN0 can0 # s6: sets the speed to 500 Kbit
sudo ifconfig can0 txqueuelen 1000
sudo ifconfig can0 up
Speed commands:
s1: 20 KBit
s2: 50 KBit
s3: 100 KBit
s4: 125 KBit
s5: 250 KBit
s6: 500 KBit
s7: 800 KBit
s8: 1 MBit
You can use BUSMaster for CAN Bus monitoring. Please download this version of BUSMaster provided in the Link above. Here is how to setup the hardware.
- Select VSCom CAN-API by clicking on 'Driver Selection -> VSCom CAN-API"
- Then Click on 'Channel Configuration -> Advanced'
- Click on 'Search for Devices on COM-Ports', the device should appear in the drop downlist or fill the right COM port number
- Check the 'Hardware Timestamps' check box.
- Choose the Baudrate.
- Click 'OK', then Click the Connect button on the top left corner.
![image](https://private-user-images.githubusercontent.com/94690098/262991776-6f051221-9399-4506-aaf2-fc3cd611fe5f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI1OTc4NDcsIm5iZiI6MTcyMjU5NzU0NywicGF0aCI6Ii85NDY5MDA5OC8yNjI5OTE3NzYtNmYwNTEyMjEtOTM5OS00NTA2LWFhZjItZmMzY2Q2MTFmZTVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODAyVDExMTkwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQwYWQ4MjdmZjE2MmM1MjlkNzgzOWFhYzkyMGUxNzU4MzQ4ZGZiNDliODc2ZWI2YjMyMDhmZjZjZTIwM2JjMDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.RxIgzM0Wb9EmkDcNDLAo1TjhC7y3WeVRzRD0J44XIAI)
SocketCAN is a Linux-based socket interface for CAN bus communication. It provides a standardized API for accessing CAN hardware and a set of utilities for working with CAN devices. SocketCAN supports multiple CAN controllers and can handle different types of CAN buses, such as CAN 2.0A and CAN 2.0B.
Follow the instructions to bring up the CAN interface.
To send a single frame, use the cansend utility:
cansend can0 123#1122334455667788
To display in real-time the list of messages received on the bus, use the candump utility:
candump can0
# can0 123 [8] 11 22 33 44 55 66 77 88