Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a communication sharing method according to an embodiment of the present invention, where the communication sharing method according to the embodiment of the present invention is applied to a first terminal, and as shown in fig. 1, the method includes the following steps:
step 101, detecting whether a first operation parameter of the first terminal meets a preset condition.
In this step, the first operation parameter includes at least one of a first power parameter of the first terminal and a first network signal parameter. In this embodiment, the usage status of the first terminal may be determined by detecting whether the first operating parameter of the first terminal meets a preset condition. For example, when the power of the first terminal is lower than a certain value and the user using the first terminal cannot charge the first terminal within a short period of time, it indicates that the first terminal is about to lose the communication capability due to power shortage.
If the first operation parameter does not meet the preset condition, ending the process and maintaining the normal use of the first terminal; if the first operation parameter satisfies the preset condition, step 102 is executed to determine a second terminal with shared communication capability.
And 102, if the first operation parameter meets a preset condition, determining a second terminal with the shared communication capability.
In this step, the second terminal is a terminal having a shared communication capability. In this embodiment, the terminal with the shared communication capability is a terminal supporting the identification function of at least two identification cards, and the card position of at least one of the identification cards is in an idle state.
For example, the second terminal supports a dual-card dual-standby function, and if only one identification card is installed in the second terminal, it is indicated that the second terminal is a terminal with shared communication capability; if the two card slots of the second terminal are both provided with the identity identification cards, the second terminal is a terminal without the shared communication capability.
Step 103, sending the user identity information of the first terminal to the second terminal, so that the second terminal replaces the first terminal to receive the information of the first terminal.
In this step, after determining a second terminal with shared communication capability, sending user identity information of a first terminal to the second terminal, where the second terminal may generate a corresponding virtual identity card according to the user identity information of the first terminal sent by the first terminal, and receiving information of the first terminal through the identity card instead of the first terminal, so as to implement communication sharing, so that a user using the first terminal can receive information through the second terminal in time, thereby avoiding a user using the first terminal from missing important information during a period in which the first terminal loses communication capability, and improving information receiving efficiency.
The user identity information of the first terminal sent to the second terminal comprises identity identification card information registered by a user using the first terminal, and related information of an operator corresponding to the identity identification card; the identity identification card information carries all or part of address book information of the first terminal user.
It should be noted that, in order to avoid unnecessary information leakage, a communication object that may be used in a time period in which the first terminal loses communication capability may be sent to the second terminal, so that user privacy is protected to a certain extent, and user experience is improved.
In this embodiment of the present invention, the first terminal may be any terminal having a communication function, for example: a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
The communication sharing method of the embodiment of the invention detects whether a first operation parameter of the first terminal meets a preset condition; if the first operation parameter meets a preset condition, determining a second terminal with shared communication capacity; and sending the user identity information of the first terminal to the second terminal, so that the second terminal replaces the first terminal to receive the information of the first terminal. Therefore, by sharing the communication capacity of the second terminal, the user using the first terminal can receive information in time through the second terminal, the user using the first terminal is prevented from missing the reception of important information during the period that the first terminal loses the communication capacity, and the information receiving efficiency is improved.
Referring to fig. 2, fig. 2 is a flowchart of a communication sharing method according to an embodiment of the present invention, where the communication sharing method according to the embodiment of the present invention is applied to a first terminal, and as shown in fig. 2, the method includes the following steps:
step 201, detecting whether a first operation parameter of the first terminal meets a preset condition.
In this step, the first operation parameter includes at least one of a first power parameter of the first terminal and a first network signal parameter. In this embodiment, the usage status of the first terminal may be determined by detecting whether the first operating parameter of the first terminal meets a preset condition.
If the first operation parameter does not meet the preset condition, ending the process and maintaining the normal use of the first terminal; if the first operation parameter satisfies the preset condition, step 202 is executed to broadcast a request message of the first terminal requesting for shared communication.
Optionally, detecting whether a first electric quantity parameter of the first terminal is lower than a preset electric quantity parameter, and if the first electric quantity parameter is lower than the preset electric quantity parameter, meeting a preset condition; or detecting whether a first network signal parameter of the first terminal is lower than a preset network signal parameter, and if the first network signal parameter is lower than the preset network signal parameter, meeting the preset condition.
In this embodiment, by detecting the first electric quantity parameter and/or the first network signal parameter of the first terminal, when the first electric quantity parameter of the first terminal is lower than the preset electric quantity parameter, it indicates that the first terminal is about to lose the communication capability; when the first network signal parameter of the first terminal is lower than the preset network signal parameter, the network environment of the first terminal is poor, and information cannot be received in time.
Step 202, broadcasting a request message of the first terminal requesting for sharing communication if the first operation parameter meets a preset condition.
In the step, when the first operation parameter meets a preset condition, the first terminal is in a state of losing the communication capability or the network signal environment is poor, and information cannot be received in time; by using a near field communication function of the first terminal, such as bluetooth or the like, a request message requesting shared communication is broadcast to other terminals in the surroundings.
The request message may include information of time, location, etc. when the first terminal requests the shared communication. For example, if the first terminal is about to lose communication capability at 9 am and a significant phone call is available at 10 am, the information of the 10 significant phone calls may be included in the request message so that other user terminals willing to share communication capability may be arranged.
Step 203, receiving a response message sent by the candidate terminal according to the request message.
In this step, the candidate terminal is a terminal having a shared communication capability. The terminal with the shared communication capability is a terminal supporting the identification function of at least two identification cards, and the card position of at least one identification card is in an idle state.
And step 204, determining a target terminal from the candidate terminals as the second terminal according to the response message.
In this step, when there are at least two candidate terminals willing to share the communication capability for the user using the first terminal, the target terminal may be determined from the candidate terminals as the second terminal according to the response information sent by the candidate terminals.
The response message includes the operator information of the candidate terminal and other information of the candidate terminal. For example, a candidate terminal with the same operator may be used as the second terminal.
Optionally, the response message includes at least one of a second operating parameter of the candidate terminal and a relative distance between the candidate terminal and the first terminal; the step 204 may further include: determining a target terminal from the candidate terminals as the second terminal according to the second operation parameters and/or the relative distance of the candidate terminals; wherein the second operating parameter comprises at least one of a second power parameter and a second network signal parameter.
In this embodiment, according to the second operation information in the candidates and the relative distance between the candidate terminal and the first terminal, the user using the first terminal can be helped to select a suitable candidate terminal as the second terminal.
For example, the candidate terminal with the best network signal may be selected as the second terminal, the candidate terminal with the most electric quantity may be selected as the second terminal, the candidate terminal with the closest relative distance may be selected as the second terminal, and the second terminal may be determined from the candidate terminals by combining parameters such as the relative distance and the electric quantity. The specific choice may be determined according to the requirements of the user using the first terminal. By the method, the user using the first terminal can select the most appropriate candidate terminal as the second terminal, and user experience is improved.
Step 205, sending the user identity information of the first terminal to the second terminal, so that the second terminal replaces the first terminal to receive the information of the first terminal.
In this step, after determining a second terminal with shared communication capability, sending user identity information of a first terminal to the second terminal, where the second terminal may generate a corresponding virtual identity card according to the user identity information of the first terminal sent by the first terminal, and receiving information of the first terminal through the identity card instead of the first terminal, so as to implement communication sharing, so that a user using the first terminal can receive information through the second terminal in time, thereby avoiding a user using the first terminal from missing important information during a period in which the first terminal loses communication capability, and improving information receiving efficiency.
The communication sharing method of the embodiment of the invention detects whether a first operation parameter of the first terminal meets a preset condition; if the first operation parameter meets a preset condition, broadcasting a request message of the first terminal for requesting the sharing communication; receiving a response message sent by the candidate terminal according to the request message; determining a target terminal from the candidate terminals as the second terminal according to the response message; and sending the user identity information of the first terminal to the second terminal, so that the second terminal replaces the first terminal to receive the information of the first terminal. Therefore, by sharing the communication capacity of the second terminal, the user using the first terminal can receive information in time through the second terminal, the user using the first terminal is prevented from missing the reception of important information during the period that the first terminal loses the communication capacity, and the information receiving efficiency is improved.
Referring to fig. 3, fig. 3 is a flowchart of a communication sharing method according to an embodiment of the present invention, where the communication sharing method according to the embodiment of the present invention is applied to a second terminal, and as shown in fig. 3, the method includes the following steps:
step 301, receiving a request message for requesting shared communication broadcasted by a first terminal.
In this step, the first terminal is a terminal that is about to lose communication capability, and the request message may include information such as time and place when the first terminal requests the shared communication.
For example, when the first terminal is about to lose communication capability at 9 am and a significant phone call is available at 10 am, the information of the 10 significant phone call may be included in the request message so that the user terminal using the second terminal is arranged.
Step 302, detecting whether the second terminal has the shared communication capability.
In this step, the terminal with the shared communication capability is a terminal supporting the identification function of at least two identification cards, and the card position of at least one of the identification cards is in an idle state.
By detecting whether the second terminal has the shared communication capability, if so, executing step 303; if the shared communication capability is not available, the flow is ended.
Step 303, if the second terminal has the shared communication capability, receiving the user identity information of the first terminal sent by the first terminal, instead of receiving the information of the first terminal by the first terminal.
In this step, the user identity information of the first terminal includes identity card information registered by the user using the first terminal, and related information of an operator corresponding to the identity card; the identity identification card information carries all or part of address book information of the first terminal user.
If the second terminal has the shared communication capacity, the user identity information of the first terminal sent by the first terminal is received, and the communication capacity of the second terminal is shared to the user using the first terminal, so that the user using the first terminal can receive information in time through the second terminal, the user using the first terminal is prevented from missing the reception of important information during the period that the first terminal loses the communication capacity, and the information receiving efficiency is improved.
It should be noted that, in order to avoid unnecessary information leakage, a communication object that may be used in a time period in which the first terminal loses communication capability may be sent to the second terminal, so that user privacy is protected to a certain extent, and user experience is improved.
In this embodiment of the present invention, the first terminal may be any terminal having a communication function, for example: a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
The communication sharing method of the embodiment of the invention receives a request message which is broadcasted by a first terminal and requests for sharing communication; detecting whether the second terminal has a shared communication capability; and if the second terminal has the shared communication capability, receiving the user identity information of the first terminal sent by the first terminal, and replacing the first terminal to receive the information of the first terminal. Therefore, the communication capacity of the second terminal is shared to the user using the first terminal, so that the user using the first terminal can receive information in time through the second terminal, the user using the first terminal is prevented from missing the reception of important information during the period that the first terminal loses the communication capacity, and the information receiving efficiency is improved.
Referring to fig. 4, fig. 4 is a flowchart of a communication sharing method according to an embodiment of the present invention, where the communication sharing method according to the embodiment of the present invention is applied to a second terminal, and as shown in fig. 4, the method includes the following steps:
step 401, receiving a request message for requesting shared communication broadcasted by a first terminal.
In this step, the first terminal is a terminal that is about to lose communication capability, and the request message may include information such as time and place when the first terminal requests the shared communication.
Step 402, detecting whether the second terminal supports at least two identification cards.
In this step, whether the second terminal supports at least two identification cards may be detected by detecting whether the second terminal includes at least two physical identification card slots, or at least two virtual identification card slots, or at least one physical identification card slot and at least one virtual identification card slot.
Step 403, if the second terminal supports the at least two identification cards, detecting whether the second terminal has an idle identification card position.
In this step, if the second terminal supports at least two identification cards and has an idle identification card position, it is determined that the second terminal has a shared communication capability.
Step 404, if the second terminal has an idle identification card, receiving the user identity information of the first terminal sent by the first terminal, instead of the first terminal receiving the information of the first terminal.
In this step, the user identity information of the first terminal includes information stored in a part or all of the user identity cards, and related information of an operator corresponding to the user identity cards.
If the second terminal has the shared communication capacity, the user identity information of the first terminal sent by the first terminal is received, and the communication capacity of the second terminal is shared to the user using the first terminal, so that the user using the first terminal can receive information in time through the second terminal, the user using the first terminal is prevented from missing the reception of important information during the period that the first terminal loses the communication capacity, and the information receiving efficiency is improved.
Optionally, after step 403 and before step 404, the method further includes: detecting whether the second terminal receives an operation instruction of sharing communication capacity; if the operation instruction is received, sending a response message to the first terminal according to the request message;
in this embodiment, whether the second terminal receives an operation instruction that the user using the second terminal is willing to share the communication capability with the first terminal may be detected, and if the corresponding operation instruction is received, a response message may be sent to the first terminal according to the request message sent by the first terminal. Thus, the user experience can be improved by deciding whether the user wants to share the communication capacity according to the intention of the user using the second terminal.
Optionally, step 404 may further include: receiving user identity information of the first terminal sent by the first terminal, generating a corresponding virtual identity identification card according to the user identity information, and using the virtual identity identification card to replace the first terminal to receive the information of the first terminal.
In this embodiment, the corresponding virtual identity card may be generated according to the user identity information of the first terminal, and the virtual identity card may be used to replace the first terminal to receive the information of the first terminal.
Specifically, if the second terminal is a terminal supporting dual-card dual-standby and has a shared communication capability, after the second terminal receives the user identity information of the first terminal, the user identity information of the first terminal can be generated into a corresponding virtual identity identification card and stored in an internal memory of the second terminal, and then the user identity information of the first terminal is respectively uploaded to the modem module and the application layer module. The modem module receives the preparation notice of the virtual identity card, triggers the modem module to enter dual-card dual-standby mode from single-card single standby mode, and simultaneously carries out 3GPP protocol standard behaviors such as network searching, cell measurement and the like on the two identity cards, thereby ensuring that the two identity cards can obtain the best network service. The application layer module is also informed by the preparation of the virtual identity identification card, all applications related to the identity identification card can have options of a card-to-card state, and after the virtual identity identification card is successfully networked, the application layer module can display the network residing state of the virtual identity identification card on a display interface of the second terminal and can receive information corresponding to the virtual identity identification card.
By the method, the communication capacity of the second terminal can be shared to the user using the first terminal, so that the user using the first terminal can receive information in time through the second terminal, the user using the first terminal is prevented from missing the reception of important information during the period that the first terminal loses the communication capacity, and the information receiving efficiency is improved.
The communication sharing method of the embodiment of the invention receives a request message which is broadcasted by a first terminal and requests for sharing communication; detecting whether the second terminal supports at least two identity identification cards or not; if the second terminal supports the at least two identification cards, detecting whether the second terminal has an idle identification card position; and if the second terminal has an idle identification card position, receiving the user identity information of the first terminal sent by the first terminal, and replacing the first terminal to receive the information of the first terminal. Therefore, the communication capacity of the second terminal is shared to the user using the first terminal, so that the user using the first terminal can receive information in time through the second terminal, the user using the first terminal is prevented from missing the reception of important information during the period that the first terminal loses the communication capacity, and the information receiving efficiency is improved.
Referring to fig. 5, fig. 5 is a structural diagram of a terminal according to an embodiment of the present invention, as shown in fig. 5, a terminal 500 includes a detection module 501, a determination module 502, and a sending module 503, where:
a detecting module 501, configured to detect whether a first operation parameter of the terminal meets a preset condition;
a determining module 502, configured to determine a second terminal with a shared communication capability if the first operating parameter meets a preset condition;
a sending module 503, configured to send user identity information of a terminal to the second terminal, so that the second terminal replaces the terminal to receive information of the terminal;
wherein the first operating parameter comprises at least one of a first power parameter and a first network signal parameter.
Optionally, as shown in fig. 6, the detecting module 501 includes:
the first detection submodule 5011 is configured to detect whether a first electric quantity parameter of the terminal is lower than a preset electric quantity parameter, and if the first electric quantity parameter is lower than the preset electric quantity parameter, a preset condition is met;
the second detection submodule 5012 is configured to detect whether a first network signal parameter of the terminal is lower than a preset network signal parameter, and if the first network signal parameter is lower than the preset network signal parameter, the preset condition is met.
Optionally, as shown in fig. 7, the determining module 502 includes:
a broadcasting sub-module 5021 for broadcasting a request message of the terminal requesting for shared communication;
a receiving submodule 5022, configured to receive a response message sent by a candidate terminal according to the request message, where the candidate terminal is a terminal with a shared communication capability;
the determining submodule 5023 is configured to determine a target terminal from the candidate terminals according to the response message, and use the target terminal as the second terminal.
Optionally, the response message includes at least one of a second operating parameter of the candidate terminal and a relative distance between the candidate terminal and the terminal;
the determining submodule 5023 is specifically configured to determine a target terminal from the candidate terminals as the second terminal according to the second operation parameter and/or the relative distance of the candidate terminals;
wherein the second operating parameter comprises at least one of a second power parameter and a second network signal parameter.
The terminal 500 can implement each process implemented by the terminal in the method embodiments of fig. 1 and fig. 2, and is not described herein again to avoid repetition.
The terminal 500 of the embodiment of the present invention detects whether a first operating parameter of the first terminal meets a preset condition; if the first operation parameter meets a preset condition, determining a second terminal with shared communication capacity; and sending the user identity information of the first terminal to the second terminal, so that the second terminal replaces the first terminal to receive the information of the first terminal. Therefore, by sharing the communication capacity of the second terminal, the user using the first terminal can receive information in time through the second terminal, the user using the first terminal is prevented from missing the reception of important information during the period that the first terminal loses the communication capacity, and the information receiving efficiency is improved.
Referring to fig. 8, fig. 8 is a structural diagram of a terminal according to another embodiment of the present invention, as shown in fig. 8, a terminal 800 includes a first receiving module 801, a first detecting module 802, and a second receiving module 803, where:
a first receiving module 801, configured to receive a request message requesting shared communication broadcast by a first terminal;
a first detecting module 802, configured to detect whether the terminal has a shared communication capability;
a second receiving module 803, configured to receive, if the terminal has the shared communication capability, the user identity information of the first terminal sent by the first terminal, instead of the first terminal receiving the information of the first terminal.
Optionally, as shown in fig. 9, the first detecting module 802 includes:
a first detection submodule 8021, configured to detect whether the terminal supports at least two identity cards;
a second detection submodule 8022, configured to detect whether there is an idle identity card location in the terminal if the terminal supports the at least two identity cards;
the determining submodule 8023 is configured to determine that the terminal has a shared communication capability if the terminal has an idle identity card location.
Optionally, as shown in fig. 10, the terminal 800 further includes:
a second detecting module 804, configured to detect whether the terminal receives an operation instruction of sharing communication capability;
a sending module 805, configured to send a response message to the first terminal according to the request message if the operation instruction is received;
the second receiving module 803 is specifically configured to receive the user identity information of the first terminal sent by the first terminal according to the response message, instead of receiving the information of the first terminal by the first terminal;
wherein the response message includes at least one of an operating parameter of the terminal and a relative distance of the terminal from the first terminal.
Optionally, the second receiving module 803 is specifically configured to receive user identity information of the first terminal sent by the first terminal, generate a corresponding virtual identity card according to the user identity information, and receive information of the first terminal by using the virtual identity card instead of the first terminal.
The terminal 800 can implement each process implemented by the terminal in the method embodiments of fig. 3 and fig. 4, and is not described herein again to avoid repetition.
The terminal 800 of the embodiment of the present invention receives a request message for requesting shared communication broadcast by a first terminal; detecting whether the second terminal has a shared communication capability; and if the second terminal has the shared communication capability, receiving the user identity information of the first terminal sent by the first terminal, and replacing the first terminal to receive the information of the first terminal. Therefore, the communication capacity of the second terminal is shared to the user using the first terminal, so that the user using the first terminal can receive information in time through the second terminal, the user using the first terminal is prevented from missing the reception of important information during the period that the first terminal loses the communication capacity, and the information receiving efficiency is improved.
Fig. 11 is a schematic hardware structure diagram of a terminal for implementing various embodiments of the present invention, and as shown in fig. 11, the terminal 1100 includes, but is not limited to: radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, memory 1109, processor 1110, and power supply 1111. Those skilled in the art will appreciate that the terminal structure shown in fig. 11 does not constitute a limitation of the terminal, and that the terminal may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 1110 is configured to detect whether a first operating parameter of the first terminal meets a preset condition; if the first operation parameter meets a preset condition, determining a second terminal with shared communication capacity; sending user identity information of a first terminal to a second terminal, and enabling the second terminal to replace the first terminal to receive information of the first terminal; wherein the first operating parameter comprises at least one of a first power parameter and a first network signal parameter.
Optionally, the processor 1110 is further configured to: detecting whether a first electric quantity parameter of the first terminal is lower than a preset electric quantity parameter, and if the first electric quantity parameter is lower than the preset electric quantity parameter, meeting a preset condition; or detecting whether a first network signal parameter of the first terminal is lower than a preset network signal parameter, and if the first network signal parameter is lower than the preset network signal parameter, meeting the preset condition.
Optionally, the processor 1110 is further configured to: broadcasting a request message of the first terminal requesting for shared communication; receiving a response message sent by a candidate terminal according to the request message, wherein the candidate terminal is a terminal with shared communication capacity; and determining a target terminal from the candidate terminals as the second terminal according to the response message.
Optionally, the response message includes at least one of a second operating parameter of the candidate terminal and a relative distance between the candidate terminal and the first terminal; the processor 1110 is further configured to: determining a target terminal from the candidate terminals as the second terminal according to the second operation parameters and/or the relative distance of the candidate terminals; wherein the second operating parameter comprises at least one of a second power parameter and a second network signal parameter.
The terminal 1100 is capable of implementing each process implemented by the first terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.
The terminal 1100 of the embodiment of the present invention detects whether a first operation parameter of the first terminal satisfies a preset condition; if the first operation parameter meets a preset condition, determining a second terminal with shared communication capacity; and sending the user identity information of the first terminal to the second terminal, so that the second terminal replaces the first terminal to receive the information of the first terminal. Therefore, by sharing the communication capacity of the second terminal, the user using the first terminal can receive information in time through the second terminal, the user using the first terminal is prevented from missing the reception of important information during the period that the first terminal loses the communication capacity, and the information receiving efficiency is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1101 may be configured to receive and transmit signals during a message transmission or a call, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 1110; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 1101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 1101 may also communicate with a network and other devices through a wireless communication system.
The terminal provides the user with wireless broadband internet access via the network module 1102, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 1103 may convert audio data received by the radio frequency unit 1101 or the network module 1102 or stored in the memory 1109 into an audio signal and output as sound. Also, the audio output unit 1103 may also provide audio output related to a specific function performed by the terminal 1100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1104 is used to receive audio or video signals. The input Unit 1104 may include a Graphics Processing Unit (GPU) 11041 and a microphone 11042, and the Graphics processor 11041 processes image data of still pictures or video obtained by an image capturing device, such as a camera, in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1106. The image frames processed by the graphic processor 11041 may be stored in the memory 1109 (or other storage medium) or transmitted via the radio frequency unit 1101 or the network module 1102. The microphone 11042 may receive sound and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1101 in case of the phone call mode.
Terminal 1100 can also include at least one sensor 1105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 11061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 11061 and/or a backlight when the terminal 1100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 1105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., and will not be described in detail herein.
The display unit 1106 is used to display information input by a user or information provided to the user. The Display unit 1106 may include a Display panel 11061, and the Display panel 11061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 1107 includes a touch panel 11071 and other input devices 11072. The touch panel 11071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 11071 (e.g., operations by a user on or near the touch panel 11071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 11071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1110, and receives and executes commands sent from the processor 1110. In addition, the touch panel 11071 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 1107 may include other input devices 11072 in addition to the touch panel 11071. In particular, the other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 11071 can be overlaid on the display panel 11061, and when the touch panel 11071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 1110 to determine the type of the touch event, and then the processor 1110 provides a corresponding visual output on the display panel 11061 according to the type of the touch event. Although the touch panel 11071 and the display panel 11061 are shown in fig. 11 as two separate components to implement the input and output functions of the terminal, in some embodiments, the touch panel 11071 and the display panel 11061 may be integrated to implement the input and output functions of the terminal, and the implementation is not limited herein.
The interface unit 1108 is an interface for connecting an external device to the terminal 1100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Interface unit 1108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within terminal 1100 or may be used to transmit data between terminal 1100 and external devices.
The memory 1109 may be used to store software programs as well as various data. The memory 1109 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory 1109 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1110 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 1109 and calling data stored in the memory 1109, thereby integrally monitoring the terminal. Processor 1110 may include one or more processing units; preferably, the processor 1110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1110.
The terminal 1100 can also include a power supply 1111 (e.g., a battery) for providing power to various components, and preferably, the power supply 1111 can be logically connected to the processor 1110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the terminal 1100 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal, including a processor 1110, a memory 1109, and a computer program stored in the memory 1109 and capable of running on the processor 1110, where the computer program, when executed by the processor 1110, implements each process of the communication sharing method embodiment in the foregoing fig. 1 and fig. 2, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the communication sharing method embodiment in the embodiments of fig. 1 and fig. 2, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Fig. 12 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention, and as shown in fig. 12, the terminal 1200 includes, but is not limited to: radio frequency unit 1201, network module 1202, audio output unit 1203, input unit 1204, sensor 1205, display unit 1206, user input unit 1207, interface unit 1208, memory 1209, processor 1210, and power source 1211. Those skilled in the art will appreciate that the terminal configuration shown in fig. 12 is not intended to be limiting, and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 1210 is configured to receive a request message, broadcasted by the first terminal, requesting for shared communication; detecting whether the second terminal has a shared communication capability; and if the second terminal has the shared communication capability, receiving the user identity information of the first terminal sent by the first terminal, and replacing the first terminal to receive the information of the first terminal.
Optionally, the processor 1210 is further configured to: detecting whether the second terminal supports at least two identity identification cards or not; if the second terminal supports the at least two identification cards, detecting whether the second terminal has an idle identification card position; and if the second terminal has an idle identification card position, determining that the second terminal has the shared communication capacity.
Optionally, the processor 1210 is further configured to: detecting whether the second terminal receives an operation instruction of sharing communication capacity; if the operation instruction is received, sending a response message to the first terminal according to the request message; receiving the user identity information of the first terminal sent by the first terminal according to the response message, and replacing the first terminal to receive the information of the first terminal; wherein the response message includes at least one of an operating parameter of the second terminal and a relative distance of the second terminal from the first terminal.
Optionally, the processor 1210 is further configured to: receiving user identity information of the first terminal sent by the first terminal, generating a corresponding virtual identity identification card according to the user identity information, and using the virtual identity identification card to replace the first terminal to receive the information of the first terminal.
The terminal 1200 can implement the processes implemented by the second terminal in the foregoing embodiments, and details are not described here to avoid repetition.
The terminal 1200 of the embodiment of the present invention receives a request message for requesting shared communication broadcast by a first terminal; detecting whether the second terminal has a shared communication capability; and if the second terminal has the shared communication capability, receiving the user identity information of the first terminal sent by the first terminal, and replacing the first terminal to receive the information of the first terminal. Therefore, the communication capacity of the second terminal is shared to the user using the first terminal, so that the user using the first terminal can receive information in time through the second terminal, the user using the first terminal is prevented from missing the reception of important information during the period that the first terminal loses the communication capacity, and the information receiving efficiency is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1201 may be used for receiving and sending signals during information transmission and reception or during a call, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 1210; in addition, the uplink data is transmitted to the base station. Typically, the radio frequency unit 1201 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 1201 can also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through the network module 1202, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 1203 may convert audio data received by the radio frequency unit 1201 or the network module 1202 or stored in the memory 1209 into an audio signal and output as sound. Also, the audio output unit 1203 may also provide audio output related to a specific function performed by the terminal 1200 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1203 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1204 is used to receive audio or video signals. The input Unit 1204 may include a Graphics Processing Unit (GPU) 12041 and a microphone 12042, and the Graphics processor 12041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1206. The image frames processed by the graphics processor 12041 may be stored in the memory 1209 (or other storage medium) or transmitted via the radio frequency unit 1201 or the network module 1202. The microphone 12042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1201 in case of the phone call mode.
The terminal 1200 also includes at least one sensor 1205, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 12061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 12061 and/or backlight when the terminal 1200 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 1205 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., and will not be described further herein.
The display unit 1206 is used to display information input by the user or information provided to the user. The Display unit 1206 may include a Display panel 12061, and the Display panel 12061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1207 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 1207 includes a touch panel 12071 and other input devices 12072. The touch panel 12071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 12071 (e.g., operations by a user on or near the touch panel 12071 using a finger, a stylus, or any suitable object or attachment). The touch panel 12071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1210, receives a command from the processor 1210, and executes the command. In addition, the touch panel 12071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 1207 may include other input devices 12072 in addition to the touch panel 12071. In particular, the other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 12071 may be overlaid on the display panel 12061, and when the touch panel 12071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 1210 to determine the type of the touch event, and then the processor 1210 provides a corresponding visual output on the display panel 12061 according to the type of the touch event. Although the touch panel 12071 and the display panel 12061 are shown as two separate components in fig. 12 to implement the input and output functions of the terminal, in some embodiments, the touch panel 12071 and the display panel 12061 may be integrated to implement the input and output functions of the terminal, and this is not limited herein.
An interface unit 1208 is an interface for connecting an external device to the terminal 1200. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 1208 may be used to receive input from an external device (e.g., data information, power, etc.) and transmit the received input to one or more elements within the terminal 1200 or may be used to transmit data between the terminal 1200 and the external device.
The memory 1209 may be used to store software programs as well as various data. The memory 1209 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1209 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 1210 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 1209 and calling data stored in the memory 1209, thereby monitoring the entire terminal. Processor 1210 may include one or more processing units; preferably, the processor 1210 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1210.
The terminal 1200 may also include a power source 1211 (e.g., a battery) for powering the various components, and preferably, the power source 1211 is logically connected to the processor 1210 via a power management system such that the functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the terminal 1200 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal, including a processor 1210, a memory 1209, and a computer program stored in the memory 1209 and capable of running on the processor 1210, where the computer program, when executed by the processor 1210, implements each process of the communication sharing method embodiment in the foregoing embodiments of fig. 3 and fig. 4, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the communication sharing method embodiment in the embodiments of fig. 3 and fig. 4, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.