/dev/usbdevX.X를 직렬 포트로 사용할 수 없습니까?

/dev/usbdevX.X를 직렬 포트로 사용할 수 없습니까?

Lubuntu를 실행하는 Orange Pi Zero가 있고 Arduino(클론)와 통신하기를 원합니다.

방금 Arduino의 USB 케이블을 Orange Pi에 연결했습니다. 내가 연결되어 있을 때 '포트'(?)(/dev 폴더)를 비교하면 /dev/usbdev6.4가 내 Arduino라는 것을 알 수 있습니다.

내 Arduino는 직렬을 통해 매초 "안녕"이라고 말하는 코드를 실행하고 있습니다. 그래서 다음을 실행하려고 했습니다: minicom -D /dev/usbdev6.4 하지만 주목할만한 내용이 나타납니다.

나는 많은 것을 시도했지만 이제 선택의 여지가 없습니다.

누군가 나를 도와줄 수 있나요?

편집: 요청된 정보:

내 커널 버전:

Linux orangepi 3.4.39 #46 SMP PREEMPT Wed Nov 9 09:50:08 CST 2016 armv7l armv7l armv7l GNU/Linux

dmesg | grep -i tty명령은 나에게 이것을 주었다:

$[    0.000000] Kernel command line: console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 init=/sbin/init rootwait rootfstype=ext4 panic=10 consoleblank=0 enforcing=0 loglevel=7
[    0.000000] console [tty1] enabled
[    0.393385] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.505110] console [ttyS0] enabled
[    1.007724] uart1: ttyS1 at MMIO 0x1c28400 (irq = 33) is a SUNXI
[    1.111633] uart2: ttyS2 at MMIO 0x1c28800 (irq = 34) is a SUNXI
[    2.490156] Bluetooth: RFCOMM TTY layer initialized

dmesg 차이:

> [  188.338462] ehci_irq: highspeed device connect
> [  188.540136] ehci_irq: highspeed device disconnect
> [  188.540200] ohci_irq: fullspeed or lowspeed device connect
> [  188.960117] usb 6-1: new full-speed USB device number 2 using sunxi-ohci

lsusb 차이점:

> Bus 006 Device 002: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter

나는 또한 이것을 읽었습니다: https://lists.launchpad.net/kernel-packages/msg183415.html

CH341 칩 버그에 관한 것입니다. 그리고 내 클론 Arduino가 이것을 사용하고 있다고 생각합니다. 이것이 문제가 될 수 있습니까?

그랬더니 modinfo ch341다음과 같은 결과가 나왔습니다.

libkmod: ERROR ../libkmod/libkmod.c:507 kmod_lookup_alias_from_builtin_file: 
could not open builtin file '/lib/modules/3.4.39/modules.builtin.bin'
modinfo: ERROR: Module ch341 not found.

미리 감사드립니다!

답변1

그러면 답이 있습니다. USB 직렬 장치에 필요한 커널 모듈이 없습니다. 이 모듈이 포함된 최신 커널로 업그레이드하거나 커널용 모듈을 컴파일하십시오.

필요한 장치 ID( )가 이미 포함되어 있는 모듈 소스 코드 버전을 사용해야 합니다 1a86:7523. 성공적으로 설치되면 다음과 같은 결과가 나타납니다.

$ sudo modinfo ch341
filename:       /lib/modules/4.8.5/kernel/drivers/usb/serial/ch341.ko
license:        GPL
alias:          usb:v1A86p5523d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1A86p7523d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v4348p5523d*dc*dsc*dp*ic*isc*ip*in*
depends:        usbserial,usbcore
intree:         Y
vermagic:       4.8.5 SMP preempt mod_unload modversions 686 

(물론 내 시스템에 대한 것입니다). 별칭은 v1A86p7523d패치되어 존재해야 하는 별칭입니다.

관련 정보