CN101854743A - Method for driving multi-mode terminating machine by radio interface layer and multi-mode terminating machine - Google Patents
Method for driving multi-mode terminating machine by radio interface layer and multi-mode terminating machine Download PDFInfo
- Publication number
- CN101854743A CN101854743A CN201010111896A CN201010111896A CN101854743A CN 101854743 A CN101854743 A CN 101854743A CN 201010111896 A CN201010111896 A CN 201010111896A CN 201010111896 A CN201010111896 A CN 201010111896A CN 101854743 A CN101854743 A CN 101854743A
- Authority
- CN
- China
- Prior art keywords
- ril
- module
- communication module
- handle
- drives
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention discloses a method for driving a multi-mode terminating machine by a radio interface layer RIL and a multi-mode terminating machine. The method comprises the following steps: presetting and storing an RIL proxy supporting a multi-mode system dynamic link library, and setting an RIL drive corresponding to the system respectively according to the system types of the multi-mode terminating machine; calling the RIL proxy, the RIL drive and a communication module corresponding to the RIL drive by an upper application program, registering and acquiring an RIL handle corresponding to the RIL drive; receiving a command input by a user, triggering an upper application, searching and acquiring the RIL handle corresponding to the user command, and calling a corresponding RIL proxy function; according to the RIL proxy function called in the dynamic link library, converting the input user command to the corresponding Device IO Control calling of the RIL drive; and acquiring the RIL handle contained in Device IO Control calling, transmitting an operation command to the communication module corresponding to the RIL handle, and executing operation by the communication module according to the received operation command. The method and the terminating machine can enhance the reusability of designing, and improve the stability and communication efficiency of the multi-mode terminating machine.
Description
Technical field
The present invention relates to the multi-mode terminating machine wireless communication technology, particularly a kind of radio interface layer (RIL, Radio Interface Layer) drives the method and the multi-mode terminating machine of multi-mode terminating machine.
Background technology
In the prior art, a large amount of terminating machines is based on Windows CE, Windows Mobile, operating system platforms such as Linux and Android realize communicating by letter, Windows CE, Windows Mobile, the design of operating system platform such as Linux and Android is at the single deck tape-recorder system, the operating system platform that is upper application module only can be at a protocol stack, as global system for mobile communications (GSM, Global System forMobile communications) protocol stack or code division multiple access (CDMA, Code Division MultipleAccess) protocol stack carries out data interaction, work such as communication.
Needs for adaptation work and life, the user is more and more stronger to the demand of dual-network and dual-standby terminating machine, require existing terminating machine need possess the function of double-card dual-standby, that is to say, on a terminating machine, can dispose two subscriber identification module (SIM simultaneously, Subscriber identification Module) card, promptly on a mobile phone, dispose two wireless communication modules, two protocol stacks, drive corresponding wireless communication module by the radio interface layer driver module, and carry out the related communication operation as required.
Because aforesaid operations system platform and software architecture thereof are not supported the mechanism of two protocol stacks, two wireless communication modules and two card standbies simultaneously, in order to realize the double-card dual-standby function based on the aforesaid operations system platform, prior art has proposed a kind of expansion RIL agency (PROXY) device based on Windows Mobile platform and has driven two wireless communication modules with realization by radio interface layer.
Fig. 1 is existing expansion RIL agent apparatus structural representation based on Windows Mobile platform.Referring to Fig. 1, this device comprises: the upper application module of customization, Microsoft's upper application module, expansion RIL proxy module, RIL proxy module, RIL driver module, first communication module and second communication module, wherein,
The upper application module of customization, be used to store the upper layer application of multi-mode terminating machine expansion, invoke extensions RIL proxy module, RIL driver module and second communication module, registration is also obtained expansion RIL handle, according to the instruction triggers upper layer application of user's input, call corresponding expansion RIL proxy function according to the expansion RIL handle that obtains;
Wherein, for instance, if original Windows Mobile operating system is only supported the gsm protocol stack, then Ding Zhi upper application module is used to store the relevant upper level applications of CDMA protocol stack, for example, telephony application (TAP, Telephony Application Program), short message service (SMS, Short Message Service) program, SIM card stored program etc., correspondingly, the instruction of user's input comprises the dialing instruction, service order or the instruction of storage SIM card etc. send SMS message.
In the practical application, if the user selects to dial by the gsm protocol stack, then Ding Zhi upper application module is called RIL agency dialing function.
Microsoft's upper application module, be used to store the upper layer application of multi-mode terminating machine Microsoft acquiescence, call RIL proxy module, RIL driver module and first communication module, registration is also obtained the RIL handle, according to the instruction triggers upper layer application of user's input, call corresponding RIL proxy function according to the RIL handle that obtains;
The RIL proxy module, be used to be stored as the dynamic link library (DLL that Windows Mobile carries, Dynamic Link Library), according to the RIL proxy function of calling in the dynamic link library, the DeviceIOControl that will be converted to the RIL driver module the user instruction of Microsoft's upper application module input calls;
Expansion RIL proxy module is used to store the dynamic link library of expansion, and according to the expansion RIL proxy interface function that calls, the DeviceIOControl that will be converted to the RIL driver module the user instruction that the upper application module of customization is imported calls;
In the practical application, the dynamic link library of expansion can be rewritten with reference to the upper layer application of original dynamic link library of Windows Mobile and expansion, and this can be obtained by those of ordinary skills' design, does not repeat them here.
Wherein, can in DeviceIOControl calls, comprise the RIL handle, with sign to calling that the user instruction of the upper application module input of customization is changed.
The RIL driver module is used for calling the handle that comprises according to DeviceIOControl, to first communication module or second communication module transmit operation designated command;
As previously mentioned, if first communication module is the gsm communication module, the RIL handle that comprises in calling according to DeviceIOControl of RIL driver module then is to first communication module transmit operation designated command.
First communication module is used for operating accordingly according to the operational order command execution of RIL driver module output;
If the operational order order is dialing order, i.e. AT order, then the called number that carries in the AT order of first communication module makes a call, and does not repeat them here.
Second communication module is used for operating accordingly according to the operational order command execution of RIL driver module output.
By as seen above-mentioned, the existing method that realizes RIL driving multi-mode terminating machine based on Windows Mobile platform extension RIL agent apparatus, by on the basis of the RIL of original Microsoft proxy module, increasing expansion RIL proxy module, and corresponding change RIL driver module, be used for the upper layer application of customization is handled, thereby the RIL that realizes multi-mode terminating machine drives.But because a RIL driver module needs corresponding a plurality of proxy modules, be after the research staff finishes the dynamic link library of corresponding expansion according to multimode terminal user's demand exploitation, also need the dynamic link library of a plurality of expansions is merged, debugging is placed in the RIL driver module so that dynamic link library of compatible each expansion of energy, like this, RIL drives and realizes more complicated, RIL driver module and each proxy module coupling are big, make that proxy module design reusability is not high, merge, the dynamic link library of debug extensions is loaded down with trivial details, has increased the design cycle, reduced the stability of multi-mode terminating machine; Simultaneously, because the shared RIL driver module of a plurality of proxy modules, the communication efficiency of multi-mode terminating machine is limited by the RIL driver module, and communication efficiency is lower; And the RIL driver module need be safeguarded the state of a plurality of communication modules, has also increased the Design of device complexity.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method of driving multi-mode terminating machine by radio interface layer, strengthens the reusability of design, the stability and the communication efficiency of raising multi-mode terminating machine.
Another object of the present invention is to provide a kind of multi-mode terminating machine, strengthen the reusability of design, the stability and the communication efficiency of raising multi-mode terminating machine.
For achieving the above object, the method for a kind of driving multi-mode terminating machine by radio interface layer provided by the invention, this method comprises:
Set in advance and store the RIL agency who supports multimode standard dynamic link library, and drive according to the RIL that the N kind system types of multi-mode terminating machine is provided with every kind of system types correspondence respectively, each RIL drives corresponding communication module, and wherein, N is natural number and N 〉=2;
Upper level applications is called the RIL agency, RIL drives and this RIL drives corresponding communication module, registers and obtains this RIL and drive corresponding RIL handle;
Receive the instruction of user's input, trigger upper layer application, the RIL handle that the user instruction correspondence is obtained in inquiry calls corresponding RIL proxy function;
According to the RIL proxy function of calling in the dynamic link library, the DeviceIOControl that the user instruction of importing is converted to corresponding RIL driving calls;
Obtain the RIL handle that DeviceIOControl comprises in calling, to the communication module transmit operation designated command of this RIL handle correspondence, communication module is according to the operational order command-execution operation that receives.
Described multimode standard comprises: code division multiple access CDMA2000 standard, TD SDMA TD-SCDMA standard, Wideband Code Division Multiple Access (WCDMA) WCDMA standard and global system for mobile communications GSM standard.
Described RIL drives and comprises that a RIL drives and the 2nd RIL drives, described communication module comprises first communication module and second communication module, a described RIL drives and links to each other with described first communication module, described the 2nd RIL drives and links to each other with described second communication module, described upper level applications is called the RIL agency, RIL drives and this RIL drives corresponding communication module, registers and obtains the corresponding RIL handle of this RIL driving and comprise:
Upper level applications module invokes RIL agency drives with a RIL and first communication module foundation is communicated by letter, and registers and obtains a RIL and drive handle;
Upper level applications module invokes RIL agency drives with the 2nd RIL and second communication module foundation is communicated by letter, and registers and obtains the 2nd RIL and drive handle.
Described second communication module is the CDMA2000 module, the dialing instruction of the instruction of described user's input for dialling by the CDMA2000 protocol stack,
The RIL handle of user instruction correspondence is obtained in described inquiry, calls corresponding RIL proxy function to be: the upper level applications module drives handle according to the 2nd RIL that obtains in advance and calls RIL agency dialing function;
Described according to the RIL proxy function of calling in the dynamic link library, with the user instruction of input be converted to DeviceIOControl that corresponding RIL drives call for: described RIL agency dialing function will call for the DeviceIOControl that the 2nd RIL is driven the dialing instruction transformation on upper strata;
The RIL handle that comprises during the described DeviceIOControl of obtaining calls, communication module transmit operation designated command to this RIL handle correspondence is: described the 2nd RIL driver module calls described the 2nd RIL handle that comprises according to DeviceIOControl, sends AT dialing order to second communication module.
Before described upper level applications is called the communication module that RIL agency, RIL driving and this RIL drive correspondence, registered and obtain the step of the corresponding RIL handle of this RIL driving, further comprise:
Multi-mode terminating machine powers on, the device manager module operation, and detecting needs the RIL that loads to drive;
Device manager module loads the described RIL of loading that needs in regular turn and drives, and the described RIL that need load drives coupled communication module execution and shakes hands.
Further comprise: the RIL that the feedback information as a result that communication module will dial reports described RIL handle correspondence drives, and RIL drives this information of reception, is broadcast to described RIL handle corresponding upper application program.
Described RIL drives this information of reception, and the step that is broadcast to described RIL handle corresponding upper application program comprises:
The RIL driving is assembled into a data structure with execution result information and returns to the RIL agency, carries described RIL handle;
The RIL agency is sent to execution result information in the call back function of upper level applications according to the described RIL handle in the data structure body;
Upper level applications is obtained execution result information by call back function.
Described upper level applications comprises telephony application, short message service program and SIM card stored program.
A kind of multi-mode terminating machine, this multi-mode terminating machine comprises: N RIL driver module and N communication module of upper level applications module, radio interface layer RIL proxy module, N kind system types correspondence, and the corresponding communication module of each RIL driver module, N is natural number and N 〉=2, wherein
The upper level applications module, be used to store the upper level applications of multi-mode terminating machine, call the RIL driver module and the communication module of RIL proxy module, each system types correspondence, register and obtain the RIL handle of corresponding system types correspondence, according to the instruction triggers upper layer application of user input, call corresponding RIL proxy function according to the RIL handle of user instruction correspondence;
The RIL proxy module, be used to store the dynamic link library of the support multimode standard that sets in advance, according to the RIL proxy function of calling in the dynamic link library, the DeviceIOControl that will be converted to the user instruction of upper level applications module input the RIL driver module of user instruction correspondence calls;
The RIL driver module is used for calling according to DeviceIOControl the RIL handle of the corresponding system types correspondence that comprises, to corresponding communication module transmit operation designated command;
Communication module is used for operating accordingly according to the operational order command execution of RIL driver module output.
Described communication module is continuous with corresponding described driver module by serial ports, Double Port Random Memory or USB (universal serial bus).
Described RIL driver module comprises: a RIL driver module and the 2nd RIL driver module, described communication module comprises first communication module and second communication module, the corresponding first communication module of a RIL driver module, the corresponding second communication module of the 2nd RIL driver module, wherein
Described application program module is called RIL proxy module, a RIL driver module and a first communication module, registration is also obtained a RIL handle, call RIL proxy module, the 2nd RIL driver module and second communication module, registration is also obtained the 2nd RIL handle, according to the instruction triggers upper layer application of user input, call corresponding RIL proxy function according to the RIL handle of user instruction correspondence;
The one RIL driver module is used for calling a RIL handle that comprises according to DeviceIOControl, to first communication module transmit operation designated command;
The 2nd RIL driver module is used for calling the 2nd RIL handle that comprises according to DeviceIOControl, to second communication module transmit operation designated command;
First communication module is used for operating accordingly according to the operational order command execution of RIL driver module output;
Second communication module is used for operating accordingly according to the operational order command execution of the 2nd RIL driver module output.
As seen from the above technical solution, the method of driving multi-mode terminating machine by radio interface layer of the present invention and multi-mode terminating machine, set in advance and store the RIL agency who supports multimode standard dynamic link library, and drive according to the RIL that the N kind system types of multi-mode terminating machine is provided with every kind of system types correspondence respectively, each RIL drives corresponding communication module; Upper level applications is called the RIL agency, RIL drives and this RIL drives corresponding communication module, registers and obtains this RIL and drive corresponding RIL handle; Receive the instruction of user's input, trigger upper layer application, the RIL handle that the user instruction correspondence is obtained in inquiry calls corresponding RIL proxy function; According to the RIL proxy function of calling in the dynamic link library, the DeviceIOControl that the user instruction of importing is converted to corresponding RIL driving calls; Obtain the RIL handle that DeviceIOControl comprises in calling, to the communication module transmit operation designated command of this RIL handle correspondence, communication module is according to the operational order command-execution operation that receives.Like this, separate between a plurality of RIL driver modules of setting, thereby the code that each RIL drives can be reused, and the degree of coupling is less, and reproducibility is strong; A plurality of RIL driver modules and the parallel running of corresponding communication module, thus the traffic rate and the communication efficiency of multi-mode terminating machine improved; And each RIL driver module is continuous, unaffected mutually with corresponding communication module, has improved the stability of multi-mode terminating machine; In addition,, be easy to expansion, can realize complex multi-mode terminating machine multi-card multi-standby function because RIL drives independent operating.
Description of drawings
Fig. 1 is existing expansion RIL agent apparatus structural representation based on Windows Mobile platform.
Fig. 2 is the multi-mode terminating machine structural representation of the embodiment of the invention.
Fig. 3 loads the schematic diagram of RIL driver module for embodiment of the invention device manager module.
Fig. 4 is the method flow schematic diagram of the driving multi-mode terminating machine by radio interface layer of the embodiment of the invention.
The loading schematic flow sheet that Fig. 5 drives for embodiment of the invention RIL.
Fig. 6 is the method idiographic flow schematic diagram of the driving multi-mode terminating machine by radio interface layer of the embodiment of the invention.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in further detail.
In multi-mode terminating machine, generally have two or more communication module, these two communication modules can be any both combinations among CDMA2000, TD-SCDMA, WCDMA and the GSM, also can be the combinations of a plurality of communication modules.
In the embodiment of the invention, consider in the existing multi-mode terminating machine, a plurality of proxy modules, for example, RIL proxy module and expansion RIL proxy module, the coupling that a corresponding RIL driver module is caused is big, realize complicated, the design problem that reusability is not high and communication efficiency is lower, upper layer application with reference to original dynamic link library of WindowsMobile and expansion, writing can compatible multiple standard, for example, CDMA2000 standard, the TD-SCDMA standard, the dynamic link library of WCDMA standard and GSM standard etc., ditto described, this dynamic link library can be obtained by those of ordinary skills' design, does not repeat them here.And a plurality of RIL driver modules are set, and each RIL driver module links to each other with the corresponding communication module by different physical channels, thus parallel data and voice communication between realization and the communication module improve communication efficiency.
Fig. 2 is the multi-mode terminating machine structural representation of the embodiment of the invention.Referring to Fig. 2, this multi-mode terminating machine comprises: upper level applications module, RIL proxy module, a RIL driver module, the 2nd RIL driver module, first communication module and second communication module, wherein,
The upper level applications module, be used to store the upper level applications of multi-mode terminating machine, call RIL proxy module, a RIL driver module and a first communication module, registration is also obtained a RIL handle, call RIL proxy module, the 2nd RIL driver module and second communication module, the 2nd RIL handle is also obtained in registration, according to the instruction triggers upper layer application of user's input, calls corresponding RIL proxy function according to the RIL handle of user instruction correspondence;
In the embodiment of the invention, upper level applications comprises telephony application, short message service program, SIM card stored program supervisor.
In the practical application, multi-mode terminating machine for different systems, for example, support the dual-card dual-standby terminal machine of GSM standard and CDMA standard, GSM standard corresponding upper application program is identical with CDMA standard corresponding upper application program, thereby, in the embodiment of the invention, the upper level applications of multiple standard is merged, use identical upper level applications.For example, the RIL of the corresponding CDMA standard of the 2nd RIL driver module drives, the corresponding CDMA of second communication module, the dialing instruction of the instruction of user's input for dialling by the CDMA protocol stack, then the upper level applications module is called the 2nd RIL proxy function of the 2nd RIL handle correspondence according to the 2nd RIL handle that obtains CDMA protocol stack correspondence by the user instruction inquiry of CDMA protocol stack.
The RIL proxy module, be used to store the dynamic link library of the support multimode standard that sets in advance, according to the RIL proxy function of calling in the dynamic link library, the DeviceIOControl that will be converted to the user instruction of upper level applications module input the RIL driver module of user instruction correspondence calls;
In the present embodiment, with reference to original dynamic link library of Windows Mobile and upper layer application, write compatible multiple standard, for example, the dynamic link library of CDMA2000 standard, TD-SCDMA standard, WCDMA standard and GSM standard etc., this dynamic link library can be obtained by those of ordinary skills' design, does not repeat them here.
As previously mentioned, the RIL of the corresponding CDMA standard of the 2nd RIL driver module drives, the dialing instruction of the instruction of user's input for dialling by the CDMA protocol stack, then the RIL driver module of user instruction correspondence is the 2nd RIL driver module, the upper level applications module will be transferred to the RIL proxy module by the dialing instruction that the CDMA protocol stack dials, the CDMA protocol stack that the RIL proxy module carries in instructing according to dialing calls the 2nd RIL proxy function of CDMA protocol stack in the dynamic link library, and the DeviceIOControl that will be converted to the 2nd RIL driver module the user instruction of upper level applications module input calls.If the dialing instruction of the instruction of user's input for dialling by the gsm protocol stack, then the RIL driver module of user instruction correspondence is a RIL driver module, the upper level applications module will be transferred to the RIL proxy module by the dialing instruction that the gsm protocol stack dials, the gsm protocol stack that the RIL proxy module carries in instructing according to dialing calls a RIL proxy function of gsm protocol stack in the dynamic link library, and the DeviceIOControl that will be converted to a RIL driver module the user instruction of upper level applications module input calls.
The one RIL driver module is used for calling a RIL handle that comprises according to DeviceIOControl, to first communication module transmit operation designated command;
The 2nd RIL driver module is used for calling the 2nd RIL handle that comprises according to DeviceIOControl, to second communication module transmit operation designated command;
First communication module is used for operating accordingly according to the operational order command execution of RIL driver module output;
Second communication module is used for operating accordingly according to the operational order command execution of the 2nd RIL driver module output.
In the present embodiment, if the operational order order is dialing order, i.e. AT order, then the called number that carries in the AT order of second communication module makes a call; If the operational order order is the short message service order, then the called number that carries in the short message service order of second communication module sends SMS message.
In the present embodiment, first communication module, second communication module can pass through serial ports, Double Port Random Memory (RAM, Random Access Memory) or USB (universal serial bus) (USB, Universal SerialBus) link to each other with a RIL driver module, the 2nd RIL driver module respectively.
In the foregoing description, the system types of multi-mode terminating machine is two kinds, for multi-mode terminating machine more than two kinds of system types, for example, comprise N kind system types, N 〉=3, then corresponding N the RIL driver module of the N kind system types of multi-mode terminating machine and N communication module, the corresponding communication module of each RIL driver module, correspondingly, the upper level applications module, be used to store the upper level applications of multi-mode terminating machine, call the RIL proxy module, the RIL handle of corresponding system types correspondence is registered and obtained to the RIL driver module and the communication module of each system types correspondence, according to the instruction triggers upper layer application of user input, call corresponding RIL proxy function according to the RIL handle of user instruction correspondence;
The RIL driver module is used for calling according to DeviceIOControl the RIL handle of the corresponding system types correspondence that comprises, to corresponding communication module transmit operation designated command;
Communication module is used for operating accordingly according to the operational order command execution of RIL driver module output.
Further, this multi-mode terminating machine also comprises device manager module, links to each other with a RIL driver module and the 2nd RIL driver module respectively, is used for after multi-mode terminating machine powers on, and detecting needs the RIL that loads to drive, and loads corresponding RIL driver module.
Fig. 3 loads the schematic diagram of RIL driver module for embodiment of the invention device manager module.Referring to Fig. 3, for multi-mode terminating machine, when powering on, load a RIL driver module (RIL1), the 2nd RIL driver module (RIL2) in regular turn with a plurality of RIL driver modules ..., up to having loaded last RIL driver module (RILn).After each RIL driver module was loaded, this RIL driver module pair communication module that links to each other with self was shaken hands, and this RIL driver module of initialization, for example, inquire about current communication module network state, search net, PIN code state etc.
Certainly, equipment manager starts module and also is used for keyboard drive and bluetooth driving etc. is loaded and carries out corresponding initialization.
By as seen above-mentioned, the multi-mode terminating machine of the embodiment of the invention, by the RIL proxy module of the dynamic link library of supporting the multimode standard is set, and the RIL driver module is set for every kind of standard, link to each other by the communication module that independently physical channel is corresponding with this standard, like this, separate between a plurality of RIL driver modules that are provided with, do not need a plurality of RIL drivings are merged, debug, thereby the code that each RIL drives not only can be reused, and it is also very little to develop the degree of coupling, be convenient to later maintenance and upgrading, reproducibility is strong, also reduced the design cycle; A plurality of RIL driver modules and the parallel running of corresponding communication module, realized and each communication module between parallel data and voice communication, thereby improved the traffic rate and the communication efficiency of multi-mode terminating machine; And each RIL driver module is safeguarded own corresponding communication module internal state, and is unaffected mutually, improved the stability of multi-mode terminating machine; In addition,, be easy to expansion, can realize complex multi-mode terminating machine multi-card multi-standby function, be applicable to intelligent built-in terminal platforms such as Windows CE, Windows Mobile, Linux and Android because RIL drives independent operating.
Below the method for the driving multi-mode terminating machine by radio interface layer of the embodiment of the invention is described.
Fig. 4 is the method flow schematic diagram of the driving multi-mode terminating machine by radio interface layer of the embodiment of the invention.Referring to Fig. 4, this flow process comprises:
Step 401 sets in advance and stores the RIL agency who supports multimode standard dynamic link library;
Step 402 is provided with the RIL driving of standard correspondence respectively according to the system types of multi-mode terminating machine;
Step 404 receives the instruction of user's input, triggers upper layer application, and the RIL handle that the user instruction correspondence is obtained in inquiry calls corresponding RIL proxy function;
Step 406 is obtained the RIL handle that DeviceIOControl comprises in calling, and to the communication module transmit operation designated command of this RIL handle correspondence, communication module is according to the operational order command-execution operation that receives.
In this step, communication module is after executable operations, and communication module can report corresponding RIL driver module with the feedback information as a result of dialing, and the RIL driver module receives this information, is broadcast to have own handle, promptly to the upper level applications of oneself registering.Certainly, communication module also can report information such as signal strength information, incoming information or new short message information.
Before registration and obtaining the step of the corresponding RIL handle of this RIL driving, may further include the load step that RIL is driven.
The loading schematic flow sheet that Fig. 5 drives for embodiment of the invention RIL.Referring to Fig. 5, comprise a RIL driver module and the 2nd RIL driver module is an example with multi-mode terminating machine, this flow process comprises:
In this step, device manager module need to determine the RIL that loads to drive according to the state of the system types of multi-mode terminating machine and coupled RIL driver module.
In this step, a RIL driver module and first communication module are carried out to shake hands and are prior art.
Fig. 6 is the method idiographic flow schematic diagram of the driving multi-mode terminating machine by radio interface layer of the embodiment of the invention.Below be example with the dual-mode terminal machine, these dual-mode terminal facility have two communication modules, first communication module is a gsm module, second communication module is the CDMA2000 module, sets in advance the RIL proxy module of supporting GSM standard and CDMA2000 standard dynamic link library; And a RIL driver module of GSM standard correspondence is set, the one RIL driver module links to each other with first communication module, the 2nd RIL driver module of CDMA2000 standard correspondence is set, the 2nd RIL driver module links to each other with second communication module, and a RIL driver module, the 2nd RIL driver module link to each other with the upper level applications module by the RIL proxy module respectively.Referring to Fig. 6, this flow process comprises:
Step 601 loads a RIL driver module and the 2nd RIL driver module;
This step is identical with flow process shown in Figure 5.
In this step, the flow process of obtaining the handle of RIL driver module is a prior art.
Step 603 receives the instruction that the CDMA module is called of passing through of user's input, and the upper level applications module is called corresponding RIL agency dialing function according to the handle of the 2nd RIL driver module that obtains in advance;
In this step, calling corresponding RIL proxy function is RIL agency dialing function.
The program example that above-mentioned upper level applications is called RIL agency, registration RIL handle is as follows:
HRESULT?RIL_Initialize(
DWORD dwIndex, //RIL drives the numbering of n;
RILRESULTCALLBACK pfnResult, // upper level applications is registered to the call back function 1 of RILn;
RILNOTIFYCALLBACK pfnNotify, // upper level applications is registered to the call back function 2 of RILn;
DWORD dwNotificationClasses, // user's interest message mask;
DWORD dwParam, // upper level applications is sent to the parameter of RILn;
The RILn handle of HRIL*lphRil // be registered to returns to upper level applications oneself storage;
)。
After succeeding in registration, upper level applications is called by following routine call function:
HRESULT?RIL_Dial(
HRIL hRil, the RIL handle that // upper level applications obtains after registration;
LPCSTR lpszAddress, // the telephone number that transfer to;
DWORD dwType, // exhalation parameter;
DWORD dwOptions // exhalation option;
)。
In this step, call back function is corresponding with RIL agency dialing function.
In the above-mentioned example,, then transfer to successfully or the object information of failing passes to upper level applications by pfnResult, like this, realized dial-up operation from upper level applications to communication module if the user dials " 10000 " number.
Like this, drive by the RIL that designs a plurality of concurrent workings, not only simple in structure, and also system stability, upper level applications is exploitation easily also, and reproducibility is strong, is easy to realize the stand-alone development of many RIL drivings, and each RIL drives exploitation and does not disturb mutually.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to and replace and improvement etc., all should be included within protection scope of the present invention.
Claims (11)
1. a radio interface layer RIL drives the method for multi-mode terminating machine, it is characterized in that this method comprises:
Set in advance and store the RIL agency who supports multimode standard dynamic link library, and drive according to the RIL that the N kind system types of multi-mode terminating machine is provided with every kind of system types correspondence respectively, each RIL drives corresponding communication module, and wherein, N is natural number and N 〉=2;
Upper level applications is called the RIL agency, RIL drives and this RIL drives corresponding communication module, registers and obtains this RIL and drive corresponding RIL handle;
Receive the instruction of user's input, trigger upper layer application, the RIL handle that the user instruction correspondence is obtained in inquiry calls corresponding RIL proxy function;
According to the RIL proxy function of calling in the dynamic link library, the DeviceIOControl that the user instruction of importing is converted to corresponding RIL driving calls;
Obtain the RIL handle that DeviceIOControl comprises in calling, to the communication module transmit operation designated command of this RIL handle correspondence, communication module is according to the operational order command-execution operation that receives.
2. the method for claim 1 is characterized in that, described multimode standard comprises: code division multiple access CDMA2000 standard, TD SDMA TD-SCDMA standard, Wideband Code Division Multiple Access (WCDMA) WCDMA standard and global system for mobile communications GSM standard.
3. method as claimed in claim 2, it is characterized in that, described RIL drives and comprises that a RIL drives and the 2nd RIL drives, described communication module comprises first communication module and second communication module, a described RIL drives and links to each other with described first communication module, described the 2nd RIL driving links to each other with described second communication module, and described upper level applications is called the RIL agency, RIL drives and this RIL drives corresponding communication module, registers and obtains the corresponding RIL handle of this RIL driving and comprise:
Upper level applications module invokes RIL agency drives with a RIL and first communication module foundation is communicated by letter, and registers and obtains a RIL and drive handle;
Upper level applications module invokes RIL agency drives with the 2nd RIL and second communication module foundation is communicated by letter, and registers and obtains the 2nd RIL and drive handle.
4. method as claimed in claim 3 is characterized in that, described second communication module is the CDMA2000 module, the dialing instruction of the instruction of described user's input for dialling by the CDMA2000 protocol stack,
The RIL handle of user instruction correspondence is obtained in described inquiry, calls corresponding RIL proxy function to be: the upper level applications module drives handle according to the 2nd RIL that obtains in advance and calls RIL agency dialing function;
Described according to the RIL proxy function of calling in the dynamic link library, with the user instruction of input be converted to DeviceIOControl that corresponding RIL drives call for: described RIL agency dialing function will call for the DeviceIOControl that the 2nd RIL is driven the dialing instruction transformation on upper strata;
The RIL handle that comprises during the described DeviceIOControl of obtaining calls, communication module transmit operation designated command to this RIL handle correspondence is: described the 2nd RIL driver module calls described the 2nd RIL handle that comprises according to DeviceIOControl, sends AT dialing order to second communication module.
5. the method for claim 1 is characterized in that, before described upper level applications is called the communication module that RIL agency, RIL driving and this RIL drive correspondence, registered and obtain the step of the corresponding RIL handle of this RIL driving, further comprises:
Multi-mode terminating machine powers on, the device manager module operation, and detecting needs the RIL that loads to drive;
Device manager module loads the described RIL of loading that needs in regular turn and drives, and the described RIL that need load drives coupled communication module execution and shakes hands.
6. the method for claim 1, it is characterized in that, further comprise: the RIL that the feedback information as a result that communication module will dial reports described RIL handle correspondence drives, and RIL drives this information of reception, is broadcast to described RIL handle corresponding upper application program.
7. method as claimed in claim 6 is characterized in that, described RIL drives this information of reception, and the step that is broadcast to described RIL handle corresponding upper application program comprises:
The RIL driving is assembled into a data structure with execution result information and returns to the RIL agency, carries described RIL handle;
The RIL agency is sent to execution result information in the call back function of upper level applications according to the described RIL handle in the data structure body;
Upper level applications is obtained execution result information by call back function.
8. method as claimed in claim 7 is characterized in that, described upper level applications comprises telephony application, short message service program and SIM card stored program.
9. multi-mode terminating machine, it is characterized in that, this multi-mode terminating machine comprises: N RIL driver module and N communication module of upper level applications module, radio interface layer RIL proxy module, N kind system types correspondence, the corresponding communication module of each RIL driver module, N is natural number and N 〉=2, wherein
The upper level applications module, be used to store the upper level applications of multi-mode terminating machine, call the RIL driver module and the communication module of RIL proxy module, each system types correspondence, register and obtain the RIL handle of corresponding system types correspondence, according to the instruction triggers upper layer application of user input, call corresponding RIL proxy function according to the RIL handle of user instruction correspondence;
The RIL proxy module, be used to store the dynamic link library of the support multimode standard that sets in advance, according to the RIL proxy function of calling in the dynamic link library, the DeviceIOControl that will be converted to the user instruction of upper level applications module input the RIL driver module of user instruction correspondence calls;
The RIL driver module is used for calling according to DeviceIOControl the RIL handle of the corresponding system types correspondence that comprises, to corresponding communication module transmit operation designated command;
Communication module is used for operating accordingly according to the operational order command execution of RIL driver module output.
10. multi-mode terminating machine as claimed in claim 9 is characterized in that, described communication module is continuous with corresponding described driver module by serial ports, Double Port Random Memory or USB (universal serial bus).
11. as claim 9 or 10 described multi-mode terminating machines, it is characterized in that, described RIL driver module comprises: a RIL driver module and the 2nd RIL driver module, described communication module comprises first communication module and second communication module, the corresponding first communication module of the one RIL driver module, the corresponding second communication module of the 2nd RIL driver module, wherein
Described application program module is called RIL proxy module, a RIL driver module and a first communication module, registration is also obtained a RIL handle, call RIL proxy module, the 2nd RIL driver module and second communication module, registration is also obtained the 2nd RIL handle, according to the instruction triggers upper layer application of user input, call corresponding RIL proxy function according to the RIL handle of user instruction correspondence;
The one RIL driver module is used for calling a RIL handle that comprises according to DeviceIOControl, to first communication module transmit operation designated command;
The 2nd RIL driver module is used for calling the 2nd RIL handle that comprises according to DeviceIOControl, to second communication module transmit operation designated command;
First communication module is used for operating accordingly according to the operational order command execution of RIL driver module output;
Second communication module is used for operating accordingly according to the operational order command execution of the 2nd RIL driver module output.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010111896 CN101854743B (en) | 2010-02-05 | 2010-02-05 | Method for driving multi-mode terminating machine by radio interface layer and multi-mode terminating machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010111896 CN101854743B (en) | 2010-02-05 | 2010-02-05 | Method for driving multi-mode terminating machine by radio interface layer and multi-mode terminating machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101854743A true CN101854743A (en) | 2010-10-06 |
CN101854743B CN101854743B (en) | 2013-03-20 |
Family
ID=42805937
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010111896 Expired - Fee Related CN101854743B (en) | 2010-02-05 | 2010-02-05 | Method for driving multi-mode terminating machine by radio interface layer and multi-mode terminating machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101854743B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102170714A (en) * | 2011-03-25 | 2011-08-31 | 中兴通讯股份有限公司 | Multi-mode driving method, system and terminal |
CN102769937A (en) * | 2012-07-16 | 2012-11-07 | 青岛海信移动通信技术股份有限公司 | Multi-standby terminal with android system and method for realizing multi-standby of terminal |
CN102945172A (en) * | 2012-10-22 | 2013-02-27 | 深圳市中兴移动通信有限公司 | Self-adapting method of 3G data cards under Android system |
CN103067593A (en) * | 2012-12-29 | 2013-04-24 | 盛耀无线通讯科技(北京)有限公司 | Double-card bi-pass software system framework based on Android platform and operation method thereof |
CN103491654A (en) * | 2013-09-13 | 2014-01-01 | 华为技术有限公司 | Communication method used for multi-card terminal and multi-card terminal |
CN103914281A (en) * | 2012-12-29 | 2014-07-09 | 重庆重邮信科通信技术有限公司 | Mobile software system application request parallel processing method and system |
CN115278941A (en) * | 2022-07-12 | 2022-11-01 | 上海睿赛德电子科技有限公司 | Communication system and method suitable for embedded system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101500333A (en) * | 2008-02-02 | 2009-08-05 | 德信智能手机技术(北京)有限公司 | Expaned RIL PROXY apparatus based on Windows Mobile platform |
CN101282548B (en) * | 2008-05-28 | 2011-01-19 | 德信智能手机技术(北京)有限公司 | Method and equipment for setting sound volume based on Windows Mobile OS |
CN101282547B (en) * | 2008-05-28 | 2011-01-19 | 德信无线通讯科技(北京)有限公司 | Method and apparatus for dialing telephone based on Windows Mobile OS |
-
2010
- 2010-02-05 CN CN 201010111896 patent/CN101854743B/en not_active Expired - Fee Related
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102170714A (en) * | 2011-03-25 | 2011-08-31 | 中兴通讯股份有限公司 | Multi-mode driving method, system and terminal |
CN102769937B (en) * | 2012-07-16 | 2016-04-27 | 青岛海信移动通信技术股份有限公司 | A kind of multi-standby terminal of Android system and terminal realize the method treated more |
CN102769937A (en) * | 2012-07-16 | 2012-11-07 | 青岛海信移动通信技术股份有限公司 | Multi-standby terminal with android system and method for realizing multi-standby of terminal |
CN105848310B (en) * | 2012-07-16 | 2019-06-18 | 青岛海信移动通信技术股份有限公司 | The multi-standby terminal and terminal of a kind of Android system realize mostly to method |
CN105848310A (en) * | 2012-07-16 | 2016-08-10 | 青岛海信移动通信技术股份有限公司 | Multi-standby terminal of Android system and method for realizing multi-standby of terminal |
CN102945172A (en) * | 2012-10-22 | 2013-02-27 | 深圳市中兴移动通信有限公司 | Self-adapting method of 3G data cards under Android system |
CN103067593A (en) * | 2012-12-29 | 2013-04-24 | 盛耀无线通讯科技(北京)有限公司 | Double-card bi-pass software system framework based on Android platform and operation method thereof |
CN103067593B (en) * | 2012-12-29 | 2016-06-29 | 盛耀无线通讯科技(北京)有限公司 | A kind of double card bilateral software system architecture based on Android platform and operation method thereof |
CN103914281A (en) * | 2012-12-29 | 2014-07-09 | 重庆重邮信科通信技术有限公司 | Mobile software system application request parallel processing method and system |
CN103914281B (en) * | 2012-12-29 | 2016-12-28 | 重庆重邮信科通信技术有限公司 | Mobile software system application request method for parallel processing and system |
WO2015035952A1 (en) * | 2013-09-13 | 2015-03-19 | 华为技术有限公司 | Communications method used for multi-card terminal and multi-card terminal |
CN103491654A (en) * | 2013-09-13 | 2014-01-01 | 华为技术有限公司 | Communication method used for multi-card terminal and multi-card terminal |
CN115278941A (en) * | 2022-07-12 | 2022-11-01 | 上海睿赛德电子科技有限公司 | Communication system and method suitable for embedded system |
Also Published As
Publication number | Publication date |
---|---|
CN101854743B (en) | 2013-03-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101854743B (en) | Method for driving multi-mode terminating machine by radio interface layer and multi-mode terminating machine | |
US20100197289A1 (en) | System and method for managing a wireless device from removable media with processing capability | |
US20090215490A1 (en) | Methods for handling proactive commands for one or more subscriber identity cards and systems utilizing the same | |
CN105848310A (en) | Multi-standby terminal of Android system and method for realizing multi-standby of terminal | |
CN101287236A (en) | Connecting method for mobile phone with double channels and mobile phone with double channels | |
JP5536201B2 (en) | Mobile phone device capable of conversion to different communication standards and method for realizing the same | |
CN101339508B (en) | Java2 miniature edition application operation method and device | |
CN105391857A (en) | System and method for quickly calling contact | |
CN101932145A (en) | Device and method for managing software versions in wireless communication system | |
CN101882110A (en) | Method for downloading data and terminal equipment | |
CN101282367B (en) | Data interactive method for wireless network card and computer | |
CN101237649B (en) | A method for upgrading dual-mode mobile phone via multiplexing serial port | |
CN115484343A (en) | Method for preventing data transmission loss of android mobile phone and Bluetooth device based on WeChat applet | |
CN101282547B (en) | Method and apparatus for dialing telephone based on Windows Mobile OS | |
CN101287012B (en) | Method and apparatus for network service of wireless interface layer | |
CN201039414Y (en) | A communication module and mobile terminal | |
CN101072437A (en) | Method and device for executing service for selecting different stand by numbers of multi-modeterminal | |
CN101400175B (en) | Method for starting driver program by mobile communication device | |
CN100366037C (en) | Method and device for realizing complete radio communication at single processor kernel | |
CN101287235A (en) | Third call processing method and device based on Windows Mobile operating system | |
CN101282548B (en) | Method and equipment for setting sound volume based on Windows Mobile OS | |
CN101291540A (en) | Method and device for user call processing | |
CN109992320A (en) | The interaction method for building up and device of embedded device and WIFI module | |
CN101835142A (en) | Realizing method and device of user identification STK (SIM Card Tool Kit) | |
CN101227676B (en) | Method for downloading intelligent terminal version software |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1149153 Country of ref document: HK |
|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130320 Termination date: 20150205 |
|
EXPY | Termination of patent right or utility model | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: WD Ref document number: 1149153 Country of ref document: HK |