Hi,guys:
I am porting android to smdk6410.now I want to send mms,but the
datacall can not be setup.
My wireless module is Huawei EM770W,the rild.libargs=-d /dev/ttyUSB0.
When apns-conf.xml is not added in system/etc/,the system can dial a
phone and send a sms;while apns-conf.xml is add ,I can see the GPRS
flag the topbar,but the signal state become gray which means that it
is connected but the signal is zero.
the LAST lines of logcat -b radio :
1592 D/GSM ( 811): [GsmDataConnectionTracker] Setup waitngApns :
[CU-3gnet-setting, 35, 46001, 3gnet, 10.0.0.172, mm
sc.myuni.com.cn, null, null, 80, -1, default]
1593 D/GSM ( 811): [PdpConnection] DataConnection.getState()
1594 D/GSM ( 811): [PdpConnection] Connecting to carrier:
'CU-3gnet-setting' APN: '3gnet' proxy: '10.0.0.172' port: '80
1595 D/RILJ ( 811): [0059]> SETUP_DATA_CALL 1 0 3gnet null null 0
1596 D/GSM ( 811): [GsmDataConnectionTracker] setState: INITING
1597 D/RIL ( 866): onRequest: SETUP_DATA_CALL
1598 D/RIL ( 866): requesting data connection to APN '3gnet'
1599 D/AT ( 866): AT> AT+CGDCONT=1,"IP","3gnet",,0,0
1600 D/AT ( 866): AT+CGDCONT=1,"IP","3gnet",,0,0
1601 D/AT ( 866):
1602 D/AT ( 866):
1603 D/AT ( 866): OK
1604 D/AT ( 866):
1605 D/AT ( 866): AT< OK
1606 D/AT ( 866): AT> AT+CGQREQ=1
1607 D/AT ( 866): AT+CGQREQ=1
1608 D/AT ( 866):
1609 D/AT ( 866):
1610 D/AT ( 866): OK
1611 D/AT ( 866):
1612 D/AT ( 866): AT< OK
1613 D/AT ( 866): AT> AT+CGQMIN=1
1614 D/AT ( 866): AT+CGQMIN=1
1615 D/AT ( 866):
1616 D/AT ( 866):
1617 D/AT ( 866): OK
1618 D/AT ( 866):
1619 D/AT ( 866): AT< OK
1620 D/AT ( 866): AT> AT+CGEREP=1,0
1621 D/AT ( 866): AT+CGEREP=1,0
1622 D/AT ( 866):
1623 D/AT ( 866):
1624 D/AT ( 866): OK
1625 D/AT ( 866):
1626 D/AT ( 866): AT< OK
1627 D/AT ( 866): AT> AT+CGACT=1,0
1628 D/AT ( 866): AT+CGACT=1,0
##############Question1:the wireless module can't support AT+CGACT,so
errer appears,should I delete this AT command in reference-ril.c?
1629 D/AT ( 866):
1630 D/AT ( 866):
1631 D/AT ( 866): ERROR
1632 D/AT ( 866):
1633 D/AT ( 866): AT< ERROR
1634 D/AT ( 866): AT> ATD*99***1#
1635 D/AT ( 866): ATD*99***1#
1636 D/AT ( 866):
1637 D/AT ( 866):
1638 D/AT ( 866): CONNECT
1639 D/AT ( 866):
1640 D/AT ( 866): AT< CONNECT
1641 D/RILJ ( 811): [0059]< SETUP_DATA_CALL {1, /dev/ppp}
##############Question2:How to set PPP_TTY_PATH in reference-ril.c
Whether set it to /dev/ttyUSB0 or /
dev/ppp,they are the same ouput.
1642 D/GSM ( 811): [PdpConnection] DataConnection.handleMessage()
1643 D/GSM ( 811): [PdpConnection] Notify PDP success at
1277885295801
1644 D/GSM ( 811): [PdpConnection] PDP setup on cid = 1
1645 D/GSM ( 811): GSMDataConnTrack handleMessage { what=1
when=61103 arg1=1 obj=android.os.asyncres...@43c2a1d8 }
1646 D/GSM ( 811): [GsmDataConnectionTracker] setState: CONNECTED
##############can you see it ?it is connected
1647 D/GSM ( 811): [DataConnection] Start poll NetStat
1648 D/RILJ ( 811): [0060]> SCREEN_STATE: true
1649 D/RIL ( 866): onRequest: SCREEN_STATE
1650 D/RILJ ( 811): [0060]< SCREEN_STATE error:
com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
1651 D/GSM ( 811): [DataConnection] Stop poll NetStat
1652 D/GSM ( 811): [DataConnection] Start poll NetStat
1653 D/RILJ ( 811): WAKE_LOCK_TIMEOUT mReqPending=0
mRequestList=1
1654 D/RILJ ( 811): 0: [9] SET_NETWORK_SELECTION_AUTOMATIC
1655 D/RILJ ( 811): [0061]> SIGNAL_STRENGTH
1656 D/RIL ( 866): onRequest: SIGNAL_STRENGTH
1657 D/AT ( 866): AT> AT+CSQ
1658 D/AT ( 866): AT+CSQ
##############Question3:No response after AT+CSQ ,but before apns-
conf.xml being added ,I can see the response "D/AT ( 688): +CSQ:
14,99 ",so Why?Wrong PPP_TTY_PATH? pppd not started?
1659 D/RILJ ( 811): WAKE_LOCK_TIMEOUT mReqPending=0
mRequestList=2
1660 D/RILJ ( 811): 0: [9] SET_NETWORK_SELECTION_AUTOMATIC
1661 D/RILJ ( 811): 1: [61] SIGNAL_STRENGTH
then the logcat hangup.
The questions I want to ask are inside the logcat above.
Could you tell me what the problem is?and How to solve it ?
Maybe pppd should be started and initiated ,how to?
Thank you
--Weber
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting