Insert the usb dongle on rk3588 board, we can find ttyUSB1-4 and usb0 interface.
ifconfig usb0 up, then usb0 seems can obtain ipv6 addr, but no ipv4 addr. Anyone can help? thanks.
pls try
AT+CFUN=0
AT+CGDCONT=1,“ipv4v6”
AT+QICSGP=1,“IPV4V6”
AT+CFUN=1
AT+QIACT=1
AT+CGPADDR
If you still can’t get IPV4, maybe your carrier’s radio network or SIM card service doesn’t support it
Thanks for your reply.
I tried below, but something error. and still cannot obtain ipv4 addr
at+cfun=0
OK
at+cgdcont=1,“ipv4v6”
OK
AT+QICSGP=1,“IPV4V6”
ERROR
AT+QICSGP=1,“IPV4V6”
ERROR
AT+CFUN=1
OK
+CPIN: READY
+QUSIM: 1
+QIND: SMS DONE
+QIND: PB DONE
AT+CGPADDR
+CGPADDR: 1,“0.0.0.0,0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”
+CGPADDR: 2,“0.0.0.0,0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”
+CGPADDR: 3,“0.0.0.0,0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”
+CGPADDR: 4,“0.0.0.0,0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”
+CGPADDR: 5,“0.0.0.0,0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”
OK
AT+QIACT=1
OK
so,maybe your SIM service don’t support ipv6
Not ipv6.
But on Linux Desktop PC, can obtain ipv4 addr like 192.168.225.25.
Please show
lsusb -t
dmesg | grep usb0
It seems that the EM05-G is in ECM mode.
The usb0 got the ipv6 address because the Linux kernel support it.
For ipv4, you need run the DHCP client to obatin the IPv4 address for the usb0.
eg, busybox udhcpc -i usb0 or dhclient usb0
lsusb -t
Bus 005 Device 001: ID 1d6b:0002
Bus 003 Device 001: ID 1d6b:0001
Bus 002 Device 002: ID 2c7c:030e
Bus 001 Device 001: ID 1d6b:0002
Bus 006 Device 001: ID 1d6b:0003
Bus 004 Device 001: ID 1d6b:0001
Bus 002 Device 001: ID 1d6b:0002
dmesg | grep usb0
[ 32.416650] cdc_ether 2-1:1.4 usb0: register ‘cdc_ether’ at usb-fc880000.usb-1, CDC Ethernet Device, 82:30:03:77:54:04
For ipv4 it must need the dhcp client to obtain the address.
But for some OS, it might run DHCP client automatically.