CN117915308A - Power-off method and electronic equipment - Google Patents

Power-off method and electronic equipment Download PDF

Info

Publication number
CN117915308A
CN117915308A CN202211266816.XA CN202211266816A CN117915308A CN 117915308 A CN117915308 A CN 117915308A CN 202211266816 A CN202211266816 A CN 202211266816A CN 117915308 A CN117915308 A CN 117915308A
Authority
CN
China
Prior art keywords
sim card
power
equipment
information
target
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.)
Pending
Application number
CN202211266816.XA
Other languages
Chinese (zh)
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.)
Honor Device Co Ltd
Original Assignee
Honor Device Co 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211266816.XA priority Critical patent/CN117915308A/en
Publication of CN117915308A publication Critical patent/CN117915308A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The application provides a power-off method and electronic equipment, which relate to the technical field of communication. The master device is a device with a SIM card, and is connected with each slave device in the at least one slave device based on near field. When a user dials a call on any one of at least one slave device, the any one slave device can utilize the SIM card in the master device to carry out power removal, so that the any one slave device can carry out dialing through sharing the communication capability of the master device, even if the user is inconvenient to use the device with the SIM card to carry out power removal, the user can carry out power removal through the device without the power removal capability, the power removal limitation is reduced, and the power removal experience of the user is improved.

Description

Power-off method and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a power-off method and an electronic device.
Background
With the development of mobile terminals (such as mobile phones), communication becomes one of the most common scenes in modern life, and great convenience is brought to interpersonal communication. When a user wants to talk with a counterpart, the user dials the telephone number of the called party using a device such as a mobile phone having a subscriber identity module (subscriber identity module, SIM) card to talk with the called party.
However, for some reasons, for example, the device with the SIM card is not located at the user's side, the user cannot use the device to make a call, and the call making limitation is more, and the user experience is lower.
Disclosure of Invention
In view of the above, the present application provides a power-off method and an electronic device, which reduce the limitation of power-off.
In a first aspect, the present application provides a power-off method, where the method is applied to a first device, and the first device sends a power-off query request to a second device connected to the first device in a near field communication manner in response to a first operation of a dial interface displayed on the first device by a user; the power-off inquiry request comprises first information of a target SIM card in the second equipment, wherein the first information of the target SIM card comprises an identification of the target SIM card and/or a telephone number corresponding to the target SIM card; the power-off inquiry request is used for triggering the second equipment to determine whether a target SIM card in the second equipment can be powered off or not; the identification of the target SIM card indicates the position of a card slot in the second device where the target SIM card is located;
The first equipment receives a power-off inquiry result sent by the second equipment, wherein the power-off inquiry result is used for indicating whether the target SIM card can be powered off or not;
When the power-off query result indicates that the target SIM card can be powered off, the first equipment sends a dialing signaling to the second equipment, wherein the dialing signaling is used for triggering the second equipment to send a call request to the called equipment based on the target SIM card in the second equipment;
The first equipment receives the audio data of the called equipment sent by the second equipment and plays the audio data of the called equipment through a loudspeaker in the first equipment; the audio data of the called equipment are collected and sent by the second equipment when the call state of the called equipment is updated to a ringing state; the audio data of the called device includes ring tone data of the called device. Based on the technical scheme, the first equipment can share the communication capability of the second equipment, so that even if the first equipment does not have a SIM card, the first equipment can still remove electricity, and the limitation of electricity removal is reduced.
In one possible design, when the number of available SIM cards of the first device is plural (e.g., the number of second devices is plural or the number of SIM cards in the second device is plural), the first device displays a SIM card list in response to a first operation of the dial interface displayed by the first device by the user, where the SIM card list includes second information of at least one SIM card in the second device, and the second information of the SIM card includes at least one of an identification of the SIM card, a phone number corresponding to the SIM card, and a card status including an available status and an unavailable status.
And responding to the selection operation of the user on the second information of the target SIM card in the SIM card list, and sending an electricity-sending query request to the second equipment where the target SIM card is located by the first equipment. Based on the technical scheme, when the number of the SIM cards available to the first device is a plurality of, the first device can provide a SIM card list so that a user can select the SIM card required by power-off based on the SIM card list. And the first equipment can successfully utilize the SIM card to carry out power-off through sharing the communication capability of the second equipment where the SIM card is positioned, so that the power-off limitation can be reduced, different telephone numbers can be provided for users to select and use, and the power-off experience of the users is improved.
Wherein the number of the second devices is one or more.
In one possible design, when the power-off query result indicates that the target SIM card cannot be powered off, the first device displays power-off disabled indication information, so that a user can intuitively know that the first device cannot successfully power off by using the target SIM card.
In one possible design, when the power-off query result indicates that the target SIM card cannot be powered off, the first device obtains power-off unavailable cause information from the power-off query result and displays the power-off unavailable cause information, where the power-off unavailable cause information includes at least one of that the target SIM card is in a call state, that the target SIM card is not in place, and that the signal strength of the target SIM card is less than a preset signal strength threshold. Based on the technical scheme, the user can intuitively and clearly know the reason that the target SIM card cannot be powered off, so that the user can timely process the abnormality, such as powering off by using other SIM cards, or solve the problem of the target SIM card in the second equipment.
In one possible design, the first device may delete the second information of the SIM card of the second device stored by the first device when the second device is in the offline state; the down-line state indicates that the account number of the second device login is different from the account number of the first device login or that the near field communication connection before the second device and the first device is disconnected. Based on the technical scheme, the first equipment can avoid the first equipment to use the SIM card incapable of being powered to carry out the power removal to a certain extent by deleting the SIM card information incapable of being powered to the time, so that the failure rate of the power removal is reduced, and the power removal efficiency is improved.
In a second aspect, the present application provides a power-off method, where the method is applied to a second device, and the second device receives a power-off query request sent by a first device connected to the second device in a near field communication manner; the power-off inquiry request comprises first information of a target SIM card in the second equipment, wherein the first information of the target SIM card comprises an identification of the target SIM card and/or a telephone number corresponding to the target SIM card;
The second device responds to the power-off inquiry request, acquires the state information of the target SIM card, and determines a power-off inquiry result based on the state information of the target SIM card, wherein the power-off inquiry result is used for indicating whether the target SIM card can be powered off or not;
the second device sends the power-off query result to the first device;
The second equipment receives the dialing signaling sent by the first equipment, and responds to the dialing signaling, and sends a call request to the called equipment based on a target SIM card in the second equipment;
And when the call state of the called equipment is updated to be in a ringing state, sending the audio data of the called equipment to the first equipment, wherein the audio data of the called equipment comprises the ringing data of the called equipment. Based on the technical scheme, the first equipment can share the communication capability of the second equipment, so that even if the first equipment does not have the SIM card, the first equipment can still remove electricity, the limitation of removing electricity is reduced, and the electricity removing experience is improved.
In one possible design, the second device may send second information of the SIM card in the second device to the first device, so that the first device may display a SIM card list using the second information of the SIM card; the second information of the SIM card comprises at least one of an identification of the SIM card, a telephone number corresponding to the SIM card and a card state, and the identification of the SIM card indicates the position of a card slot in the second device where the SIM card is located; the card status includes an available status and an unavailable status; wherein the power-down inquiry request is sent by the first device in response to a user selection operation of second information of a target SIM card in the SIM card list. Based on the technical scheme, the second device can send the related information of the SIM card in the second device, namely the second information, to the first device so that the first device can display a corresponding SIM card list, so that a user can select the SIM card required for power-off based on the SIM card list, different telephone numbers are provided for the user to select and use, and the power-off experience of the user is improved.
In one possible design, when the second device sends the second information of the SIM card in the second device to the first device, in one case, when the first device is in an online state, the second device sends the second information of the SIM card in the second device to the first device, where the online state indicates that the second device logs in to the same account number as the first device, and a near field communication connection is established.
In another case, when the card state of the first SIM card in the second device changes, the second device obtains the latest second information of the first SIM card, and sends the latest second information of the first SIM card to the first device; the latest second information of the first SIM card is used for triggering the first equipment to update the second information of the SIM card in the first equipment.
The first SIM card is any one SIM card in the second equipment; the change in the card state indicates that the card state of the first SIM card is changed from the unavailable state to the available state or that the card state of the first SIM card is changed from the available state to the unavailable state. Based on the technical scheme, when the second equipment is on line or the card state of the SIM card in the second equipment changes, the second equipment sends the related information of the SIM card of the second equipment to the first equipment, so that the first equipment can timely use the SIM card in the second equipment to carry out power-off, or timely avoid users from selecting to use the SIM card which cannot be powered-off to carry out power-off, and user experience is improved.
In one possible design, the state information of the target SIM card indicates whether the target SIM card meets a preset no-power-off condition. Correspondingly, the process for determining the power-off query result based on the state information of the target SIM card comprises the following steps:
When the target SIM card meets the preset no-power-off condition, the second device determines that the power-off query result indicates that the target SIM card cannot be powered off; when the target SIM card does not meet the preset no-power-off condition, the second device determines that the power-off query result indicates that the target SIM card can be powered off; the preset no-power-off condition comprises that the SIM card is in an unavailable state or the SIM card is in a call state; the SIM card being in an unavailable state indicates that the SIM card is not in place or that the signal strength of the SIM card is less than a preset signal strength threshold. Based on the technical scheme, the second device determines whether the target SIM card can be powered off based on the state information of the target SIM card, and generates a corresponding power-off query result, so that the first device can timely acquire whether the target SIM card can be powered off based on the power-off query result and timely feed back the power-off query result to the user.
In a third aspect, the present application provides a power-off method, in response to a first operation of a dial interface displayed by a first device by a user, the first device sending a power-off query request to a second device; the power-off query request comprises first information of a target SIM card in the second equipment, wherein the first information of the target SIM card comprises an identification of the target SIM card and/or a telephone number corresponding to the target SIM card; the identification of the target SIM card indicates the position of a card slot in the second device where the target SIM card is located; the first device and the second device are connected based on near field communication;
the second device receives the power-off query request;
The second device responds to the power-off query request, acquires the state information of the target SIM card, and determines a power-off query result based on the state information of the target SIM card, wherein the power-off query result is used for indicating whether the target SIM card can be powered off;
the second device sends the power-off query result to the first device;
The first equipment receives the power-off query result;
when the power-off query result indicates that the target SIM card can be powered off, the first device sends a dialing signaling to the second device;
the second equipment receives the dialing signaling sent by the first equipment, and responds to the dialing signaling, and sends a call request to the called equipment based on a target SIM card in the second equipment;
When the call state of the called equipment is updated to be a ringing state, sending audio data of the called equipment to the first equipment, wherein the audio data of the called equipment comprises the ringing data of the called equipment;
The first device receives the audio data of the called device and plays the audio data of the called device through a loudspeaker in the first device.
In a fourth aspect, the present application provides an electronic device, the electronic device being a first device, the electronic device comprising a display screen, a memory, and one or more processors; the display screen, the memory and the processor are coupled; the display screen is used for displaying images generated by the processor, and the memory is used for storing computer program codes, and the computer program codes comprise computer instructions; the computer instructions, when executed by the processor, cause the electronic device to perform the method as described in the first aspect and any one of its possible designs.
In a fifth aspect, the present application provides an electronic device, the electronic device being a second device, the electronic device comprising a display screen, a memory, one or more subscriber identity module, SIM, card interfaces, and one or more processors; the display screen, the memory, the SIM card interface and the processor are coupled; the SIM card interface is used for being connected with the SIM card, the display screen is used for displaying the image generated by the processor, the memory is used for storing computer program codes, and the computer program codes comprise computer instructions; the computer instructions, when executed by the processor, cause the electronic device to perform the method as described in the second aspect and any one of its possible designs.
In a sixth aspect, the present application provides a computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of the first aspect and any one of its possible designs.
In a seventh aspect, the present application provides a computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of the above second aspect and any one of its possible designs.
In an eighth aspect, the application provides a computer program product which, when run on an electronic device, causes the electronic device to perform the method of the first aspect and any one of its possible designs.
In a ninth aspect, the application provides a computer program product which, when run on an electronic device, causes the electronic device to perform the method of the second aspect and any one of its possible designs.
It may be appreciated that the benefits achieved by the power-off method described in the third aspect, the electronic device described in the fourth aspect, the fifth aspect, the computer readable storage medium described in the sixth aspect, the seventh aspect, and the computer program product described in the eighth aspect and the ninth aspect may refer to the benefits in the first aspect, the second convenience, and any one of the possible designs thereof, which are not repeated herein.
Drawings
Fig. 1 is a schematic diagram of a distributed call system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 3 is a software block diagram of a master device and a slave device according to an embodiment of the present invention;
fig. 4 is a block diagram of a call service according to an embodiment of the present invention.
Fig. 5 is a schematic flow chart of a power-off method according to an embodiment of the present application;
fig. 6 is a schematic diagram of a dialing interface according to an embodiment of the present application;
Fig. 7 is a schematic diagram ii of a dialing interface according to an embodiment of the present application;
fig. 8 is a schematic diagram III of a dialing interface according to an embodiment of the present application;
fig. 9 is a schematic diagram of a dialing interface according to an embodiment of the present application;
fig. 10 is a second schematic flow chart of a power-off method according to an embodiment of the present application;
FIG. 11 is a schematic diagram I of a call interface according to an embodiment of the present application;
Fig. 12 is a schematic diagram ii of a call interface according to an embodiment of the present application;
fig. 13 is a schematic diagram fifth of a dialing interface according to an embodiment of the present application;
fig. 14 is a schematic diagram sixth of a dialing interface according to an embodiment of the present application;
Fig. 15 is a schematic flow chart III of a power-off method according to an embodiment of the present application;
fig. 16 is a schematic flow chart of audio transmission according to an embodiment of the present application;
FIG. 17 is a schematic diagram I of a display interface of a main device according to an embodiment of the present application;
FIG. 18 is a second schematic diagram of a display interface of a host device according to an embodiment of the present application;
fig. 19 is a schematic diagram seventh of a dialing interface according to an embodiment of the present application.
Detailed Description
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
When the user removes electricity, the user needs to dial the telephone number of the called party by using the equipment with the SIM card so as to communicate with the called party. However, for some reasons, the user cannot conveniently use the device with the SIM card, that is, the device with the power-removing capability, so that the power cannot be successfully removed, and the power-removing limitation is high. For example, the user does not have a device with a SIM card, and the user cannot use the device with a SIM card. For another example, only the mobile phone has a SIM card, but the user is using the mobile phone (such as playing a game), and the user is inconvenient to use the mobile phone to remove electricity.
Therefore, in order to avoid power failure caused by inconvenient use of equipment with a SIM card by a user, the application provides a power failure method based on a distributed call system. As shown in fig. 1, the distributed talk system includes a master device 100 and at least one slave device 200, and the master device 100 establishes near field communication with each slave device 200, respectively. When the user needs to dial a call by using a target phone number corresponding to one SIM card in the master device 100, but is inconvenient to dial by using the master device 100, the user may input a call-making operation in the slave device 200, and the slave device 200 may send a call-going query request to the mobile phone first in response to the call-making operation. The call-out inquiry request is used for inquiring whether the target telephone number meets a preset call-out condition, and the preset call-out condition indicates that the telephone number can be called out. Then, the master device 100 receives the call-out query request, responds to the call-out query request, obtains the state information corresponding to the target phone number, judges whether the target phone number meets the preset call-out condition according to the state information corresponding to the target phone number, and generates a corresponding call-out query result. The power down query result indicates whether the target telephone number is capable of power down. The master device 100 transmits the power-down query result to the slave device 200. The slave device 200 receives the power-off inquiry result, and when the power-off inquiry result indicates that the target telephone number can be powered off, the slave device 200 sends a dialing command to the master device 100 to trigger the master device 100 to dial based on the target telephone number, so that the slave device 200 can realize power-off by sharing the communication capability of the master device 100, even if a user is inconvenient to use a device with a SIM card, the user can perform power-off by using a device without power-off capability, the power-off restriction is reduced, and the user communication experience is improved.
It should be understood that the master device 100 and the slave device 200 in the distributed telephony system in fig. 1 are connected based on a near field communication manner (i.e., based on a near field communication connection). The number of slave devices 200 in fig. 1 is only one example, and the present application does not limit the number of slave devices 200. For example, the number of slaves in a distributed telephony system may be 8.
The master device may be a mobile phone, a tablet computer, a wearable device (such as a smart watch) or the like with a SIM card. The slave device may be a device with audio input/output capability, such as a mobile phone, a tablet computer, a notebook computer, a wearable device, a vehicle-mounted terminal, a Personal Digital Assistant (PDA), or the like. The slave device may not be provided with a SIM card, or may be provided with a SIM card, and the present application is not limited thereto.
For example, the structure of the master device or the slave device described above may refer to the structure of the electronic device 300 shown in fig. 2.
The electronic device 300 may include A processor 310, an external memory interface 320, an internal memory 321, A universal serial bus (universal serial bus, USB) interface 330, A charge management module 340, A power management module 341, A battery 342, an antenna 1, an antenna 2, A mobile communication module 350, A wireless communication module 360, an audio module 370, A speaker 370A, A receiver 370B, A microphone 370C, an ear-piece interface 370D, A sensor module 380, keys 390, A motor 391, an indicator 392, A camera 393, A display screen 394, and A SIM card interface 395, among others.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 300. In other embodiments of the application, electronic device 300 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 310 may include one or more processing units, such as: the processor 310 may include an application processor (application processor, AP), a modem (modem), a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signalprocessor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 300, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 310 for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may hold instructions or data that the processor 310 has just used or recycled. If the processor 310 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 310 is reduced, thereby improving the efficiency of the system.
In some embodiments, processor 310 may include one or more interfaces. The interfaces may include an integrated circuit (inter-INTEGRATED CIRCUIT, I2C) interface, an integrated circuit built-in audio (inter-INTEGRATED CIRCUIT SOUND, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a SIM interface, and/or a universal serial bus (universal serial bus, USB) interface, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 300. In other embodiments of the present application, the electronic device 300 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 340 is configured to receive a charge input from a charger.
The power management module 341 is configured to connect the battery 342, the charge management module 340 and the processor 310. The power management module 341 receives input from the battery 342 and/or the charge management module 340 to power the processor 310, the internal memory 321, the external memory, the display screen 394, the camera 393, the wireless communication module 360, and the like.
The wireless communication function of the electronic device 300 may be implemented by the antenna 1, the antenna 2, the mobile communication module 350, the wireless communication module 360, a modem, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 300 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 350 may provide a solution for wireless communication, including 2G/3G/4G/5G, etc., applied on the electronic device 300. The mobile communication module 350 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), or the like. The mobile communication module 350 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the electromagnetic waves to a modem for demodulation. The mobile communication module 350 may amplify the signal modulated by the modem, and convert the signal into electromagnetic waves through the antenna 1 to radiate the electromagnetic waves. In some embodiments, at least some of the functional modules of the mobile communication module 350 may be disposed in the processor 310. In some embodiments, at least some of the functional modules of the mobile communication module 350 may be provided in the same device as at least some of the modules of the processor 310.
The modem may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 370A, receiver 370B, etc.), or displays images or video through display screen 394. In some embodiments, the modem may be a stand-alone device. In other embodiments, the modem may be provided in the same device as the mobile communication module 350 or other functional module, independent of the processor 310.
The wireless communication module 360 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (WIRELESS FIDELITY, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), near field communication (NEAR FIELD communication, NFC), infrared (IR), etc., as applied to the electronic device 300. The wireless communication module 360 may be one or more devices that integrate at least one communication processing module. The wireless communication module 360 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 310. The wireless communication module 360 may also receive a signal to be transmitted from the processor 310, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 350 of electronic device 300 are coupled, and antenna 2 and wireless communication module 360 are coupled, such that electronic device 300 may communicate with a network and other devices via wireless communication techniques. The wireless communication techniques can include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (GENERAL PACKET radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code divisionmultiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (longterm evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (globalpositioning system, GPS), a global navigation satellite system (global navigation SATELLITE SYSTEM, GLONASS), a beidou satellite navigation system (beidou navigation SATELLITE SYSTEM, BDS), a quasi zenith satellite system (quasi-zenith SATELLITE SYSTEM, QZSS) and/or a satellite based augmentation system (SATELLITE BASED AUGMENTATION SYSTEMS, SBAS).
The electronic device 300 implements display functions through a GPU, a display screen 394, an application processor, and the like. The GPU is a microprocessor for image processing, connected to the display screen 394 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 310 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 394 is used for displaying images, videos, and the like. The display screen 394 includes a display panel. The display panel may employ a liquid crystal display (liquidcrystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-oLed, quantum dot LIGHT EMITTING diodes (QLED), or the like. In some embodiments, the electronic device 300 may include 1 or N display screens 394, N being a positive integer greater than 1.
Electronic device 300 may implement capture functionality through an ISP, camera 393, video codec, GPU, display 394, and application processor, among others.
The ISP is used to process the data fed back by camera 393. Camera 393 is used to capture still images or video.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. Video codecs are used to compress or decompress digital video.
The NPU is a neural-network (NN) computing processor. Applications such as intelligent cognition of the electronic device 300 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 320 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 300.
The internal memory 321 may be used to store computer executable program code comprising instructions. The processor 310 executes various functional applications of the electronic device 300 and data processing by executing instructions stored in the internal memory 321. The internal memory 321 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 300 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 321 may include a high-speed random access memory, and may also include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 300 may implement audio functionality through an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an ear-headphone interface 370D, and an application processor, among others. Such as music playing, recording, etc.
The audio module 370 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 370 may also be used to encode and decode audio signals. In some embodiments, the audio module 370 may be disposed in the processor 310, or some of the functional modules of the audio module 370 may be disposed in the processor 310.
Speaker 370A, also known as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 300 may listen to music, or to hands-free conversations, through the speaker 370A.
A receiver 370B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 300 is answering a telephone call or voice message, voice may be received by placing receiver 370B close to the human ear.
Microphone 370C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 370C through the mouth, inputting a sound signal to the microphone 370C. The electronic device 300 may be provided with at least one microphone 370C. In other embodiments, the electronic device 300 may be provided with two microphones 370C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 300 may also be provided with three, four, or more microphones 370C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 370D is for connecting a wired earphone.
The sensor module 380 may include, among other things, pressure sensors, gyroscopic sensors, barometric pressure sensors, magnetic sensors, acceleration sensors, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.
The keys 390 include a power on key, a volume key, etc. The motor 391 may generate a vibration alert. The motor 391 may be used for incoming call vibration alerting as well as for touch vibration feedback.
The indicator 392 may be an indicator light, which may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
In some embodiments, the electronic device 300 may also include a high-fidelity (Hi-Fi) chip.
The SIM card interface 395 is for interfacing with a SIM card. The SIM card may be inserted into the SIM card interface 395 or removed from the SIM card interface 395 to enable contact and separation with the electronic device 300. The electronic device 300 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 395 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 395 can be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 395 may also be compatible with different types of SIM cards. The SIM card interface 395 may also be compatible with external memory cards. The electronic device 300 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 300 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 300 and cannot be separated from the electronic device 300.
The software system of the electronic device 300 (such as a master device or a slave device) may employ a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the application, an Android system with a layered architecture is taken as an example, and the software structure of a master device or a slave device is illustrated.
Fig. 3 is a block diagram of a master device and a slave device according to an embodiment of the present application. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android TM system is divided into five layers, from top to bottom, an application layer, a service layer, a device connection layer, a device virtualization layer, and a hardware abstraction layer (hardware abstraction layer, HAL), respectively. For example, as shown in fig. 3, the host device may include five software layers, an application layer 10, a service layer 11, a device connection layer 12, a device virtualization layer 13, and a hardware abstraction layer 14. The slave device may include five software layers, an application layer 20, a service layer 21, a device connection layer 22, a device virtualization layer 23, and a hardware abstraction layer 24.
The application layer may include a series of application packages. As shown in fig. 3, the application layer 10 in the host device may include applications such as camera, bluetooth, video, short message, contact information management, device management, etc. The application layer 20 in the slave device may include camera, video, bluetooth, contacts, contact information management, etc. applications.
The contact application is responsible for dial interface management, such as displaying a dial interface, displaying a popup window including a list of SIM cards, so that a user can select to use a certain SIM card to make a call.
The contact information management application is responsible for managing contact information and synchronizing contact information between devices. For example, the master device (or a contact information management application in the master device) may store the newly added contact information. For another example, the master device may synchronize its stored contact information to the slave device.
The above-described device management application is used to manage the connection state, the on-line and off-line states, and the like of the slave devices, for example, the slave device that is determined to be in the on-line state, the slave device that is in the off-line state, and the like. The device management application may also be used to trusted authenticate the slave device.
The above-mentioned up status indicates that the master device discovers through near field communication (such as Wi-Fi, bluetooth, etc.), and determines that the device logs in the same account. If the account number of the equipment login is the same as the main equipment and is in the same local area network with the main equipment, the equipment is in an on-line state. The down-line state indicates that the master device has not found a device through near field communication or determines that the device has not logged into the same account. For example, when the tablet personal computer is turned on, the mobile phone discovers the tablet personal computer through bluetooth, and determines that the tablet personal computer logs in an account number logged in by the mobile phone, the tablet personal computer is in an online state, otherwise, the tablet personal computer is in a offline state.
The service layer may include a series of services. As shown in fig. 3, the service layer 11 in the host device may include a call framework, a service Profile, a control center, a cellular call service, and a call service. The service layer 21 in the slave device may include a service Profile, a control center, and a call service.
The call service is used for managing calls. As shown in fig. 4, the call service includes a SIM card information management module, a transmission module, a call management module, an audio management module, a device management module, and a collision management module.
The SIM card information management module is used for managing the SIM card information. Specifically, the SIM card information management module in the call service in the host device may manage all SIM card information in the host device. The SIM card information management module in the call service in the slave device may manage SIM card information in other devices (e.g., the master device) sent by the other devices. If the slave device itself is provided with a SIM card, the management of SIM card information in the call service in the slave device may also manage all SIM card information in the slave device.
The transmission module is used for transmitting related signaling/data to other devices (such as a master device) through a connection (Link) service. And the transmission module is used for receiving the signaling/data from other devices through the Link service and analyzing the signaling/data so as to carry out corresponding processing according to the type of the signaling/data.
The call management module is used for managing various operation signaling of the call, such as dialing signaling, answering signaling, hanging-up signaling and the like.
The audio management module is used for controlling the initialization time of the distributed fusion perception platform (distribute mobilesensing development platform, DMSDP) service and controlling the switching time of the call sound.
The device management module is used for registering device online and device offline monitoring with a device (device) Profile module to acquire the online and the offline states of the device. And the device management module is used for maintaining an online device list.
The conflict management module is used for determining whether the SIM card can be powered off currently.
The call framework, also called call management service, is a native service. The call management service is responsible for managing incoming call situations. Specifically, when the host device calls, the call management service determines whether the host device needs to make a call prompt, whether to start a call interface, and the like. For example, when the master device turns on the incoming call intercept function, it indicates that the master device refuses to answer all incoming calls. When the main device is in call, the call management service determines that the main device does not carry out call prompt.
The control center is responsible for displaying all devices in the near field range of a certain device, the communication connection relation between the device and the devices in the near field range, the device condition of the incoming call of the device, and the like. The control center may also disconnect the communication connection between the device and the other device, newly add the communication connection between the device and the other device, and the like based on the operation of the user.
The cellular telephony service described above is responsible for managing cellular telephones, i.e., cellular network-based telephones. Illustratively, the cellular network includes 2G, 3G, 4G, and the like.
The service Profile is responsible for managing the online and offline of the device, the registered services in the service Profile in the other device, and the like. For example, in order for a host device to support distributed telephony service capabilities, a telephony service in the host device may register with the service Profile. The service Profile in the master device may perceive whether the call service in the slave device is registered with the service Profile in the slave device. The account number of the login of the slave device is the same as the account number of the login of the master device when the device is online.
In some embodiments, the service layer may further include an application programming interface (application programming interface, API) module. The API module may provide an API interface or the like for an application of the application layer.
The device connection layer and the device virtualization layer are layers for distributed services (such as distributed call services). As shown in fig. 3, the device connection layer 12 in the master device may include Link services. The device connection layer 22 in the slave device may include Link services.
The Link service is used for providing the capability of transmitting data and signaling between different devices through near field communication. For example, one device may send signaling/data to a Link service in another device through the Link service in that device.
In some embodiments, the device connection layer 12 in the master device may further include a device Profile and a distributed rights management module. The device connection layer 22 in the slave device may include a device Profile.
For example, the device Profile may be provided with security capabilities, data transmission capabilities, and connection management capabilities. The security capability means that the device can be trusted authenticated to determine whether the device is secure. The data transmission capability means that data transmission between devices can be performed through near field communication. Connection management capabilities mean managing devices that establish near field connections. For example, the device Profile in the master device knows the slave device that has established a near field connection with the master device.
In some embodiments, device Profile may be device management capable. The device management capability means that the device can be managed in the up-down state, i.e. the up-down state of the device can be perceived.
It should be appreciated that the above device Profile and service Profile constitute a distributed Profile.
The distributed rights management module is responsible for querying rights of the slave device, such as whether the slave device is allowed to be discovered, connected, transmit data, etc. The distributed rights management module may be provided with device management capabilities.
It should be understood that the capabilities provided by each module in the device connection layer described above are only one example, and each module may have other capabilities, which the present application is not limited to.
As shown in fig. 3, the device virtualization layer 13 in the master device may include DMSDP services. The device virtualization layer 23 in the slave device may include DMSDP services.
Illustratively, DMSDP services may also be referred to as audio virtualization services, which are used to enable the continuation of telephony voice data. The devices may stream call voice data between the devices by invoking the virtual device capabilities provided by DMSDP. For example, the call sound can be switched from the master device to the slave device, and the call sound can be switched from the slave device back to the master device.
In some embodiments, the device virtualization layer 13 in the host device may also include display virtualization services, camera virtualization services, and the like.
The HAL layer is used for abstracting hardware in the hardware layer and providing hardware access service upwards. As shown in fig. 3, the HAL layer 14 in the host device may comprise RILC (i.e. RIL-C or RIL-c++) HAL, audio (Audio) HAL, near field communication HAL. The HAL layer 24 in the slave device may comprise audio and near field communication HALs.
Wherein RILC is part of a Radio Interface Layer (RIL) INTERFACE LAYER. The RIL is a bridge for communication between the modem and the Android system. RIL can be divided into two parts, one part is RILJ (namely RIL-Java) framework, which is realized by Java language; the other part is RILC, which is located at the hardware abstraction layer and is implemented in the C language or the c++ language.
AudioHAL are used to take care of the transmission of the audio streams associated with the call inside the device.
The near field communication HAL is used to implement near field communication functions. For example, the near field communication HAL may comprise Bluetooth HAL, wi-FiHAL, NFCHAL, etc. The Bluetooth HAL is used for realizing Bluetooth communication functions. Wi-FiHAL is used to implement Wi-Fi communication functions. NFCHAL are used to implement NFC communication functions.
In some embodiments, the HAL layer in the host device may also include a display (dispaly) HAL, a camera HAL, and the like.
As shown in fig. 3, the hardware layer in the master device may include a Modem, a Hi-Fi chip, and a near field communication chip. The hardware layers in the slave device may include a near field communication chip, a speaker (speaker), a microphone, and the like.
By way of example, the near field communication chip may include a Bluetooth chip, a Wi-Fi chip, an NFC chip, and the like.
In some embodiments, the hardware layer 14 in the host device may also include a display screen, a camera, a speaker, a microphone, and the like.
In some embodiments, the service layer (e.g., service layer 11, service layer 21) may also act as a framework layer.
The device connection layer (e.g., the device connection layer 12 and the device connection layer 22) and the device virtualization layer (e.g., the device virtualization layer 13 and the device virtualization layer 23) may belong to Android runtime (Android TM runtime) and a system library. The framework layer provides APIs and programming frameworks for application layer applications. The application framework layer includes a number of predefined functions. Android TM runtime includes a core library and virtual machines.
Android TM runtime is responsible for scheduling and management of the Android system. The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android. The application layer and the framework layer run in virtual machines. The virtual machine executes java files of the application layer and the framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
It will be appreciated that the layers and components contained in the layers in the structure shown in fig. 3 do not constitute a specific limitation on the master or slave. In other embodiments of the application, the structure may include more or fewer layers than shown, and more or fewer components may be included in each layer, as the application is not limited.
The application provides a power-off method based on a distributed call system. The distributed telephony system includes a master device and at least one slave device. The master device is a device provided with a SIM card and is connected to each of the at least one slave device based on near field communication (i.e. near field connection). When a user makes a call on any one of the at least one slave device, the any one slave device may display a SIM card list, which may include all SIM card information on the master device, for the user to select a target SIM card for use in powering down. After that, any one slave device can utilize the device (such as the master device) where the target SIM card is located to perform power-off, so that any one slave device can dial by sharing the communication capability of the master device, even if any one slave device does not have the SIM card, that is, does not have the power-off capability, any one slave device can still realize the communication of an operator, reduce the communication restriction and improve the communication satisfaction of users.
In one example, the slave device and the master device in the distributed call system log in the same account. As the near field connection is Wi-Fi connection, each slave device in the distributed call system not only logs in the same account number with the master device, but also is in the same local area network with the master device.
In another example, in order to improve the security of device communication, the slave devices in the distributed communication system further pass trusted authentication. For example, after the master device establishes a near field connection with one device, the master device may perform trusted authentication on the device to obtain an authentication result of the device. And after the authentication result of the device is that the authentication is successful, the device is indicated to be safe and trusted, and the device can be a slave device of the master device. And after the authentication result of the equipment is authentication failure, the fact that the trusted authentication of the equipment is not passed is indicated, the safety of the equipment is low, and the equipment part is a slave equipment of the master equipment. Of course, the trusted authentication may also be performed after the master device establishes a near field connection with the device and logs in to the same account.
The trusted authentication may be, for example, key authentication. The key authentication process may be: the master device encrypts preset data through a private key to obtain encrypted data. The master device may then send the encrypted data to the device. The device then receives the encrypted data and decrypts the encrypted data via the credentials of the logged-in account. The device then transmits the decrypted data to the master device. The host device then receives the decrypted data. And comparing the standard decrypted data corresponding to the preset data with the decrypted data, wherein the standard decrypted data is correct data obtained after the encrypted data is decrypted. If the two are consistent, the certificate of the device is correct, and the master device determines that the authentication result of the device is authentication success. If the two are inconsistent, indicating that the data of the device is wrong, the master device determines that the authentication result of the device is authentication failure.
The preset data may be at least one of a key and a character (such as a number, a text, and a symbol).
It should be noted that, the above-described key authentication process is one implementation manner of key authentication, and key authentication may be implemented by other implementation manners, where the manner of using the key in the authentication process belongs to the implementation manner of password authentication. And the above-mentioned manner of trusted authentication may be other manners as well. For example, the master device determines whether the device is in a preset unsafe list, if so, the master device determines that the authentication result of the device is authentication failure, and the application does not limit the manner of trusted authentication.
In the following, taking the above main device as a mobile phone and the slave device as a tablet computer as an example, the de-electrifying presentation method provided by the embodiment of the application is specifically described with reference to the accompanying drawings. As shown in fig. 5, the method comprises the steps of:
S501, responding to a first operation on a dialing interface displayed on a tablet computer by a user, and displaying a SIM card list on the tablet computer.
The SIM card list comprises second information of at least one SIM card corresponding to the mobile phone identifier. The SIM card corresponding to the mobile phone identifier represents the SIM card in the mobile phone corresponding to the mobile phone identifier available to the tablet computer.
For example, the second information of the SIM card may include at least one of an identifier of the SIM card, a phone number corresponding to the SIM card, and an identifier of a device to which the SIM card belongs (e.g., the mobile phone identifier). The identification of the SIM card indicates that the SIM card is in the position of the card slot in the mobile phone, for example, the identification of the SIM card is card 1, which indicates that the SIM card is in the card slot 1 in the mobile phone.
In an example, the dial interface displayed on the tablet computer includes a preset button, and the first operation may be a click operation of the preset button on the dial interface by a user. For example, the preset button is a dial button (dial button 11 in dial interface 10 shown in fig. 6). When the user wants to make a call using the SIM card in the handset, the user can click on the make button. Here, the operation of clicking the dial button by the user is the first operation described above. In response to the user clicking the dial button 11, the tablet computer displays a pop-up window including the SIM card available to the tablet computer, such as displaying a dial interface 20 as shown in fig. 7, the dial interface 20 including a list 21 of SIM cards. The SIM card list 21 includes the identification of the SIM card in the handset and the phone number corresponding to the SIM card.
In some embodiments, the SIM card list may further include a device identifier of a device to which the SIM card belongs, for example, the SIM card list 24 shown in fig. 8 includes a mobile phone identifier 25.
In another example, the dial interface displayed by the tablet computer may include at least one call number, which is the number that the tablet computer calls or listens to. When the user wants to dial a call number in the dial interface, the call number may be clicked, such as by clicking on the call number in dial interface 10 shown in fig. 9. Here, the operation of clicking the call number by the user is the first operation.
In some embodiments, the second information of at least one SIM card corresponding to the mobile phone identifier on the tablet computer may be obtained by the tablet computer from the information of the SIM card sent by the mobile phone, that is, the second information of the SIM card may be sent by the mobile phone.
In one implementation, the second information of at least one SIM card corresponding to the mobile phone identifier on the tablet computer may be sent when the mobile phone is online on the tablet computer. As shown in fig. 10, the transmission process of the second information of the SIM card may include S601 to S602.
S601, when the mobile phone determines that the tablet personal computer is in an online state, information of each SIM card corresponding to the mobile phone identification is sent to the tablet personal computer.
The information of the SIM card may include the second information of the SIM card.
In some embodiments, the information of the SIM card may further include a card status of the SIM card. The information of the SIM card may include at least one of an identification of the SIM card, a phone number corresponding to the SIM card, a card status, and a device identification of a device to which the SIM card belongs, for example.
Wherein the card status includes a ready status or a not ready status. When the SIM card is not in place or has poor signal, the card state of the SIM card is in an unavailable state. When the SIM card is in place and the signal is strong, the card state of the SIM card is available.
Illustratively, when the signal strength of the SIM card is less than the preset signal strength threshold, the signal strength of the SIM card is poor. When the signal intensity of the SIM card is larger than or equal to a preset signal intensity threshold value, the signal intensity of the SIM card is strong.
In some embodiments, the mobile phone may detect whether the SIM card in the mobile phone is in place through a detection method such as a software detection method, a hardware detection method, or the like. For example, the hardware detection method is current detection through a SIM card holder, or micro-switch or photoelectric detection. The software detection method is that the mobile phone performs command interaction with the SIM card through a related detection program, and when the mobile phone receives the correct response of the SIM card through the detection program, the mobile phone can determine that the SIM card is in place.
In some embodiments, the mobile phone discovers that the tablet pc logs in to the same account through near field communication (such as bluetooth, wi-Fi, etc.), and the mobile phone can determine that the tablet pc is in an online state. That is, when the tablet computer and the mobile phone establish near field connection, and the tablet computer and the mobile phone log in the same account, the tablet computer is in an online state. For example, the tablet computer and the mobile phone are in the same local area network, the tablet computer and the mobile phone log in the same account, and the tablet computer is in an online state.
S602, the tablet personal computer receives information of each SIM card corresponding to the mobile phone identifier and stores the information of each SIM card corresponding to the mobile phone identifier.
In another implementation manner, the at least one SIM card corresponding to the mobile phone identifier on the tablet computer may be sent when a card state of the SIM card on the mobile phone changes. As shown in fig. 10 described above, the transmission process of the second information of the SIM card may include S603-S604.
S603, when the card state of the SIM card in the mobile phone changes, the mobile phone sends the latest information of the SIM card with the changed card state to the tablet computer.
S604, the tablet personal computer receives the SIM card information with the changed card state, and updates the SIM card information with the changed card state in the SIM card information corresponding to the mobile phone identifier stored in the tablet personal computer to the latest information.
The information of each SIM card corresponding to the mobile phone identifier stored in the tablet computer may be sent after the mobile phone is on line in the tablet computer.
Illustratively, the change in card status includes a change in card status from an unavailable status to an available status or a change in card status from an available status to an unavailable status.
The implementation procedure of S603 to S604 described above is described below in connection with a specific example.
The SIM cards in the handset include a SIM card 1 and a SIM card 2. When the mobile phone detects that the card state of the SIM card 1 is changed from the unavailable state to the available state, the mobile phone sends the current information of the SIM card 1 to the tablet personal computer. The current information includes the identity of the SIM card 1, the corresponding phone number of the SIM card 1 and the available status. The tablet computer updates the locally stored information of the SIM card 1 to the current information, that is, the card state in the locally stored information of the SIM card 1 of the tablet computer becomes the available state.
In some embodiments, when a first operation of a user on a dialing interface displayed on a tablet computer is received, for each SIM card corresponding to the mobile phone identifier, the tablet computer obtains second information of the SIM card from information of the SIM card, and displays the second information including each SIM card corresponding to the mobile phone identifier.
That is, the SIM card list includes the second information of each SIM card in the mobile phone, so as to realize all display of the SIM cards of the mobile phone, so that the user can select the phone number for power-off, and the power-off requirement of the user is met.
In this embodiment, the second information of the SIM card may further include a card status of the SIM card, and correspondingly, the SIM card list also includes the card status of the SIM card, so that a user of the tablet computer may learn whether the SIM card is available.
In other embodiments, the information of the SIM card includes a card status. When a first operation of a user on a dialing interface displayed on a tablet personal computer is received, the tablet personal computer acquires SIM cards with available card states from the SIM cards corresponding to the mobile phone identifiers, and displays a SIM card list comprising second information of the SIM cards with the available card states corresponding to the mobile phone identifiers.
That is, only the second information of the SIM card in the usable state is included in the SIM card list. That is, the tablet personal computer provides the available SIM card for the user to select, so that the user is prevented from selecting the unavailable SIM card to dial a call.
S502, responding to the selection operation of the user on the target SIM card in the SIM card list, and sending an electricity inquiry request to the mobile phone by the tablet personal computer.
The power-off query request comprises first information of the target SIM card. The power-off inquiry request is used for triggering the mobile phone to inquire whether the target SIM card can be powered off.
The first information of the target SIM card includes an identifier of the target SIM card and/or a phone number corresponding to the target SIM card. For example, the first information of the target SIM card includes an identification of the target SIM card.
For another example, the first information of the target SIM card includes a phone number corresponding to the target SIM card.
For another example, the first information of the target SIM card includes an identification of the target SIM card and a phone number of the target SIM card.
In some embodiments, in response to a first operation on a dial-up interface displayed on a tablet computer by a user, if only one SIM card is available to the tablet computer (for example, only one SIM card exists in the mobile phone, only one SIM card in an available state exists in the SIM cards in the mobile phone), the tablet computer may not display the above-mentioned SIM card list without selecting which SIM card to use for power-down, but may directly use the one SIM card as a target SIM card, and send a power-down query request to the mobile phone directly, so that the mobile phone determines whether the target SIM card is power-down, thereby improving power-down efficiency.
S503, the mobile phone responds to the power-off inquiry request to acquire the state information of the target SIM card.
In the embodiment of the application, when the user selects the second information of one SIM card from the SIM card list, the SIM card is indicated to be the SIM card which the user wants to use when the user removes electricity, and the tablet computer can take the SIM card selected by the user as the target SIM card. Because the target SIM card on the mobile phone may not be powered on currently, the tablet pc firstly queries whether the target SIM card can be powered on or not to the mobile phone, i.e. the tablet pc sends a power on query request to the mobile phone.
And then, when the mobile phone receives the power-off inquiry request, acquiring first information of the target SIM card in the power-off inquiry request, so that the mobile phone can determine the SIM card corresponding to the first information (namely the target SIM card) by utilizing the first information.
And then, the mobile phone detects the target SIM card to obtain the state information of the target SIM card so as to determine whether the target SIM card can be powered off or not by utilizing the state information of the target SIM card.
The state information of the target SIM card indicates whether the target SIM card is in an available state and/or whether the target SIM card is in a call state. When the mobile phone uses the SIM card to make or receive a call, the SIM card is in a call state. When the mobile phone does not use the SIM card to make or receive a call, the SIM card is not in a call state.
S504, the mobile phone judges whether the target SIM card meets the preset condition of no power-off based on the state information of the target SIM card, and generates a power-off inquiry result of the target SIM card.
The power-off query result indicates whether the target SIM card can be powered off or not.
The preset no power-down condition includes, for example, that the SIM card is in an unavailable state or that the SIM card is in a talking state.
In one example, the status information of the target SIM card indicates whether the target SIM card is in an available state. The preset no-power-down condition includes the SIM card being in an unavailable state. Correspondingly, when the state information of the target SIM card indicates that the target SIM card is in an unavailable state, the mobile phone indicates that the target SIM card cannot make a call, and the mobile phone determines that the target SIM card meets the preset condition of no power-off, so that the power-off query result of the target SIM card indicates that the target SIM card cannot be powered off.
When the state information of the target SIM card indicates that the target SIM card is in a usable state, the mobile phone can determine that the target SIM card does not meet a preset power-off condition. Thus, the power-down inquiry result of the target SIM card indicates that the target SIM card can be powered down.
In another example, the status information of the target SIM card indicates whether the target SIM card is in a call state. The preset no-power-off condition includes that the SIM card is in a call state. Correspondingly, when the state information of the target SIM card indicates that the target SIM card is in a call state, the mobile phone indicates that the target SIM card can not dial a call, and the mobile phone determines that the target SIM card meets the preset condition of no power-off, so that the power-off query result of the target SIM card indicates that the target SIM card can not be powered off.
When the state information of the target SIM card indicates that the target SIM card is not in a call state, the mobile phone can determine that the target SIM card does not meet the preset condition of no power-off. Thus, the power-down inquiry result of the target SIM card indicates that the target SIM card can be powered down.
In another example, the status information of the target SIM card indicates whether the target SIM card is in a call state and is in an available state. The preset no-power-off condition includes that the SIM card is in a call state or the SIM card is in an unavailable state. Correspondingly, when the state information of the target SIM card indicates that the target SIM card is in a call state or the state information of the target SIM card indicates that the target SIM card is in an unavailable state, the mobile phone determines that the target SIM card meets the preset no-power-off condition, and accordingly the power-off query result of the target SIM card indicates that the target SIM card cannot be powered off.
When the state information of the target SIM card indicates that the target SIM card is not in a call state and the state information of the target SIM card indicates that the target SIM card is in an available state, the mobile phone may determine that the target SIM card does not satisfy a preset no-power-off condition. Thus, the power-down inquiry result of the target SIM card indicates that the target SIM card can be powered down.
In some embodiments, the power-down query result includes power-down result prompt information. The power-off result prompt information comprises power-off capable prompt information or power-off unavailable prompt information. The power-off capable indication information indicates that the target SIM card can be powered off, and the power-off incapable indication information indicates that the target SIM card cannot be powered off, namely that a user cannot use the SIM card to successfully dial a call, so that the user of the tablet personal computer can intuitively know whether the target SIM card can be powered off.
In some embodiments, when the power-down query result includes the power-down disabled indication information, the power-down query result may further include a power-down disabled reason, where the power-down disabled reason is a reason that causes the target SIM card to satisfy a preset power-down disabled condition. For example, the status information of the target SIM card indicates whether the target SIM card is in a call state. The preset no-power-off condition includes that the SIM card is in a call state. When the target SIM card is in a call state, the reason that the target SIM card cannot be powered off can be that the target SIM card is in the call, so that a user of the tablet personal computer can intuitively and clearly know the reason that the target SIM card cannot be powered off, and the user can timely handle the abnormality, such as powering off by using other SIM cards, or solve the problem of the target SIM card in the second equipment.
S505, the mobile phone sends a power-off query result of the target SIM card to the tablet personal computer.
S506, the tablet personal computer receives the power-off query result of the target SIM card.
S507, when the power-off query result of the target SIM card indicates that the target SIM card can be powered off, the tablet computer sends a dialing signaling to the mobile phone.
Wherein the dialing signaling includes third information of the target SIM card.
S508, the mobile phone receives the dialing signaling.
S509, the mobile phone responds to the dialing signaling and sends a call request to the called equipment based on the third information of the target SIM card.
The third information of the target SIM card includes an identifier of the target SIM card and/or a phone number corresponding to the target SIM card. For example, the third information of the target SIM card includes an identification of the target SIM card. For another example, the third information of the target SIM card includes a phone number corresponding to the target SIM card. For another example, the third information of the target SIM card includes an identification of the target SIM card and a phone number of the target SIM card.
In the embodiment of the application, when the mobile phone obtains the power-off query result of the target SIM card, the power-off query result of the target SIM card is returned to the tablet personal computer. And then, when the power-off query result of the target SIM card indicates that the target SIM card can be powered off, the tablet computer indicates that the target SIM card can normally dial a call, and the tablet computer sends a dialing signal to the mobile phone so as to trigger the mobile phone to use the target SIM card to perform power-off.
In some embodiments, in order to enable a user of the tablet computer to intuitively acquire the power-off condition, when the power-off query result of the target SIM card indicates that the target SIM card can be powered off, the target SIM card is indicated to be based on the power-off, and the tablet computer displays a first call interface, so that the user can intuitively acquire that the target SIM card is utilized to perform power-off, and the situation that the user does not utilize the target SIM card to power off for the tablet computer is avoided.
Generally, after the device is powered off based on the SIM card, the called party will not start ringing, i.e. the call state of the SIM card is initially the calling (dialing) state. Thus, in one example, the first call interface may include a reminder (such as reminder 31 in first call interface 30 shown in fig. 11). The prompt information indicates that the call-out is in a call state, namely, the call state of the target SIM card is in the call state, so that a user can intuitively know the call-out state.
S510, when the call state of the target SIM card is updated to be in a ringing state, the mobile phone sends the audio data of the called equipment to the tablet computer.
S511, the tablet personal computer receives the audio data of the called device and plays the audio data of the called device through a loudspeaker in the tablet personal computer.
In the embodiment of the application, after the mobile phone dials a call based on the target SIM card, the initial call state of the target SIM card is a call state, and the called party side is not ringing. After a certain time, the called party starts ringing, and at this time, the Modem in the mobile phone can know that the called party has ringing, that is, the call state of the target SIM card is updated to the ringing state.
When the call state of the target SIM card is a ringing state, the called equipment is indicated to have sound, the mobile phone can switch the sound to the tablet personal computer side, namely, the received audio data of the called equipment can be forwarded to the tablet personal computer, so that the tablet personal computer can play by using a loudspeaker in the tablet personal computer, and a user of the tablet personal computer can successfully acquire the power-off state.
Wherein, the audio data of the called device comprises the bell of the called device, such as color bell, beep, etc.
In some embodiments, when the call state of the target SIM card is updated to the ringing state, the mobile phone may want the tablet computer to send the call state of the target SIM card, that is, the ringing state.
And then, the tablet computer receives the call state of the target SIM card.
And then, the tablet personal computer can display a second call interface corresponding to the call state. The second call interface may include a reminder message (such as reminder message 41 in second call interface 40 shown in fig. 12). The prompt information indicates that the call is in a ringing state, namely, the call state of the target SIM card is in the ringing state, so that a user can intuitively know the call state, and timely prompt of the call state of the called equipment is realized.
In some embodiments, the call interface (e.g., the first call interface and the second call interface) displayed by the tablet computer may further include prompt information for prompting the device for actually using the mobile phone 1 to be powered off, where the prompt information may include a device identifier of the device for actually using the mobile phone to be powered off, and the prompt information 49 is shown in fig. 11 or fig. 12, where the prompt information 49 indicates that the tablet computer is currently powered off by using the mobile phone 1, so that the user may intuitively know the actual power-off situation.
S512, when the power-off query result of the target SIM card indicates that the target SIM card cannot be powered off, the tablet computer displays the power-off disabled indication information on the dialing interface.
For example, when the power-off query result of the target SIM card indicates that the target SIM card cannot be powered off, it indicates that the tablet computer cannot utilize the target SIM card to power off, and the tablet computer may display a popup window on a dial interface displayed on the tablet computer, where the power-off incapacitation indication information 42 as shown in fig. 13 exists in the popup window, so that a user may intuitively learn that the target SIM card cannot be powered off.
In some embodiments, in order to enable the user to know the reason of the power failure, the tablet pc may display the reason for the power failure (the reason for the power failure 43 shown in fig. 14) on the dial interface, so that the user may clearly know the reason for the power failure of the target SIM card, and further, may enable the user to determine whether to adjust the target SIM card in the mobile phone in time.
In some embodiments, when the mobile phone is in the offline state, when the device list is displayed on the tablet computer, the device list does not include the second information of the SIM card of the mobile phone any more, so that the user is prevented from selecting the SIM card which cannot be powered on to place a call, and interference to the user is avoided.
In this embodiment, when the mobile phone is in the offline state, the tablet computer may remove all the SIM card information corresponding to the mobile phone identifier from the locally stored SIM card information.
For example, if the near field connection between the mobile phone and the tablet computer is disconnected (e.g., the mobile phone closes bluetooth, wi-Fi) or the mobile phone exits the account, the mobile phone is in a offline state.
A possible implementation procedure of the power-off method provided by the present application will be described below with reference to fig. 15. The implementation flow may include steps S1-S31.
S1, when equipment Profile in a mobile phone senses that a tablet personal computer is online, an online notification message is sent to a call service in the mobile phone. The online notification message may include a device identifier of the tablet (or referred to as an identifier of the tablet).
S2, the call service in the mobile phone receives the online notification message.
Illustratively, in combination with the structure of the call service shown in fig. 4, the device management module in the call service in the mobile phone receives the above-mentioned online notification message.
S3, the call service in the mobile phone responds to the online notification message to acquire the information of each SIM card in the mobile phone. Illustratively, the information of the SIM card includes a phone number, a card status, the mobile phone identifier (i.e., the device identifier of the mobile phone) and the like corresponding to the SIM card.
S4, the call service in the mobile phone sends information of each SIM card in the mobile phone to the connection service in the mobile phone.
By way of example, in connection with the structure of the call service shown in fig. 4, the specific implementation manner of S3-S4 may include: after receiving the above-mentioned online notification message, the device management module in the call service in the mobile phone triggers the SIM card information management module in the call service in the mobile phone to obtain the information of each SIM card in the mobile phone, and after obtaining the information of the SIM card, sends the information of each SIM card to the connection service in the mobile phone through the transmission module in the call service in the mobile phone.
S5, the connection service in the mobile phone receives the information of each SIM card in the mobile phone.
And S6, the connection service in the mobile phone sends information of each SIM card in the mobile phone to the connection service in the tablet personal computer.
And S7, the connection service in the tablet personal computer sends information of each SIM card in the mobile phone to the call service in the tablet personal computer.
S8, the call service in the tablet computer receives the information of each SIM card in the mobile phone and stores the information of each SIM card in the mobile phone.
S9, the call service in the tablet computer sends information of each SIM card in the mobile phone to the contact application in the tablet computer.
By way of example, in connection with the structure of the call service shown in fig. 4, the specific implementation manner of S8-S9 may include: the transmission module in the call service in the tablet computer receives the information of each SIM card in the mobile phone and sends the information of each SIM card to the SIM card information management module in the call service in the tablet computer so that the SIM card information management module in the call service in the tablet computer stores the information of each SIM card in the mobile phone.
S10, the contact person application in the tablet personal computer receives the information of the SIM card in the mobile phone and stores the information of the SIM card in the mobile phone, so that the contact person application in the tablet personal computer can acquire the information of each SIM card in the mobile phone.
And S11, when the user clicks the contact application on the tablet personal computer, the contact application responds to the click operation of the user on the contact application, and a dialing interface is displayed on the tablet personal computer.
And S12, when a user dials on a dialing interface displayed on the tablet personal computer, the contact person application in the tablet personal computer responds to the dialing operation of the user, and a SIM card list is displayed on the dialing interface so as to be used for the user to select the SIM card used by power off.
And S13, after the user selects the SIM card from the SIM card list, the contact person application in the tablet personal computer can take the SIM card selected by the user as a target SIM card, and send a dialing signal to a call service in the tablet personal computer, wherein the dialing signal can carry the identification of the target SIM card and the identification of the mobile phone.
S14, the call service in the tablet computer responds to the dialing signaling and sends an electricity-sending query request to the connection service in the tablet computer.
By way of example, in connection with the structure of the call service shown in fig. 4, the specific implementation manner of S14 may include: the call management module in the call service in the tablet computer receives the dialing signaling and responds to the dialing signaling to send a call inquiry request to the connection service in the tablet computer through the transmission module in the call service in the tablet computer.
And S15, the connection service in the tablet personal computer sends the power-off query request to the connection service in the mobile phone.
S16, the connection service in the mobile phone sends the call inquiry request to the call service in the mobile phone.
S17, the call service in the mobile phone responds to the call-out inquiry request to judge whether the target SIM card meets the preset call-out condition or not, and a call-out inquiry result is generated.
The preset no-power-down condition includes, for example, that the target SIM card is in an unavailable state or that the target SIM card is in a talking state. The power-off query result indicates whether the target SIM card meets the preset power-off impossible condition, namely, indicates whether the target SIM card can be powered off.
S18, the call service in the mobile phone sends the call inquiry result to the connection service in the mobile phone.
By way of example, in connection with the structure of the call service shown in fig. 4, the specific implementation manner of S17-S18 may include: the transmission module in the call service in the mobile phone receives the call inquiry request sent by the connection service in the mobile phone. And then, the transmission module in the call service in the mobile phone sends the call inquiry request to the conflict management module in the call service in the mobile phone.
And then, the conflict management module in the call service in the mobile phone responds to the power-off inquiry request to judge whether the target SIM card meets the preset power-off condition or not, and a corresponding power-off inquiry result is generated.
And then, the conflict management module in the call service in the mobile phone sends the call inquiry result to the connection service in the mobile phone through the transmission module in the call service in the mobile phone.
And S19, the connection service in the mobile phone sends the power-off query result to the connection service in the tablet personal computer.
S20, the connection service in the tablet personal computer sends the power-off query result to the call service in the tablet personal computer.
And S21, when the power-off query result indicates that the target SIM card cannot be powered off, the call service in the tablet computer sends the power-off query result to the contact application in the tablet computer.
By way of example, in connection with the structure of the call service shown in fig. 4, the specific implementation manner of S21 may include: and the transmission module in the call service in the tablet computer receives the power-off query result sent by the connection service in the tablet computer.
And then, when the power-off query result indicates that the target SIM card cannot be powered off, a transmission module in a call service in the tablet computer sends the power-off query result to a contact application in the tablet computer.
And S22, when the contact person application receives the power-off inquiry result, displaying the power-off inquiry result to prompt a user that the target SIM card cannot be powered off and/or the reason that the target SIM card cannot be powered off.
S23, when the power-off query result indicates that the target SIM card can be powered off, indicating that transmission of call audio is needed to be carried out later, the call service in the tablet computer initializes DMSDP service in the tablet computer to start DMSDP service in the tablet computer. And the call service in the tablet computer sends the dialing signaling to the connection service in the tablet computer.
By way of example, in connection with the structure of the call service shown in fig. 4, the specific implementation manner of S22-S23 may include: when the power-off query result indicates that the target SIM card can be powered off, the transmission module in the call service in the tablet computer sends the power-off query result to the audio management module in the call service in the tablet computer.
And then, initializing DMSDP services in the tablet computer by the audio management module in the call service in the tablet computer.
S24, the connection service in the tablet personal computer sends the dialing signaling to the connection service in the mobile phone.
S25, the connection service in the mobile phone sends the dialing signaling to the call service in the mobile phone.
S26, when receiving the dialing signaling, the call service in the mobile phone initializes DMSDP service in the mobile phone to start DMSDP service in the mobile phone. And the call service in the mobile phone makes a call by using the target SIM card in the mobile phone.
By way of example, in connection with the structure of the call service shown in fig. 4, the specific implementation manner of S26 may include:
The transmission module in the call service in the mobile phone receives the dialing signaling.
Next, in one aspect, the transmission module in the call service in the mobile phone sends the dialing signaling to the audio management module in the call service in the mobile phone. Then, the audio management module in the call service in the mobile phone initializes DMSDP services in the mobile phone.
On the other hand, the transmission module in the call service in the mobile phone sends the dialing signaling to the call management module in the mobile phone. Then, the call management module in the mobile phone dials by using the Modem in the mobile phone and by using the operator network (such as 2G, 3G, etc.).
S27, the mobile phone can sense the change of the call state of the called equipment. When the called equipment is ringing, the called equipment is in ringing state, that is, the call state of the target SIM card is updated to ringing state. When the call state of the target SIM card is a ringing state, indicating that the called equipment side has sound, the call service in the mobile phone can send the call state (namely the ringing state) of the target SIM card to the connection service in the mobile phone, and the call voice is switched to the tablet computer side by utilizing DMSDP service in the mobile phone.
By way of example, in connection with the structure of the call service shown in fig. 4, the specific implementation manner of S27 may include: when the called equipment rings, a call management module in a call service in the mobile phone acquires that the called equipment is in a ringing state based on a Modem in the mobile phone, namely, the call state of the target SIM card is updated to the ringing state.
Then, on one hand, the call management module in the call service in the mobile phone sends the call state of the target SIM card to the transmission module in the call service in the mobile phone. Then, the transmission module in the call service in the mobile phone sends the call state of the target SIM card (which may also be referred to herein as the power-off state of the target SIM card) to the connection service in the mobile phone.
On the other hand, the call management module in the call service in the mobile phone sends the call state of the target SIM card to the audio management module in the call service in the mobile phone, so that the audio management module in the call service in the mobile phone initializes DMSDP services in the mobile phone.
And S28, the connection service in the mobile phone sends the call state of the target SIM card to the connection service in the tablet personal computer.
S29, the connection service in the tablet computer sends the call state of the target SIM card to the call service in the tablet computer.
S30, the call service in the tablet computer sends the call state of the target SIM card to the contact application in the tablet computer.
By way of example, in connection with the structure of the call service shown in fig. 4, the specific implementation manner of S30 may include: the transmission module in the call service in the tablet computer receives the call state of the target SIM card and sends the call state of the target SIM card to the contact application in the tablet computer.
S31, the contact application responds to the call state (namely, ringing state) of the target SIM card to update the call interface, the updated call interface can be shown in the figure 12, and the call interface before updating can be shown in the figure 11.
In some embodiments, when the card state of the SIM card in the mobile phone changes, the call service in the mobile phone may obtain the SIM card information with the changed card state, and send the SIM card information with the changed card state to the call service in the tablet computer based on the related service.
And updating the SIM card information corresponding to the mobile phone stored by the call service in the tablet computer based on the SIM card information of which the card state is changed.
And the call service in the tablet computer sends the SIM card information with the changed card state to the contact application in the tablet computer, so that the contact application updates the SIM card information corresponding to the mobile phone stored by the contact application based on the SIM card information with the changed card state.
In some embodiments, the tablet computer may also dynamically refresh the SIM card information after detecting that the handset is offline. The process of this dynamic refresh will be described further below in conjunction with fig. 15 described above.
S32, after the equipment Profile in the tablet personal computer detects that the mobile phone is off line (such as Wi-Fi disconnection, bluetooth disconnection, account withdrawal and the like), an off-line message is sent to a call service in the tablet personal computer, wherein the off-line message comprises the mobile phone identifier.
S33, the call service in the tablet computer sends the mobile phone identification to the contact application in the mobile phone.
By way of example, in connection with the structure of the call service shown in fig. 4, the specific implementation manner of S32 may include: the transmission module in the call service in the tablet computer receives the offline message and sends the mobile phone identification in the offline message to the contact application in the tablet computer.
S34, the contact application deletes all the information of the SIM cards corresponding to the mobile phone identification from the information of the SIM cards stored by the contact application, so that when the contact application displays the SIM card list, the SIM card list does not have the SIM card options of the offline equipment, namely the SIM card list does not have the relevant information of all the SIM cards corresponding to the mobile phone identification, thereby effectively avoiding power failure caused by the fact that a user selects the SIM card which cannot be powered off, and improving user experience.
It should be understood that when the mobile phone is in the offline state, the tablet computer cannot share the communication function of the mobile phone, and thus cannot make a call by using the SIM card in the mobile phone.
In the embodiment of the application, when the called equipment starts ringing, the mobile phone switches the call voice to the tablet computer side, so that the user of the tablet computer can know the call state of the called equipment. In the embodiment of the present application, a specific manner of switching the call voice to the tablet computer side by the mobile phone is illustrated by combining the structure shown in fig. 3. For example, as shown in fig. 16, the implementation of the above-described audio stream transfer may include steps a-f.
A: when the called equipment rings, that is, when the Modem in the mobile phone acquires the audio data of the called equipment (such as the bell of the called equipment), the Modem in the mobile phone sends the audio data of the called equipment to the Hi-Fi chip in the mobile phone so that the Hi-Fi chip stores the audio data of the called equipment.
B: audioHAL in the mobile phone reads the audio data of the called device from the Hi-Fi chip.
C: the DMSDP service in the handset sends the audio data of the called device to the connection service in the handset.
D: the connection service in the mobile phone sends the audio data of the called device to the connection service in the tablet computer.
E: the connection service in the tablet computer sends audio data of the called device to DMSDP service in the tablet computer.
F: the DMSDP service in the tablet computer sends the audio data of the called device to a loudspeaker in the tablet computer so as to play the audio data of the called device through the loudspeaker, so that a user of the tablet computer can know that the called device is in ringing.
In the embodiment of the application, when the mobile phone receives the audio data of the called equipment, the loudspeaker in the mobile phone does not acquire and play the audio data of the called equipment, so that the interception of the audio stream is realized, audioHAL in the mobile phone can directly read the audio data of the called equipment from the Hi-Fi chip in the mobile phone, and the audio data of the called equipment is transmitted to DMSDP service in the mobile phone. Then, DMSDP service in the mobile phone sends audio data of the called device to DMSDP service in the tablet computer by using connection service. Then, DMSDP services in the tablet computer can play audio data of the called device through a loudspeaker in the tablet computer, so that a user of the tablet computer can know the calling condition of the called device. And because the mobile phone can not play the audio data of the called equipment, the interference to the user of the mobile phone can be avoided.
It should be understood that when the called device listens to the power-off, the tablet computer establishes a call with the called device through the mobile phone. The mobile phone service transmits the voice of the two parties of the call to the other party, for example, the mobile phone receives the first voice data collected by the microphone in the tablet computer and sent by the tablet computer, and sends the first voice data to the called equipment, so that the user of the called equipment can hear the speaking voice of the other party. For another example, the mobile phone sends the second voice data sent by the called device to the tablet computer, so that the user of the tablet computer can hear the speaking voice of the other party, and normal conversation is ensured. And the mobile phone can not send the sound collected by the microphone in the mobile phone to the opposite side equipment and can not play the second voice data, so that the interception of the audio stream at the mobile phone side is realized, and the disclosure of privacy can be avoided.
It can be understood that when the mobile phone is used for power-off, the tablet computer can still share the communication capability of the mobile phone for power-off even if the mobile phone is in a black screen state. And in the process of removing electricity, the mobile phone is also in the process of removing electricity. Therefore, the mobile phone can also be in a call interface display or a call prompt message display on a status bar. For example, as shown in connection with fig. 17, the handset is in a black screen state. When the user performs the relevant triggering operation, the mobile phone is on screen, and a screen locking interface as shown in fig. 18 is displayed, and the screen locking interface may include a call prompt message 90 to prompt the user that the mobile phone is being powered off.
It should be noted that, the above description describes that the tablet pc displays the SIM card of one device (such as the mobile phone) so that the SIM card of the mobile phone is used for the process of removing electricity, and there are situations that the tablet pc can use any one of the SIM cards in multiple devices for removing electricity. In this case, the device list includes SIM cards of each device that the tablet pc can utilize, so that a user can select a SIM card used for power-off from SIM cards of a plurality of devices, thereby reducing power-off restriction and improving call experience of the user. Each device in the plurality of devices corresponds to a master device of the tablet computer, for example, each device in the plurality of devices establishes a near field communication connection with the tablet computer and logs in the same account. As shown in fig. 19, the tablet computer displays a SIM card list 61 on the dial interface 60, the SIM card list 61 displaying second information of SIM cards in a plurality of devices including the mobile phone 1 and the mobile phone 2, that is, the device list 61 includes second information of SIM cards of the mobile phone 1 and second information of SIM cards of the mobile phone 2.
Embodiments of the present application also provide a computer-readable storage medium including computer instructions which, when executed on an electronic device as described above, cause the electronic device to perform the functions or steps of the method embodiments described above.
Embodiments of the present application also provide a computer program product comprising a computer program for causing an electronic device to perform the functions or steps of the method embodiments described above when the computer program is run on the electronic device.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a read-only memory (readonly memory, ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. A method of de-energizing, the method comprising:
Responding to a first operation of a dialing interface displayed by a first device by a user, and sending an electricity-removing query request to a second device by the first device; the power-off inquiry request comprises first information of a target Subscriber Identity Module (SIM) card in the second equipment, wherein the first information of the target SIM card comprises an identity of the target SIM card and/or a telephone number corresponding to the target SIM card; the power-off inquiry request is used for triggering the second equipment to determine whether the target SIM card can be powered off; the identification of the target SIM card indicates the position of a card slot in the second device where the target SIM card is located; the first device and the second device are connected based on near field communication;
The first device receives a power-off query result sent by the second device, wherein the power-off query result is used for indicating whether the target SIM card can be powered off or not;
when the power-off query result indicates that the target SIM card can be powered off, the first device sends a dialing signaling to the second device, wherein the dialing signaling is used for triggering the second device to send a call request to a called device based on the target SIM card in the second device;
The first equipment receives the audio data of the called equipment sent by the second equipment and plays the audio data of the called equipment through a loudspeaker in the first equipment; the audio data of the called equipment are collected and sent by the second equipment when the call state of the called equipment is updated to a ringing state; the audio data of the called device includes ring tone data of the called device.
2. The method of claim 1, wherein the first device sending a power-on query request to the second device comprises:
The first device displays a SIM card list, wherein the SIM card list comprises second information of at least one SIM card; the second information of the SIM card comprises at least one of an identification of the SIM card, a telephone number corresponding to the SIM card and a card state; the card status includes an available status and an unavailable status;
and responding to the selection operation of the user on the second information of the target SIM card in the SIM card list, and sending an electricity-sending query request to the second equipment where the target SIM card is located by the first equipment.
3. The method according to claim 1, wherein the method further comprises:
And when the power-off query result indicates that the target SIM card cannot be powered off, the first device displays power-off unavailable indication information.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
When the power-off query result indicates that the target SIM card cannot be powered off, the first device acquires the power-off unavailable cause information from the power-off query result and displays the power-off unavailable cause information;
The non-power-off reason information comprises at least one of the target SIM card being in a call state, the target SIM card being out of place, and the signal strength of the target SIM card being smaller than a preset signal strength threshold.
5. A method according to any one of claims 1 to 3, further comprising:
When the second equipment is in a offline state, the first equipment deletes second information of the SIM card of the second equipment, which is stored by the first equipment; the down-line state indicates that the account number logged in by the second device is different from the account number logged in by the first device or that the near field communication connection before the second device and the first device is disconnected.
6. A method of de-energizing, the method comprising:
The second equipment receives a power-off query request sent by the first equipment; the power-off query request comprises first information of a target SIM card in the second equipment, wherein the first information of the target SIM card comprises an identification of the target SIM card and/or a telephone number corresponding to the target SIM card; the power-off inquiry request is used for triggering the second equipment to determine whether the target SIM card can be powered off; the second device is connected with the first device based on near field communication;
The second device responds to the power-off query request, acquires the state information of the target SIM card, and determines a power-off query result based on the state information of the target SIM card, wherein the power-off query result is used for indicating whether the target SIM card can be powered off;
the second device sends the power-off query result to the first device;
the second equipment receives the dialing signaling sent by the first equipment, and responds to the dialing signaling, and sends a call request to the called equipment based on a target SIM card in the second equipment;
And when the call state of the called equipment is updated to be a ringing state, the second equipment sends the audio data of the called equipment to the first equipment, wherein the audio data of the called equipment comprises the ringing data of the called equipment.
7. The method of claim 6, wherein the method further comprises:
The second device sends second information of the SIM card in the second device to the first device, wherein the second information of the SIM card is used for displaying an SIM card list by the first device; the second information of the SIM card comprises at least one of an identification of the SIM card, a telephone number corresponding to the SIM card and a card state, and the identification of the SIM card indicates the position of a card slot in the second device where the SIM card is located; the card status includes an available status and an unavailable status;
The power-off query request is sent by the first device in response to a user selection operation of second information of a target SIM card in the SIM card list.
8. The method of claim 7, wherein the second device sending second information of the SIM card in the second device to the first device comprises:
When the first device is in an online state, the second device sends second information of the SIM card in the second device to the first device, the online state indicates that the second device and the first device log in the same account, and near field communication connection is established.
9. The method according to claim 7 or 8, wherein the second device sending second information of a SIM card in the second device to the first device comprises:
When the card state of a first SIM card in the second equipment changes, the second equipment acquires the latest second information of the first SIM card and sends the latest second information of the first SIM card to the first equipment; the latest second information of the first SIM card is used for triggering the first equipment to update the second information of the SIM card in the first equipment;
the first SIM card is any one SIM card in the second equipment;
The change in the card state indicates that the card state of the first SIM card is changed from an unavailable state to an available state or that the card state of the first SIM card is changed from an available state to an unavailable state.
10. The method according to any one of claims 6 to 9, wherein the status information of the target SIM card indicates whether the target SIM card satisfies a preset no-power-down condition; the determining the power-off query result based on the state information of the target SIM card comprises the following steps:
when the target SIM card meets the preset no-power-off condition, the second device determines that the power-off query result indicates that the target SIM card cannot be powered off;
when the target SIM card does not meet the preset no-power-off condition, the second device determines that the power-off query result indicates that the target SIM card can be powered off;
The preset power-off-free condition comprises that the SIM card is in an unavailable state or the SIM card is in a call state; the SIM card being in an unavailable state indicates that the SIM card is not in place or that the signal strength of the SIM card is less than a preset signal strength threshold.
11. A method of de-energizing, the method comprising:
Responding to a first operation of a dialing interface displayed by a first device by a user, and sending an electricity-removing query request to a second device by the first device; the power-off query request comprises first information of a target SIM card in the second equipment, wherein the first information of the target SIM card comprises an identification of the target SIM card and/or a telephone number corresponding to the target SIM card; the identification of the target SIM card indicates the position of a card slot in the second device where the target SIM card is located; the first device and the second device are connected based on near field communication;
the second device receives the power-off query request;
The second device responds to the power-off query request, acquires the state information of the target SIM card, and determines a power-off query result based on the state information of the target SIM card, wherein the power-off query result is used for indicating whether the target SIM card can be powered off;
the second device sends the power-off query result to the first device;
The first equipment receives the power-off query result;
when the power-off query result indicates that the target SIM card can be powered off, the first device sends a dialing signaling to the second device;
the second equipment receives the dialing signaling sent by the first equipment, and responds to the dialing signaling, and sends a call request to the called equipment based on a target SIM card in the second equipment;
When the call state of the called equipment is updated to be a ringing state, the second equipment sends the audio data of the called equipment to the first equipment, wherein the audio data of the called equipment comprises the ringing data of the called equipment;
The first device receives the audio data of the called device and plays the audio data of the called device through a loudspeaker in the first device.
12. An electronic device, wherein the electronic device is a first device, the electronic device comprising a display screen, a memory, and one or more processors; the display screen, the memory and the processor are coupled; the display screen is used for displaying images generated by the processor, and the memory is used for storing computer program codes, and the computer program codes comprise computer instructions; the computer instructions, when executed by the processor, cause the electronic device to perform the method of any one of claims 1 to 5.
13. An electronic device, wherein the electronic device is a second device, the electronic device comprising a display screen, a memory, one or more subscriber identity module, SIM, card interfaces, and one or more processors; the display screen, the memory, the SIM card interface and the processor are coupled; the SIM card interface is used for being connected with the SIM card, the display screen is used for displaying the image generated by the processor, the memory is used for storing computer program codes, and the computer program codes comprise computer instructions; the computer instructions, when executed by the processor, cause the electronic device to perform the method of any one of claims 6 to 10.
14. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of claims 1 to 5 or 6 to 10.
CN202211266816.XA 2022-10-17 2022-10-17 Power-off method and electronic equipment Pending CN117915308A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211266816.XA CN117915308A (en) 2022-10-17 2022-10-17 Power-off method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211266816.XA CN117915308A (en) 2022-10-17 2022-10-17 Power-off method and electronic equipment

Publications (1)

Publication Number Publication Date
CN117915308A true CN117915308A (en) 2024-04-19

Family

ID=90694266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211266816.XA Pending CN117915308A (en) 2022-10-17 2022-10-17 Power-off method and electronic equipment

Country Status (1)

Country Link
CN (1) CN117915308A (en)

Similar Documents

Publication Publication Date Title
CN113613238B (en) SIM module management method and electronic equipment
US11653398B2 (en) Bluetooth connection method and device
CN112449328B (en) Bluetooth searching method, system and related device
JP2022529033A (en) Bluetooth connection method, device, and system
CN111491297B (en) Method and device for controlling intelligent household equipment to be connected with network
CN112868244A (en) Point-to-multipoint data transmission method and device
US11844119B2 (en) Bluetooth pairing method and related apparatus
US20220369394A1 (en) Bluetooth reconnection method and related apparatus
US20230299806A1 (en) Bluetooth Communication Method, Wearable Device, and System
CN112789934B (en) Bluetooth service query method and electronic equipment
CN113923611B (en) Call forwarding system and related device
CN112887926B (en) Calling method and device
CN109327613B (en) Negotiation method based on voice call translation capability and electronic equipment
CN117014859A (en) Address book-based device discovery method, audio and video communication method and electronic device
CN114175701A (en) Method for using remote SIM module and electronic equipment
CN113923612A (en) Call method, device and system
CN113691270B (en) SIM module management method and electronic equipment
CN114928831A (en) Communication method and electronic equipment
WO2020133006A1 (en) Communication method based on bluetooth low energy, and related apparatus
CN112882622A (en) Data processing method and device, terminal and storage medium
CN117915308A (en) Power-off method and electronic equipment
CN117812548A (en) Distributed communication method and electronic equipment
CN117812547A (en) Call transfer method and electronic equipment
WO2024066837A1 (en) Incoming call alert method and electronic device
CN117097839A (en) Communication method and communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination