CN104660780A - Electronic equipment and control method thereof - Google Patents

Electronic equipment and control method thereof Download PDF

Info

Publication number
CN104660780A
CN104660780A CN201310579300.5A CN201310579300A CN104660780A CN 104660780 A CN104660780 A CN 104660780A CN 201310579300 A CN201310579300 A CN 201310579300A CN 104660780 A CN104660780 A CN 104660780A
Authority
CN
China
Prior art keywords
communication port
switching command
application
electronic equipment
communication passage
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
Application number
CN201310579300.5A
Other languages
Chinese (zh)
Other versions
CN104660780B (en
Inventor
胡富斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310579300.5A priority Critical patent/CN104660780B/en
Publication of CN104660780A publication Critical patent/CN104660780A/en
Application granted granted Critical
Publication of CN104660780B publication Critical patent/CN104660780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses electronic equipment and a control method thereof. Applications of the electronic equipment use a first communication channel or a second communication channel of the electronic equipment for communication. The method comprises the steps of comparing priority of a first application with priority of a second application when a first switching order is acquired and switching is not performed between the first communication channel and the second communication channel currently; and stopping responding to the first switching order when the priority of the second application is superior to the priority of the first application. Through adoption of the electronic equipment and the control method, service failure caused by data main card switch can be prevented.

Description

Electronic equipment and control method thereof
Technical field
The present invention relates to the communication technology, particularly relate to a kind of electronic equipment and control method thereof.
Background technology
Double-card dual-standby (DSDS, Dual SIM Dual Standby) single-pass mobile phone current time can only use a client identification module (SIM, Subscriber Identify Module) card and current data main card, inventor, in the process realizing technical scheme in the embodiment of the present invention, finds that above-mentioned technology at least exists following technical problem:
It is high that the multimedia message of non-current main card sends mortality;
When non-current main card sends multimedia message, occur transmitting with the incoherent data traffic of multimedia message;
When to occur simultaneously user from graphical interface of user (UI, User Interface) operate switch data main card and system answer MMS to require switch data main card time, not based on clash handle and the corresponding conflict prompting of priority, Consumer's Experience is poor.
Such as, when needs use current data vice card and current untapped SIM card to carry out related service, need, by calling built-in SIM card manager, current data vice card is switched to data main card temporarily, now, if other applications trigger in mobile phone use former data main card, by switching to the former data main card of data vice card again to switch to data main card temporarily, can cause utilizing ephemeral data main card to carry out the service fails such as multimedia message, affect Consumer's Experience.
Summary of the invention
In view of this, the main purpose of the embodiment of the present invention is to provide a kind of electronic equipment and control method thereof, switches at least to solve data main card in electronic equipment the problem causing service fail.
For achieving the above object, the technical scheme of the embodiment of the present invention is achieved in that
The embodiment of the present invention provides a kind of control method, is applied in electronic equipment, and the application in described electronic equipment uses the first communication port in described electronic equipment or second communication passage to communicate; Described method comprises:
When acquisition carries out the first switching command switched between described first communication port and described second communication passage, detect the current state of described first communication port and described second communication passage respectively, corresponding the second state information generating the first state information and the described second communication channel status of sign characterizing described first communication port state;
Resolve described first state information and described second state information, generate the first analysis result;
When described first analysis result characterize current do not switch between described first communication port and described second communication passage time, determine the pre-set priority of described first application and described second application respectively, described first is applied as the application sending described first switching command, described second application being applied as transmission second switching command, the last switching command that described second switching command responded before obtaining described first switching command for described electronic equipment;
More described first application priority and described second application priority, when described second application priority higher than described first application priority time, forbid respond described first switching command.
The embodiment of the present invention also provides a kind of electronic equipment, and the application in described electronic equipment uses the first communication port in described electronic equipment or second communication passage to communicate; Described electronic equipment comprises:
Detecting unit, when carrying out the first switching command switched for obtaining between described first communication port and described second communication passage, detect the current state of described first communication port and described second communication passage respectively, corresponding the second state information generating the first state information and the described second communication channel status of sign characterizing described first communication port state;
Resolution unit, for resolving described first state information and described second state information, generates the first analysis result;
Determining unit, for when described first analysis result characterize current do not switch between described first communication port and described second communication passage time, determine the pre-set priority of described first application and described second application respectively, described first is applied as the application sending described first switching command, described second application being applied as transmission second switching command, the last switching command that described second switching command responded before obtaining described first switching command for described electronic equipment;
Response management unit, for more described first application priority and described second application priority, when described second application priority higher than described first application priority time, forbid respond described first switching command.
In the embodiment of the present invention, when the priority of the second application is higher than the first application, then forbid response first switching command, so, the process that second application uses second communication passage to carry out communicating can not be interrupted, and guarantees that the business of the second application correspondence can not be interrupted owing to receiving the first switching command in the process of implementation and cause the problem of service fail.Such as, second be applied as send the application of multimedia message time, due to the multimedia message that sends in implementation once interrupt will causing sending unsuccessfully, therefore by forbidding the process of response first switching command, ensure that and utilize the second SIM card successfully can send multimedia message.
Accompanying drawing explanation
Fig. 1 is the realization flow schematic diagram one of control method in the embodiment of the present invention;
Fig. 2 is the realization flow schematic diagram two of control method in the embodiment of the present invention;
Fig. 3 is the realization flow schematic diagram three of control method in the embodiment of the present invention;
Fig. 4 is the realization flow schematic diagram four of control method in the embodiment of the present invention;
Fig. 5 is electronic equipment composition structural representation one in the embodiment of the present invention;
Fig. 6 is electronic equipment composition structural representation two in the embodiment of the present invention;
Fig. 7 is electronic equipment composition structural representation three in the embodiment of the present invention.
Embodiment
Basic thought of the present invention is: when acquisition carries out the first switching command switched between described first communication port and described second communication passage, detect the current state of described first communication port and described second communication passage respectively, corresponding the second state information generating the first state information and the described second communication channel status of sign characterizing described first communication port state; Resolve described first state information and described second state information, generate the first analysis result; When described first analysis result characterize current do not switch between described first communication port and described second communication passage time, determine the pre-set priority of described first application and described second application respectively, described first is applied as the application sending described first switching command, described second application being applied as transmission second switching command, the last switching command that described second switching command responded before obtaining described first switching command for described electronic equipment; More described first application priority and described second application priority, when described second application priority higher than described first application priority time, forbid respond described first switching command.
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.
Embodiment one
The present embodiment records a kind of control method, is applied in electronic equipment, and the application in described electronic equipment uses the first communication port in described electronic equipment or second communication passage to communicate; Fig. 1 is the realization flow schematic diagram one of control method in the embodiment of the present invention, as shown in Figure 1, comprises the following steps:
Step 10: obtain the first switching command carrying out switching between described first communication port and described second communication passage.
Electronic equipment described in the present embodiment is dual-card dual-standby single-pass electronic equipment, described electronic equipment uses two SIM cards, is set to the first SIM card and the second SIM card, wherein, described first communication port is corresponding with described first SIM card, and described second communication passage is corresponding with described second SIM card.
Described electronic equipment current time can only use the first SIM card to communicate with the SIM card in the second SIM card, correspondingly, described first switching command is be the communication port of current use and the instruction of main communication port by the first communication port or second communication passage bridge.Below illustrate:
In the present embodiment, when the SIM card of the current use of electronic equipment is the first SIM card, first communication port is current main communication port, correspondingly, second communication passage is current secondary communication port, if the first application will use the second SIM card to communicate, then needing to send is the first switching command of main communication port by second communication passage bridge corresponding for current secondary communication port i.e. the second SIM card; The SIM card of the current use of electronic equipment is the second SIM card, namely second communication passage is current main communication port, the first communication port is when being current secondary communication port, if the first application will use the first SIM card to communicate, then need to send to the first electronic equipment the first switching command the first corresponding for current secondary communication port i.e. the first SIM card communication port being switched to current main communication port.
Wherein, described first switching command triggering mode comprise following any one:
1) trigger after the operation receiving described electronic device user, described operation is corresponding with described first switching command.Such as, during current use the first SIM card of electronic equipment, if electronic device user expects that use second SIM card sends multimedia message, then send the first switching command by operating SIM manager.2) application of described first electronic equipment initiatively triggers.Such as, when first communication port is for acquiescence main communication port, if acquiescence updating operation is initiated in the application of the first electronic equipment and current second communication passage is switched to interim main communication port to send multimedia message, then described application can send the first switching command, with request, the first communication port be switched to main communication port, thus carries out updating operation.
The first communication port that in the present embodiment, the first SIM card is corresponding is the main communication port of acquiescence, before step 10, electronic equipment receives the second switching command that the second application sends, second communication passage bridge is that interim main communication port sends multimedia message to use described second communication passage by request, described second switching command of electronic equipment response, be interim main communication port by second communication passage bridge, send multimedia message by the second application.In the present embodiment, the application sending described first switching command is set to the first application, the last switching command that described second switching command responded before obtaining described first switching command for described electronic equipment.
In step 10, electronic equipment obtains the first switching command that the first application sends, and described first application carries out updating operation by sending the first switching command to use described first communication port.
Step 20: the current state detecting described first communication port and described second communication passage respectively, corresponding the second state information generating the first state information and the described second communication channel status of sign characterizing described first communication port state.
In the present embodiment, the state of described first communication port and described second communication passage uses corresponding state machine to safeguard, thus, detect described first communication port and state machine corresponding to described second communication passage, obtain the current state information of described first communication port and described second communication passage respectively.
Step 30: resolve described first state information and described second state information, generate the first analysis result.
Step 40: judge whether described first analysis result characterizes and currently not switch between described first communication port and described second communication passage, if so, then performs step 50; Otherwise, do not process.
Due to when the first communication port and second communication passage switch, the first switching command cannot be responded, therefore, after acquisition first switching command, need to confirm that electronic equipment is current do not switch between the first communication port and second communication passage, namely currently both do not carried out the operation the first communication port being switched to main communication port, also not carrying out is the operation of main communication port by second communication passage bridge.
Step 50: the priority whether the more described second priority applied is applied higher than described first, if higher than, then perform step 60; Otherwise, do not process.
The priority of described first application and the priority of described second application can be preset, and also can calculate acquisition in real time according to the descriptor of the first application and the second application, described descriptor comprises the information such as the type of described first application and the second application.
Step 60: forbid responding described first switching command.
In step 50, when the priority of the second application is higher than the first application, then forbid response first switching command in a step 60, so, the process that second application uses second communication passage to carry out communicating can not be interrupted, guarantee that the business of the second application correspondence can not be interrupted owing to receiving the first switching command in the process of implementation, thus cause the problem of service fail.Such as, when second is applied as the application sending multimedia message, due to send multimedia message in implementation once interrupt will cause sending unsuccessfully, therefore by forbidding the process of response first switching command, ensure that and utilize the second SIM card successfully can send multimedia message, solve multimedia message in correlation technique and send the high problem of mortality.
Embodiment two
There is the situation not arranging main communication port in the method that the present embodiment is recorded, Fig. 2 is the realization flow schematic diagram two of control method in the embodiment of the present invention, as shown in Figure 2, comprises the following steps for electronic equipment:
Step 10: obtain the first switching command carrying out switching between described first communication port and described second communication passage.
Electronic equipment described in the present embodiment is dual-card dual-standby single-pass electronic equipment, described electronic equipment uses two SIM cards, is set to the first SIM card and the second SIM card, wherein, described first communication port is corresponding with described first SIM card, and described second communication passage is corresponding with described second SIM card.
Described electronic equipment current time can only use the SIM card in the first SIM card and the second SIM card, correspondingly, described first switching command comprises the first communication port or second communication passage bridge is the communication port of current use and the instruction of main communication port.Below illustrate:
In the present embodiment, the application sending described first switching command is set to the first application, when the SIM card of current use is the first SIM card, first communication port is current main communication port, correspondingly, second communication passage is current secondary communication port, if the first application will use the second SIM card to communicate, then needing to initiate is the first switching command of main communication port by second communication passage bridge corresponding for current secondary communication port i.e. the second SIM card; The SIM card of current use is the second SIM card, namely second communication passage is current main communication port, the first communication port is when being current secondary communication port, if the first application will use the first SIM card to communicate, then need the first switching command initiating the first corresponding for current secondary communication port i.e. the first SIM card communication port to switch to the first electronic equipment main communication port.
Wherein, described first switching command triggering mode comprise following any one:
1) trigger after the operation receiving described electronic device user, described operation is corresponding with described first switching command.Such as, during current use the first SIM card of electronic equipment, if electronic device user expects that use second SIM card sends multimedia message, then send the first switching command by operating SIM manager.2) application of described first electronic equipment initiatively triggers.Such as, when first communication port is for acquiescence main communication port, if acquiescence updating operation is initiated in the application of the first electronic equipment and current second communication passage is switched to interim main communication port to send multimedia message, then described application can send the first switching command, with request, the first communication port be switched to main communication port, thus carries out updating operation.
The first communication port that in the present embodiment, the first SIM card is corresponding is the main communication port of acquiescence, before step 10, electronic equipment receives the second switching command that the second application sends, second communication passage bridge is that interim main communication port sends multimedia message to use described second communication passage by request, described second switching command of electronic equipment response, be interim main communication port by second communication passage bridge, send multimedia message by the second application.In the present embodiment, the application sending described first switching command is set to the first application, the last switching command that described second switching command responded before obtaining described first switching command for described electronic equipment.
In step 10, electronic equipment obtains the first switching command that the first application sends, and described first application carries out updating operation by sending the first switching command to use described first communication port.
Step 20: the current state detecting described first communication port and described second communication passage respectively, corresponding the second state information generating the first state information and the described second communication channel status of sign characterizing described first communication port state.
In the present embodiment, the state of described first communication port and described second communication passage uses corresponding state machine to safeguard, thus, detect described first communication port and state machine corresponding to described second communication passage, obtain the current state information of described first communication port and described second communication passage respectively.
Step 80: resolve described first state information and described second state information, generate the second analysis result.
Step 90: judge that described second analysis result characterizes whether one of described first communication port or described second communication passage are current main communication port, if so, then perform step 30; Otherwise, do not process.
Step 30: resolve described first state information and described second state information, generate the first analysis result.
Step 40: judge whether described first analysis result characterizes and currently not switch between described first communication port and described second communication passage, if switched, then performs step 50; Otherwise, do not process.
Due to when the first communication port and second communication passage switch, the first switching command cannot be responded, therefore, after acquisition first switching command, need to confirm that electronic equipment is current do not switch between the first communication port and second communication passage, namely currently both do not carried out the operation the first communication port being switched to main communication port, also not carrying out is the operation of main communication port by second communication passage bridge.
Step 50: the priority whether the more described second priority applied is applied higher than described first, if higher than, then perform step 60; Otherwise, do not process.
The priority of described first application and the priority of described second application can be preset, and also can calculate acquisition in real time according to the descriptor of the first application and the second application, described descriptor comprises the information such as the type of described first application and the second application.
Step 60: forbid responding described first switching command.
In step 50, when the priority of the second application is higher than the first application, then forbid response first switching command in a step 60, so, the process that second application uses second communication passage to carry out communicating can not be interrupted, guarantee that the business of the second application correspondence can not be interrupted owing to receiving the first switching command in the process of implementation, thus cause the problem of service fail.Such as, second be applied as send the application of multimedia message time, due to the multimedia message that sends in implementation once interrupt will causing sending unsuccessfully, therefore by forbidding the process of response first switching command, ensure that and utilize the second SIM card successfully can send multimedia message.
Embodiment three
There is the situation not arranging main communication port in the method that the present embodiment is recorded, Fig. 3 is the realization flow schematic diagram three of control method in the embodiment of the present invention, as shown in Figure 3, comprises the following steps for electronic equipment:
Step 10: obtain the first switching command carrying out switching between described first communication port and described second communication passage.
Electronic equipment described in the present embodiment is dual-card dual-standby single-pass electronic equipment, described electronic equipment uses two SIM cards, is set to the first SIM card and the second SIM card, wherein, described first communication port is corresponding with described first SIM card, and described second communication passage is corresponding with described second SIM card.
Described electronic equipment current time can only use the SIM card in the first SIM card or the second SIM card, correspondingly, described first switching command comprises the first communication port or second communication passage bridge is the communication port of current use and the instruction of main communication port.Below illustrate:
In the present embodiment, the application sending described first switching command is set to the first application, when the SIM card of current use is the first SIM card, first communication port is current main communication port, correspondingly, second communication passage is current secondary communication port, if the first application will use the second SIM card to communicate, then needing to initiate is the first switching command of main communication port by second communication passage bridge corresponding for current secondary communication port i.e. the second SIM card; The SIM card of current use is the second SIM card, namely second communication passage is current main communication port, the first communication port is when being current secondary communication port, if the first application will use the first SIM card to communicate, then need the first switching command initiating the first corresponding for current secondary communication port i.e. the first SIM card communication port to switch to the first electronic equipment main communication port.
Wherein, described first switching command triggering mode comprise following any one:
1) trigger after the operation receiving described electronic device user, described operation is corresponding with described first switching command.Such as, during current use the first SIM card of electronic equipment, if electronic device user expects that use second SIM card sends multimedia message, then initiate the first switching command by operating SIM manager.2) application of described first electronic equipment initiatively triggers.Such as, when first communication port is for acquiescence main communication port, if acquiescence updating operation is initiated in the application of the first electronic equipment and current second communication passage is switched to interim main communication port to send multimedia message, then described application can send the first switching command, with request, the first communication port be switched to main communication port, thus carries out updating operation.
The first communication port that in the present embodiment, the first SIM card is corresponding is the main communication port of acquiescence, before step 10, electronic equipment receives the second switching command that the second application sends, second communication passage bridge is that interim main communication port sends multimedia message to use described second communication passage by request, described second switching command of electronic equipment response, be interim main communication port by second communication passage bridge, send multimedia message by the second application.In the present embodiment, the application sending described first switching command is set to the first application, the last switching command that described second switching command responded before obtaining described first switching command for described electronic equipment.
In step 10, electronic equipment obtains the first switching command that the first application sends, and described first application carries out updating operation by sending the first switching command to use described first communication port.
Step 20: the current state detecting described first communication port and described second communication passage respectively, corresponding the second state information generating the first state information and the described second communication channel status of sign characterizing described first communication port state.
In the present embodiment, the state of described first communication port and described second communication passage uses corresponding state machine to safeguard, thus, detect described first communication port and state machine corresponding to described second communication passage, obtain the current state information of described first communication port and described second communication passage respectively.
Step 80: resolve described first state information and described second state information, generate the second analysis result.
Step 90: judge that described second analysis result characterizes described first communication port or whether described second communication passage is current main communication port, if so, then perform step 30; Otherwise, perform step 100.
Described first communication port or described second communication passage bridge are current main communication port by step 100: respond described first switching command.
In step 90, if described second analysis result characterizes one of described first communication port and described second communication passage all main communication ports of non-present, mark electronic equipment is in the state for arranging main communication port, under this state, electronic equipment is in the idle condition not using any SIM card, that is, the electronic equipment being in idle condition can make an immediate response the first switching command.
Such as, when described first communication port is switched to current main communication port by described first switching command request, then respond described first switching command, described first communication port is switched to current main communication port.
Step 30: resolve described first state information and described second state information, generate the first analysis result.
Step 40: judge whether described first analysis result characterizes and currently not switch between described first communication port and described second communication passage, if switched, then performs step 50; Otherwise, do not process.
Due to when the first communication port and second communication passage switch, the first switching command cannot be responded, therefore, after acquisition first switching command, need to confirm that electronic equipment is current do not switch between the first communication port and second communication passage, namely currently both do not carried out the operation the first communication port being switched to main communication port, also not carrying out is the operation of main communication port by second communication passage bridge.
Step 50: the priority whether the more described second priority applied is applied higher than described first, if higher than, then perform step 60; Otherwise, do not process.
The priority of described first application and the priority of described second application can be preset, and also can calculate acquisition in real time according to the descriptor of the first application and the second application, described descriptor comprises the information such as the type of described first application and the second application.
Step 60: forbid responding described first switching command.
In step 50, when the priority of the second application is higher than the first application, then forbid response first switching command in a step 60, so, the process that second application uses second communication passage to carry out communicating can not be interrupted, guarantee that the business of the second application correspondence can not be interrupted owing to receiving the first switching command in the process of implementation, thus cause the problem of service fail.Such as, second be applied as send the application of multimedia message time, due to the multimedia message that sends in implementation once interrupt will causing sending unsuccessfully, therefore by forbidding the process of response first switching command, ensure that and utilize the second SIM card successfully can send multimedia message.
Embodiment four
The present embodiment records a kind of control method, is applied in electronic equipment, and the application in described electronic equipment uses the first communication port in described electronic equipment or second communication passage to communicate;
Fig. 4 is the realization flow schematic diagram four of embodiment of the present invention control method, as shown in Figure 4, comprises the following steps:
Step 10: obtain the first switching command carrying out switching between described first communication port and described second communication passage.
Electronic equipment described in the present embodiment is dual-card dual-standby single-pass electronic equipment, described electronic equipment uses two SIM cards, is set to the first SIM card and the second SIM card, wherein, described first communication port is corresponding with described first SIM card, and described second communication passage is corresponding with described second SIM card.
Described electronic equipment current time can only use the SIM card in the first SIM card or the second SIM card, and correspondingly, described first switching command is be the communication port of current use and the instruction of main communication port by the first communication port or second communication passage bridge.Below illustrate:
In the present embodiment, when the SIM card of the current use of electronic equipment is the first SIM card, first communication port is current main communication port, correspondingly, second communication passage is current secondary communication port, if the first application will use the second SIM card to communicate, then needing to send is the first switching command of main communication port by second communication passage bridge corresponding for current secondary communication port i.e. the second SIM card; The SIM card of the current use of electronic equipment is the second SIM card, namely second communication passage is current main communication port, the first communication port is when being current secondary communication port, if the first application will use the first SIM card to communicate, then need to send to the first electronic equipment the first switching command the first corresponding for current secondary communication port i.e. the first SIM card communication port being switched to current main communication port.
Wherein, described first switching command triggering mode comprise following any one:
1) trigger after the operation receiving described electronic device user, described operation is corresponding with described first switching command.Such as, during current use the first SIM card of electronic equipment, if electronic device user expects that use second SIM card sends multimedia message, then send the first switching command by operating SIM manager.2) application of described first electronic equipment initiatively triggers.Such as, when first communication port is for acquiescence main communication port, if acquiescence updating operation is initiated in the application of the first electronic equipment and current second communication passage is switched to interim main communication port to send multimedia message, then described application can send the first switching command, with request, the first communication port be switched to main communication port, thus carries out updating operation.
The first communication port that in the present embodiment, the first SIM card is corresponding is the main communication port of acquiescence, before step 10, electronic equipment receives the second switching command that the second application sends, second communication passage bridge is that interim main communication port sends multimedia message to use described second communication passage by request, described second switching command of electronic equipment response, be interim main communication port by second communication passage bridge, send multimedia message by the second application.In the present embodiment, the application sending described first switching command is set to the first application, the last switching command that described second switching command responded before obtaining described first switching command for described electronic equipment.
In step 10, electronic equipment obtains the first switching command that the first application sends, and described first application carries out updating operation by sending the first switching command to use described first communication port.
Step 20: the current state detecting described first communication port and described second communication passage respectively, corresponding the second state information generating the first state information and the described second communication channel status of sign characterizing described first communication port state.
In the present embodiment, the state of described first communication port and described second communication passage uses corresponding state machine to safeguard, thus, detect described first communication port and state machine corresponding to described second communication passage, obtain the current state information of described first communication port and described second communication passage respectively.
Step 30: resolve described first state information and described second state information, generate the first analysis result.
Step 40: judge whether described first analysis result characterizes and currently not switch between described first communication port and described second communication passage, if switched, then performs step 50; Otherwise, do not process.
Due to when the first communication port and second communication passage switch, the first switching command cannot be responded, therefore, after acquisition first switching command, need to confirm that electronic equipment is current do not switch between the first communication port and second communication passage, namely currently both do not carried out the operation the first communication port being switched to main communication port, also not carrying out is the operation of main communication port by second communication passage bridge.
Step 50: the priority whether the more described second priority applied is applied higher than described first, if higher than, then perform step 60; Otherwise, do not process.
In step 50, when described second application transmission second switching command is to use the secondary communication port of the acquiescence in described first communication port and described second communication passage, the pre-set priority of described second application is the highest, that is, if when the second application transmission second switching command is to use the secondary communication port of the acquiescence in described first communication port and described second communication passage, if follow-up acquisition first switching command, then send the priority of the first application of the first switching command always lower than the priority of the second application, thus, can ensure that the business of the second application can not be interrupted.
The priority of described first application and the priority of described second application can be preset, and also can calculate acquisition in real time according to the descriptor of the first application and the second application, described descriptor comprises the information such as the type of described first application and the second application.
Step 60: forbid responding described first switching command.
In step 50, when the priority of the second application is higher than the first application, then forbid response first switching command in a step 60, so, the process that second application uses second communication passage to carry out communicating can not be interrupted, guarantee that the business of the second application correspondence can not be interrupted owing to receiving the first switching command in the process of implementation, thus cause the problem of service fail.Such as, second be applied as send the application of multimedia message time, due to the multimedia message that sends in implementation once interrupt will causing sending unsuccessfully, therefore by forbidding the process of response first switching command, ensure that and utilize the second SIM card successfully can send multimedia message.
Embodiment five
Based on embodiment one to embodiment four any embodiment, when the second switching command that described second application of electronic equipment response sends and described second application transmission second switching command are to ask the secondary communication port of the acquiescence in described first communication port and described second communication passage, forbid responding the instruction using the secondary communication port of described acquiescence to initiate data cube computation.Such as, the second switching command that electronic equipment response second application sends, current main communication port is switched to second communication passage from the first communication port, and the first communication port is the main communication port of acquiescence, when the second application uses second communication passage to communicate, forbid responding the instruction using described second communication passage to initiate data cube computation, so, can ensure that the second application uses second communication passage to carry out related service further, such as send the success rate of multimedia message, avoid occurring transmitting with the incoherent data traffic of multimedia message, save rate.
Embodiment six
Based on embodiment one to embodiment four any embodiment, the electronic equipment that the present embodiment is recorded also comprises display unit; In step 40, when described first analysis result characterize current switch between described first communication port and described second communication passage time, send the current information that can not respond described first switching command to described first application, be applied in described display unit to make described first and present the described information that can not respond described first switching command.Thus, based on the treatment mechanism of priority, the information that cannot respond the first switching command can be noticed electronic device user in time, when described first switching command is assigned for user, user related information can be noticed in time, promote Consumer's Experience.
In the present embodiment, presented the information that can not respond the first switching command to electronic device user by display unit, facilitate user to understand the state of electronic equipment present communications passage in time, promote Consumer's Experience.
Embodiment seven
Based on embodiment one to embodiment four any embodiment, the electronic equipment that the present embodiment is recorded also comprises display unit; In step 60, forbid responding described first switching command, also send the current information that can not respond described first switching command to described first application, be applied in described display unit to make described first and present the described information that can not respond described first switching command.
In the present embodiment, presented the information that can not respond the first switching command to electronic device user by display unit, user is facilitated to understand the state of electronic equipment present communications passage in time, the control command of user can also be received, determine whether to need the first switching command described in forced response according to received control command, or, forbid responding described first switching command, facilitate electronic device user to control communication port, improve Consumer's Experience.
It should be noted that, the beneficial effect in following electronic equipment embodiment, similar with the beneficial effect of said method embodiment, follow-uply to repeat no more, for the ins and outs do not disclosed in following electronic equipment embodiment, please refer to the description of above embodiment of the method.
Embodiment eight
The present embodiment records a kind of electronic equipment, and the application in described electronic equipment uses the first communication port in described electronic equipment or second communication passage to communicate; Fig. 5 is the present embodiment electronic equipment composition structural representation one, and as shown in Figure 5, described electronic equipment comprises:
Detecting unit 51, when carrying out the first switching command switched for obtaining between described first communication port and described second communication passage, detect the current state of described first communication port and described second communication passage respectively, corresponding the second state information generating the first state information and the described second communication channel status of sign characterizing described first communication port state;
Resolution unit 52, for resolving described first state information and described second state information, generates the first analysis result;
Determining unit 53, for when described first analysis result characterize current do not switch between described first communication port and described second communication passage time, determine the pre-set priority of described first application and described second application respectively, described first is applied as the application sending described first switching command, described second application being applied as transmission second switching command, the last switching command that described second switching command responded before obtaining described first switching command for described electronic equipment;
Response management unit 54, for more described first application priority and described second application priority, when described second application priority higher than described first application priority time, forbid respond described first switching command.
Embodiment nine
Based on the electronic equipment that embodiment eight is recorded, wherein, described resolution unit 52, also for resolving described first state information and described second state information, generates the second analysis result; When described second analysis result characterizes described first communication port or described second communication passage is current main communication port, continue to resolve described first state information and described second state information, generate described first analysis result.
Embodiment ten
Based on the electronic equipment that embodiment eight is recorded, described response management unit 54, also for when described second analysis result characterizes described first communication port and the main communication port of the current equal non-present of described second communication passage, responding described first switching command, is current main communication port by described first communication port or described second communication passage bridge.
Embodiment 11
Based on the electronic equipment that any embodiment in embodiment eight to embodiment ten is recorded, described response management unit 54, time also for determining described second application transmission second switching command to use the secondary communication port of the acquiescence in described first communication port and described second communication passage, judge that the priority of described second application is the highest.
Embodiment 12
Based on the electronic equipment that any embodiment in embodiment eight to embodiment ten is recorded, described response management unit 54, also for respond the second switching command that described second application sends and described second application transmission second switching command to ask the secondary communication port of the acquiescence in described first communication port and described second communication passage time, forbid responding the instruction using the secondary communication port of described acquiescence to initiate data cube computation.
Embodiment 13
Based on the electronic equipment that any embodiment in embodiment eight to embodiment ten is recorded, Fig. 6 is embodiment of the present invention electronic equipment composition structural representation two, and as shown in Figure 6, described electronic equipment also comprises display unit 55;
Described response management unit 54, also for when described first analysis result characterize current switch between described first communication port and described second communication passage time, send the current information that can not respond described first switching command to described first application, be applied in described display unit 55 to make described first and present the described information that can not respond described first switching command.
Embodiment 14
Based on the electronic equipment that any embodiment in embodiment eight to embodiment ten is recorded, Fig. 7 is embodiment of the present invention electronic equipment composition structural representation three, and as shown in Figure 7, described electronic equipment also comprises display unit 56;
Described response management unit 54, time also for forbidding response described first switching command, send the current information that can not respond described first switching command to described first application, be applied in described display unit 56 to make described first and present the described information that can not respond described first switching command.
In practical application, detecting unit 51 described in embodiment eight to embodiment 14, resolution unit 52, determining unit 53, response management unit 54 all can by the central processing unit (CPU in described electronic equipment, Central Processing Unit), digital signal processor (DSP, Digital Signal Processor) or field programmable gate array (FPGA, Field Programmable Gate Array) realization; The display unit 55 that embodiment 13 is recorded and the display unit 56 that embodiment 14 is recorded can be realized by the display screen in described electronic equipment and related functional circuits.
In several embodiment provided by the present invention, should be understood that, disclosed equipment and method, can realize by another way.Apparatus embodiments described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, and as: multiple unit or assembly can be in conjunction with, maybe can be integrated into another system, or some features can be ignored, or do not perform.In addition, the coupling each other of shown or discussed each part or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of equipment or unit or communication connection can be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, also can be distributed in multiple network element; Part or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can all be integrated in a processing unit, also can be each unit individually as a unit, also can two or more unit in a unit integrated; Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: movable storage device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
Or, if the above-mentioned integrated unit of the present invention using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the embodiment of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprises some instructions and performs all or part of of method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server or the network equipment etc.).And aforesaid storage medium comprises: movable storage device, ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (14)

1. a control method, is applied in electronic equipment, and the application in described electronic equipment uses the first communication port in described electronic equipment or second communication passage to communicate; Described method comprises:
When acquisition carries out the first switching command switched between described first communication port and described second communication passage, detect the current state of described first communication port and described second communication passage respectively, corresponding the second state information generating the first state information and the described second communication channel status of sign characterizing described first communication port state;
Resolve described first state information and described second state information, generate the first analysis result;
When described first analysis result characterize current do not switch between described first communication port and described second communication passage time, determine the pre-set priority of described first application and described second application respectively, described first is applied as the application sending described first switching command, described second application being applied as transmission second switching command, the last switching command that described second switching command responded before obtaining described first switching command for described electronic equipment;
More described first application priority and described second application priority, when described second application priority higher than described first application priority time, forbid respond described first switching command.
2. method according to claim 1, is characterized in that, described method also comprises:
Resolve described first state information and described second state information, generate the second analysis result;
When described second analysis result characterizes described first communication port or described second communication passage is current main communication port, continue to resolve described first state information and described second state information, generate described first analysis result.
3. method according to claim 2, is characterized in that, described method also comprises:
When described second analysis result characterizes described first communication port and the main communication port of the current equal non-present of described second communication passage, responding described first switching command, is current main communication port by described first communication port or described second communication passage bridge.
4. the method according to any one of claim 1, is characterized in that, the priority of described first application and the priority of described second application, comprising:
When determining described second application transmission second switching command to use the secondary communication port of the acquiescence in described first communication port and described second communication passage, judge that the priority of described second application is the highest.
5. the method according to any one of Claims 1-4, is characterized in that, described method also comprises:
Respond the second switching command that described second application sends and described second application transmission second switching command to ask the secondary communication port of the acquiescence in described first communication port and described second communication passage time, forbid responding the instruction using the secondary communication port of described acquiescence to initiate data cube computation.
6. the method according to any one of Claims 1-4, is characterized in that, described electronic equipment also comprises display unit; Described method also comprises: when described first analysis result characterize current switch between described first communication port and described second communication passage time, send the current information that can not respond described first switching command to described first application, be applied in described display unit to make described first and present the described information that can not respond described first switching command.
7. the method according to any one of Claims 1-4, is characterized in that, described electronic equipment also comprises display unit; Described method also comprises: described in forbid response described first switching command time, send the current information that can not respond described first switching command to described first application, be applied in described display unit to make described first and present the described information that can not respond described first switching command.
8. an electronic equipment, the application in described electronic equipment uses the first communication port in described electronic equipment or second communication passage to communicate; Described electronic equipment comprises:
Detecting unit, when carrying out the first switching command switched for obtaining between described first communication port and described second communication passage, detect the current state of described first communication port and described second communication passage respectively, corresponding the second state information generating the first state information and the described second communication channel status of sign characterizing described first communication port state;
Resolution unit, for resolving described first state information and described second state information, generates the first analysis result;
Determining unit, for when described first analysis result characterize current do not switch between described first communication port and described second communication passage time, determine the pre-set priority of described first application and described second application respectively, described first is applied as the application sending described first switching command, described second application being applied as transmission second switching command, the last switching command that described second switching command responded before obtaining described first switching command for described electronic equipment;
Response management unit, for more described first application priority and described second application priority, when described second application priority higher than described first application priority time, forbid respond described first switching command.
9. electronic equipment according to claim 8, is characterized in that,
Described resolution unit, also for resolving described first state information and described second state information, generates the second analysis result; When described second analysis result characterizes described first communication port or described second communication passage is current main communication port, continue to resolve described first state information and described second state information, generate described first analysis result.
10. electronic equipment according to claim 8, is characterized in that,
Described response management unit, also for when described second analysis result characterizes described first communication port and the main communication port of the current equal non-present of described second communication passage, responding described first switching command, is current main communication port by described first communication port or described second communication passage bridge.
Electronic equipment described in 11. any one of according to Claim 8 to 10, is characterized in that,
Described response management unit, time also for determining described second application transmission second switching command to use the secondary communication port of the acquiescence in described first communication port and described second communication passage, judges that the priority of described second application is the highest.
Electronic equipment described in 12. any one of according to Claim 8 to 10, is characterized in that,
Described response management unit, also for respond the second switching command that described second application sends and described second application transmission second switching command to ask the secondary communication port of the acquiescence in described first communication port and described second communication passage time, forbid responding the instruction using the secondary communication port of described acquiescence to initiate data cube computation.
Electronic equipment described in 13. any one of according to Claim 8 to 10, is characterized in that,
Described electronic equipment also comprises display unit;
Described response management unit, also for when described first analysis result characterize current switch between described first communication port and described second communication passage time, send the current information that can not respond described first switching command to described first application, be applied in described display unit to make described first and present the described information that can not respond described first switching command.
Electronic equipment described in 14. any one of according to Claim 8 to 10, is characterized in that,
Described electronic equipment also comprises display unit;
Described response management unit, time also for forbidding response described first switching command, send the current information that can not respond described first switching command to described first application, be applied in described display unit to make described first and present the described information that can not respond described first switching command.
CN201310579300.5A 2013-11-18 2013-11-18 Electronic equipment and its control method Active CN104660780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310579300.5A CN104660780B (en) 2013-11-18 2013-11-18 Electronic equipment and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310579300.5A CN104660780B (en) 2013-11-18 2013-11-18 Electronic equipment and its control method

Publications (2)

Publication Number Publication Date
CN104660780A true CN104660780A (en) 2015-05-27
CN104660780B CN104660780B (en) 2017-09-22

Family

ID=53251463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310579300.5A Active CN104660780B (en) 2013-11-18 2013-11-18 Electronic equipment and its control method

Country Status (1)

Country Link
CN (1) CN104660780B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338178A (en) * 2015-09-30 2016-02-17 宇龙计算机通信科技(深圳)有限公司 Communication method and device based on dual-card dual-standby single-communication terminal
CN106413111A (en) * 2015-07-31 2017-02-15 展讯通信(上海)有限公司 Multi-communication network management method and mobile terminal
CN110177173A (en) * 2019-05-24 2019-08-27 中国联合网络通信集团有限公司 A kind of switching method and apparatus
CN110337825A (en) * 2019-05-23 2019-10-15 北京小米移动软件有限公司 Business switch method and device
WO2021056574A1 (en) * 2019-09-29 2021-04-01 华为技术有限公司 Communication method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1301469A (en) * 1998-05-18 2001-06-27 艾利森公司 Multi-mode mobile terminal and methods for operating the same
CN101141750A (en) * 2007-10-12 2008-03-12 中兴通讯股份有限公司 Network self-adaptive adapting method of multi-mode mobile phone
CN101340660A (en) * 2008-08-01 2009-01-07 中兴通讯股份有限公司 Multi-mode mobile terminal and multi-mode switching method
CN102595562A (en) * 2011-01-11 2012-07-18 三星电子(中国)研发中心 Card selecting method for multimode mobile phone
CN102638613A (en) * 2012-03-12 2012-08-15 上海摩软通讯技术有限公司 Multi-card mobile phone and card switching method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1301469A (en) * 1998-05-18 2001-06-27 艾利森公司 Multi-mode mobile terminal and methods for operating the same
CN101141750A (en) * 2007-10-12 2008-03-12 中兴通讯股份有限公司 Network self-adaptive adapting method of multi-mode mobile phone
CN101340660A (en) * 2008-08-01 2009-01-07 中兴通讯股份有限公司 Multi-mode mobile terminal and multi-mode switching method
CN102595562A (en) * 2011-01-11 2012-07-18 三星电子(中国)研发中心 Card selecting method for multimode mobile phone
CN102638613A (en) * 2012-03-12 2012-08-15 上海摩软通讯技术有限公司 Multi-card mobile phone and card switching method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106413111A (en) * 2015-07-31 2017-02-15 展讯通信(上海)有限公司 Multi-communication network management method and mobile terminal
CN106413111B (en) * 2015-07-31 2019-11-22 展讯通信(上海)有限公司 A kind of multi communication network management method and mobile terminal
CN105338178A (en) * 2015-09-30 2016-02-17 宇龙计算机通信科技(深圳)有限公司 Communication method and device based on dual-card dual-standby single-communication terminal
WO2017054572A1 (en) * 2015-09-30 2017-04-06 宇龙计算机通信科技(深圳)有限公司 Communication method and device for dual sim, dual standby and single-pass terminal
CN110337825A (en) * 2019-05-23 2019-10-15 北京小米移动软件有限公司 Business switch method and device
WO2020232711A1 (en) * 2019-05-23 2020-11-26 北京小米移动软件有限公司 Service handover method and apparatus
CN110177173A (en) * 2019-05-24 2019-08-27 中国联合网络通信集团有限公司 A kind of switching method and apparatus
CN110177173B (en) * 2019-05-24 2021-06-11 中国联合网络通信集团有限公司 Switching method and device
WO2021056574A1 (en) * 2019-09-29 2021-04-01 华为技术有限公司 Communication method and device

Also Published As

Publication number Publication date
CN104660780B (en) 2017-09-22

Similar Documents

Publication Publication Date Title
CN110557777B (en) Network connection control method, terminal and storage medium
CN104660780A (en) Electronic equipment and control method thereof
CN110267314B (en) Method and device for switching network slices
CN110809255B (en) Card information activation method and device and storage medium
US10021634B2 (en) Method and device for switching SIM cards of communication terminal and computer storage medium
CN104349304A (en) Information processing method and electronic equipment
US20200233712A1 (en) Data Processing Method, Apparatus, Storage Medium, Processor, and System
CN102123511B (en) Mobile network data transmission method and system as well as mobile terminal
CN106131241A (en) A kind of method for connecting network, device and mobile terminal
CN114301506B (en) Method and device for simulating NFC function, NFC terminal and storage medium
CN105337980A (en) Method and device for selecting multi-card terminal communication network
WO2022089313A1 (en) Communication processing method and apparatus, storage medium, chip and related device
CN102970172A (en) Communication link switching method, device and communication system
CN101500335A (en) Dual mode terminal and method for processing data service thereof
CN105162936A (en) Unfamiliar call prompt method and user terminal
CN105119937A (en) Communication method and device of user terminal
CN108984238B (en) Gesture processing method and device of application program and electronic equipment
CN114116415B (en) Hard disk backboard, hard disk lighting control system, method, device and medium
EP3048858A1 (en) Wireless customer premise equipment and accessing method therefor
CN104836892A (en) Information display method, information display device and information display terminal
CN104010353A (en) Information processing method and electronic equipment
CN107911538A (en) A kind of call handling method, mobile terminal and storage medium
CN108347740B (en) Processing method for network communication function abnormity and application processor
CN109981796B (en) Connection method and device
CN110839250B (en) GSM random access method and related product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant