Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member
Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange
Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication
The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and emitting hardware
Equipment, have on bidirectional communication link, can carry out two-way communication reception and emit hardware equipment.This equipment
It may include: honeycomb or other communication equipments, shown with single line display or multi-line display or without multi-line
The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), can
With combine voice, data processing, fax and/or communication ability;PDA (Personal Digital Assistant, it is personal
Digital assistants), it may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day
It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm
Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its
His equipment." terminal " used herein above, " terminal device " can be it is portable, can transport, be mounted on the vehicles (aviation,
Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth
And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on
Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet
Equipment) and/or mobile phone with music/video playing function, it is also possible to the equipment such as smart television, set-top box.
The present inventor is it is considered that can install kernel and multiple operating systems, in each operation in intelligent terminal
The telephone subsystems of the operating system are set in system.The opposite end number of the phone call request received can be determined by kernel
Operating system belonging to code, and phone call request is forwarded to the operating system.The phone having been turned in order to avoid two is competing
The phenomenon that striving same verbal system and generating conflict, receives the telephone subsystems in the operating system of phone call request, first
The front and back state for first inquiring this operating system, after inquiring as backstage, two incoming calls possibility can be connected by existing.Therefore the electricity
Words subsystem continues inquiry in the operating system on foreground with the presence or absence of the phone connected;It is exhaled if so, abandoning connection phone
Cry request corresponding phone;Otherwise, this operating system is switched to foreground to kernel requests, and connects and corresponds under the state of foreground
Phone.It can guarantee at most to exist simultaneously the phone having been turned in intelligent terminal, come so as to avoid the occurrence of two
Electricity causes resource contention.
The technical solution of the embodiment of the present invention is specifically introduced with reference to the accompanying drawing.
Intelligent terminal in the embodiment of the present invention can be the terminal devices such as smart phone, tablet computer, internal junction
The block schematic illustration of structure is as shown in Figure 1, may include: kernel 101 and operating system.
Wherein, kernel 101 can be the extension kernel based on linux kernel (such as Kernel).
Operating system can there are two or it is multiple.Each operating system can be the operating system based on container.Specifically
Ground, technical staff can use Linux container container virtualization technology, create multiple containers, pacify in each container
It fills and runs an operating system.Each container is configured configured with independent hardware resource access authority, the operation system of the container
System can be with independent access hardware resource, such as CPU, IO (InputOutput, input and output) equipment etc..
Respectively exclusive telephone subsystems can be respectively set in each operating system.It include independent in each telephone subsystems
Address list etc..
Preferably, being provided at least one identification module in intelligent terminal in the embodiment of the present invention.Identification module can be with
It is SIM (Subscriber Identity Module, client identification module) card, (User Identify Module is used UIM
Family identification module) card or Micro-SIM (miniature client identification module) card.Communicating number is stored in identification module, this is logical
Signal code can mutually be bound with the telephone subsystems at least one operating system.
After intelligent terminal booting in the embodiment of the present invention, kernel 101 initializes and starts first.The starting fortune of kernel 101
After row, each operating system is respectively started.The operating system 102 of usually first starting is in foreground, the operation system of subsequent starting
System is all directly in backstage.
For each operating system having been turned on, the operating system is by the system banner of this operating system and current front and back
Mesa-shaped state Information encapsulation into front and back status message, broadcasted by Xiang Suoyou operating system.
After one operating system receives the front and back status message of another operating system transmission, it is forwarded to this operation system
Telephone subsystems in system;System is parsed from received front and back status message by the telephone subsystems in this operating system
The front and back status information of mark, and by the corresponding storage of front and back status information for parsing system banner into this operating system
System state data library in.
After the switching of front and back state occurs for operating system, each operating system in this intelligent terminal is according to switching front and back
The front and back status message that the operating system of state is broadcasted updates respective system state data library.
Specifically, when the switching command that kernel 101 is inputted according to user, two operating systems being related to the switching command
Carry out front and back switching after, two operating systems respectively by it is each it is adaptive switched after front and back status information and respective system mark
Knowledge is encapsulated into front and back status message, the broadcast of Xiang Suoyou operating system.
Each operating system in the intelligent terminal of the embodiment of the present invention, the operating system disappear received front and back state
Cease the telephone subsystems being forwarded in this operating system;By the telephone subsystems in this operating system from the front and back mesa-shaped received
System banner and front and back status information are parsed in state message, and according to the system banner and front and back status information parsed
System state data library in this operating system is updated.
After the talking state switching of the telephone subsystems of operating system, each operating system in this intelligent terminal is according to cutting
The talking state message that the operating system of talking state is broadcasted is changed, respective system state data library is updated.
Specifically, when the telephone subsystems in the operating system in foreground are connected according to the phone call request received
Phone, it is i.e. on call when, the operating system in foreground is by the system banner of this operating system and telephone subsystems
Call status information carries in talking state message, broadcasts to operating systems all in this intelligent terminal.
Each operating system in the intelligent terminal of the embodiment of the present invention, the operating system is by received talking state message
The telephone subsystems being forwarded in this operating system;Disappeared by the telephone subsystems in this operating system from the talking state received
System banner and call status information are parsed in breath.Later, the system that the telephone subsystems in this operating system will parse
Mark and call status information, corresponding storage is into the system state data library in this operating system;Alternatively, in this operating system
Telephone subsystems according to the system banner and call status information parsed, to the system state data library in this operating system
It is updated.
Based on the internal structure of the above-mentioned intelligent terminal including multiple operating systems, it is anti-that the embodiment of the invention provides one kind
Only phone collision method, the flow diagram of this method is as shown in Fig. 2, include the following steps:
S201: after kernel 101 receives phone call request, determining operating system 102 belonging to its opposite-terminal number, will
The phone call request is forwarded to the operating system 102 determined.
Specifically, therefrom parsing target number after the mobile communication module in intelligent terminal receives phone call request
Code;If it is determined that the destination number parsed is consistent with the communicating number in the identification module of this intelligent terminal, then will receive
Phone call request be sent to kernel 101.
After kernel 101 receives phone call request, the opposite end intelligence end for sending the phone call request is therefrom parsed
The communicating number (abbreviation opposite-terminal number) at end.Kernel 101 divides in the telephone subsystems of multiple operating systems of this intelligent terminal
The opposite-terminal number of the phone call request is not searched.
If kernel 101 finds opposite-terminal number in the telephone subsystems of the operating system of this intelligent terminal, it is determined that go out
Telephone subsystems belonging to the opposite-terminal number found, and then determine operating system belonging to the telephone subsystems.For convenient for
Description, is known as operating system 102 for operating system belonging to opposite-terminal number in phone call request herein;By the opposite-terminal number institute
The telephone subsystems of category, the i.e. telephone subsystems of operating system 102 are known as telephone subsystems 121.
The phone call request received is forwarded to the operating system 102 determined by kernel 101.Preferably, kernel 101
The telephone subsystems 121 phone call request received being forwarded in the operating system 102 determined.
If preferably, kernel 101 in the telephone subsystems of each operating system of this intelligent terminal, is all searched less than opposite end
Number then confirms that the opposite-terminal number of the phone call request is execution step S206 after strange number.
S202: the telephone subsystems 121 in operating system 102 inquire this operation system after receiving phone call request
The front and back state of system;If inquiring this operating system is in backstage, S203 is thened follow the steps;If inquiring this operating system place
In foreground, S206 is thened follow the steps.
Specifically, the phone call request that the kernel 101 received forwards is forwarded to this operating system by operating system 102
In telephone subsystems 121.
After telephone subsystems 121 in operating system 102 receive phone call request, according to pre-recorded, this behaviour
Make the front and back status message that system is broadcasted in front and back switching, determines whether this operating system is in background state: if
It is that then explanation inquires this operating system and is in backstage, executes step S203;If it is not, then explanation inquires this operating system place
In foreground, step S206 is executed.
It include: the system banner and front and back status information of operating system in front and back status message.
Preferably, being according to this operation after the telephone subsystems 121 in operating system 102 receive phone call request
The system banner of system finds out this operation that last time is stored or updated from the system state data library in this operating system
The front and back status information of system;According to the front and back status information of this operating system found out, this operating system is determined
Whether it is in background state: if so, explanation, which inquires this operating system, is in backstage, executes step S203;If it is not, then illustrating
It inquires this operating system and is in foreground, execute step S206.
S203: the telephone subsystems 121 in operating system 102 are after inquiring this operating system and being in backstage, Directory Enquiries
Whether the telephone subsystems in the operating system on foreground are on call;If so, thening follow the steps S204;Otherwise step is executed
Rapid S205.
Specifically, the telephone subsystems 121 in operating system 102 are after inquiring this operating system and being in backstage, according to
The talking state message of telephone subsystems broadcast in operating system pre-recorded, in foreground, is determined in foreground
Operating system in telephone subsystems it is whether on call: if so, thening follow the steps S204;It is no to then follow the steps
S205。
It include: the system banner of operating system and the call status information of telephone subsystems in talking state message.
Preferably, the telephone subsystems 121 in operating system 102 are in the system state data library in this operating system,
Inquire the system banner for the operating system that front and back status information is foreground;And then inquire storage corresponding with the system banner
Telephone subsystems call status information, further determine that out whether the call status information inquired is talking state: if
It is to then follow the steps S204;It is no to then follow the steps S205.
S204: telephone subsystems 121 in operating system 102 carry out incoming calls record and ignore the call received asking
It asks.
Specifically, the time of reception and opposite end number of the telephone subsystems 121 in operating system 102 according to call request
Code generates missed call information and is recorded;Later, ignore the phone call request received.
It is appreciated that when the telephone subsystems 121 of operating system 102 in above-mentioned steps S203 inquire the behaviour in foreground
Make system telephone subsystems it is on call when, the needs of telephone subsystems 121 of operating system 102 are abandoned pair in this step
The response of the phone call request received, to prevent two phones because of competition microphone mic, loudspeaker speaker and listen
Cylinder receier etc. verbal systems and generate conflict.
S205: the telephone subsystems 121 in operating system 102 request this operating system being switched to foreground to kernel 101,
And corresponding phone is connected after determining that this operating system is switched to foreground.
Specifically, the telephone subsystems 121 in operating system 102 switch to the foreground that kernel 101 sends this operating system
Request.
The operating system 102 for sending foreground switching request is switched to by kernel 101 according to the foreground switching request received
Foreground, and return to front and back switching to operating system 102 and finish message.
After the front and back switching that telephone subsystems 121 in operating system 102 receive the return of kernel 101 finishes message,
It determines that this operating system is switched to foreground, connects phone corresponding to phone call request.
Preferably, the front and back state of operating system involved in the switching request of foreground (including operating system 102) switches
Afterwards, respectively by it is each it is adaptive switched after front and back status information and respective system banner be encapsulated into front and back status message, to
All operating system broadcast.
Received front and back status message is forwarded to the telephone subsystems 121 in this operating system by operating system 102;By
Telephone subsystems 121 in this operating system parse system banner and front and back mesa-shaped from the front and back status message received
State information, and according to the system banner and front and back status information parsed to the system state data library in this operating system into
Row updates.
Telephone subsystems 121 in operating system 102 inquire this behaviour from the system state data library of this operating system
The front and back status information that the last time made the system banner of system, and then inquire storage corresponding with the system banner updates;
If the front and back status information inquired is in foreground, it is determined that this operating system is switched to foreground;Later, phone is connected to exhale
The phone for making request corresponding.
It is appreciated that when the telephone subsystems 121 of operating system 102 in above-mentioned steps S203 inquire the behaviour in foreground
When making the telephone subsystems of system and being not in talking state, even if the telephone subsystems 121 of operating system 102 are connected in this step
The corresponding phone of phone call request only exists the phone of a connection in this intelligent terminal, also so as to prevent two electricity
Words generate conflict because competing verbal system.
S206: whether the telephone subsystems 121 in operating system 102 inquire this telephone subsystems on call;If
It is, then carry out incoming calls record and ignores phone call request;Otherwise, corresponding phone is directly connected.
Specifically, the telephone subsystems 121 in operating system 102 can be from the system state data library of this operating system
Inquire the system banner of this operating system, so inquire it is corresponding with the system banner storage, last time storage or
The talking state of telephone subsystems 121 in this operating system updated;According to telephone subsystems in this operating system found out
121 talking state determines whether the telephone subsystems 121 are on call: if so, according to the reception of call request
Moment and opposite-terminal number generate missed call information;This is recorded to ignore the call received and ask after fetching power information
It asks;Otherwise, the corresponding phone of phone call request is directly connected.
Phone collision method, the internal structure of the kernel 101 of the embodiment of the present invention are prevented based on multisystem according to above-mentioned
Block schematic illustration it is as shown in Figure 3, comprising: operating system searching module 301 and system front and back switching module 302.
Wherein, after operating system searching module 301 receives phone call request, behaviour belonging to its opposite-terminal number is determined
Make system 102, and phone call request is forwarded to the telephone subsystems 121 of operating system 102.
Specifically, operating system searching module 301 is searched phone respectively in the telephone subsystems of multiple operating systems and is exhaled
It is the opposite-terminal number of request;If finding opposite-terminal number, it is determined that telephone subsystems belonging to the opposite-terminal number found out and
Operating system, and using telephone subsystems belonging to opposite-terminal number as telephone subsystems 121, it will be belonging to telephone subsystems 121
Operating system is as operating system 102.
System front and back switching module 302 is used to receive the foreground that the telephone subsystems 121 in operating system 102 are sent
After switching request, operating system 102 belonging to the telephone subsystems 121 for sending foreground switching request is switched to foreground, and to
Operating system 102 returns to front and back switching and finishes message.
The implementation method of 302 function of aforesaid operations system searching module 301 and system front and back switching module, is referred to
Particular content in above-mentioned attached process step shown in Fig. 2, details are not described herein again.
Phone collision method is prevented based on multisystem according to above-mentioned, the electricity in the operating system 102 of the embodiment of the present invention
The block schematic illustration for talking about the internal structure of subsystem 121 is as shown in Figure 4, comprising: operation system state determining module 401, phone
Subsystem state determining module 402 and telephone receiving module 403.
Wherein, it after operation system state determining module 401 is used to receive the phone call request of the forwarding of kernel 101, looks into
Ask the front and back state of this operating system;After inquiring this operating system and being in backstage, background state notice and phone are sent
Call request.
Specifically, after operation system state determining module 401 receives the phone call request that kernel 101 forwards, according to
Whether the front and back status message pre-recorded, this operating system is broadcasted when front and back switches, determine this operating system
In background state: if so, explanation, which inquires this operating system, is in backstage, sending background state notice and call is asked
It asks;If it is not, then illustrating that inquiring this operating system is in foreground, sends foreground state notifying and phone call request.Wherein, preceding
It include: the system banner and front and back status information of operating system in background state message.
Preferably, system banner of the operation system state determining module 401 according to this operating system, from this operating system
System state data library in find out last time store or update this operating system front and back status information;According to looking into
The front and back status information of this operating system found out, determines whether this operating system is in background state: if so, explanation
It inquires this operating system and is in backstage, send background state notice and phone call request.
Further, operation system state determining module 401 is also used to switch in the front and back for receiving the return of kernel 101
After finishing message, the front and back state of this operating system is inquired;After inquiring this operating system and being in foreground, foreground state is sent
Notice and phone call request.
Telephone subsystems state determining module 402 is for receiving mesa-shaped after operation system state determining module 401 is sent
After state notice and phone call request, whether telephone subsystems of the inquiry in the operating system on foreground are on call;
If so, carrying out incoming calls record and ignoring the phone call request received;Otherwise, foreground switching request is sent to kernel 101,
And after receiving operation system state determining module 401 and sending foreground state notifying, phone is sent to telephone receiving module 403
Call request.Wherein, this operating system is to be cut by kernel 101 according to the foreground that telephone subsystems state determining module 402 is sent
It changes request and is switched to foreground.
Specifically, telephone subsystems state determining module 402 is receiving the transmission of operation system state determining module 401
After background state notice and phone call request, according to the telephone subsystems in operating system pre-recorded, in foreground
The talking state message of broadcast determines whether the telephone subsystems in the operating system in foreground are on call: if
It is, then carry out incoming calls record and ignores the phone call request received;Otherwise foreground switching request is sent to kernel 101.Its
In, it include: the system banner of operating system and the call status information of telephone subsystems in talking state message.
Preferably, telephone subsystems state determining module 402 is receiving the transmission of operation system state determining module 401
After background state notice and phone call request, in the system state data library in this operating system, front and back mesa-shaped is inquired
State information is the system banner of the operating system on foreground;And then inquire the telephone subsystems of storage corresponding with the system banner
Call status information further determines that out whether the call status information inquired is talking state: if so, carrying out incoming call note
It records and ignores the phone call request received;Otherwise foreground switching request is sent to kernel 101.
Also, telephone subsystems state determining module 402 is before receiving operation system state determining module 401 and sending
After platform state notifying and phone call request, confirm that this operating system has been switched to foreground, by this operating system system banner and
Front and back status information is encapsulated into front and back status message, is broadcasted to all operating systems of this intelligent terminal.Phone subsystem
State determining module 402 unite according to the system banner and front and back state in the front and back status message of this operating system of broadcast
Information is updated the system state data library of this operating system, and sends call to telephone receiving module 403 and ask
It asks.
Further, telephone subsystems state determining module 402 is also used to receive foreground state notifying and call is asked
After asking, whether on call this telephone subsystems is inquired;If so, carrying out incoming calls record and ignoring the phone received and exhale
Cry request;Otherwise, phone call request is sent to telephone receiving module 403.
Telephone receiving module 403 is used to ask in the call for receiving the transmission of telephone subsystems state determining module 402
After asking, phone corresponding to the phone call request is connected.
Preferably, telephone receiving module 403 is in the call for receiving the transmission of telephone subsystems state determining module 402
After request, the system banner of this operating system is inquired from the system state data library of this operating system, and then is inquired and be somebody's turn to do
The front and back status information that the last time of the corresponding storage of system banner updates;If the front and back status information inquired be in
Foreground, it is determined that this operating system has been switched to foreground;Later, phone corresponding to phone call request is connected.
Aforesaid operations system mode determining module 401, telephone subsystems state determining module 402 and telephone receiving module
The implementation method of 403 functions, the particular content being referred in above-mentioned attached process step shown in Fig. 2, details are not described herein again.
In the embodiment of the present invention, after the telephone subsystems in operating system receive phone call request, inquiring
When telephone subsystems in operating system of this operating system in backstage and in foreground are on call, ignore phone
Call request prevents occurring more than two phones connected in intelligent terminal, so as to prevent more than two phones because competing
It strives verbal system and generates conflict.
Moreover, after the telephone subsystems in operating system receive phone call request, being looked into the embodiment of the present invention
Ask out this operating system be in backstage and in foreground operating system in telephone subsystems be not in talking state when, lead to
It crosses after this operating system is switched to foreground by request kernel, connects corresponding phone.The embodiment of the present invention can be to being in
The operating system reception phone call request on backstage is responded and when connecting phone, is kept in intelligent terminal at most
The phone being had been turned on there are one, to prevent more than two phones from generating conflict.
Further, in the embodiment of the present invention, after the telephone subsystems in operating system receive phone call request, if
It inquires this operating system and is in foreground, then further asked according to this telephone subsystems is on call to ignore call
It asks or is not in talking state according to this telephone subsystems to connect corresponding phone.The embodiment of the present invention can be right
Operating system reception phone call request in foreground is responded and when connecting phone, is kept in intelligent terminal
The phone at most being had been turned on there are one, to prevent more than two phones from generating conflict.
Those skilled in the art of the present technique are appreciated that the present invention includes being related to for executing in operation described herein
One or more equipment.These equipment can specially design and manufacture for required purpose, or also may include general
Known device in computer.These equipment have the computer program being stored in it, these computer programs are selectively
Activation or reconstruct.Such computer program can be stored in equipment (for example, computer) readable medium or be stored in
It e-command and is coupled in any kind of medium of bus respectively suitable for storage, the computer-readable medium includes but not
Be limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only
Read memory), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable
Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable
Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card
Piece.It is, readable medium includes by equipment (for example, computer) with any Jie for the form storage or transmission information that can be read
Matter.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or
The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology neck
Field technique personnel be appreciated that these computer program instructions can be supplied to general purpose computer, special purpose computer or other
The processor of programmable data processing method is realized, to pass through the processing of computer or other programmable data processing methods
The scheme specified in frame or multiple frames of the device to execute structure chart and/or block diagram and/or flow graph disclosed by the invention.
Those skilled in the art of the present technique have been appreciated that in the present invention the various operations crossed by discussion, method, in process
Steps, measures, and schemes can be replaced, changed, combined or be deleted.Further, each with having been crossed by discussion in the present invention
Kind of operation, method, other steps, measures, and schemes in process may also be alternated, changed, rearranged, decomposed, combined or deleted.
Further, in the prior art to have and the step in various operations, method disclosed in the present invention, process, measure, scheme
It may also be alternated, changed, rearranged, decomposed, combined or deleted.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.