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.

How to make CDMA 3G USB CARD functional?

Other Parts Discussed in Thread: AM3517


Processor: AM3517
TI Android DevKit version: TI-Android-GingerBread-2.3-DevKit-1.0
Platform: custom board
CARD type: ETCOM E300 CDMA2000
Tests:
1. I compiled an arm tool chat and push it to /system/bin.
2. copy file /system/etc/ppp/peer/evdo

Content of evdo:
----------------------
#/etc/ppp/peers/evdo
# Usage:   root>pppd call evdo
/dev/ttyUSB1
9600
crtscts
modem
debug
nodetach
usepeerdns
noipdefault
defaultroute
user "card"
password "card"
0.0.0.0:0.0.0.0
connect '/system/bin/chat -s -v -f /system/etc/ppp/chat/evdo-connect-chat'
#disconnect '/usr/sbin/chat -s -v -f /root/evdo-disconnect-chat'
3. copy file /system/etc/ppp/chat/evdo-connect-chat
Content of evdo-connect-chat:
-----------------------------------------
#/etc/ppp/evdo-connect-chat
# chat script for China Mobile, used ETCOM CDMA module.
TIMEOUT     15
ABORT       "DELAYED"
ABORT       "BUSY"
ABORT       "ERROR"
ABORT       "NO DIALTONE"
ABORT       "NO CARRIER"
TIMEOUT     30
''          \rAT
OK          ATS0=0
OK          ATE0V1
OK          at\^prefmode=8
OK          ATDT#777
CONNECT     ''
4. type in the command line
#pppd call evdo
Logs on the console:
# pppd call evdo
timeout set to 15 seconds
abort on (DELAYED)
abort on (BUSY)
abort on (ERROR)
abort on (NO DIALTONE)
abort on (NO CARRIER)
timeout set to 30 seconds
send (^MAT^M)
expect (OK)
AT^M^M
OK
 -- got it

send (ATS0=0^M)
expect (OK)
^M
ATS0=0^M^M
OK
 -- got it

send (ATE0V1^M)
expect (OK)
^M
ATE0V1^M^M
OK
 -- got it

send (at\^prefmode=8^M)
expect (OK)
^M
^M
OK
 -- got it

send (ATDT#777^M)
expect (CONNECT)
^M
^M
^M
^M
CONNECT
 -- got it

send (^M)

5. check the network status by netcfg

# netcfg
netcfg
lo       UP    127.0.0.1       255.0.0.0       0x00000049
can0     DOWN  0.0.0.0         0.0.0.0         0x00000080
eth0     DOWN  0.0.0.0         0.0.0.0         0x00001002
ppp0     UP    27.128.136.51   255.255.255.255 0x000010d1

6. So driver and hardware should be of no problem, and network is connected now.
7. How to set 3g function in android? How to make it work?

8. logcat -b radio:
# logcat -b radio
logcat -b radio
I/RIL     (  863): Opening tty device /dev/ttyUSB1
I/PHONE   ( 1030): Network Mode set to 0
I/PHONE   ( 1030): Cdma Subscription set to 1
I/PHONE   ( 1030): Creating GSMPhone
I/RILJ    ( 1030): Connected to 'rild' socket
I/RILC    (  863): libril: new connection
D/RILC    (  863): [UNSL]< UNSOL_RESPONSE_RADIO_STATE_CHANGED  {RADIO_UNAVAILABL
E}
I/RILC    (  863): RIL Daemon version: android reference-ril 1.0
D/RILJ    ( 1030): [UNSL]< UNSOL_RESPONSE_RADIO_STATE_CHANGED RADIO_UNAVAILABLE
D/PHONE   ( 1030): mDoesRilSendMultipleCallRing=true
D/PHONE   ( 1030): mCallRingDelay=3000
W/GSM     ( 1030): Can't open /system/etc/voicemail-conf.xml
W/GSM     ( 1030): Can't open /system/etc/spn-conf.xml
D/GSM     ( 1030): [DSAC DEB] registerForPsRestrictedEnabled
D/GSM     ( 1030): [DSAC DEB] registerForPsRestrictedDisabled
D/GSM     ( 1030): [GsmDataConnection-1] DataConnection constructor E
D/GSM     ( 1030): [GsmDataConnection-1] clearSettings
D/GSM     ( 1030): [GsmDataConnection-1] DataConnection constructor X
D/GSM     ( 1030): [GsmDataConnection-1] Made GsmDataConnection-1
D/RILJ    ( 1030): [0000]> RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
D/STK     ( 1030): StkService: StkService: is running
D/STK     ( 1030): StkService: NEW sInstance
D/RILJ    ( 1030): WAKE_LOCK_TIMEOUT  mReqPending=1 mRequestList=0
D/RILC    (  863): [0000]> REPORT_STK_SERVICE_IS_RUNNING
D/RIL     (  863): onRequest: REPORT_STK_SERVICE_IS_RUNNING
D/RILC    (  863): [0000]< REPORT_STK_SERVICE_IS_RUNNING fails by E_RAIDO_NOT_AV
AILABLE
D/RILJ    ( 1030): [0000]< RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING error: com.
android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
D/RILJ    ( 1030): [0001]> GET_CURRENT_CALLS
D/RILJ    ( 1030): WAKE_LOCK_TIMEOUT  mReqPending=1 mRequestList=0
E/GSM     ( 1030): Wrong network type: 0
E/GSM     ( 1030): Wrong network type: 0
D/GSM     ( 1030): Poll ServiceState done:  oldSS=[1 home null null null  Unknow
n CSS not supported 0 0RoamInd: 0DefRoamInd: 0EmergOnly: false] newSS=[1 home nu
ll null null  Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly:
 false] oldGprs=1 newGprs=1 oldType=unknown newType=unknown
D/RILC    (  863): [0001]> GET_CURRENT_CALLS
D/RIL     (  863): onRequest: GET_CURRENT_CALLS
D/RILC    (  863): [0001]< GET_CURRENT_CALLS fails by E_RAIDO_NOT_AVAILABLE
D/RILJ    ( 1030): [0001]< GET_CURRENT_CALLS error: com.android.internal.telepho
ny.CommandException: RADIO_NOT_AVAILABLE
D/GSM     ( 1030): [GsmDataConnection-1] DcInactiveState: msg.what=EVENT_RESET,
ignore we're already reset
D/GSM     ( 1030): [GsmDataConnection-1] NotifyDisconnectCompleted
D/GSM     ( 1030): [DataConnection] Stop poll NetStat
D/GSM     ( 1030): [GsmDataConnection-1] clearSettings
D/GSM     ( 1030): [DataConnection] Stop poll NetStat
D/GSM     ( 1030): [DSAC DEB] trySetupData with mIsPsRestricted=false
D/GSM     ( 1030): [IccCard] Broadcasting intent ACTION_SIM_STATE_CHANGED NOT_RE
ADY reason null
D/RILJ    ( 1030): [0002]> SCREEN_STATE: true
D/RILJ    ( 1030): WAKE_LOCK_TIMEOUT  mReqPending=1 mRequestList=0
D/RILC    (  863): [0002]> SCREEN_STATE (1)
D/RIL     (  863): onRequest: SCREEN_STATE
D/RILC    (  863): [0002]< SCREEN_STATE fails by E_RAIDO_NOT_AVAILABLE
D/RILJ    ( 1030): [0002]< SCREEN_STATE error: com.android.internal.telephony.Co
mmandException: RADIO_NOT_AVAILABLE
D/GSM     ( 1030): [DataConnection] Stop poll NetStat

Is anybody working on the same problem?

 

Thanks,

Kevin

  • We do not currently support GSM/GPRS modem with our DevKit..

    However let me offer some thoughts based on your logs:
    - Have you ported the RIL as per your modem specs?
    - The error in your logs is 'RADIO NOT AVAILABLE', you may be able to trace back from the sources as to the origin of this error.

     

    We are unable to help beyond this. However you may ask  at our community forum at rowboat: http://groups.google.com/group/rowboat

    Some of our rowboat community members have reported that they have their modems working with our Android DevKit sources.