"Giuseppe Lippolis" <giu.lippo...@gmail.com> writes: > Currently I'm able to establish a connection setting the interface in > "manual" mode. > > To do this I setup an usb interface > > config interface 'wan3g' > option ifname 'usb0' > option proto 'dhcp' > > then I need to send manually the following command to the /dev/ttyUSB0 to > establish the 3G connection: > > AT+CFUN=1 > AT+CPIN="<SIM PIN>" > AT+CREG? > > +CREG: 2,1,"1CE3","0BCA3360",6 (6=UTRAN w/HSDPA and HSUPA) > AT+CGDCONT=1,"IP","<APN>",0,0 > AT+CGACT=1,1 > AT+CGACT? > AT+CGPADDR=1 > >> +CGPADDR: 1, "109.42.15.170" > AT+CGPRCO? > >> +CGPRCO: 1, "139.7.30.126", "139.7.30.125", "", "" > AT+CGDATA="M-MBIM",1,1
Nice. The "M-MBIM" is a bit confusing, though. This doesn't seem to have anything to do with MBIM? > at this point the IF is UP and working: > usb0 Link encap:Ethernet HWaddr 02:00:FF:AA:AA:AA > inet addr:109.42.15.170 Bcast:109.42.15.171 Mask:255.255.255.252 > inet6 addr: fe80::ffff:feaa:aaaa/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:314 errors:0 dropped:0 overruns:0 frame:0 > TX packets:360 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:29855 (29.1 KiB) TX bytes:33129 (32.3 KiB) > > > Can someoune help me in introduce the handling of this "protocol" in LEDE? See e.g the 'directip' or 'ncm' protocols implemented in the comgt package. They are very similar, using AT commands to manage a network interface. It should be possible to use the same tricks as in proto_directip_setup() to map between serial device and network device for example. Bjørn _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev