Page 1 of 1

Luckfox Pico Plus USB HOST ttyusb* not working

Posted: 2024-09-10 11:04
by umut
Hello everyone,
I use Luckfox pico plus. I installed Ubuntu and I can run it. I set the USB as host in the luckfox-config section. When I connect the USB and do lsusb, I can see that it is connected. I want to write code with Python and I want to enter the USB path as a parameter. Normally I should see the connection by doing ls /dev/tty* but I can't see it. What is my problem? I would be happy if you help me. My USB device is waveshare usb can-a.

Re: Luckfox Pico Plus USB HOST ttyusb* not working

Posted: 2024-09-12 1:40
by Crocodile
Hello, the Waveshare USB CAN-A converts USB to serial data via the CH340 chip, and then converts it into CAN. Therefore, you need to add the CH340 driver to the kernel. The drivers for CH341 and CH340 are universal. To enable the driver in the kernel, search for CH340 after running ./build.sh kernelconfig, and in the menuconfig, use / to search for and enable the CONFIG_USB_SERIAL and USB_SERIAL_CH341 options.