The ttyUSB devices for USB-to-serial conversion may exhibit variations across different kernel versions, impacting the compatibility of 3G dongles. Specifically, the /dev/ttyUSB paths for the same DONGLE may differ on machines with distinct kernel versions. To address this, modifications are essential in the Android upper layer, focusing on adapting the AT port and modem port for 3G dongles. These adjustments are made in the hardware/ril-rk29-dataonly/modem_list.h file. Taking the Huawei DONGLE with PID 0X14AC as a case study, the 3.10 kernel produces the following serial devices upon invoking the USB-to-serial driver: /dev/ttyUSB2 (AT port), /dev/ttyUSB1 (USER DIAG port), and /dev/ttyUSB0 (Modem port). For seamless data internet services, inclusion of both AT and modem ports in the s_support_modem_lists support list is imperative. For PID 0x14AC, this involves specifying TTYUSB2 and TTYUSB0: { {0x12D1, 0x14AC, "E1820"}, "E1820", RADIO_TYPE_WCDMA, TTYUSB2, TTYUSB0, 115200.
暂无评论