On 2014-03-13, Zé Loff <zel...@zeloff.org> wrote: > Hi all > > I found out my Ericsson F3705g GSM/WCDMA modem can be configured to do > all the LCP, auth, IPCP and routing stuff automagically. A couple of AT > commands cu (radio on + connect) and a DHCP request on the cdce > interface is all it takes to get a working connection. A couple AT > commands more are needed to disconnect / disable radio.
There is no LCP/IPCP etc. with cdce, the GSM/3G terminal just acts as an ethernet-like interface instead of acting like a PPP interface. (With PPP, the session is with the terminal *not* the mobile network). > What is the better way to automate this connecting / disconnecting? > Can chat(8) be used outside ppp/pppd? Yes it can. > Anything usable by netstart?... Netstart won't try to configure cdce0 unless the device exists when it's run .. So you could do either of these: 1. modify /etc/rc to send the AT commands before netstart is run so that it can find a cdce0 device 2. create hostname.cdce0, accept that it won't be auto configured at startup, and send the AT commands and run "/etc/netstart cdce0" from rc.local 3. bodge things by putting shell commands in hostname.em0 or similar 4. just use a script which you run manually to bring up the mobile network. I prefer 1 or 4..