[Touch Pro, Fuze Android Development] peramikic:
Can't get data connection - AT&T

I gave Raph110(Fuze) and no matter what i do I can't get GPRS/3G to work. I tried all kinds of options (Data On, Radio Off in WM), Re-enter APN, nada. Looking at logcat -b radio, everything seems fine until RIL tries to register GPRS and then "Wrong network type" errors and "invalid RIL_Token". I can't figure out what’s wrong. :confused: Here are some details

AT&T stock (but tweaked) rom 5.2.19971 on Raprh 110

Xandroid 1/24/10 with 1/25 system

Here is the part of the log that loops when trying to get data conn

D/RILJ ( 1242): [1564]< REQUEST_GET_NEIGHBORING_CELL_IDS
D/AT ( 1160): AT< +CREG: 1,"D8F9","61DB"
D/RILJ ( 1242): [UNSL]< UNSOL_RESPONSE_NETWORK_STATE_CHANGED
D/RILJ ( 1242): [1565]> OPERATOR
D/RILJ ( 1242): [1566]> GPRS_REGISTRATION_STATE
D/RILJ ( 1242): [1567]> REGISTRATION_STATE
D/RILJ ( 1242): [1568]> QUERY_NETWORK_SELECTION_MODE
D/AT ( 1160): AT> AT+CGACT?
D/AT ( 1160): AT< +CGACT: 1,0
D/AT ( 1160): AT< +CGACT: 2,0
D/AT ( 1160): AT< OK
D/AT ( 1160): AT> AT+CGDCONT?
D/AT ( 1160): AT< +CGDCONT: 1,"IP","wap.cingular","175.140.13.10",0,0
D/AT ( 1160): AT< +CGDCONT: 2,"IP","wap.cingular","159.58.11.10",0,0
D/AT ( 1160): AT< OK
D/RILJ ( 1242): [UNSL]< UNSOL_DATA_CALL_LIST_CHANGED [DataCallState: { cid: 1, active: 0, type: IP, apn: wap.cingular, address: 175.140.13.10 }, DataCallState: { cid: 2, active: 0, type: IP, apn: wap.cingular, address: 159.58.11.10 }]
D/GSM ( 1242): GSMDataConnTrack handleMessage { what=6 when=7296430 obj=android.os.AsyncResult@43f1b2b0 }
D/RIL ( 1160): onRequest: OPERATOR
D/AT ( 1160): AT> AT+COPS=3,0;+COPS?;+COPS=3,1;+COPS?;+COPS=3,2;+COPS?
D/AT ( 1160): AT< @HTCCSQ: 1
D/AT ( 1160): AT< @HTCCSQ: 1
D/AT ( 1160): AT< @HTCCSQ: 1
D/AT ( 1160): AT< +COPS: 0,0,"Cingular",4
D/AT ( 1160): AT< +COPS: 0,1,"Cingular",4
D/AT ( 1160): AT< +COPS: 0,2,"310410",4
D/AT ( 1160): AT< OK
D/RIL ( 1160): onRequest: GPRS_REGISTRATION_STATE
D/AT ( 1160): AT> AT+CGREG?
D/RILJ ( 1242): [1565]< OPERATOR {Cingular, Cingular, 310410, null}
D/AT ( 1160): AT< +CGREG: 2,0
D/AT ( 1160): AT< OK
D/RIL ( 1160): onRequest: REGISTRATION_STATE
D/AT ( 1160): AT> AT+CREG?
D/AT ( 1160): AT< +CREG: 2,1,"D8F9","61DB"
D/AT ( 1160): AT< OK
D/RIL ( 1160): onRequest: QUERY_NETWORK_SELECTION_MODE
D/AT ( 1160): AT> AT+COPS?
D/RILJ ( 1242): [1566]< GPRS_REGISTRATION_STATE {0, ffffffff, ffffffff}
D/RILJ ( 1242): [1567]< REGISTRATION_STATE {1, d8f9, 61db}
D/AT ( 1160): AT< @HTCCSQ: 1
D/AT ( 1160): AT< +COPS: 0,2,"310410",4
D/AT ( 1160): AT< OK
D/RILJ ( 1242): [1568]< QUERY_NETWORK_SELECTION_MODE {0}
E/GSM ( 1242): Wrong network type: 0
E/GSM ( 1242): Wrong network type: 0
D/GSM ( 1242): Poll ServiceState done: oldSS=[0 home Cingular Cingular 310410 Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd: -1] newSS=[0 home Cingular Cingular 310410 Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd: -1] oldGprs=1 newGprs=1 oldType=unknown newType=unknown
D/RILJ ( 1242): [1569]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RIL ( 1160): onRequest: GET_NEIGHBORING_CELL_IDS
D/AT ( 1160): AT> AT+CREG?
D/AT ( 1160): AT< +CREG: 2,1,"D8F9","61DB"
D/AT ( 1160): AT< OK
E/RILC ( 1160): RIL_onRequestComplete: invalid RIL_Token
D/RILJ ( 1242): [1569]< REQUEST_GET_NEIGHBORING_CELL_IDS

I can figure why RIL tries network type 0 (if I’m reading this correct :confused:), AT seems to find proper PDP's with correct net type (4). And I know this question is a little high-level but I couldn't find any takers at #htc-linux (i know thats where i will be told to go) so i turn to you guys. And flashing another rom is not an option, custom corporate software on it.

Thanks in advance