以太网控制模型(Ethernet Networking Control Model) 用于在设备和主机之间传输以太网数据包。
在操作系统看来,CDC ECM设备就是一个虚拟以太网卡,包含标准网卡需要的MAC地址和IP地址。
CDC ECM设备通常是一个以太网卡,用于连接LAN或者是WLAN
USB CDC-ACM (Abstract Control Model), CDC-ECM (Ethernet Networking Control Model), CDC-NCM (Network Control Model),OBEX (Object Exchange) and WCM-Device Management USB class and function drivers
/lib/modules/$(uname -r)/kernel/drivers/usb/class目录下看到cdc-acm.ko文件。
CDC-NCM(Network Control Model).
RNDIS- provides CDC like communication capabilities on Windows PCs supporting the Microsoft RNDIS protocol. Please refer to theRNDISwebpage for more info.
ACM - Abstract Communication Model
ECM - Ethernet Control Module
NCM - Network Control Model
OBEX - Object Exchange Function Model
WMC - Device management Function Model
The CDC ACM driver exposes the USB device as a virtual modem or a virtual COM port to the operating system.
The driver enables sending both data and AT commands, either through ACM (separating data and AT commands over different channels) or through Serial Emulation (passing the AT commands as is and as part of the data stream).
The ECM (Ethernet Networking Control Model) protocol is used for exchanging Ethernet-framed data between the device and host. A CDC ECM compliant device exposes itself as a virtual NIC to the host operating system. The NIC is assigned with a MAC and an IP address.
A general use case of a CDC ECM device is a point-to-point Ethernet adapter to a LAN/WLAN.
The NCM (Network Control Model) protocol is used for exchanging High Speed Ethernet-framed data between the device and host. A CDC NCM compliant device exposes itself as a virtual NIC to the host operating system. The NIC is assigned with a MAC and an IP address.
A general use case of a CDC NCM device is a Wireless Network Adapter which supports 3.5G/4G networks such as: HSPA+ and LTE.