US10015314B2ActiveUtilityA1

Call collision processing method for terminal device, and terminal device

Assignee: HUAWEI TECH CO LTDPriority: Jan 30, 2015Filed: Jan 30, 2015Granted: Jul 3, 2018
Est. expiryJan 30, 2035(~8.5 yrs left)· nominal 20-yr term from priority
H04M 3/4283H04M 3/42059H04M 3/436H04W 4/16H04M 3/50H04M 3/42H04M 2201/22H04M 2207/18H04W 88/00
36
PatentIndex Score
0
Cited by
5
References
20
Claims

Abstract

The present disclosure relates to a call collision processing method for a terminal device, and a terminal device. A state machine records that a current state of the terminal device is an incoming call state, an outgoing call state, or an idle state. When the terminal device is in the idle state, that the terminal device processes an incoming call or an outgoing call is determined according to occupation of the state machine by incoming call information or by outgoing call information, and a state of the state machine after the state machine is occupied by the incoming call or the outgoing call is protected by using a mutex lock.

Claims

exact text as granted — not AI-modified
What is claimed is: 
     
       1. A method comprising:
 receiving, by a baseband processor of a first terminal device, an incoming call request message sent by a network, wherein the incoming call request message comes from a second terminal device, and wherein the incoming call request message carries information about a first account of the first terminal device, the first terminal device comprising a baseband processor, a wireless support apparatus includes a state machine, and an application processor, wherein the first account comprises a SIM card of a mobile phone; 
 sending, by the baseband processor, an incoming call prompt message to a wireless support apparatus of the first terminal device according to the incoming call request message, wherein the incoming call prompt message comprises the information about the first account; 
 obtaining, by the wireless support apparatus, a state of the first terminal device; 
 updating, by the wireless support apparatus, the state of the first terminal device to an incoming call state according to the incoming call prompt message, and occupying a mutex lock, in response to the state of the first terminal device being an idle state; 
 sending, by the wireless support apparatus, a state change success message to the baseband processor; 
 sending, by the baseband processor, the incoming call request message to an application processor of the first terminal device according to the state change success message; and 
 prompting, by the application processor, a user, about incoming call information, according to the incoming call request message. 
 
     
     
       2. The method according to  claim 1 , wherein the method further comprises:
 generating, by the wireless support apparatus, a first verification code, in response to the state of the first terminal device being the idle state, wherein the first verification code comprises the information about the first account and information about the second terminal device. 
 
     
     
       3. The method according to  claim 2 , wherein the method further comprises:
 sending, by the application processor, a call termination message to the wireless support apparatus, in response to the application processor receiving a hang-up instruction terminating a call connection between the first terminal device and the second terminal device, wherein the call termination message comprises the information about the first account and the information about the second terminal device; 
 sending, by the baseband processor, a call termination message to the wireless support apparatus, in response to the baseband processor receiving a hang-up instruction sent by the network and terminating a call connection between the first terminal device and the second terminal device; 
 generating, by the wireless support apparatus, an incoming call state release message according to the call termination message, and unlocking the mutex lock; and 
 resetting, by the first terminal device, the state of the first terminal device to the idle state according to the incoming call state release message and the first verification code. 
 
     
     
       4. The method according to  claim 1 , wherein the method further comprises:
 sending, by the application processor, an outgoing call request message to the wireless support apparatus according to the outgoing call request message, after updating, by the wireless support apparatus, the state of the first terminal device to the incoming call state; 
 obtaining, by the wireless support apparatus, a state of the first terminal device; and 
 sending, by the wireless support apparatus, outgoing call rejection response information to the application processor, in response to the state of the first terminal device being the incoming call state. 
 
     
     
       5. The method according to  claim 4 , the method further comprises:
 obtaining, by the wireless support apparatus, pre-stored configuration information of an incoming call/outgoing call priority; and 
 choosing, by the wireless support apparatus according to the configuration information, to update the state of the first terminal device to the incoming call state or to an outgoing call state. 
 
     
     
       6. The method according to  claim 1 , wherein the method further comprises:
 sending, by the wireless support apparatus, a state change rejection message to the baseband processor, in response to the state of the first terminal device being an incoming call state or an outgoing call state; and 
 sending, to the network by the baseband processor according to the state change rejection message, response information that rejects an incoming call from the second terminal device. 
 
     
     
       7. A method comprising:
 receiving, by an application processor of a first terminal device, an outgoing call instruction, input by a user, the first terminal device comprising a baseband processor, a wireless support apparatus includes a state machine, and an application processor; 
 sending, by the application processor, an outgoing call request message to a wireless support apparatus of the first terminal device, according to the outgoing call instruction, wherein the outgoing call request message carries information about a first account of the first terminal device and information about a second terminal device, wherein the first account comprises a SIM card of a mobile phone; 
 obtaining, by the wireless support apparatus, a state of the first terminal device; 
 updating, by the wireless support apparatus, the state of the first terminal device to an outgoing call state according to the outgoing call request message, and occupying a mutex lock, in response to the state of the first terminal device being an idle state; 
 sending, by the wireless support apparatus, a state change success message to the application processor; 
 sending, by the application processor, the outgoing call request message to a baseband processor of the first terminal device, according to the state change success message; and 
 sending, by the baseband processor, a call request destined for the second terminal device, to a network, according to the outgoing call request message. 
 
     
     
       8. The method according to  claim 7 , wherein the method further comprises:
 generating, by the wireless support apparatus, second verification code, in response to the wireless support apparatus updating the state of the first terminal device to the outgoing call state according to the outgoing call request message, wherein the second verification code comprises the information about the first account and the information about the second terminal device. 
 
     
     
       9. The method according to  claim 8 , wherein the method further comprises:
 sending, by the application processor, a call termination message to the wireless support apparatus, in response to the application processor receiving a hang-up instruction terminating a call connection between the first terminal device and the second terminal device, wherein the call termination message comprises the information about the first account and the information about the second terminal device; 
 sending, by the baseband processor, a call termination message to the wireless support apparatus, in response to the baseband processor receiving a hang-up instruction sent by the network and terminating a call connection between the first terminal device and the second terminal device; 
 generating, by the wireless support apparatus, an outgoing call state release message according to the call termination message, and unlocking the mutex lock; and 
 resetting, by the first terminal device, the state of the first terminal device to the idle state according to the outgoing call state release message and the second verification code. 
 
     
     
       10. The method according to  claim 9 , the method further comprising:
 sending, by the baseband processor, an incoming call prompt message to the wireless support apparatus according to an incoming call request message, after updating, by the wireless support apparatus, the state of the first terminal device to the outgoing call state; 
 obtaining, by the wireless support apparatus, a state of the first terminal device; 
 sending, by the wireless support apparatus, incoming call rejection response information to the application processor, in response to the state of the first terminal device being the outgoing call state; and 
 sending, by the application processor, the incoming call rejection response information to the network using the baseband processor. 
 
     
     
       11. The method according to  claim 10 , further comprising:
 sending, by the baseband processor, an incoming call prompt message to the wireless support apparatus according to the incoming call request message, after updating, by the wireless support apparatus, the state of the first terminal device to the outgoing call state according to the outgoing call request message, when the baseband processor receives an incoming call request message sent by the network, that comes from a third terminal device, wherein the incoming call prompt message carries the information about the first account of the first terminal device; 
 processing, by the wireless support apparatus, the incoming call prompt message; 
 sending the incoming call prompt message to the application processor, in response to the information about the first account being identified; 
 generating, by the application processor, prompt information according to the incoming call prompt message, to inform the user that an incoming call that comes from the third terminal device is received; 
 sending an outgoing call suspension message to the wireless support apparatus, in response to the application processor receiving an outgoing call suspension instruction input by the user; 
 updating, by the wireless support apparatus, the state of the first terminal device to an outgoing call suspension state according to the outgoing call suspension message; 
 suspending a call between the first terminal device and the second terminal device; and 
 receiving, by the baseband processor, incoming call information of the third terminal device and sending the incoming call information of the third terminal device to the application processor, in response to the state of the first terminal device being the outgoing call suspension state. 
 
     
     
       12. The method according to  claim 11 , wherein the method further comprises:
 sending an outgoing call restoration instruction message to the wireless support apparatus, in response to the application processor receiving an outgoing call restoration instruction input by the user, after updating, by the wireless support apparatus, the state of the first terminal device to the outgoing call suspension state; 
 updating, by the wireless support apparatus, the state of the first terminal device to the outgoing call state according to the outgoing call restoration instruction message; and 
 suspending a call between the first terminal device and the third terminal device. 
 
     
     
       13. The method according to  claim 11 , wherein the method further comprises:
 sending, by the application processor, a first call termination message to the wireless support apparatus, in response to the application processor receiving a hang-up instruction terminating a call with the second terminal device, wherein the first call termination message comprises the information about the first account and the information about the second terminal device; 
 generating, by the wireless support apparatus, an outgoing call state release message according to the first call termination message, and unlocking the mutex lock; 
 resetting, by the first terminal device, the state of the first terminal device to the idle state, according to the outgoing call state release message and the second verification code; and 
 updating, by the wireless support apparatus, the state of the first terminal device to an incoming call state, occupying the mutex lock, and generating third verification code, wherein the third verification code comprises the information about the first account and information about the third terminal device. 
 
     
     
       14. The method according to  claim 11 , wherein the method further comprises:
 sending, by the application processor, a second call termination message to the wireless support apparatus, in response to the application processor receiving a hang-up instruction terminating a call with the third terminal device, wherein the second call termination message comprises the information about the first account and information about the third terminal device; 
 generating, by the wireless support apparatus, an outgoing call suspension state release message according to the second call termination message; and 
 changing the state of the first terminal device from the outgoing call suspension state to the outgoing call state. 
 
     
     
       15. The method according to  claim 7 , the method further comprising:
 sending, by the wireless support apparatus, a state change rejection message to the application processor, in response to the state of the first terminal device being an incoming call state or an outgoing call state; and 
 rejecting, by the application processor according to the state change rejection message, the outgoing call request message destined for the second terminal device. 
 
     
     
       16. A first terminal device, wherein the first terminal device, comprising:
 a baseband processor, a wireless support apparatus including a state machine, and an application processor; 
 a first non-transitory computer readable storage medium storing a first program for execution by the baseband processor, the first program including first instructions to:
 receive an incoming call request message sent by a network, and wherein the incoming call request message comes from a second terminal device, and wherein the incoming call request message carries information about a first account of the first terminal device, wherein the first account comprises a SIM card of a mobile phone; and 
 send an incoming call prompt message to a wireless support apparatus according to the incoming call request message, wherein the incoming call prompt message comprises the information about the first account; 
 
 the wireless support apparatus coupled to the baseband processor, the wireless support apparatus configured to:
 obtain a state of the first terminal device; 
 update the state of the first terminal device to an incoming call state according to the incoming call request message, and occupy a mutex lock, in response to the state of the first terminal device being an idle state; and 
 send a state change success message to the baseband processor, wherein the first instructions further comprise first instructions to send the incoming call request message to an application processor according to the state change success message; 
 
 an application processor coupled to the baseband processor; and 
 a second non-transitory computer readable storage medium storing a second program for execution by the application processor, the second program including second instructions to:
 prompt a user about incoming call information according to the incoming call request message. 
 
 
     
     
       17. The first terminal device according to  claim 16 , wherein the wireless support apparatus is further configured to:
 generate first verification code, in response to the wireless support apparatus updating the state of the first terminal device to the incoming call state, wherein the first verification code comprises the information about the first account and information about the second terminal device. 
 
     
     
       18. The first terminal device according to  claim 17 , wherein the second instructions further comprise instructions to:
 send a call termination message to the wireless support apparatus, in response to the application processor receiving a hang-up instruction terminating a call with the second terminal device, wherein the call termination message comprises the information about the first account and the information about the second terminal device; and 
 wherein the wireless support apparatus is further configured to generate an incoming call state release message according to the call termination message, and unlock the mutex lock, to reset the state of the first terminal device to the idle state, with reference to the first verification code. 
 
     
     
       19. The first terminal device according to  claim 16 , wherein the second instructions further comprise instructions to:
 send an outgoing call request message to the wireless support apparatus according to an outgoing call instruction, in response to the state of the first terminal device being the incoming call state, and the application processor receiving the outgoing call instruction, input by the user; and 
 wherein the wireless support apparatus is further configured to:
 obtain a state of the first terminal device; and 
 send outgoing call rejection response information to the application processor, in response to the state of the first terminal device being the incoming call state. 
 
 
     
     
       20. The first terminal device according to  claim 19 , wherein the second instructions further comprise second instructions to:
 send the outgoing call request message to the wireless support apparatus, in response to the baseband processor sending the incoming call prompt message to the wireless support apparatus of the first terminal device; and 
 wherein the wireless support apparatus is further configured to:
 obtain pre-stored configuration information of an incoming call/outgoing call priority; and 
 choose, according to the configuration information, to update the state of the first terminal device to the incoming call state or to an outgoing call state.

Join the waitlist — get patent alerts

Track US10015314B2 — get alerts on status changes and closely related new filings.

We store only your email — no account needed. See our privacy policy.