xda-developers.com
forum.xda-developers.com
device database
wiki.xda-developers.com Wiki HomePage
FAQ | Xanadux

RecentChanges | FindPage | | LikePages | BackLinks

rilgsm.dll

rilgsm.dll is the device driver for the RIL1: device. On Blueangel rilgsm.dll opens COM2: and COM9: which are handled by serial2.dll and serial3.dll

the RIL_ functions are in ril.dll, which opens RIL1: and uses DeviceIoControl to communicate to the device.

rough overview of the relation ril-functions - rilgsm ioctl - gsm at command

  • ; - means I could not quickly see what gsm commands relate to this function
  • ? means that I did not see this call implemented.
 ril function   rilgsm ioctl   paramsize   at commands 
    0x03000000      ? 
    0x03000004      ; - 
    0x03000008      ; - 
    0x0300000c      ? 
    0x03000010      ; "%s%x" 
    0x03000014      ; - 
 RIL_GetSerialPortStatistics   0x03000018   0x0010   ; - 
 RIL_GetSubscriberNumbers   0x0300001c      ; "AT+CNUM\r" 
 RIL_GetOperatorList   0x03000020      ; "AT+COPS=?\r" 
 RIL_GetPreferredOperatorList   0x03000024      ; "AT+CPOL=,%u;+CPOL?\r" 
 RIL_AddPreferredOperator   0x03000028   0x004c   ; "AT+CPOL=," ; "AT+CPOL=%u," 
 RIL_RemovePreferredOperator   0x0300002c   0x0004   ; "AT+CPOL=%u\r" 
 RIL_GetCurrentOperator   0x03000030      ; "AT+COPS=3,%u;+COPS?\r" 
 RIL_RegisterOnNetwork   0x03000034   0x004c   ; "AT+COPS=%u" 
 RIL_UnregisterFromNetwork   0x03000038      ; "AT+COPS=2\r" 
 RIL_GetRegistrationStatus   0x0300003c      ; "AT+CREG?\r" 
    0x03000040      ? 
 RIL_GetCallerIdSettings   0x03000044      ; "AT+CLIP?\r" 
 RIL_SetCallerIdStatus   0x03000048   0x0004   ; "AT+CLIP=%d\r" 
 RIL_GetHideIdSettings   0x0300004c      ; "AT+CLIR?\r" 
 RIL_SetHideIdStatus   0x03000050      ; "AT+CLIR=%u\r" 
 RIL_GetDialedIdSettings   0x03000054      ; "AT+COLP?\r" 
 RIL_SetDialedIdStatus   0x03000058   0x0004   ; "AT+COLP=%d\r" 
 RIL_GetClosedGroupSettings   0x0300005c      ; "AT+CCUG?\r" 
 RIL_SetClosedGroupSettings   0x03000060   0x0014   ; "AT+CCUG=%u" 
 RIL_GetCallForwardingSettings   0x03000064   0x0008   ; "AT" ; "D##%s" ; "D*#%s" ; "D*%s" ; "%s**%u#" ; "D#%s" ; "%s#" 
 RIL_AddCallForwarding   0x03000068   0x0434   ; "AT" "AT" ; "+CCFC=%u,3,\"%s\",%u,%u" 
 RIL_RemoveCallForwarding   0x0300006c   0x0008   ; "AT" ; "D##%s" ; "D*#%s" ; "D*%s" ; "%s**%u#" ; "D#%s" ; "%s#" 
 RIL_SetCallForwardingStatus   0x03000070   0x000c   ; "AT" "AT" ; "+CCFC=%u,%u,,,%u" 
 RIL_GetCallWaitingSettings   0x03000074   0x0004   ; "AT+CCWA=1,2\r" ; "AT+CCWA=1,2,%u\r" 
 RIL_SetCallWaitingStatus   0x03000078   0x0008   ; "ATD%c43#" ; "ATD%c43*%u#" 
 RIL_SendSupServiceData   0x0300007c   ?   ; "ATD%s\r" 
 RIL_CancelSupServiceDataSession   0x03000080      ; "AT+CUSD=2\r" 
 RIL_Dial   0x03000084   0x0108   ; "AT+CBST=%u,%u,%u\r" ; "AT+CBST=71,0,1\r" ; "ATA\r" ; "AT+CBST=7,0,1\r" 
 RIL_Answer   0x03000088      ; "ATA\r" 
 RIL_Hangup   0x0300008c      ; "at%%talk=%d,%x\r" ; "ATH\r" 
 RIL_SendDTMF   0x03000090   0x0104   ; "AT" ; "\r" ; "+VTS=%c;" 
 RIL_SetDTMFMonitoring   0x03000094   0x0004   ; - 
    0x03000098      ? 
    0x0300009c      ? 
 RIL_GetCallList   0x030000a0      ; "AT+CLCC\r" 
 RIL_ManageCalls   0x030000a4   0x0008   ; "AT+CHLD=0\r" ; "AT+CHLD=1\r" ; "AT\r" ; "AT+CHLD=1%u\r" ; "AT+CHLD=2\r" ; "AT+CHLD=2%u\r" ; "AT+CHLD=3\r" ; "AT+CHLD=4\r" ; "AT+CHLD=5\r" 
 RIL_TransferCall   0x030000a8   0x0420   ; "AT+CTFR=\"%s\",%u" 
 RIL_GetLineStatus   0x030000ac      ; "AT+CPAS\r" 
 RIL_GetAudioGain   0x030000b0      ; "AT\r" 
 RIL_SetAudioGain   0x030000b4      ; "$AU=%u" ; "$AD=%u" ; "AT" 
 RIL_GetAudioDevices   0x030000b8      ; - 
 RIL_SetAudioDevices   0x030000bc   0x0010   ; DeviceIoControl("WAV1:", IOCTL_WAV_MESSAGE=0x001d000c, MMDRV_MESSAGE_PARAMS={0, 0x65=101(102,123,...), 0, ?1, 0}, 0x14}, 0x14, sp+0x18, 0x4, sp+0x10) 
 RIL_GetAudioMuting   0x030000c0      ; "AT+CMUT?\r" 
 RIL_SetAudioMuting   0x030000c4   0x0004   ; "AT+CMUT=%u\r" 
 RIL_GetHSCSDOptions   0x030000c8      ; "AT+CHST?;+CHSN?;+CHSU?\r" 
 RIL_SetHSCSDOptions   0x030000cc   0x0024   ; "AT+CHST=" ; ";+CHSU=%u" ; ";+CHSN=" 
 RIL_GetHSCSDCallSettings   0x030000d0      ; "AT+CHSC\r" 
 RIL_GetDataCompression   0x030000d4      ; "AT+DS?\r" 
 RIL_SetDataCompression   0x030000d8   0x0000   ; "AT+DS=" 
 RIL_GetErrorCorrection   0x030000dc      ; "AT+ES?\r" 
 RIL_SetErrorCorrection   0x030000e0   0x0014   ; "AT+ES=" 
 RIL_GetBearerServiceOptions   0x030000e4      ; "AT+CBST?\r" 
 RIL_SetBearerServiceOptions   0x030000e8   0x0014   ; "AT+CBST=" 
 RIL_GetRLPOptions   0x030000ec      ; "AT+CRLP?\r" 
 RIL_SetRLPOptions   0x030000f0      ; "AT+CRLP=" 
 RIL_GetMsgServiceOptions   0x030000f4      ; "AT+CSMS?;+CPMS?\r" 
 RIL_SetMsgServiceOptions   0x030000f8   0x0034   ; "+CPMS=" ; "+CSMS=%u" ; "AT" 
 RIL_GetMsgConfig   0x030000fc      ; "AT+CSCA?\r" 
 RIL_SetMsgConfig   0x03000100   0x0218   ; ";+CSAS\r" ; "+CSCA=\"%s\",%u" ; "AT" 
    0x03000104      ? 
    0x03000108      ? 
    0x0300010c      ? 
 RIL_ReadMsg   0x03000110   0x0004   ; "AT+CMGR=%u\r" 
 RIL_DeleteMsg   0x03000114   0x0004   ; "AT+CMGD=%u\r" 
 RIL_WriteMsg   0x03000118   0x0688   ; "AT+CMGW=%u,%u\r%s" 
 RIL_SendMsg   0x0300011c   0x0688   ; "CMGC" ; "AT+CMMS=1;+%s=%u\r%s" ; "CMGS" ; "AT+%s=%u\r%s" 
 RIL_SendStoredMsg   0x03000120   0x0008   ; "AT+CMSS=%u\r" ; "AT+CMMS=1;+CMSS=%u\r" 
 RIL_SendMsgAcknowledgement   0x03000124   0x0004   ; "AT+CNMA=%u\r" 
 RIL_GetUserIdentity   0x03000128      ; "AT+CIMI\r" 
 RIL_GetPhoneLockedState   0x0300012c      ; "AT+CPIN?\r" 
 RIL_UnlockPhone   0x03000130   0x0204   ; "AT+CPIN=\"%s\" 
 RIL_GetLockingStatus   0x03000134   0x0108   ; "AT+CLCK=\"%s\",2,\"%s\"\r" ; "AT+CLCK=\"%s\",2\r" 
 RIL_SetLockingStatus   0x03000138   0x010c   ; "AT+CLCK=\"%s\",%u,\"%s\"\r" ; "AT+CLCK=\"%s\",%u\r" 
 RIL_ChangeLockingPassword   0x0300013c   0x0208   ; "AT+CPWD=\"%s\",\"%s\",\"%s\"\r" ; "ATD**05%s*%s*%s*%s#\r" 
 RIL_GetCallBarringStatus   0x03000140   0x010c   ; "ATD*#%u" ; "ATD*%u" ; "%s*%u#" ; "%s*%s" ; "ATD#%u" ; "%s#" ; "AT+CLCK=\"%s\",2" 
 RIL_SetCallBarringStatus   0x03000144   0x0110   ; "ATD*#%u" ; "ATD*%u" ; "%s*%u#" ; "%s*%s" ; "ATD#%u" ; "%s#" ; "AT+CLCK=\"%s\",%u" 
 RIL_ChangeCallBarringPassword   0x03000148   0x0204   ; "ATD*03*330*%s*%s*%s#\r" ; "AT+CPWD=\"%s\",\"%s\",\"%s\"\r" 
 RIL_GetEquipmentInfo   0x0300014c      ; "AT%CGMI;%CGMN;%CGMR;%CGSN\r" 
 RIL_GetEquipmentState   0x03000150      ; "AT+CFUN?\r" 
 RIL_SetEquipmentState   0x03000154      ; "AT%%SATC=1,FFFFFF7F00000010;+CFUN=%u\r" ; "AT+CFUN=%u\r" 
 RIL_GetPhonebookOptions   0x03000158      ; "AT+CPBS?\r" 
 RIL_SetPhonebookOptions   0x0300015c   0x0014   ; "AT+CPBS=\"%s\"\r" 
 RIL_ReadPhonebookEntries   0x03000160   0x0008   ; "AT+CPBR=%u,%u\r" 
 RIL_WritePhonebookEntry   0x03000164   0x041c   ; "AT+CPBW=,\"%s\",%u" ; "AT+CPBW=%u,\"%s\",%u" 
 RIL_DeletePhonebookEntry   0x03000168   0x0004   ; "AT+CPBW=%u\r" 
    0x0300016c      ? 
 RIL_SendSimCmd   0x03000170   ?   ; - 
 RIL_SendRestrictedSimCmd   0x03000174   ?   ; "AT+CRSM=%u" 
 RIL_GetSimRecordStatus   0x03000178   0x0004   ; "AT+CRSM=%u" 
 RIL_GetSimToolkitProfile   0x0300017c      ; "AT%SATC?\r" 
 RIL_SetSimToolkitProfile   0x03000180   ?   ; ";+CFUN=1\r" ; "AT%SATC=1," 
 RIL_SendSimToolkitEnvelopeCmd   0x03000184   ?   ; "AT%SATE=" 
 RIL_FetchSimToolkitCmd   0x03000188      ; - 
 RIL_SendSimToolkitCmdResponse   0x0300018c   ?   ; "AT%SATR=" 
 RIL_TerminateSimToolkitSession   0x03000190   0x0004   ; "AT%%SATT=%u\r" 
 RIL_GetCostInfo   0x03000194      ; "AT+CAOC=0;+CACM?;+CAMM?;+CPUC?\r" 
 RIL_SetCostInfo   0x03000198   0x031c   ; "+CPUC=\"%s\",\"%u.%.4u\"" ; "+CAMM=%u" ; "+CACM=" ; "AT" 
 RIL_GetSignalQuality   0x0300019c      ; "AT\r" ; "AT+CSQ\r" 
 RIL_GetCellTowerInfo   0x030001a0      ; - 
 RIL_DevSpecific   0x030001a4      See below. 
 RIL_GetDevCaps   0x030001a8   0x0004   ; "AT+VTD=?\r" ; "AT+CHLD=?\r" ; "AT+CBST=?\r" ; "AT+CRLP=?\r" ; "AT+CFUN=?\r" ; "AT+CPBS=?\r" ; "AT+CPBR=?\r" ; "AT+CPBF=?\r" ; "AT+CSMS=?\r" ; "AT+CPMS=?\r" ; "AT+CMGL=?\r" ; "AT+CPOL=?\r" ; "AT+CLCK=?\r" ; "AT+CPWD=?\r" ; "AT+CCFC=?\r" ; "AT+CHSD;+CHSN=?\r" ; "AT+CGCLASS=?\r" ; "AT+CGDCONT=?\r" ; "AT+CGQREQ=?\r" ; "AT+CGQMIN=?\r" ; "AT+CGSMS=?\r" ; "AT+DS=?\r" ; "AT+ES=?\r" 
 RIL_GetHideConnectedIdSettings   0x030001ac      ; - 
 RIL_SetHideConnectedIdStatus   0x030001b0      ; - 
    0x030001b4      ? 
    0x030001b8      ? 
    0x030001bc      ? 
    0x030001c0      ? 
 RIL_GetCCBSStatus   0x030001c4   0x0004   ; - 
 RIL_ClearCCBSRegistration   0x030001c8   0x0004   ; - 
 RIL_GetSystemTime   0x030001cc      ; - 
 RIL_GetGPRSContextList   0x030001d0      ; "AT+CGDCONT?\r" 
 RIL_SetGPRSContext   0x030001d4   ?   ; "AT+CGDCONT=%u," 
 RIL_DeleteGPRSContext   0x030001d8   0x0004   ; "AT+CGDCONT=%u\r" 
 RIL_GetRequestedQualityOfServiceList   0x030001dc      ; "AT+CGQREQ?\r" 
 RIL_SetRequestedQualityOfService   0x030001e0   0x0020   ; "AT%s=%u," ; "+CGQREQ" 
 RIL_DeleteRequestedQualityOfService   0x030001e4   0x0004   ; "AT%s=%u\r" ; "+CGQREQ" 
 RIL_GetMinimumQualityOfServiceList   0x030001e8      ; "AT+CGQMIN?\r" 
 RIL_SetMinimumQualityOfService   0x030001ec   0x0020   ; "AT%s=%u," ; "+CGQMIN" 
 RIL_DeleteMinimumQualityOfService   0x030001f0   0x0004   ; "AT%s=%u\r" ; "+CGQMIN" 
 RIL_SetGPRSAttached   0x030001f4   0x0004   ; "AT+CGATT=%u\r" 
 RIL_GetGPRSAttached   0x030001f8      ; "AT+CGATT?\r" 
 RIL_SetGPRSContextActivated   0x030001fc   0x0008   ; "AT+CGACT=%u,%u\r" 
 RIL_GetGPRSContextActivatedList   0x03000200      ; "AT+CGACT?\r" 
 RIL_EnterGPRSDataMode   0x03000204   ?   ; "ATD*99#\r" 
 RIL_GetGPRSAddress   0x03000208   0x0004   ; "AT+CGPADDR=%u\r" 
 RIL_GPRSAnswer   0x0300020c   ?   ; "AT+CGANS=%u," 
 RIL_GetGPRSRegistrationStatus   0x03000210      ; "AT+CGREG?\r" 
 RIL_GetGPRSClass   0x03000214      ; "AT+CGCLASS?\r" 
 RIL_SetGPRSClass   0x03000218   0x0004   ; "AT+CGCLASS=\"%s\"\r" 
 RIL_GetMOSMSService   0x0300021c      ; "AT+CGSMS?\r" 
 RIL_SetMOSMSService   0x03000220      ; "AT+CGSMS=%u\r" 
 RIL_GetDriverVersion   0x03000224   0x0004   ; - 
 RIL_GetCellBroadcastMsgConfig   0x03000228      ; "AT+CSCB?\r" 
 RIL_SetCellBroadcastMsgConfig   0x0300022c   ?   ; "AT+CNMI=2,2,2,1,0\r" ; ";+CSAS\r" ; "AT+CSCB=%d" 
 RIL_GetCurrentAddressId   0x03000230      ; "AT%ALS?\r" 
 RIL_SetCurrentAddressId   0x03000234   0x0004   ; "AT%%ALS=%u\r" 
    0x03000900      ; "AT#%02X%s%02X\r" ; "%s%02X" 

RIL_DevSpecific commands:

 #   Himalaya   Universal   Blueangel   Magician 
 0             
 1   at$v0   at$v0      AT$V0 
 2   - nothing   at%a0      AT%A0 
 3   - nothing          
 4   - nothing          
 5   - nothing          
 6   - nothing          
 7   - nothing          
 8   - nothing          
 9   - nothing          
 10   at%sidcnt          
 11   at%sidcln          
 12   at%sid=%d          
 13   at%sidchk          
 14   at%sid?%d   at@simlock?40      AT%SIMLOCK? 
 15   at%sidlck?   at@simlock?80      AT%LOCKTIME 
 16   at%sidlck=%d,%d   at@simlock=%x,%x      AT%HTCLOCK=%x, 
 17   at%talk?%d   at@talk?%u      AT%talk?%u 
 18   at%chgdual, at%chg1900, at%chg900   at@bandsel=%u,%u      AT%%HTCBAND=%x 
 19   at%band         AT%HTCBAND? 
 20   at%eminit          
 21   at%emexit          
 22   at%emread          
 23   at%l1t + at%cprim="CST","CONFIG L1_PARAMS=<0,number>          
 24   CellBroadCastMessageRoute=1   CellBroadCastMessageRoute=1      CellBroadCastMessageRoute=1 
 25   CellBroadCastMessageRoute=0   CellBroadCastMessageRoute=0      CellBroadCastMessageRoute=0 
 26   at+creg=2   at+creg=2      AT+CREG=2 
 27   at+creg=1   at+creg=1      AT+CREG=1 
 28   at%cgppp=%d   at+cppp=%u      AT%CGPP=%u 
 29   at%gid=%d          
 30   at%chkgid?%d          
 31   at%gid?%d          
 32   at%lckgid?          
 33   AT%LCKGID=%d,%d          
 34   at%cntgid          
 35   at%clngid          
 36   at%lckgid=?          
 37      at%audiotest=%u      AT%AUDIOTEST=%u 
 38             
 39      at%dpramtest=1      AT%DPRAMTEST=1 
 40      1.06: at+creg=0;at@cr      AT%AUDIOTEST=%u,%u 
 41      1.06: at    
 42      1.06: at@apdu=    
 43          
 44      1.06: at@simoff    
 45      1.06: at@simon    
 46      1.06: at@rsim    
 47      1.06: at@crs    
 48          
 49          
 50          
 51      strcpy    
 52      at+cgaatt=%u,%u,%u    
 53      at+cgaatt?    
 54      switch to bbbootloader, at@portswitch=1    
 55      at    
 56      at+esa=0,,,,0,0,255    
 57      at+es=6,,8    
 58      at+cbst=134,1,0    
  • see also this page
  • a complete headerfile describing all ril functions can be found here
  • see RIL for more information.

Last edited on January 2, 2007 7:52 pm.


Edit | PageHistory | Diff | PageInfo
Login
User Name: Password:
Remember Me?