This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

3G modem support in android ICS on AM37x

HI TI

 

Am using AM37x and a customised board based on that.

i am trying 3gusb modem on android :

Check list :

1) Kernel Configuration for USB Modem  is done

2) File System Changes  as stated is done

3)When modem plugged i get :

root@androidsys/class/gpio # [ 90.837127] usb 1-1.1: new full-speed USB device number 3 using musb-hdrc
[ 90.973541] usb 1-1.1: New USB device found, idVendor=12d1, idProduct=1436
[ 90.980743] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 90.988372] usb 1-1.1: Product: HUAWEI Mobile
[ 90.993011] usb 1-1.1: Manufacturer: HUAWEI Technology
[ 91.021240] option 1-1.1:1.0: GSM modem (1-port) converter detected
[ 91.028289] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
[ 91.040740] option 1-1.1:1.1: GSM modem (1-port) converter detected
[ 91.047760] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB1
[ 91.056671] option 1-1.1:1.2: GSM modem (1-port) converter detected
[ 91.063659] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB2


4)But when i run the script :

   /system/bin/pppd /dev/ttyUSB0 115200 persist defaultroute usepeerdns updetach crtscts noauth debug connect "/system/xbin/chat -v -s -f /system/etc/ppp/airtel.chat"

i get :
g connect "/system/xbin/chat -v -s -f /system/etc/ppp/airtel.chat" <
sh: /system/xbin/chat: No such file or directory

but i have chat in /system/xbin/chat

# ls -ln system/xbin/chat
-rwxrwxrwx 0 0 91185 2013-02-04 13:14 chat


Kindly help me in this !
Running out of deadline !

Thanks in advance
ROHIT

  • Hi,

    I use conf file - it is a little bit less messy and maybe the content will help.

    /system/bin/pppd file /conf_file

    ------conf file 

    /dev/ttyUSB2

    115200

    nocrtscts

    nocdtrcts

    show-password

    nodetach

    connect '/system/bin/chat -s -v  -f /etc/ppp/chatScripts/gprs-chat-up'

    ipcp-accept-local

    ipcp-accept-remote

    disconnect '/system/bin/chat -v -s -f /etc/ppp/chatScripts/gprs-chat-down'

    defaultroute

    logfile /system/etc/ppp/ppp.log

    debug

    maxfail 1

    linkname ppp0

    usepeerdns

    0.0.0.0:0.0.0.0

    ------conf end 

    other thing: I tried something like this:

    /system/etc/ppp # /system/bin/pppd /dev/ttyO2 115200 dump linkname ppp0 defaultr
    oute usepeerdns nomagic nodetach crtscts debug novj maxfail 1 0.0.0.0: connect
    "/system/bin/ychat -v -s -f /etc/ppp/chatScripts/gprs-chat-up"
    timeout set to 3 seconds
    abort on (\nBUSY\r)
    abort on (\nERROR\r)
    abort on (\nNO ANSWER\r)
    abort on (\nNO CARRIER\r)
    abort on (\nNO DIALTONE\r)
    abort on (\nRINGING\r\n\r\nRINGING\r)
    send (AT^M)
    send (AT^M)
    send (AT^M)
    send (AT^M)
    send (AT^M)
    send (AT^M)
    timeout set to 12 seconds
    send (AT^M)
    send (AT^M)
    send (AT^M)
    expect (OK)

    I named chat "ychat" because of busybox link. 

    But it is very strange - you should not see such error and your pppd options looks ok.

    My pppd is pppd version 2.4.3.  

    Is your chat ok if you start it from shell (alone) ?

     

  • Hi Rohit

    you again compile your chat binary .

    Regards,

    shakti tiwari