The dmesg show that USB1 till USB3 are the serial ports used by your 3G modem so why do you use USB0 for pppd?
With the 3G modem I use; USB(n) = AT channel, USB(n+2) is the status channel, USB(n+1) should be the data channel. On Tue, Oct 18, 2011 at 9:29 AM, suman ranjan <[email protected]>wrote: > We are trying to bring up 3G using USB Interface. > > Setup: > > Platform: OMAP 3730 > Kernel: 2.6.32 > OS: Android froyo (Rowboat release from TI) > 3G hardware: Leoxsys > 3G service provider: Airtel India > *No RF chip to support GSM Voice call on our device. > > **We have tested the 3G hardware on PC and it is working fine. > **We are able to browse internet through LAN connection on our device. > > Steps we followed to bring up the 3G on our board: > > 1. Enabled "ppp" and USB modem support in the kernel. > > 2. When we plug the 3G USB hardware on to our device, we get below > logs: > > usb 2-2.4: new full speed USB device using ehci-omap and address 5 > usb 2-2.4: New USB device found, idVendor=1614, idProduct=0800 > usb 2-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 > usb 2-2.4: Product: USB MMC Storage > usb 2-2.4: Manufacturer: Qualcomm, Incorporated > scsi2 : usb-storage 2-2.4:1.0 > usb 2-2.4: USB disconnect, address 5 > usb 2-2.4: new full speed USB device using ehci-omap and address 6 > usb 2-2.4: New USB device found, idVendor=1614, idProduct=0800 > usb 2-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 > usb 2-2.4: Product: HSUPA USB Modem > usb 2-2.4: Manufacturer: HSUPA USB Modem > option 2-2.4:1.0: GSM modem (1-port) converter detected > usb 2-2.4: GSM modem (1-port) converter now attached to ttyUSB1 > option 2-2.4:1.1: GSM modem (1-port) converter detected > usb 2-2.4: GSM modem (1-port) converter now attached to ttyUSB2 > option 2-2.4:1.2: GSM modem (1-port) converter detected > usb 2-2.4: GSM modem (1-port) converter now attached to ttyUSB3 > scsi3 : usb-storage 2-2.4:1.3 > scsi 3:0:0:0: CD-ROM HSDPA MMC Storage 2.31 PQ: 0 > ANSI: 2 > > > --> Assume the USB support is enabled properly in the kernel. > > 3. We are using chat binary with the script mentioned below(we are > using stripped down version of chat script): > > -------------------- dialtest.chat ------------------- > > TIMEOUT 10 > '' AT > OK ATE1 > OK AT+CGDCONT=1,"IP","airtelgprs.com" > OK "ATD*99#" > CONNECT '' > > 4. We are running the "pppd" demon from the command line as below: > > /system/bin/pppd /dev/ttyUSB0 115200 persist defaultroute usepeerdns - > detach crtscts noauth debug connect "/system/bin/chat -v -s -f /system/ > etc/ppp/dialtest.chat" > > > Observation: > > We are not able to connect to the internet using 3G USB. > > Please help us out to resolve this issue. > > ---------------------------------------------------- > Logs---------------------------------------------------- > > > # /system/bin/pppd /dev/ttyUSB0 115200 persist defaultroute usepeerdns > -detach crtscts noauth debug connect "/system/bin/chat -v -s -f / > system/etc/ppp/dialtest.chat" > > timeout set to 10 seconds > send (AT^M^M) > expect (OK) > AT^M^M > OK > -- got it > > send (ATE1^M^M) > expect (OK) > ^M > ATE1^M^M > OK > -- got it > > send (AT+CGDCONT=1,"IP","airtelgprs.com"^M^M) > expect (OK) > ^M > AT+CGDCONT=1,"IP","airtelgprs.com"^M^M > OK > -- got it > > send (ATD*99#^M) > expect (^M) > ^M > -- got it > > send (CONNECT^M) > send (^M^M) > I/pppd ( 1511): Serial connection established. > D/pppd ( 1511): using channel 1 > I/ethernet( 887): recvmsg get data > I/ethernet( 887): event :16 found > I/ethernet( 887): the device flag :1090 > I/ethernet( 887): Done parsing > I/ethernet( 887): poll state :, left:4096 > I/ethernet( 887): Poll events from ethernet devices > I/EthernetMonitor( 887): get event > I/EthernetMonitor( 887): go poll events > I/pppd ( 1511): Using interface ppp0 > I/pppd ( 1511): Connect: ppp0 <--> /dev/ttyUSB0 > I/ethernet( 887): recvmsg get data > I/ethernet( 887): event :16 found > I/ethernet( 887): the device flag :1090 > I/ethernet( 887): Done parsing > I/ethernet( 887): poll state :, left:4096 > I/ethernet( 887): Poll events from ethernet devices > I/EthernetMonitor( 887): get event > I/EthernetMonitor( 887): go poll events > D/Tethering( 887): ppp0 is not a tetherable iface, ignoring > D/pppd ( 1511): sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic > 0xf7f79df2> <p > comp> <accomp>] > D/pppd ( 1511): rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap > MD5> <magi > c 0x19da62a> <pcomp> <accomp>] > D/pppd ( 1511): No auth is possible > D/pppd ( 1511): sent [LCP ConfRej id=0x0 <auth chap MD5>] > D/pppd ( 1511): rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic > 0xf7f79df2> <p > comp> <accomp>] > D/pppd ( 1511): rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic > 0x19da62a> <pc > omp> <accomp>] > D/pppd ( 1511): sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic > 0x19da62a> <pc > omp> <accomp>] > D/pppd ( 1511): sent [CCP ConfReq id=0x1 <deflate 15> > <deflate(old#) 15> <bsd > v1 15>] > D/pppd ( 1511): sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr > 0.0.0.0> > <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>] > D/pppd ( 1511): rcvd [LCP DiscReq id=0x2 magic=0x19da62a] > D/pppd ( 1511): rcvd [LCP ProtRej id=0x3 80 fd 01 01 00 0f 1a 04 78 > 00 18 04 > 78 00 15 03 2f] > D/pppd ( 1511): rcvd [IPCP ConfNak id=0x1 <ms-dns1 10.11.12.13> <ms- > dns3 10.1 > 1.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>] > D/pppd ( 1511): sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr > 0.0.0.0> > <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>] > D/pppd ( 1511): rcvd [IPCP ConfNak id=0x2 <ms-dns1 10.11.12.13> <ms- > dns3 10.1 > 1.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>] > D/pppd ( 1511): sent [IPCP ConfReq id=0x3 <compress VJ 0f 01> <addr > 0.0.0.0> > <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>] > D/pppd ( 1511): rcvd [IPCP ConfReq id=0x0] > D/pppd ( 1511): sent [IPCP ConfNak id=0x0 <addr 0.0.0.0>] > D/pppd ( 1511): rcvd [IPCP ConfRej id=0x3 <compress VJ 0f 01>] > D/pppd ( 1511): sent [IPCP ConfReq id=0x4 <addr 0.0.0.0> <ms-dns1 > 10.11.12.13 > > <ms-dns3 10.11.12.14>] > D/pppd ( 1511): rcvd [IPCP ConfReq id=0x1] > D/pppd ( 1511): sent [IPCP ConfAck id=0x1] > D/pppd ( 1511): rcvd [IPCP ConfNak id=0x4 <addr 110.225.250.78> <ms- > dns1 202. > 56.230.5> <ms-dns3 202.56.230.6>] > D/pppd ( 1511): sent [IPCP ConfReq id=0x5 <addr 110.225.250.78> <ms- > dns1 202. > 56.230.5> <ms-dns3 202.56.230.6>] > D/pppd ( 1511): rcvd [IPCP ConfAck id=0x5 <addr 110.225.250.78> <ms- > dns1 202. > 56.230.5> <ms-dns3 202.56.230.6>] > W/pppd ( 1511): Could not determine remote IP address: defaulting > to 10.64.64 > .64 > I/ethernet( 887): recvmsg get data > I/ethernet( 887): event :20 found > I/ethernet( 887): the device flag :10008 > I/ethernet( 887): Done parsing > I/ethernet( 887): poll state :, left:4096 > I/ethernet( 887): Poll events from ethernet devices > I/ethernet( 887): recvmsg get data > I/ethernet( 887): event :21 found > I/ethernet( 887): the device flag :10008 > I/ethernet( 887): Done parsing > I/ethernet( 887): poll state :, left:4096 > I/pppd ( 1511): local IP address 110.225.250.78 > I/pppd ( 1511): remote IP address 10.64.64.64 > I/pppd ( 1511): primary DNS address 202.56.230.5 > I/pppd ( 1511): secondary DNS address 202.56.230.6 > I/ethernet( 887): Poll events from ethernet devices > I/ethernet( 887): recvmsg get data > I/ethernet( 887): event :20 found > I/ethernet( 887): the device flag :10008 > I/ethernet( 887): Done parsing > I/ethernet( 887): poll state :, left:4096 > I/ethernet( 887): Poll events from ethernet devices > I/ethernet( 887): recvmsg get data > I/ethernet( 887): event :16 found > I/ethernet( 887): the device flag :1090 > I/ethernet( 887): Done parsing > I/ethernet( 887): poll state :, left:4096 > I/ethernet( 887): Poll events from ethernet devices > I/ethernet( 887): recvmsg get data > I/ethernet( 887): event :16 found > I/ethernet( 887): the device flag :110D1 > I/ethernet( 887): Done parsing > I/ethernet( 887): poll state :, left:4096 > I/ethernet( 887): Poll events from ethernet devices > I/EthernetMonitor( 887): get event > I/EthernetMonitor( 887): go poll events > I/EthernetMonitor( 887): get event > I/EthernetMonitor( 887): go poll events > I/EthernetMonitor( 887): get event > I/EthernetMonitor( 887): go poll events > I/EthernetMonitor( 887): get event > I/EthernetMonitor( 887): go poll events > I/EthernetMonitor( 887): get event > I/EthernetMonitor( 887): go poll events > > > -------------------------------------------------------------------------------------------------------- > > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-porting > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
