HL8548 - USB connection


#1

I want setup internet connection using USB interface. I found a tutorial for HL75xx.
Does exist a similar tutorial for HL85xx?


#2

Hi sertone,

Here’s an example using the USB CDC-ECM in HL8548 for your reference.

AT+KUSBCOMP=1 //3 CDC-ACM and 3 CDC-ECM mode, (PID: 0x0302)
OK
AT+CFUN=1,1
OK
AT+CGDCONT=1,“IP”,“UNINET” // 1
OK
AT+XDNS=1,1 //1 Enable dynamic DNS request (IPv4)
OK
AT+XCEDATA=1,1 //<ECM_id>: 2 (Range of values is from 0 – 2)
OK
AT+XDNS?
+XDNS: 1, “120.80.80.80”, “221.5.88.88”
OK
AT+CGDCONT?
+CGDCONT: 1,“IP”,“UNINET”,“10.79.159.99”,0,0
OK

Then check and you can ping internet with it.
ifconfig
eth2 Link encap:Ethernet HWaddr 00:00:11:12:13:16
inet addr:10.79.159.99 Bcast:10.65.255.255 Mask:255.255.0.0
inet6 addr: fe80::200:11ff:fe12:1316/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1440 (1.4 KB) TX bytes:12689 (12.6 KB)
RX bytes:0 (0.0 B) TX bytes:690 (690.0 B)