Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Being exemplary below by the embodiment be described with reference to the drawings, only for explaining the present invention, and can not limitation of the present invention being interpreted as.
Those skilled in the art of the present technique are appreciated that unless expressly stated, and singulative used herein " ", " one ", " described " and " being somebody's turn to do " also can comprise plural form.Should be further understood that, the wording used in specification of the present invention " comprises " and refers to there is described feature, integer, step, operation, element and/or assembly, but does not get rid of and exist or add other features one or more, integer, step, operation, element, assembly and/or their group.Should be appreciated that, when we claim element to be " connected " or " coupling " to another element time, it can be directly connected or coupled to other elements, or also can there is intermediary element.In addition, " connection " used herein or " coupling " can comprise wireless connections or wirelessly to couple.Wording "and/or" used herein comprises one or more whole or arbitrary unit listing item be associated and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, and all terms used herein (comprising technical term and scientific terminology), have the meaning identical with the general understanding of the those of ordinary skill in field belonging to the present invention.It should also be understood that, those terms defined in such as general dictionary, should be understood to that there is the meaning consistent with the meaning in the context of prior art, unless and by specific definitions as here, otherwise can not explain by idealized or too formal implication.
Those skilled in the art of the present technique are appreciated that, here used " terminal ", " terminal equipment " had both comprised the equipment of wireless signal receiver, it only possesses the equipment of the wireless signal receiver without emissivities, comprise again the equipment receiving and launch hardware, it has and on bidirectional communication link, can carry out the reception of two-way communication and launch the equipment of hardware.This equipment can comprise: honeycomb or other communication equipments, its honeycomb or other communication equipment of having single line display or multi-line display or not having multi-line display; PCS (PersonalCommunicationsService, PCS Personal Communications System), it can combine voice, data processing, fax and/or its communication ability; PDA (PersonalDigitalAssistant, personal digital assistant), it can comprise radio frequency receiver, beep-pager, the Internet/intranet access, web browser, notepad, calendar and/or GPS (GlobalPositioningSystem, global positioning system) receiver; Conventional laptop and/or palmtop computer or other equipment, it has and/or comprises the conventional laptop of radio frequency receiver and/or palmtop computer or other equipment.Here used " terminal ", " terminal equipment " can be portable, can transport, be arranged in the vehicles (aviation, sea-freight and/or land), or be suitable for and/or be configured at local runtime, and/or with distribution form, any other position operating in the earth and/or space is run.Here used " terminal ", " terminal equipment " can also be communication terminal, access terminals, music/video playback terminal, can be such as PDA, MID (MobileInternetDevice, mobile internet device) and/or there is the mobile phone of music/video playing function, also can be the equipment such as intelligent television, Set Top Box.
The present inventor considers, can install kernel and multiple operating system, arrange the telephone subsystems of this operating system in each operating system in intelligent terminal.The operating system belonging to opposite-terminal number can determining by kernel the phone call request received, and phone call request is forwarded to this operating system.Compete same verbal system in order to avoid two phones connected and produce the phenomenon of conflict, receive the telephone subsystems in the operating system of phone call request, first inquire about the AM/BAM state of this operating system, inquiring after for backstage, existence can connect two incoming calls may.Therefore this telephone subsystems continuation inquiry is in the phone that whether there is connection in the operating system on foreground; If so, then abandon connecting phone corresponding to phone call request; Otherwise, to kernel requests, this operating system is switched to foreground, and under the state of foreground, connects corresponding phone.Can ensure to there is a phone connected at most in intelligent terminal simultaneously, thus appearance two incoming calls can be avoided to cause resource contention.
The technical scheme of embodiments of the invention is specifically introduced below in conjunction with accompanying drawing.
Intelligent terminal in embodiments of the invention can be the terminal equipment such as smart mobile phone, panel computer, and the block schematic illustration of its internal structure as shown in Figure 1, can comprise: kernel 101 and operating system.
Wherein, kernel 101 can be the expansion kernel based on linux kernel (such as Kernel).
Operating system can have two or more.Each operating system can be the operating system based on container.Particularly, technical staff can utilize Linuxcontainer container Intel Virtualization Technology, creates multiple container, installs and run an operating system in each container.Each container is configured with independently hardware resource access rights configuration, and the operating system of this container can independent access hardware resource, as CPU, IO (InputOutput, input and output) equipment etc.
In each operating system, can telephone subsystems exclusive be separately set respectively.Each telephone subsystems comprises independently address list etc.
Preferably, at least one identification module is provided with in the intelligent terminal in the embodiment of the present invention.Identification module can be SIM (SubscriberIdentityModule, client identification module) card, UIM (UserIdentifyModule, subscriber identification module) card or Micro-SIM (miniature client identification module) card.Store communicating number in identification module, this communicating number can be bound mutually with the telephone subsystems at least one operating system.
After intelligent terminal start in the embodiment of the present invention, kernel 101 first initialization starting.After kernel 101 startup optimization, start each operating system respectively.The operating system 102 of normally first startup is in foreground, and the operating system of follow-up startup is all directly in backstage.
For each operating system started, the system banner of this operating system and current AM/BAM state information are encapsulated in AM/BAM status message by this operating system, broadcast to all operations system.
After an operating system receives the AM/BAM status message of another operating system transmission, be forwarded to the telephone subsystems in this operating system; From the AM/BAM status message received, the AM/BAM state information of system banner is parsed by the telephone subsystems in this operating system, and by the system state data storehouse that parses in the AM/BAM state information corresponding stored to this operating system of system banner.
After operating system generation AM/BAM state switches, the AM/BAM status message that each operating system in this intelligent terminal is broadcasted according to the operating system switching AM/BAM state, upgrades respective system state data storehouse.
Particularly, when the switching command that kernel 101 inputs according to user, after two operating systems related to this switching command carry out AM/BAM switching, these two operating systems respectively by each adaptive switched after AM/BAM state information and respective system banner be encapsulated in AM/BAM status message, to all operations system broadcasts.
Each operating system in the intelligent terminal of the embodiment of the present invention, the AM/BAM status message of reception is forwarded to the telephone subsystems in this operating system by this operating system; From the AM/BAM status message received, parse system banner and AM/BAM state information by the telephone subsystems in this operating system, and according to the system banner parsed and AM/BAM state information, the system state data storehouse in this operating system is upgraded.
After the talking state of the telephone subsystems of operating system switches, the talking state message that each operating system in this intelligent terminal is broadcasted according to the operating system of handoff calls state, upgrades respective system state data storehouse.
Particularly, when the telephone subsystems in the operating system being in foreground connect phone according to the phone call request that receives, be namely in talking state time, the system banner of this operating system and the call status information of telephone subsystems are carried in talking state message by the operating system being in foreground, all operations system broadcasts in this intelligent terminal.
Each operating system in the intelligent terminal of the embodiment of the present invention, the talking state message of reception is forwarded to the telephone subsystems in this operating system by this operating system; From the talking state message received, system banner and call status information is parsed by the telephone subsystems in this operating system.Afterwards, the telephone subsystems in this operating system by the system banner that parses and call status information, in the system state data storehouse in corresponding stored to this operating system; Or the telephone subsystems in this operating system, according to the system banner parsed and call status information, upgrades the system state data storehouse in this operating system.
Based on the above-mentioned internal structure comprising the intelligent terminal of multiple operating system, embodiments provide one and prevent phone collision method, the schematic flow sheet of the method as shown in Figure 2, comprises the steps:
S201: after kernel 101 receives phone call request, determines the operating system 102 belonging to its opposite-terminal number, this phone call request is forwarded to the operating system 102 determined.
Concrete, after the mobile communication module in intelligent terminal receives phone call request, therefrom parse destination number; The destination number parsed if determine is consistent with the communicating number in the identification module of this intelligent terminal, then the phone call request received is sent to kernel 101.
After kernel 101 receives phone call request, therefrom parse the communicating number (abbreviation opposite-terminal number) of the opposite end intelligent terminal sending this phone call request.Kernel 101 searches the opposite-terminal number of this phone call request respectively in the telephone subsystems of multiple operating systems of this intelligent terminal.
If kernel 101, in the telephone subsystems of the operating system of this intelligent terminal, finds opposite-terminal number, then determine the telephone subsystems belonging to opposite-terminal number found, and then determine the operating system belonging to this telephone subsystems.For ease of describing, the operating system in phone call request belonging to opposite-terminal number is called operating system 102 herein; By the telephone subsystems belonging to this opposite-terminal number, namely the telephone subsystems of operating system 102 is called telephone subsystems 121.
The phone call request received is forwarded to the operating system 102 determined by kernel 101.Preferably, the phone call request received is forwarded to the telephone subsystems 121 in the operating system 102 determined by kernel 101.
Preferably, if kernel 101 is in the telephone subsystems of each operating system of this intelligent terminal, all search less than opposite-terminal number, then confirm that the opposite-terminal number of this phone call request is after strangeness numbers, perform step S206.
S202: the telephone subsystems 121 in operating system 102, after receiving phone call request, inquires about the AM/BAM state of this operating system; If inquire this operating system to be in backstage, then perform step S203; If inquire this operating system to be in foreground, then perform step S206.
Particularly, the phone call request that the kernel 101 received forwards is forwarded to the telephone subsystems 121 in this operating system by operating system 102.
After telephone subsystems 121 in operating system 102 receives phone call request, according to pre-recorded, that this operating system is broadcasted when AM/BAM switches AM/BAM status message, determine whether this operating system is in background state: if, then illustrate that inquiring this operating system is in backstage, performs step S203; If not, then illustrate that inquiring this operating system is in foreground, performs step S206.
AM/BAM status message comprises: the system banner of operating system and AM/BAM state information.
Preferably, after telephone subsystems 121 in operating system 102 receives phone call request, according to the system banner of this operating system, in the system state data storehouse from this operating system, find out the AM/BAM state information of last this operating system stored or upgrade; According to the AM/BAM state information of this operating system found out, determine whether this operating system is in background state: if so, then illustrate that inquiring this operating system is in backstage, performs step S203; If not, then illustrate that inquiring this operating system is in foreground, performs step S206.
S203: the telephone subsystems 121 in operating system 102 is inquiring after this operating system is in backstage, and whether the inquiry telephone subsystems be in the operating system on foreground is in talking state; If so, then step S204 is performed; Otherwise perform step S205.
Particularly, telephone subsystems 121 in operating system 102 is inquiring after this operating system is in backstage, according to the talking state message of the telephone subsystems broadcast in operating system that is pre-recorded, that be in foreground, determine whether the telephone subsystems be in the operating system on foreground is in talking state: if so, then perform step S204; Otherwise perform step S205.
Talking state message comprises: the system banner of operating system and the call status information of telephone subsystems.
Preferably, in the system state data storehouse of the telephone subsystems 121 in operating system 102 in this operating system, the system banner that AM/BAM state information is the operating system on foreground is inquired; And then inquire the call status information with the telephone subsystems of this system banner corresponding stored, determine whether the call status information inquired is talking state further: if so, then perform step S204; Otherwise perform step S205.
S204: the telephone subsystems 121 in operating system 102 carries out incoming calls record and ignores the phone call request received.
Particularly, the telephone subsystems 121 in operating system 102, according to the time of reception of call request and opposite-terminal number, generates missed call information and to go forward side by side line item; Afterwards, the phone call request received is ignored.
Be appreciated that, when the telephone subsystems that the telephone subsystems 121 of operating system in above-mentioned steps S203 102 inquires the operating system being in foreground is in talking state, in this step, the telephone subsystems 121 of operating system 102 needs the response abandoned the phone call request received, thus prevents two phones from producing conflict because of verbal systems such as competition microphone mic, loud speaker speaker and receiver receier.
S205: the telephone subsystems 121 in operating system 102 asks this operating system to be switched to foreground to kernel 101, and determining after this operating system is switched to foreground, to connect corresponding phone.
Particularly, the telephone subsystems 121 in operating system 102 sends the foreground handover request of this operating system to kernel 101.
The operating system 102 sending foreground handover request, according to the foreground handover request received, is switched to foreground by kernel 101, and returns AM/BAM to operating system 102 and switch complete message.
Telephone subsystems 121 in operating system 102 receives after AM/BAM that kernel 101 returns switches complete message, determines that this operating system is switched to foreground, connects the phone corresponding to phone call request.
Preferably, after the AM/BAM state switching of the operating system (comprising operating system 102) involved by the handover request of foreground, respectively by each adaptive switched after AM/BAM state information and respective system banner be encapsulated in AM/BAM status message, to all operations system broadcasts.
The AM/BAM status message of reception is forwarded to the telephone subsystems 121 in this operating system by operating system 102; From the AM/BAM status message received, parse system banner and AM/BAM state information by the telephone subsystems 121 in this operating system, and according to the system banner parsed and AM/BAM state information, the system state data storehouse in this operating system is upgraded.
Telephone subsystems 121 in operating system 102 inquires the system banner of this operating system from the system state data storehouse of this operating system, and then the AM/BAM state information of the last renewal of inquiry and this system banner corresponding stored; If the AM/BAM state information inquired is for being in foreground, then determine that this operating system is switched to foreground; Afterwards, the phone corresponding to phone call request is connected.
Be appreciated that, when the telephone subsystems that the telephone subsystems 121 of operating system in above-mentioned steps S203 102 inquires the operating system being in foreground is not in talking state, even if the telephone subsystems 121 of operating system 102 connects phone corresponding to phone call request in this step, also only there is a phone connected in this intelligent terminal, thus can prevent two phones from producing conflict because of competition verbal system.
S206: the telephone subsystems 121 in operating system 102 is inquired about this telephone subsystems and whether is in talking state; If so, then carry out incoming calls record and ignore phone call request; Otherwise, directly connect corresponding phone.
Particularly, telephone subsystems 121 in operating system 102 can inquire the system banner of this operating system from the system state data storehouse of this operating system, and then inquires the talking state with telephone subsystems 121 in this system banner corresponding stored, last this operating system stored or upgrade; According to the talking state of telephone subsystems in this operating system found out 121, determine whether this telephone subsystems 121 is in talking state: if so, then according to the time of reception and the opposite-terminal number generation missed call information of call request; Record this to after connecing incoming information, ignore the phone call request received; Otherwise, directly connect phone corresponding to phone call request.
Prevent phone collision method according to above-mentioned based on multisystem, the block schematic illustration of the internal structure of the kernel 101 of the embodiment of the present invention as shown in Figure 3, comprising: operating system searches module 301 and system AM/BAM handover module 302.
Wherein, operating system is searched after module 301 receives phone call request, determines the operating system 102 belonging to its opposite-terminal number, and phone call request is forwarded to the telephone subsystems 121 of operating system 102.
Particularly, operating system searches the opposite-terminal number that module 301 searches phone call request respectively in the telephone subsystems of multiple operating system; If find opposite-terminal number, then determine the telephone subsystems belonging to opposite-terminal number and operating system that find, and using the telephone subsystems belonging to opposite-terminal number as telephone subsystems 121, using the operating system belonging to telephone subsystems 121 as operating system 102.
System AM/BAM handover module 302 is for after the foreground handover request that receives telephone subsystems 121 in operating system 102 and send, operating system 102 belonging to the telephone subsystems 121 sending foreground handover request is switched to foreground, and returns AM/BAM to operating system 102 and switch complete message.
The implementation method of aforesaid operations system searching module 301 and system AM/BAM handover module 302 function, with reference to the particular content in the process step shown in above-mentioned accompanying drawing 2, can repeat no more herein.
Phone collision method is prevented based on multisystem according to above-mentioned, the block schematic illustration of the internal structure of the telephone subsystems 121 in the operating system 102 of the embodiment of the present invention as shown in Figure 4, comprising: operation system state determination module 401, telephone subsystems state determining module 402 and telephone receiving module 403.
Wherein, operation system state determination module 401 for receive kernel 101 forward phone call request after, inquire about the AM/BAM state of this operating system; Inquiring after this operating system is in backstage, send background state notice and phone call request.
Particularly, after operation system state determination module 401 receives the phone call request of kernel 101 forwarding, according to pre-recorded, that this operating system is broadcasted when AM/BAM switches AM/BAM status message, determine whether this operating system is in background state: if, then illustrate that inquiring this operating system is in backstage, sends background state notice and phone call request; If not, then illustrate that inquiring this operating system is in foreground, sends foreground state notifying and phone call request.Wherein, AM/BAM status message comprises: the system banner of operating system and AM/BAM state information.
Preferably, operation system state determination module 401, according to the system banner of this operating system, finds out the AM/BAM state information of last this operating system stored or upgrade in the system state data storehouse from this operating system; According to the AM/BAM state information of this operating system found out, determine whether this operating system is in background state: if so, then illustrate that inquiring this operating system is in backstage, sends background state notice and phone call request.
Further, operation system state determination module 401 also for receiving after AM/BAM that kernel 101 returns switches complete message, inquires about the AM/BAM state of this operating system; Inquiring after this operating system is in foreground, send foreground state notifying and phone call request.
Telephone subsystems state determining module 402 for receive operation system state determination module 401 send background state notice and phone call request after, inquire about the telephone subsystems be in the operating system on foreground whether be in talking state; If so, then carry out incoming calls record and ignore the phone call request received; Otherwise, send foreground handover request to kernel 101, and receiving after operation system state determination module 401 sends foreground state notifying, send phone call request to telephone receiving module 403.Wherein, this operating system is switched to foreground by kernel 101 according to foreground handover request that telephone subsystems state determining module 402 sends.
Particularly, telephone subsystems state determining module 402 is after the background state notice receiving operation system state determination module 401 transmission and phone call request, according to the talking state message of the telephone subsystems broadcast in operating system that is pre-recorded, that be in foreground, determine whether the telephone subsystems be in the operating system on foreground is in talking state: if so, then carry out incoming calls record and ignore the phone call request received; Otherwise send foreground handover request to kernel 101.Wherein, talking state message comprises: the system banner of operating system and the call status information of telephone subsystems.
Preferably, telephone subsystems state determining module 402 is after the background state notice receiving operation system state determination module 401 transmission and phone call request, in system state data storehouse in this operating system, inquire the system banner that AM/BAM state information is the operating system on foreground; And then inquire the call status information with the telephone subsystems of this system banner corresponding stored, determine whether the call status information inquired is talking state further: if so, then carry out incoming calls record and ignore the phone call request received; Otherwise send foreground handover request to kernel 101.
And, telephone subsystems state determining module 402 is after the foreground state notifying receiving operation system state determination module 401 transmission and phone call request, confirm that this operating system is switched to foreground, this operating system system banner and AM/BAM state information are encapsulated in AM/BAM status message, to all operations system broadcasts of this intelligent terminal.Telephone subsystems state determining module 402 is according to the system banner in the AM/BAM status message of this operating system of broadcast and AM/BAM state information, the system state data storehouse of this operating system is upgraded, and sends phone call request to telephone receiving module 403.
Further, telephone subsystems state determining module 402 also for after receiving foreground state notifying and phone call request, is inquired about this telephone subsystems and whether is in talking state; If so, then carry out incoming calls record and ignore the phone call request received; Otherwise, send phone call request to telephone receiving module 403.
Telephone receiving module 403, for after the phone call request receiving telephone subsystems state determining module 402 transmission, connects the phone corresponding to this phone call request.
Preferably, telephone receiving module 403 is after the phone call request receiving telephone subsystems state determining module 402 transmission, the system banner of this operating system is inquired from the system state data storehouse of this operating system, and then the AM/BAM state information of the last renewal of inquiry and this system banner corresponding stored; If the AM/BAM state information inquired is for being in foreground, then determine that this operating system is switched to foreground; Afterwards, the phone corresponding to phone call request is connected.
The implementation method of aforesaid operations system mode determination module 401, telephone subsystems state determining module 402 and telephone receiving module 403 function, with reference to the particular content in the process step shown in above-mentioned accompanying drawing 2, can repeat no more herein.
In embodiments of the invention, after telephone subsystems in operating system receives phone call request, when inquiring this operating system and be in backstage and the telephone subsystems be in the operating system on foreground being in talking state, ignore phone call request, prevent the phone occurring in intelligent terminal that two or more is connected, thus can prevent plural phone from producing conflict because of competition verbal system.
And, in embodiments of the invention, after telephone subsystems in operating system receives phone call request, when inquiring this operating system and be in backstage and the telephone subsystems be in the operating system on foreground not being in talking state, after this operating system being switched to foreground by request kernel, connect corresponding phone.Embodiments of the invention can respond receiving the operating system being in backstage phone call request and in connection phone situation, keep there is a phone connected at most in intelligent terminal, thus prevent two or more phone from producing conflict.
Further, in embodiments of the invention, after telephone subsystems in operating system receives phone call request, if inquire this operating system to be in foreground, be then in talking state according to this telephone subsystems further and ignore phone call request or be not in talking state to connect corresponding phone according to this telephone subsystems.Embodiments of the invention can respond receiving the operating system being in foreground phone call request and in connection phone situation, keep there is a phone connected at most in intelligent terminal, thus prevent two or more phone from producing conflict.
Those skilled in the art of the present technique are appreciated that the one or more equipment that the present invention includes and relate to for performing in operation described in the application.These equipment for required object and specialized designs and manufacture, or also can comprise the known device in all-purpose computer.These equipment have storage computer program within it, and these computer programs optionally activate or reconstruct.Such computer program can be stored in equipment (such as, computer) in computer-readable recording medium or be stored in and be suitable for store electrons instruction and be coupled in the medium of any type of bus respectively, described computer-readable medium includes but not limited to that the dish of any type (comprises floppy disk, hard disk, CD, CD-ROM, and magneto optical disk), ROM (Read-OnlyMemory, read-only memory), RAM (RandomAccessMemory, memory immediately), EPROM (ErasableProgrammableRead-OnlyMemory, Erarable Programmable Read only Memory), EEPROM (ElectricallyErasableProgrammableRead-OnlyMemory, EEPROM (Electrically Erasable Programmable Read Only Memo)), flash memory, magnetic card or light card.Namely, computer-readable recording medium comprises and being stored or any medium of transmission information with the form that can read by equipment (such as, computer).
Those skilled in the art of the present technique are appreciated that the combination that can realize the frame in each frame in these structure charts and/or block diagram and/or flow graph and these structure charts and/or block diagram and/or flow graph with computer program instructions.Those skilled in the art of the present technique are appreciated that, the processor that these computer program instructions can be supplied to all-purpose computer, special purpose computer or other programmable data processing methods realizes, thus is performed the scheme of specifying in the frame of structure chart disclosed by the invention and/or block diagram and/or flow graph or multiple frame by the processor of computer or other programmable data processing methods.
Those skilled in the art of the present technique are appreciated that various operations, method, the step in flow process, measure, the scheme discussed in the present invention can be replaced, changes, combines or delete.Further, there is various operations, method, other steps in flow process, measure, the scheme discussed in the present invention also can be replaced, change, reset, decompose, combine or delete.Further, of the prior art have also can be replaced with the step in operation various disclosed in the present invention, method, flow process, measure, scheme, changed, reset, decomposed, combined or deleted.
The above is only some embodiments of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.