ok ive made a bit of progress myself here but im not baffled.
i have a program that i run in one of my init scripts called pnatd
which basicly opens a psudo terminal that parses at commands and
passes them on to the phonet device.
i can happily use this inside of my devices native os (maemo 5) and
send any AT comamnd and get a sensible reply. buton android i get the
following(check end of post), im not even sure the psudo terminal is
workign as i dont fully know how to access it to test the interface,
log of radio :
# logcat -b radio
I/RIL ( 50): Opening tty device /dev/pts/1
D/AT ( 50): AT> ATE0Q0V1
D/AT ( 50): AT> ATE0Q0V1
D/AT ( 50): AT> ATE0Q0V1
D/AT ( 50): AT> ATE0Q0V1
D/AT ( 50): AT> ATE0Q0V1
D/AT ( 50): AT> ATE0Q0V1
D/AT ( 50): AT> ATE0Q0V1
D/AT ( 50): AT> ATE0Q0V1
D/AT ( 50): AT> ATE1Q0V1
I/PHONE ( 214): Network Mode set to 0
I/PHONE ( 214): Cdma Subscription set to 1
I/RILJ ( 214): Connected to 'rild' socket
D/PHONE ( 214): mDoesRilSendMultipleCallRing=true
D/PHONE ( 214): mCallRingDelay=3000
W/GSM ( 214): Can't open /system/etc/voicemail-conf.xml
W/GSM ( 214): Can't open /system/etc/spn-conf.xml
D/GSM ( 214): [DSAC DEB] registerForPsRestrictedEnabled
D/GSM ( 214): [DSAC DEB] registerForPsRestrictedDisabled
D/GSM ( 214): [PdpConnection] DataConnection.clearSettings()
D/RILJ ( 214): [0000]> RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
D/STK ( 214): StkService: StkService: is running
D/STK ( 214): StkService: NEW sInstance
I/PHONE ( 214): Creating GSMPhone
D/RILJ ( 214): [0001]> GET_CURRENT_CALLS
E/GSM ( 214): Wrong network type: 0
E/GSM ( 214): Wrong network type: 0
D/GSM ( 214): Poll ServiceState done: oldSS=[1 home null null
null Unknown CSS not supported 0 0RoamInd: 0DefRoamInd: 0] newSS=[1
home null null null Unknown CSS not supported -1 -1RoamInd:
-1DefRoamInd: -1] oldGprs=1 newGprs=1 oldType=unknown newType=unknown
D/GSM ( 214): GSMDataConnTrack handleMessage { what=12 when=20172
obj=android.os.asyncres...@43c817d0 }
D/GSM ( 214): [GsmDataConnectionTracker] Radio is off and clean
up all connection
D/GSM ( 214): [GsmDataConnectionTracker] Clean up connection due
to radioTurnedOff
D/GSM ( 214): [GsmDataConnectionTracker] setState: DISCONNECTING
D/GSM ( 214): [PdpConnection] DataConnection.clearSettings()
D/GSM ( 214): [DataConnection] Stop poll NetStat
D/GSM ( 214): [GsmDataConnectionTracker] setState: IDLE
D/GSM ( 214): GSMDataConnTrack handleMessage { what=19 when=20173
obj=android.os.asyncres...@43c81b20 }
D/GSM ( 214): [DataConnection] Stop poll NetStat
D/GSM ( 214): GSMDataConnTrack handleMessage { what=22 when=20173
obj=android.os.asyncres...@43c81c70 }
D/GSM ( 214): [GsmDataConnectionTracker] ***trySetupData due to
roamingOff
D/GSM ( 214): [DSAC DEB] trySetupData with mIsPsRestricted=false
D/GSM ( 214): [GsmDataConnectionTracker] trySetupData: Not ready
for data: dataState=IDLE gprsState=1 sim=false UMTS=false
phoneState=IDLE isDataAllowed=true dataEnabled=true roaming=false
dataOnRoamingEnable=false ps restricted=false desiredPowerState=true
MasterDataEnabled=true
D/GSM ( 214): [IccCard] Broadcasting intent
ACTION_SIM_STATE_CHANGED NOT_READY reason null
D/RILJ ( 214): WAKE_LOCK_TIMEOUT mReqPending=0 mRequestList=2
D/RILJ ( 214): 0: [0] RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
D/RILJ ( 214): 1: [1] GET_CURRENT_CALLS
D/RILJ ( 214): [0002]> SCREEN_STATE: true
D/GSM ( 214): [DataConnection] Stop poll NetStat
D/RILJ ( 214): WAKE_LOCK_TIMEOUT mReqPending=0 mRequestList=3
D/RILJ ( 214): 0: [0] RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
D/RILJ ( 214): 1: [1] GET_CURRENT_CALLS
D/RILJ ( 214): 2: [2] SCREEN_STATE
D/RILJ ( 214): [0003]> REQUEST_GET_PREFERRED_NETWORK_TYPE
D/RILJ ( 214): WAKE_LOCK_TIMEOUT mReqPending=0 mRequestList=4
D/RILJ ( 214): 0: [0] RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
D/RILJ ( 214): 1: [1] GET_CURRENT_CALLS
D/RILJ ( 214): 2: [2] SCREEN_STATE
D/RILJ ( 214): 3: [3] REQUEST_GET_PREFERRED_NETWORK_TYPE
D/RILJ ( 214): [0004]> REQUEST_SET_PREFERRED_NETWORK_TYPE : 1
D/RILJ ( 214): WAKE_LOCK_TIMEOUT mReqPending=0 mRequestList=5
D/RILJ ( 214): 0: [0] RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
D/RILJ ( 214): 1: [1] GET_CURRENT_CALLS
D/RILJ ( 214): 2: [2] SCREEN_STATE
D/RILJ ( 214): 3: [3] REQUEST_GET_PREFERRED_NETWORK_TYPE
D/RILJ ( 214): 4: [4] REQUEST_SET_PREFERRED_NETWORK_TYPE
D/RILJ ( 214): [0005]> REQUEST_SET_PREFERRED_NETWORK_TYPE : 0
D/RILJ ( 214): [0006]> QUERY_AVAILABLE_NETWORKS
D/RILJ ( 214): WAKE_LOCK_TIMEOUT mReqPending=0 mRequestList=7
D/RILJ ( 214): 0: [0] RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
D/RILJ ( 214): 1: [1] GET_CURRENT_CALLS
D/RILJ ( 214): 2: [2] SCREEN_STATE
D/RILJ ( 214): 3: [3] REQUEST_GET_PREFERRED_NETWORK_TYPE
D/RILJ ( 214): 4: [4] REQUEST_SET_PREFERRED_NETWORK_TYPE
D/RILJ ( 214): 5: [5] REQUEST_SET_PREFERRED_NETWORK_TYPE
D/RILJ ( 214): 6: [6] QUERY_AVAILABLE_NETWORKS
last part was from me playing with the network settings options in
android
On May 14, 9:23 am, DJ_Steve <[email protected]> wrote:
> ok, i have full SSI support in kernel and it all loads up fine but im
> not sure if your aware the way the phonet modem interface works is by
> providiing a 'virtual' network interface that probvides access to
> modem etc so i have no /dev nodes that i can see for rild to use, so
> im wodering if theirs any other way to get android to work with it,
> also have looked at ofono but it sdoesnt seem to work in the android
> fs
>
> On May 11, 5:05 pm, Deva R <[email protected]> wrote:
>
>
>
> > >i am working on porting android to the nokia N900 device, currently have
> > >the android os itself running
>
> > great.
>
> > >any ideas how to find out which of the
> > >ttyS* device nodes is the modem (i have ttyS0-3 so 4 nodes) as im a
> > >bit baffled at the moment,
>
> > its not regular serial bus, but a SSI bus.
> > you need to have SSI driver and a character device support in your kernel..
>
> > its posted by nokia sometime back to
> > communityhttp://groups.google.com/group/linux.kernel/browse_thread/thread/1fbd...
>
> > (guess u should have seen while working with maemo)
>
> > On Tue, May 11, 2010 at 8:36 PM, DJ_Steve <[email protected]> wrote:
> > > ok heres a challenge for you, as stated in my previous post i am
> > > working on porting android to the nokia N900 device, currently have
> > > the android os itself running but im trying to get the cell modem
> > > running but this is where i have a problem, im not sure how rild works
> > > but i dont believe i have a serial interface to the cell modem due to
> > > it runnign via phonet module, any ideas how to find out which of the
> > > ttyS* device nodes is the modem (i have ttyS0-3 so 4 nodes) as im a
> > > bit baffled at the moment,
>
> > > --
> > > unsubscribe:
> > > [email protected]<android-porting%[email protected]>
> > > website:http://groups.google.com/group/android-porting
>
> > --
> > unsubscribe: [email protected]
> > website:http://groups.google.com/group/android-porting
>
> --
> unsubscribe: [email protected]
> website:http://groups.google.com/group/android-porting
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting