On 2011/10/20 10:25, rivo nurges wrote: > cdce port must be enabled before use by sending following to one > of the serial ports(should it be somehow documented in the manpage?): > > AT+CFUN=1 # enable radio > AT+CGDCONT=1,"IP","internet" # configure apn > AT*ENAP=1,1 # enable cdce port
I've committed your diff - very nice to be able to "dhclient cdce0" (and "route add default -ifp cdce0" if it doesn't pick up a route automatically) rather than mess around making a ppp session to the phone. Now I'm wondering how far to go with the manpage. It probably makes sense to at least add something like this in caveats, Index: cdce.4 =================================================================== RCS file: /cvs/src/share/man/man4/cdce.4,v retrieving revision 1.15 diff -u -p -r1.15 cdce.4 --- cdce.4 9 Nov 2011 21:49:53 -0000 1.15 +++ cdce.4 9 Nov 2011 21:56:51 -0000 @@ -144,3 +144,5 @@ Many USB devices notoriously fail to rep correctly. Undetected products might work flawlessly when their vendor and product IDs are added to the driver manually. +Some mobile data devices must be configured via AT commands on the serial +interface before they will connect cdce(4) to the mobile network. It would be handy to list the necessary commands somewhere in the manual where people can find them easily offline, but I'm not sure which section would be appropriate for that, maybe at the bottom of description? (Actually with my aspireone when I first setup ppp with this card I had a lot of trouble working out how to get AT+CFUN=1 to report anything other than ERROR, it took me "quite a while" to figure out that I had to flip the 3-way RF-kill slider towards 3G, whereas the AT commandset list for the device was relatively easy to find ;)
