为什么插入蜂窝调制解调器会创建 8 个不同的设备文件?

为什么插入蜂窝调制解调器会创建 8 个不同的设备文件?

我正在使用运行 Debian 的 BeagleBone 板。

当我插入 USB 蜂窝调制解调器时,会在文件夹中创建以下文件/devttyACM0ttyACM1ttyACM2ttyACM3ttyModem0ttyModem1ttyModem2ttyModem3

我找不到足够的信息。它如何以及为什么创建所有这些文件?

这些文件是特定于调制解调器的,还是属于内核一部分的通用文件?

当我插入设备时 dmesg 输出:

 new high-speed USB device number 4 using musb-hdrc
[  663.611026] usb 1-1.1: New USB device found, idVendor=1e2d, 
idProduct=005b
[  663.611046] usb 1-1.1: New USB device strings: Mfr=1, Product=2, 
SerialNumber=0
[  663.611053] usb 1-1.1: Product: ELSx
[  663.611059] usb 1-1.1: Manufacturer: Cinterion Wireless Modules
[  663.651549] cdc_acm 1-1.1:1.0: ttyACM0: USB ACM device
[  663.659983] cdc_acm 1-1.1:1.2: ttyACM1: USB ACM device
[  663.668360] cdc_acm 1-1.1:1.4: ttyACM2: USB ACM device
[  663.679311] cdc_acm 1-1.1:1.6: ttyACM3: USB ACM device
[  663.689635] cdc_acm 1-1.1:1.8: ttyACM4: USB ACM device
[  663.708738] cdc_ether 1-1.1:1.10 usb0: register 'cdc_ether' at usb-musb- 
hdrc.1-1.1, CDC Ethernet Device, fa:96:11:12:13:14
[  663.718331] cdc_ether 1-1.1:1.10 usb0: kevent 12 may have been dropped
[  663.734877] cdc_ether 1-1.1:1.12 usb1: register 'cdc_ether' at usb-musb- 
hdrc.1-1.1, CDC Ethernet Device, fa:96:11:12:13:16
[  663.838982] 8021q: 802.1Q VLAN Support v1.8
[  663.863935] cdc_ether 1-1.1:1.10 usb0: kevent 12 may have been dropped
[  663.870702] cdc_ether 1-1.1:1.10 usb0: kevent 12 may have been dropped
[  663.914471] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready

答案1

/dev/ttyACMX是子类型“抽象控制模型”(ACM)的USB通信设备(CDC)。

据我所知,每个都是相应 GSM 调制解调器ttyACMX的别名。ttyModemX

相关内容