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

REQUEST : Add Canbus support for like can2usb dongles #1223

Closed
pergolafabio opened this issue Feb 12, 2021 · 7 comments
Closed

REQUEST : Add Canbus support for like can2usb dongles #1223

pergolafabio opened this issue Feb 12, 2021 · 7 comments

Comments

@pergolafabio
Copy link
Contributor

pergolafabio commented Feb 12, 2021

Hi, this is a request for canbus ,canbus is widely used in car industry, but also in home automations...
There are dongles like https://canable.io/ to talk with the system

But we need to load an extra module loaded in kernel 'socketcan'

https://www.kernel.org/doc/html/latest/networking/can.html
https://en.wikipedia.org/wiki/SocketCAN

so we can make use of:

sudo modprobe can
sudo modprobe can_raw
sudo modprobe slcan

is this possible as a request?

more info : http://pascal-walter.blogspot.com/2015/08/installing-lawicel-canusb-on-linux.html

thnx and appreciated

EDIT : or is there a way to add those modules manually? any instruction is appreciated!
@pvizeli , can you help me with this?

@pvizeli
Copy link
Member

pvizeli commented Feb 15, 2021

You can make an PR again https://github.com/home-assistant/operating-system/blob/dev/buildroot-external/kernel/device-support.config - please test it before you make the PR public.

@pergolafabio
Copy link
Contributor Author

ok, interesting allthough not sure what lines i need to add there? where can i find these for canbus?

@pergolafabio
Copy link
Contributor Author

pergolafabio commented Feb 15, 2021

is it enought by adding like below? :

CONFIG_CAN=m
CONFIG_CAN_RAW=m
CONFIG_CAN_VCAN=m
CONFIG_CAN_SLCAN=m
CONFIG_CAN_DEV=m
CONFIG_CAN_MCP251X=m

also, if i make a PR, how can i install it?
i have an esxi system, si can i can make a test envrionment ... bit how can i point to a specific commit? or do you put it in "dev" ?

@pvizeli
Copy link
Member

pvizeli commented Feb 15, 2021

@pergolafabio
Copy link
Contributor Author

ok, but if i make a PR wit these lines, you need to bring it in DEV before i can test it right?

CONFIG_CAN=m
CONFIG_CAN_RAW=m
CONFIG_CAN_VCAN=m
CONFIG_CAN_SLCAN=m
CONFIG_CAN_DEV=m

@pergolafabio
Copy link
Contributor Author

done :

#1228

@pergolafabio
Copy link
Contributor Author

merged in : #1228

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

2 participants