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

[new_feature] Use candump can0 and cansend 123#DEADBEE in the can-utils tool. #9

Open
zymouse opened this issue Dec 11, 2023 · 0 comments

Comments

@zymouse
Copy link

zymouse commented Dec 11, 2023

Functional Description

The usb2can hardware device is implemented through the can-utils terminal tool.

In practice, we use a unified interface like can0 more often to develop programs without using the descriptor /dev/ttyCH341USBx:
1.0 Convenient for customers to quickly receive and send tests.
2.0 Unified interface for secondary development.
3.0 EMUC is also configured like this: https://www.innodisk.com/en/products/embedded-peripheral/communication-canbus/emuc-b202-1

This zip is an example of the EMUC driver, which can finally be configured via the start.sh script for the can0 interface [below].
[EMUC_B202_SocketCAN_driver_v3.7_utility_v3.2_20230315_Ubuntu22.04-1.zip]
(https://github.com/WCHSoftGroup/ch341ser_linux/files/13631363/EMUC_B202_SocketCAN_driver_v3.7_utility_v3.2_20230315_Ubuntu22.04-1.zip)

image

sudo apt install can-utils -y

# Reading information on the can bus
candump can0

# Sending information to the can bus
cansend 123#DEADBEE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant