console:/dev # cat ttyUSB1 &
console:/dev # echo AT > ttyUSB1
20240921在友善之臂的NanoPC-T6开发板上确认宸芯的数传模块CX6602N的AT命令
2024/9/21 21:03
【必须】Android12/Linux(Buildroot)都必须要!
4、【Android12默认打开USB转以太网卡了!】
Y:\3588a12\kernel-5.10\arch\arm64\configs\rockchip_defconfig
CONFIG_PPPOE=y
CONFIG_PPTP=y
CONFIG_PPPOL2TP=y
CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=y
CONFIG_USB_CATC=y
CONFIG_USB_KAWETH=y
CONFIG_USB_PEGASUS=y
CONFIG_USB_RTL8150=y
CONFIG_USB_RTL8152=y
CONFIG_USB_USBNET=y
CONFIG_USB_NET_CDC_EEM=y
CONFIG_USB_NET_CDC_MBIM=y
CONFIG_USB_NET_DM9601=y
CONFIG_USB_NET_SMSC75XX=y
CONFIG_USB_NET_SMSC95XX=y
CONFIG_USB_NET_GL620A=y
CONFIG_USB_NET_PLUSB=y
CONFIG_USB_NET_MCS7830=y
CONFIG_USB_NET_RNDIS_HOST=y
CONFIG_USB_ALI_M5632=y
CONFIG_USB_AN2720=y
CONFIG_USB_EPSON2888=y
CONFIG_USB_KC2190=y
CONFIG_USB_NET_CX82310_ETH=y
CONFIG_USB_NET_KALMIA=y
CONFIG_USB_NET_QMI_WWAN=y
CONFIG_USB_HSO=y
CONFIG_USB_NET_INT51X1=y
CONFIG_USB_IPHETH=y
CONFIG_USB_SIERRA_NET=y
# CONFIG_WLAN_VENDOR_ADMTEK is not set
# CONFIG_WLAN_VENDOR_ATH is not set
# CONFIG_WLAN_VENDOR_ATMEL is not set
5、打开这里生成4个设备节点:/dev/ttyUSB*
Y:\3588a12\kernel-5.10\drivers\usb\serial\generic.c
static __u16 vendor = 0x05f9;
static __u16 product = 0xffff;
修改为:
static __u16 vendor = 0x18d1;
static __u16 product = 0x181f;
串口的AT命令测试:
console:/dev #
console:/dev #
console:/dev # ls -l ttyUSB*
crw-rw---- 1 radio radio 188, 0 2024-09-21 06:51 ttyUSB0
crw-rw---- 1 radio radio 188, 1 2024-09-21 06:51 ttyUSB1
crw-rw---- 1 radio radio 188, 2 2024-09-21 06:51 ttyUSB2
crw-rw---- 1 radio radio 188, 3 2024-09-21 06:51 ttyUSB3
crw-rw---- 1 radio radio 188, 4 2024-09-21 06:51 ttyUSB4
console:/dev #
console:/dev #
console:/dev # cat ttyUSB1 &
[1] 2112
console:/dev # echo AT > ttyUSB1
console:/dev #
OK
ERROR
ERROR
+CME ERROR: 100
ERROR
ERROR
参考资料:
https://blog.csdn.net/W_B_C/article/details/134123558
【RK3588 开发笔记——wifi蓝牙调试】
测试串口
将RX、TX短接,进行回环测试,
在adb root 、adb shell下执行:cat /dev/ttyS6 & echo 123 > /dev/ttyS6