CN104660780B - Electronic equipment and its control method - Google Patents

Electronic equipment and its control method Download PDF

Info

Publication number
CN104660780B
CN104660780B CN201310579300.5A CN201310579300A CN104660780B CN 104660780 B CN104660780 B CN 104660780B CN 201310579300 A CN201310579300 A CN 201310579300A CN 104660780 B CN104660780 B CN 104660780B
Authority
CN
China
Prior art keywords
communication port
application
switching command
electronic equipment
priority
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.)
Active
Application number
CN201310579300.5A
Other languages
Chinese (zh)
Other versions
CN104660780A (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

Abstract

The invention discloses a kind of electronic equipment and its control method, the application in the electronic equipment is communicated using the first communication port or the second communication port in the electronic equipment;Methods described includes:When obtaining the first switching command, when not switched between first communication port and second communication port currently, compare the priority of the first application and the priority of the second application, when the priority that the priority of the described second application is applied higher than described first, forbid response first switching command.Implement the present invention, can solve the problem that due to the problem of the switching of data main card causes service fail.

Description

Electronic equipment and its control method
Technical field
The present invention relates to the communication technology, more particularly to a kind of electronic equipment and its control method.
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 is current data main card, and inventor is realizing that the present invention is real Apply in example during technical scheme, it is found that above-mentioned technology at least has 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;
There is user from graphical interface of user when simultaneously(UI, User Interface)Operate switch data main card and system When answering MMS requirement switch data main card, the clash handle of priority and corresponding conflict prompting, Consumer's Experience are not based on It is poor.
For example, when needing to use the i.e. not currently used SIM card of current data vice card to carry out related service, it is necessary to pass through Call built-in SIM card manager that current data vice card is switched into data main card temporarily, now, if other in mobile phone should With triggering using former data main card, the former data main card that data vice card is switched to temporarily can be switched to data main card again, led Cause to carry out the service fails such as multimedia message using ephemeral data main card, influence Consumer's Experience.
The content 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 its control method, so that The problem of switching of data main card causes service fail in electronic equipment is solved less.
To reach above-mentioned purpose, what the technical scheme of the embodiment of the present invention was realized in:
The embodiment of the present invention provides a kind of control method, and applied in electronic equipment, the application in the electronic equipment makes Communicated with the first communication port or the second communication port in the electronic equipment;Methods described includes:
The first switching command switched over when acquisition between first communication port and second communication port When, the current state of first communication port and second communication port is detected respectively, and correspondence generation characterizes described first The first state information of communication port state and the second status information for characterizing the second communication port state;
The first state information and second status information are parsed, the first analysis result is generated;
When first analysis result is characterized currently not between first communication port and second communication port When switching over, the pre-set priority of first application and the described second application is determined respectively, first application is to send The application of first switching command, second application is the application of the second switching command of transmission, second switching command The last time switching command responded by the electronic equipment before first switching command is obtained;
Compare the priority of first application and the priority of second application, when the priority of the described second application During the priority applied higher than described first, forbid response first switching command.
The application that the embodiment of the present invention is also provided in a kind of electronic equipment, the electronic equipment is used in the electronic equipment The first communication port or the second communication port communicated;The electronic equipment includes:
Detection unit, switched over for obtaining between first communication port and second communication port During one switching command, the current state of first communication port and second communication port, correspondence generation table are detected respectively Levy the first state information of the first communication port state and characterize the second status information of the second communication port state;
Resolution unit, for parsing the first state information and second status information, generates the first analysis result;
Determining unit, for being characterized currently not in first communication port and described second when first analysis result When being switched between communication port, the pre-set priority of first application and the described second application, described the are determined respectively One application is sends the application of first switching command, and second application is described to send the application of the second switching command The last time switching command that second switching command is responded by the electronic equipment before first switching command is obtained;
Response management unit, for comparing the priority of first application and the priority of second application, works as institute When the priority for stating the second application is higher than the priority of the described first application, forbid response first switching command.
In the embodiment of the present invention, when the priority of the second application is applied higher than first, then the switching of response first is forbidden to refer to Order, in this way, the processing that the second application is communicated using the second communication port will not be interrupted, it is ensured that second applies corresponding business The problem of will not interrupting due to receiving the first switching command in the process of implementation and cause service fail.For example, second Using for send multimedia message application when, due to transmission multimedia message implementation procedure once interrupt may result in transmission failure, therefore By the processing for forbidding responding the first switching command, it is ensured that can be successfully transmitted multimedia message using the second SIM card.
Brief description of the drawings
Fig. 1 is the implementation process schematic diagram one of control method in the embodiment of the present invention;
Fig. 2 is the implementation process schematic diagram two of control method in the embodiment of the present invention;
Fig. 3 is the implementation process schematic diagram three of control method in the embodiment of the present invention;
Fig. 4 is the implementation process 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
The present invention basic thought be:Carried out when obtaining between first communication port and second communication port During the first switching command of switching, the current state of first communication port and second communication port is detected respectively, it is right The second of the first state information for characterizing the first communication port state and sign the second communication port state should be generated Status information;The first state information and second status information are parsed, the first analysis result is generated;When the described first solution When analysis result sign is not switched over currently between first communication port and second communication port, institute is determined respectively The pre-set priority of the first application and the described second application is stated, first application is to send answering for first switching command With second application is sends the application of the second switching command, and second switching command is that the electronic equipment is being obtained The last time switching command responded before first switching command;Compare the priority and described the of first application The priority of two applications, when the priority that the priority of the described second application is applied higher than described first, forbids response described First switching command.
The present invention is described in further detail with specific embodiment below in conjunction with the accompanying drawings.
Embodiment one
The present embodiment records a kind of control method, and applied in electronic equipment, the application in the electronic equipment uses institute The first communication port or the second communication port stated in electronic equipment are communicated;Fig. 1 is control method in the embodiment of the present invention Implementation process schematic diagram one, as shown in figure 1, comprising the following steps:
Step 10:Obtain the first switching switched between first communication port and second communication port Instruction.
Electronic equipment described in the present embodiment is dual-card dual-standby single-pass electronic equipment, and the electronic equipment uses two SIM Card, is set to the first SIM card and the second SIM card, wherein, first communication port is corresponding with first SIM card, and described second Communication port is corresponding with second SIM card.
The electronic equipment current time can only use the SIM card in the first SIM card and the second SIM card to be led to Letter, correspondingly, first switching command are that the first communication port or the second communication port are switched into currently used communication Passage is the instruction of principal communication passage.It is illustrated below:
In the present embodiment, when the currently used SIM card of electronic equipment is the first SIM card, the first communication port is current main Communication port, correspondingly, the second communication port are current secondary communication port, if the first application will use the second SIM card to enter Row communication, then need transmission to switch to principal communication to lead to corresponding second communication port of current secondary communication port i.e. the second SIM card First switching command in road;The currently used SIM card of electronic equipment is that the second SIM card, i.e. the second communication port are logical for current master When believing passage, the first communication port for current secondary communication port, if the first application will use the first SIM card to be communicated, Then need to send to switch to corresponding first communication port of current secondary communication port i.e. the first SIM card to the first electronic equipment to work as First switching command of preceding principal communication passage.
Wherein, the first switching command triggering mode include it is following any one:
1)Triggered after the operation of the electronic device user is received, the operation and first switching command pair Should.For example, during currently used first SIM card of electronic equipment, if electronic device user is expected to send multimedia message using the second SIM card, Then by operating SIM managers to send the first switching command.2)The application of first electronic equipment is actively triggered.For example, the When one communication port is acquiescence principal communication passage, if acquiescence updating operation and current second is initiated in the application of the first electronic equipment Communication port is switched to interim principal communication passage to send multimedia message, then the application can send the first switching command to ask First communication port is switched into principal communication passage, so as to carry out updating operation.
Before corresponding first communication port of the first SIM card is acquiescence principal communication passage, step 10 in the present embodiment, electronics Equipment receive second application send the second switching command, request by the second communication port switch to interim principal communication passage with Multimedia message is sent using second communication port, electronic equipment responds second switching command, and the second communication port is switched For interim principal communication passage, multimedia message is sent by the second application.In the present embodiment, the application for sending first switching command is set For the first application, second switching command is responded most by the electronic equipment before first switching command is obtained A switching command afterwards.
In step 10, electronic equipment obtains the first switching command that the first application is sent, and first application is by sending First switching command carries out updating operation with use first communication port.
Step 20:The current state of first communication port and second communication port, correspondence generation are detected respectively The first state information for characterizing the first communication port state and the second state letter for characterizing the second communication port state Breath.
In the present embodiment, the state of first communication port and second communication port is tieed up using corresponding state machine Shield, so that, first communication port and the corresponding state machine of second communication port are detected, described first is respectively obtained and leads to Believe the current state information of passage and second communication port.
Step 30:The first state information and second status information are parsed, the first analysis result is generated.
Step 40:Judge whether first analysis result characterizes current not in first communication port and described second Switched between communication port, if it is, performing step 50;Otherwise, without processing.
Due to when the first communication port and the second communication port are switched over, it is impossible to respond the first switching command, therefore, Need to confirm that electronic equipment is current not between the first communication port and the second communication port after the first switching command is obtained Switch over, i.e., currently both do not enter to be about to the operation that the first communication port switches to principal communication passage, also do not enter to be about to second and lead to Letter passage switches to the operation of principal communication passage.
Step 50:Whether the priority for comparing second application is higher than the priority of the described first application, if it is, Then perform step 60;Otherwise, without processing.
The priority of first application and the priority of second application can be preset, can also be according to the first application Acquisition is calculated in real time with the description information of the second application, and the description information includes the type of the described first application and the second application Etc. information.
Step 60:Forbid response first switching command.
In step 50, when the priority of the second application is applied higher than first, then response first is forbidden to cut in a step 60 Instruction is changed, in this way, the processing that the second application is communicated using the second communication port will not be interrupted, it is ensured that the second application is corresponding Business will not be interrupted due to receiving the first switching command in the process of implementation, so that the problem of causing service fail.For example, In application of second application for transmission multimedia message, because the multimedia message of transmission is lost in implementation procedure once interrupting and may result in transmission Lose, therefore by forbidding responding the processing of the first switching command, it is ensured that multimedia message can be successfully transmitted using the second SIM card, is solved Multimedia message sends the problem of mortality is high in correlation technique of having determined.
Embodiment two
There is to be not provided with principal communication passage in the method that the present embodiment is recorded, Fig. 2 is this hair for electronic equipment The implementation process schematic diagram two of control method in bright embodiment, as shown in Fig. 2 comprising the following steps:
Step 10:Obtain the first switching switched between first communication port and second communication port Instruction.
Electronic equipment described in the present embodiment is dual-card dual-standby single-pass electronic equipment, and the electronic equipment uses two SIM Card, is set to the first SIM card and the second SIM card, wherein, first communication port is corresponding with first SIM card, and described second Communication port is corresponding with second SIM card.
The electronic equipment current time can only use the SIM card in the first SIM card and the second SIM card, correspondingly, First switching command includes switching to currently used communication port to lead the first communication port or the second communication port The instruction of communication port.It is illustrated below:
In the present embodiment, the application for sending first switching command is set to the first application, currently used SIM card is During the first SIM card, the first communication port is current principal communication passage, correspondingly, and the second communication port is logical for current secondary communication Road, if the first application will use the second SIM card to be communicated, needs to initiate current secondary communication port i.e. the second SIM card Corresponding second communication port switches to the first switching command of principal communication passage;Currently used SIM card is the second SIM card, That is when the second communication port is that current principal communication passage, the first communication port are current secondary communication port, if the first application Use the first SIM card to be communicated, then need to initiate current secondary communication port i.e. the first SIM card pair to the first electronic equipment The first communication port answered switches to the first switching command of principal communication passage.
Wherein, the first switching command triggering mode include it is following any one:
1)Triggered after the operation of the electronic device user is received, the operation and first switching command pair Should.For example, during currently used first SIM card of electronic equipment, if electronic device user is expected to send multimedia message using the second SIM card, Then by operating SIM managers to send the first switching command.2)The application of first electronic equipment is actively triggered.For example, the When one communication port is acquiescence principal communication passage, if acquiescence updating operation and current second is initiated in the application of the first electronic equipment Communication port is switched to interim principal communication passage to send multimedia message, then the application can send the first switching command to ask First communication port is switched into principal communication passage, so as to carry out updating operation.
Before corresponding first communication port of the first SIM card is acquiescence principal communication passage, step 10 in the present embodiment, electronics Equipment receive second application send the second switching command, request by the second communication port switch to interim principal communication passage with Multimedia message is sent using second communication port, electronic equipment responds second switching command, and the second communication port is switched For interim principal communication passage, multimedia message is sent by the second application.In the present embodiment, the application for sending first switching command is set For the first application, second switching command is responded most by the electronic equipment before first switching command is obtained A switching command afterwards.
In step 10, electronic equipment obtains the first switching command that the first application is sent, and first application is by sending First switching command carries out updating operation with use first communication port.
Step 20:The current state of first communication port and second communication port, correspondence generation are detected respectively The first state information for characterizing the first communication port state and the second state letter for characterizing the second communication port state Breath.
In the present embodiment, the state of first communication port and second communication port is tieed up using corresponding state machine Shield, so that, first communication port and the corresponding state machine of second communication port are detected, described first is respectively obtained and leads to Believe the current state information of passage and second communication port.
Step 80:The first state information and second status information are parsed, the second analysis result is generated.
Step 90:Judge that second analysis result characterizes one of first communication port or second communication port Whether it is current principal communication passage, if it is, performing step 30;Otherwise, without processing.
Step 30:The first state information and second status information are parsed, the first analysis result is generated.
Step 40:Judge whether first analysis result characterizes current not in first communication port and described second Switched between communication port, if do not switched over, perform step 50;Otherwise, without processing.
Due to when the first communication port and the second communication port are switched over, it is impossible to respond the first switching command, therefore, Need to confirm that electronic equipment is current not between the first communication port and the second communication port after the first switching command is obtained Switch over, i.e., currently both do not enter to be about to the operation that the first communication port switches to principal communication passage, also do not enter to be about to second and lead to Letter passage switches to the operation of principal communication passage.
Step 50:Whether the priority for comparing second application is higher than the priority of the described first application, if it is, Then perform step 60;Otherwise, without processing.
The priority of first application and the priority of second application can be preset, can also be according to the first application Acquisition is calculated in real time with the description information of the second application, and the description information includes the type of the described first application and the second application Etc. information.
Step 60:Forbid response first switching command.
In step 50, when the priority of the second application is applied higher than first, then response first is forbidden to cut in a step 60 Instruction is changed, in this way, the processing that the second application is communicated using the second communication port will not be interrupted, it is ensured that the second application is corresponding Business will not be interrupted due to receiving the first switching command in the process of implementation, so that the problem of causing service fail.For example, In application of second application for transmission multimedia message, because the multimedia message of transmission is lost in implementation procedure once interrupting and may result in transmission Lose, therefore by forbidding responding the processing of the first switching command, it is ensured that it can be successfully transmitted multimedia message using the second SIM card.
Embodiment three
There is to be not provided with principal communication passage in the method that the present embodiment is recorded, Fig. 3 is this hair for electronic equipment The implementation process schematic diagram three of control method in bright embodiment, as shown in figure 3, comprising the following steps:
Step 10:Obtain the first switching switched between first communication port and second communication port Instruction.
Electronic equipment described in the present embodiment is dual-card dual-standby single-pass electronic equipment, and the electronic equipment uses two SIM Card, is set to the first SIM card and the second SIM card, wherein, first communication port is corresponding with first SIM card, and described second Communication port is corresponding with second SIM card.
The electronic equipment current time can only use the SIM card in the first SIM card or the second SIM card, correspondingly, First switching command includes switching to currently used communication port to lead the first communication port or the second communication port The instruction of communication port.It is illustrated below:
In the present embodiment, the application for sending first switching command is set to the first application, currently used SIM card is During the first SIM card, the first communication port is current principal communication passage, correspondingly, and the second communication port is logical for current secondary communication Road, if the first application will use the second SIM card to be communicated, needs to initiate current secondary communication port i.e. the second SIM card Corresponding second communication port switches to the first switching command of principal communication passage;Currently used SIM card is the second SIM card, That is when the second communication port is that current principal communication passage, the first communication port are current secondary communication port, if the first application Use the first SIM card to be communicated, then need to initiate current secondary communication port i.e. the first SIM card pair to the first electronic equipment The first communication port answered switches to the first switching command of principal communication passage.
Wherein, the first switching command triggering mode include it is following any one:
1)Triggered after the operation of the electronic device user is received, the operation and first switching command pair Should.For example, during currently used first SIM card of electronic equipment, if electronic device user is expected to send multimedia message using the second SIM card, Then by operating SIM managers to initiate the first switching command.2)The application of first electronic equipment is actively triggered.For example, the When one communication port is acquiescence principal communication passage, if acquiescence updating operation and current second is initiated in the application of the first electronic equipment Communication port is switched to interim principal communication passage to send multimedia message, then the application can send the first switching command to ask First communication port is switched into principal communication passage, so as to carry out updating operation.
Before corresponding first communication port of the first SIM card is acquiescence principal communication passage, step 10 in the present embodiment, electronics Equipment receive second application send the second switching command, request by the second communication port switch to interim principal communication passage with Multimedia message is sent using second communication port, electronic equipment responds second switching command, and the second communication port is switched For interim principal communication passage, multimedia message is sent by the second application.In the present embodiment, the application for sending first switching command is set For the first application, second switching command is responded most by the electronic equipment before first switching command is obtained A switching command afterwards.
In step 10, electronic equipment obtains the first switching command that the first application is sent, and first application is by sending First switching command carries out updating operation with use first communication port.
Step 20:The current state of first communication port and second communication port, correspondence generation are detected respectively The first state information for characterizing the first communication port state and the second state letter for characterizing the second communication port state Breath.
In the present embodiment, the state of first communication port and second communication port is tieed up using corresponding state machine Shield, so that, first communication port and the corresponding state machine of second communication port are detected, described first is respectively obtained and leads to Believe the current state information of passage and second communication port.
Step 80:The first state information and second status information are parsed, the second analysis result is generated.
Step 90:Judge whether second analysis result characterizes first communication port or second communication port For current principal communication passage, if it is, performing step 30;Otherwise, step 100 is performed.
Step 100:First switching command is responded, first communication port or second communication port are switched For current principal communication passage.
In step 90, if second analysis result characterizes one of first communication port and second communication port Equal non-present principal communication passage, mark electronic equipment is in set under the state of principal communication passage, the state, at electronic equipment In the idle condition that any one SIM card is not used, that is to say, that the electronic equipment in idle condition can make an immediate response the One switching command.
For example, when first communication port is switched to current principal communication passage by first switching command request, First switching command is then responded, first communication port is switched into current principal communication passage.
Step 30:The first state information and second status information are parsed, the first analysis result is generated.
Step 40:Judge whether first analysis result characterizes current not in first communication port and described second Switched between communication port, if do not switched over, perform step 50;Otherwise, without processing.
Due to when the first communication port and the second communication port are switched over, it is impossible to respond the first switching command, therefore, Need to confirm that electronic equipment is current not between the first communication port and the second communication port after the first switching command is obtained Switch over, i.e., currently both do not enter to be about to the operation that the first communication port switches to principal communication passage, also do not enter to be about to second and lead to Letter passage switches to the operation of principal communication passage.
Step 50:Whether the priority for comparing second application is higher than the priority of the described first application, if it is, Then perform step 60;Otherwise, without processing.
The priority of first application and the priority of second application can be preset, can also be according to the first application Acquisition is calculated in real time with the description information of the second application, and the description information includes the type of the described first application and the second application Etc. information.
Step 60:Forbid response first switching command.
In step 50, when the priority of the second application is applied higher than first, then response first is forbidden to cut in a step 60 Instruction is changed, in this way, the processing that the second application is communicated using the second communication port will not be interrupted, it is ensured that the second application is corresponding Business will not be interrupted due to receiving the first switching command in the process of implementation, so that the problem of causing service fail.For example, In application of second application for transmission multimedia message, because the multimedia message of transmission is lost in implementation procedure once interrupting and may result in transmission Lose, therefore by forbidding responding the processing of the first switching command, it is ensured that it can be successfully transmitted multimedia message using the second SIM card.
Example IV
The present embodiment records a kind of control method, and applied in electronic equipment, the application in the electronic equipment uses institute The first communication port or the second communication port stated in electronic equipment are communicated;
Fig. 4 is the implementation process schematic diagram four of control method of the embodiment of the present invention, as shown in figure 4, comprising the following steps:
Step 10:Obtain the first switching switched between first communication port and second communication port Instruction.
Electronic equipment described in the present embodiment is dual-card dual-standby single-pass electronic equipment, and the electronic equipment uses two SIM Card, is set to the first SIM card and the second SIM card, wherein, first communication port is corresponding with first SIM card, and described second Communication port is corresponding with second SIM card.
The electronic equipment current time can only use the SIM card in the first SIM card or the second SIM card, correspondingly, First switching command is to switch to currently used communication port i.e. main logical first communication port or the second communication port Believe the instruction of passage.It is illustrated below:
In the present embodiment, when the currently used SIM card of electronic equipment is the first SIM card, the first communication port is current main Communication port, correspondingly, the second communication port are current secondary communication port, if the first application will use the second SIM card to enter Row communication, then need transmission to switch to principal communication to lead to corresponding second communication port of current secondary communication port i.e. the second SIM card First switching command in road;The currently used SIM card of electronic equipment is that the second SIM card, i.e. the second communication port are logical for current master When believing passage, the first communication port for current secondary communication port, if the first application will use the first SIM card to be communicated, Then need to send to switch to corresponding first communication port of current secondary communication port i.e. the first SIM card to the first electronic equipment to work as First switching command of preceding principal communication passage.
Wherein, the first switching command triggering mode include it is following any one:
1)Triggered after the operation of the electronic device user is received, the operation and first switching command pair Should.For example, during currently used first SIM card of electronic equipment, if electronic device user is expected to send multimedia message using the second SIM card, Then by operating SIM managers to send the first switching command.2)The application of first electronic equipment is actively triggered.For example, the When one communication port is acquiescence principal communication passage, if acquiescence updating operation and current second is initiated in the application of the first electronic equipment Communication port is switched to interim principal communication passage to send multimedia message, then the application can send the first switching command to ask First communication port is switched into principal communication passage, so as to carry out updating operation.
Before corresponding first communication port of the first SIM card is acquiescence principal communication passage, step 10 in the present embodiment, electronics Equipment receive second application send the second switching command, request by the second communication port switch to interim principal communication passage with Multimedia message is sent using second communication port, electronic equipment responds second switching command, and the second communication port is switched For interim principal communication passage, multimedia message is sent by the second application.In the present embodiment, the application for sending first switching command is set For the first application, second switching command is responded most by the electronic equipment before first switching command is obtained A switching command afterwards.
In step 10, electronic equipment obtains the first switching command that the first application is sent, and first application is by sending First switching command carries out updating operation with use first communication port.
Step 20:The current state of first communication port and second communication port, correspondence generation are detected respectively The first state information for characterizing the first communication port state and the second state letter for characterizing the second communication port state Breath.
In the present embodiment, the state of first communication port and second communication port is tieed up using corresponding state machine Shield, so that, first communication port and the corresponding state machine of second communication port are detected, described first is respectively obtained and leads to Believe the current state information of passage and second communication port.
Step 30:The first state information and second status information are parsed, the first analysis result is generated.
Step 40:Judge whether first analysis result characterizes current not in first communication port and described second Switched between communication port, if do not switched over, perform step 50;Otherwise, without processing.
Due to when the first communication port and the second communication port are switched over, it is impossible to respond the first switching command, therefore, Need to confirm that electronic equipment is current not between the first communication port and the second communication port after the first switching command is obtained Switch over, i.e., currently both do not enter to be about to the operation that the first communication port switches to principal communication passage, also do not enter to be about to second and lead to Letter passage switches to the operation of principal communication passage.
Step 50:Whether the priority for comparing second application is higher than the priority of the described first application, if it is, Then perform step 60;Otherwise, without processing.
In step 50, when the described second application sends the second switching command with using first communication port and described the During the secondary communication port of acquiescence in two communication ports, the pre-set priority highest of second application, that is to say, that if second Led to using the second switching command is sent with being communicated using the acquiescence pair in first communication port and second communication port During road, if subsequently obtaining the first switching command, the priority for sending the first application of the first switching command is always less than second The priority of application, thus, it is possible to which ensureing the business of the second application will not interrupt.
The priority of first application and the priority of second application can be preset, can also be according to the first application Acquisition is calculated in real time with the description information of the second application, and the description information includes the type of the described first application and the second application Etc. information.
Step 60:Forbid response first switching command.
In step 50, when the priority of the second application is applied higher than first, then response first is forbidden to cut in a step 60 Instruction is changed, in this way, the processing that the second application is communicated using the second communication port will not be interrupted, it is ensured that the second application is corresponding Business will not be interrupted due to receiving the first switching command in the process of implementation, so that the problem of causing service fail.For example, In application of second application for transmission multimedia message, because the multimedia message of transmission is lost in implementation procedure once interrupting and may result in transmission Lose, therefore by forbidding responding the processing of the first switching command, it is ensured that it can be successfully transmitted multimedia message using the second SIM card.
Embodiment five
Based on embodiment one to example IV any embodiment, the second of electronic equipment response the second application transmission cuts Change instruction and second application sends the second switching command to ask first communication port and second communication port In acquiescence secondary communication port when, forbid response to initiate the instruction of data cube computation using the secondary communication port of the acquiescence.For example, electric The second switching command that the sub- application of equipment response second is sent, second is switched to by current principal communication passage from the first communication port Communication port, and the first communication port is the principal communication passage of acquiescence, is communicated in the second application using the second communication port When, forbid response to initiate the instruction of data cube computation using second communication port, so, it is possible to be further ensured that the second application Related service is carried out using the second communication port, for example, sends the success rate of multimedia message, it is to avoid occur and the incoherent data of multimedia message Flow is transmitted, and saves rate.
Embodiment six
Based on embodiment one to example IV any embodiment, it is single that the electronic equipment that the present embodiment is recorded also includes display Member;In step 40, when first analysis result characterizes current described first communication port and second communication port Between when switching over, the information of first switching command can not be currently responded using sending to described first, so that described First apply the display unit present described in can not respond the information of first switching command.So as to based on priority Treatment mechanism, the information that can will be unable to respond the first switching command notices electronic device user, cuts when described first in time Instruction is changed when being assigned for user, user related information can be noticed in time, Consumer's Experience is lifted.
In the present embodiment, the information of the first switching command can not be responded by being presented by display unit to electronic device user, Facilitate user to understand the state of electronic equipment present communications passage in time, lift Consumer's Experience.
Embodiment seven
Based on embodiment one to example IV any embodiment, it is single that the electronic equipment that the present embodiment is recorded also includes display Member;In step 60, forbid response first switching command, can not also currently respond described first using transmission to described first The information of switching command so that described first apply the display unit present described in can not respond first switching command Information.
In the present embodiment, the information of the first switching command can not be responded by being presented by display unit to electronic device user, Facilitate user to understand the state of electronic equipment present communications passage in time, the control instruction of user can also be received, according to being connect The control instruction of receipts determines the need for the first switching command described in forced response, or, forbid response first switching to refer to Order, facilitates electronic device user and communication port is controlled, improve Consumer's Experience.
It should be noted that the beneficial effect in following electronic equipment embodiment, the beneficial effect with above method embodiment Fruit seemingly, subsequently repeats no more, for the ins and outs not disclosed in following electronic equipment embodiment, refer to above method real Apply the description of example.
Embodiment eight
The application that the present embodiment is recorded in a kind of electronic equipment, the electronic equipment uses first in the electronic equipment Communication port or the second communication port are communicated;Fig. 5 is that the present embodiment electronic equipment constitutes structural representation one, such as Fig. 5 institutes Show, the electronic equipment includes:
Detection unit 51, for obtaining what is switched between first communication port and second communication port During the first switching command, the current state of first communication port and second communication port, correspondence generation are detected respectively The first state information for characterizing the first communication port state and the second state letter for characterizing the second communication port state Breath;
Resolution unit 52, for parsing the first state information and second status information, the parsing knot of generation first Really;
Determining unit 53, for when first analysis result characterize it is current not in first communication port and described the When being switched between two communication ports, the pre-set priority of first application and the described second application is determined respectively, it is described First application is sends the application of first switching command, and second application is the application for sending the second switching command, institute The last time switching that the second switching command responds by the electronic equipment before first switching command is obtained is stated to refer to Order;
Response management unit 54, for comparing the priority of first application and the priority of second application, when During the priority that the priority of second application is applied higher than described first, forbid response first switching command.
Embodiment nine
The electronic equipment recorded based on embodiment eight, wherein, the resolution unit 52 is additionally operable to parse the first state Information and second status information, generate the second analysis result;Lead to when second analysis result characterizes first communication When road or second communication port is current principal communication passages, continue to parse the first state information and second state Information, generates first analysis result.
Embodiment ten
The electronic equipment recorded based on embodiment eight, the response management unit 54 is additionally operable to when the described second parsing knot When fruit characterizes first communication port and second communication port current non-present principal communication passage, response described first Switching command, current principal communication passage is switched to by first communication port or second communication port.
Embodiment 11
Based on embodiment eight into embodiment ten any embodiment record electronic equipment, the response management unit 54, It is additionally operable to determine that second application sends the second switching command with logical using first communication port and second communication During the secondary communication port of acquiescence in road, the highest priority of second application is judged.
Embodiment 12
Based on embodiment eight into embodiment ten any embodiment record electronic equipment, the response management unit 54, The second switching command and second application for being additionally operable to respond the second application transmission send the second switching command to ask During the secondary communication port of acquiescence in first communication port and second communication port, forbid response secondary using the acquiescence Communication port initiates the instruction of data cube computation.
Embodiment 13
Based on the electronic equipment that any embodiment is recorded into embodiment ten of embodiment eight, Fig. 6 is electricity of the embodiment of the present invention Sub- equipment constitutes structural representation two, as shown in fig. 6, the electronic equipment also includes display unit 55;
The response management unit 54, is additionally operable to lead to when first analysis result characterizes current described first communication When being switched between road and second communication port, first switching can not be currently responded using transmission to described first The information of instruction, so that described first applies to present in the display unit 55 and described can not respond first switching command Information.
Embodiment 14
Based on the electronic equipment that any embodiment is recorded into embodiment ten of embodiment eight, Fig. 7 is electricity of the embodiment of the present invention Sub- equipment constitutes structural representation three, as shown in fig. 7, the electronic equipment also includes display unit 56;
The response management unit 54, when being additionally operable to forbid responding first switching command, sends out to the described first application The information of first switching command can not currently be responded by sending, so that described first applies and be presented described in the display unit 56 The information of first switching command can not be responded.
In practical application, detection unit 51, resolution unit 52, determining unit described in embodiment eight to embodiment 14 53rd, response management unit 54 can be by the central processing unit in the electronic equipment(CPU, Central Processing Unit), digital signal processor(DSP, Digital Signal Processor)Or field programmable gate array(FPGA, Field Programmable Gate Array)Realize;The display unit 55 and embodiment 14 that embodiment 13 is recorded are recorded Display unit 56 can be realized by the display screen in the electronic equipment and related functional circuits.
, can be by it in several embodiments provided by the present invention, it should be understood that disclosed apparatus and method Its mode is realized.Apparatus embodiments described above are only schematical, for example, the division of the unit, is only A kind of division of logic function, can have other dividing mode, such as when actually realizing:Multiple units or component can be combined, or Another system is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed each composition portion Coupling point each other or direct-coupling or communication connection can be the INDIRECT COUPLINGs of equipment or unit by some interfaces Or communication connection, can be electrical, machinery or other forms.
The above-mentioned unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can positioned at a place, can also be distributed to multiple network lists In member;Part or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing unit, also may be used Be each unit individually as a unit, can also two or more units it is integrated in a unit;It is above-mentioned Integrated unit can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program Upon execution, the step of including above method embodiment is performed;And foregoing storage medium includes:It is movable storage device, read-only Memory(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or Person's CD etc. is various can be with the medium of store program codes.
Or, if the above-mentioned integrated unit of the present invention is realized using in the form of software function module and is used as independent product Sale in use, can also be stored in a computer read/write memory medium.Understood based on such, the present invention is implemented The part that the technical scheme of example substantially contributes to prior art in other words can be embodied in the form of software product, The computer software product is stored in a storage medium, including some instructions are to cause a computer equipment(Can be with It is personal computer, server or network equipment etc.)Perform all or part of each embodiment methods described of the invention. And foregoing storage medium includes:Movable storage device, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (14)

1. a kind of control method, applied in electronic equipment, the application in the electronic equipment is used in the electronic equipment First communication port or the second communication port are communicated;Methods described includes:
When obtaining the first switching command switched between first communication port and second communication port, point The current state of first communication port and second communication port is not detected, and it is logical that correspondence generation characterizes first communication The first state information of road state and the second status information for characterizing the second communication port state;
The first state information and second status information are parsed, the first analysis result is generated;
When first analysis result characterizes the current progress not between first communication port and second communication port During switching, the pre-set priority of the first application and the second application is determined respectively, and first application switches to send described first The application of instruction, second application is sends the application of the second switching command, and second switching command is that the electronics is set The standby last time switching command responded before first switching command is obtained;
Compare the priority of first application and the priority of second application, when the priority of the described second application is higher than During the priority of first application, forbid response first switching command.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
The first state information and second status information are parsed, the second analysis result is generated;
It is current principal communication passage when second analysis result characterizes first communication port or second communication port When, continue to parse the first state information and second status information, generate first analysis result.
3. method according to claim 2, it is characterised in that methods described also includes:
When second analysis result characterizes first communication port and second communication port, currently non-present master is led to When believing passage, first switching command is responded, first communication port or second communication port are switched to currently Principal communication passage.
4. according to the method described in claim 1, it is characterised in that the priority of comparison first application and described the The priority of two applications, including:
Determine that second application sends the second switching command to use first communication port and second communication port In acquiescence secondary communication port when, judge the highest priority of second application.
5. the method according to any one of Claims 1-4, it is characterised in that methods described also includes:
Respond the second switching command of the second application transmission and second application sends the second switching command to ask When stating the acquiescence pair communication port in the first communication port and second communication port, response is forbidden to lead to using the acquiescence is secondary Believe that passage initiates the instruction of data cube computation.
6. the method according to any one of Claims 1-4, it is characterised in that the electronic equipment also includes display unit; Methods described also includes:Communicate logical when first analysis result characterizes current described first communication port and described second When being switched between road, the information of first switching command can not be currently responded using transmission to described first, so that institute State first apply the display unit present described in can not respond the information of first switching command.
7. the method according to any one of Claims 1-4, it is characterised in that the electronic equipment also includes display unit; Methods described also includes:It is described forbid respond first switching command when, to described first using send can not currently respond The information of first switching command so that described first apply the display unit present described in can not respond described first The information of switching command.
8. the application in a kind of electronic equipment, the electronic equipment uses the first communication port or second in the electronic equipment Communication port is communicated;The electronic equipment includes:
Detection unit, cuts for obtaining switched between first communication port and second communication port first When changing instruction, the current state of first communication port and second communication port is detected respectively, and correspondence generation characterizes institute State the first state information of the first communication port state and characterize the second status information of the second communication port state;
Resolution unit, for parsing the first state information and second status information, generates the first analysis result;
Determining unit, for being characterized currently not in first communication port and second communication when first analysis result When being switched between passage, first is determined respectively using the pre-set priority with the second application, first application is transmission The application of first switching command, second application is the application of the second switching command of transmission, second switching command The last time switching command responded by the electronic equipment before first switching command is obtained;
Response management unit, for comparing the priority of first application and the priority of second application, when described the During the priority that the priority of two applications is applied higher than described first, forbid response first switching command.
9. electronic equipment according to claim 8, it is characterised in that
The resolution unit, is additionally operable to parse the first state information and second status information, the parsing knot of generation second Really;It is current principal communication passage when second analysis result characterizes first communication port or second communication port When, continue to parse the first state information and second status information, generate first analysis result.
10. electronic equipment according to claim 9, it is characterised in that
The response management unit, is additionally operable to lead to when second analysis result characterizes first communication port and described second When believing the current non-present principal communication passage of passage, first switching command is responded, by first communication port or described Second communication port switches to current principal communication passage.
11. the electronic equipment according to any one of claim 8 to 10, it is characterised in that
The response management unit, is additionally operable to determine that second application sends the second switching command to communicate using described first During the secondary communication port of acquiescence in passage and second communication port, the highest priority of second application is judged.
12. the electronic equipment according to any one of claim 8 to 10, it is characterised in that
The response management unit, is additionally operable to respond the second switching command and second application that second application is sent The second switching command is sent to ask during the acquiescence pair communication port in first communication port and second communication port, Response is forbidden to initiate the instruction of data cube computation using the secondary communication port of the acquiescence.
13. the electronic equipment according to any one of claim 8 to 10, it is characterised in that
The electronic equipment also includes display unit;
The response management unit, is additionally operable to when first analysis result characterizes current described first communication port and institute State when switching between the second communication port, first switching command can not be currently responded using sending to described first Information so that described first apply the display unit present described in can not respond the information of first switching command.
14. the electronic equipment according to any one of claim 8 to 10, it is characterised in that
The electronic equipment also includes display unit;
The response management unit, when being additionally operable to forbid responding first switching command, sends current to the described first application The information of first switching command can not be responded so that described first apply the display unit present described in can not respond The information of 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 CN104660780A (en) 2015-05-27
CN104660780B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106413111B (en) * 2015-07-31 2019-11-22 展讯通信(上海)有限公司 A kind of multi communication network management method and mobile terminal
CN105338178B (en) * 2015-09-30 2019-06-11 宇龙计算机通信科技(深圳)有限公司 Communication means and device based on dual-card dual-standby single-pass terminal
EP3975614A4 (en) * 2019-05-23 2022-06-29 Beijing Xiaomi Mobile Software Co., Ltd. Service handover method and apparatus
CN110177173B (en) * 2019-05-24 2021-06-11 中国联合网络通信集团有限公司 Switching method and device
MX2022003563A (en) * 2019-09-29 2022-06-16 Huawei Tech Co Ltd 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

Also Published As

Publication number Publication date
CN104660780A (en) 2015-05-27

Similar Documents

Publication Publication Date Title
CN104660780B (en) Electronic equipment and its control method
CN104008313B (en) The guard method of privacy information and device
CN104703236B (en) A kind of method for switching network and device of terminal communication
CN105760260B (en) A kind of standby system and backup method
CN107995247B (en) File transmission method, server and system
CN102571492B (en) Method and device for detecting failure of routing equipment
CN107465613B (en) Link aggregation interface communication state switching method and device
CN103974216B (en) A kind of information processing method and electronic equipment
CN106487528A (en) A kind of acquisition methods of user VoLTE signing state and equipment
CN104506719A (en) Method and device for terminal communication
CN108632844A (en) Information processing method, device, computer readable storage medium and electronic equipment
CN106506867A (en) A kind of call method and mobile terminal
CN107493229A (en) Message group sending method, server and the computer-readable storage medium of converged communication
CN104394266B (en) Terminal operating status changing method and system
CN104915168B (en) A kind of information processing method and electronic equipment
EP3240251A1 (en) Line card determination, determination processing method and device, and line card determination system
CN110519712A (en) Information processing method and device, network element and storage medium
CN105657701B (en) A kind of call method and device based on eSIM card
CN106941671A (en) Communication event processing method and mobile terminal based on double card dual system
CN106358221A (en) Method and device for recovering main card data
CN104010353B (en) A kind of information processing method and electronic equipment
CN108243085A (en) Push, setting method and the device of communication group status indicator
CN103051484A (en) Method and system for processing session service and session border controller
CN107920174A (en) A kind of the Internet telephone calls method and apparatus
CN101998570A (en) Network switching method and system

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