WO2020097776A1 - Method and apparatus for acquiring registration state of wifi-based voice service, and electronic device - Google Patents

Method and apparatus for acquiring registration state of wifi-based voice service, and electronic device Download PDF

Info

Publication number
WO2020097776A1
WO2020097776A1 PCT/CN2018/115111 CN2018115111W WO2020097776A1 WO 2020097776 A1 WO2020097776 A1 WO 2020097776A1 CN 2018115111 W CN2018115111 W CN 2018115111W WO 2020097776 A1 WO2020097776 A1 WO 2020097776A1
Authority
WO
WIPO (PCT)
Prior art keywords
vowi
network
registration
information
status
Prior art date
Application number
PCT/CN2018/115111
Other languages
French (fr)
Chinese (zh)
Inventor
马裕清
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201880097894.7A priority Critical patent/CN112740634B/en
Priority to PCT/CN2018/115111 priority patent/WO2020097776A1/en
Publication of WO2020097776A1 publication Critical patent/WO2020097776A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of communication technology, and in particular, to a method, device, electronic device, and computer-readable storage medium for acquiring a voice service registration state based on Wi-Fi.
  • VoWi-Fi Voice over Wi-Fi, based on Wi-Fi voice service
  • VoWi-Fi technology is the VoWi-Fi voice service that operators use Wi-Fi hotspots to provide users.
  • VoWi-Fi technology can solve the problem of poor indoor coverage of operators and mobile signals in remote mountain areas, so that users can make / receive voice or video calls like cellular networks in places where Wi-Fi signals are available.
  • the existing electronic device has a problem of unstable display of the VoWi-Fi icon.
  • An embodiment of the present application provides a method for acquiring a voice service registration status based on Wi-Fi, including:
  • the icon of the VoWi-Fi is controlled to be displayed or hidden according to the registration status of the VoWi-Fi.
  • An embodiment of the present application provides a Wi-Fi-based voice service registration status acquisition device, including:
  • Acquisition module used to acquire the Wi-Fi-based voice service VoWi-Fi switch status information and VoWi-Fi registration status, and cache;
  • An update module configured to update the registration state of the VoWi-Fi according to the switch state information of the VoWi-Fi
  • the display module is configured to control the icon of the VoWi-Fi to be displayed or hidden according to the registration status of the VoWi-Fi.
  • An embodiment of the present application further provides an electronic device, including a memory and a processor.
  • the memory stores a computer program, and is characterized in that, when the computer program is executed by the processor, the processor is executed:
  • the icon of the VoWi-Fi is controlled to be displayed or hidden according to the registration status of the VoWi-Fi.
  • Embodiments of the present application also provide a computer non-volatile readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of processing the application program as described above are realized.
  • the VoWi-Fi-based voice service switching status information of VoWi-Fi is acquired and cached, and the VoWi-Fi is updated according to the VoWi-Fi switching status information.
  • the registration status of Fi controls the display or hiding of the icon of the VoWi-Fi according to the registration status of the VoWi-Fi, which improves the accuracy and stability of the display of the VoWi-Fi icon.
  • FIG. 1 is a flowchart of a method for acquiring a voice service registration status based on Wi-Fi according to an embodiment
  • FIG. 2 is a schematic structural diagram of a Wi-Fi-based voice service registration status acquisition device according to an embodiment
  • FIG. 3 is a schematic diagram of the internal structure of an electronic device in an embodiment
  • FIG. 4 is a block diagram of a partial structure of an electronic device related to a computer device provided by an embodiment of the present application.
  • an embodiment of the present application provides a Wi-Fi-based voice service registration status acquisition method, which is applied to an electronic device.
  • the method includes:
  • VoWi-Fi is a Wi-Fi-based voice service that uses electronic devices with VoWi-Fi capabilities.
  • voice calls and calls can be made through traditional dialing methods without requiring users to download APP applications.
  • VoWi-Fi is a function built into electronic equipment, which can directly enter the operator's core network to achieve interworking with the cellular network.
  • the Wi-Fi-based voice service VoWi-Fi switch status information can be displayed on the display interface of the electronic device.
  • the display interface can display the prompt information in a pop-up window, a floating frame, etc., wherein the prompt information It may include "Yes” and “No” selection buttons, and carry prompts to prompt the corresponding operation, for example, whether to enable the VoWi-Fi function, under which are configured "Yes” and “No” selection buttons. It also receives the control instruction input by the user through the "Yes” and “No” selection keys, and performs corresponding operations according to the control instruction.
  • the “Yes” selection button when the “Yes” selection button is clicked, it means that the user has input the control instruction to turn on the VoWi-Fi, and the VoWi-Fi on status information is cached; when the “No” selection button is monitored, When clicked, it means that the control instruction for turning off VoWi-Fi received by the user is received, and then the information about the turning off status of VoWi-Fi is cached.
  • the control instruction input by the user is not received within the preset time, the control instruction can be operated by default and the corresponding operation is performed.
  • the default operation may be preset by the user, for example, the default operation is an operation in which the selection button of "Yes" is selected, and the like.
  • the preset time may also be preset by the user or the system default, for example, 30 seconds, 60 seconds, etc. The specific value is not limited in this embodiment of the present application.
  • the operation interface or logo of the VoWi-Fi function may be added to the user interface of the electronic device, and the user Displayed in the interface.
  • the VoWi-Fi switch is displayed on the setting interface.
  • the registration status of VoWi-Fi includes the registration status and the unregistered status. After the electronic device is turned on, the registration status of VoWi-Fi is generated, and the registration status of VoWi-Fi and the switch status information of VoWi-Fi are cached.
  • S120 Update the registration status of the VoWi-Fi according to the switch status information of the VoWi-Fi.
  • the electronic device may include a processor and a modem, the modem transmits the registration status of the VoWi-Fi to the processor, and when the user turns on or off the VoWi-Fi switch, switch status information is generated ,
  • the processor caches the switch state information of the VoWi-Fi, and updates the registration state of the VoWi-Fi according to the switch state information of the VoWi-Fi.
  • the modem After the electronic device is turned on, because the modem will register VoWi-Fi according to the last time the user performs the switch operation on VoWi-Fi, if the last state of VoWi-Fi is on before the electronic device is turned on, the modem Register VoWi-Fi directly and register successfully, and then directly send the registration status to the processor.
  • the processor displays the registration status in the form of VoWi-Fi icon in the status display bar.
  • the processor has not yet sent VoWi-Fi to the modem in the unturned state, and the modem will wait until the registered state of VoWi-Fi is sent to the processor.
  • the processor displays the registration status in the form of VoWi-Fi icon in the status display bar.
  • the modem turns off VoWi-Fi again, causing the VoWi-Fi icon to display and disappear for a while.
  • the configuration parameters of the VoWi-Fi are obtained, and the configuration parameters include the switch state parameter of the VoWi-Fi and the registration parameter of the VoWi-Fi. Switch status parameters and VoWi-Fi registration parameters to update the registration status of VoWi-Fi.
  • the configuration parameters of VoWi-Fi can reflect VoWi-Fi network services.
  • VoWi-Fi's switch status parameters to determine VoWi-Fi's switch status information
  • VoWi-Fi's registration parameters to determine whether VoWi-Fi network services can be used to determine whether the VoWi-Fi voice call function can be used normally at this time.
  • update the registration status of VoWi-Fi The registration status of VoWi-Fi can be displayed in the status bar of the electronic device, so that the user can see the registration status of VoWi-Fi in real time.
  • the registration status of the VoWi-Fi is updated to the registered status.
  • the registration state of the VoWi-Fi is updated according to the switch state information of the VoWi-Fi, and the VoWi-Fi registration state is updated according to the VoWi -The registration status of Fi controls the display or hiding of the VoWi-Fi icon, which improves the accuracy and stability of the display of the VoWi-Fi icon.
  • the network information of the registered VoWi-Fi is obtained, and the judgment is made according to the network information and the corresponding registration status of the VoWi-Fi
  • the validity of the VoWi-Fi network is described, and the display or hiding of the VoWi-Fi icon is controlled according to the effectiveness of the VoWi-Fi network.
  • the network information may include one or more combinations of the registered VoWi-Fi network name, network signal value, and network type.
  • it may include a network signal value, a network name, a registered network type, or a combination of multiple network information, and the specific combination form is not limited.
  • Network information refers to information used to describe the currently registered VoWi-Fi network of the electronic device, including but not limited to the registered network name, registered network type, network signal value, etc.
  • the registered network name refers to the VoWi-Fi network name currently registered by the electronic device.
  • the registered network name may be Wi-Fi-1, Wi-Fi-china, etc.
  • the signal value is used to indicate the network signal strength of the electronic device currently connected. For example, 350k, 600k or 800k.
  • the registered network type can be a fixed-line broadband type or a mobile network type. You can read the network type corresponding to the public network IP from the database. For example, when the public network IP is within the range of the Unicom fixed network broadband start IP and end IP, you can determine that the network type of the public network IP is fixed network Broadband, when the public network IP is within the range of the starting IP and ending IP of the mobile network, it can be determined that the network type of the public network IP is a mobile network.
  • the registration status of VoWi-Fi is unregistered
  • the network information includes the signal value, registered network name, and registered network type
  • the signal value is 0dB
  • the registered network name is no service
  • the registered network type is no network
  • the valid information and invalid information refer to the validity and invalidity of the information in the network information, for example, when the signal value of the registered VoWi-Fi network is 0dB, the signal value is invalid information, when the registered VoWi-Fi The signal value of the network is 100k, the signal value is valid information; when the registered VoWi-Fi registered network signal name is no service, the registered network signal name is invalid information, when the registered VoWi-Fi registered network signal name is Wi -Fi-china, the registered network signal name is valid information.
  • the acquired network information is all valid information, it is determined that the acquired network information is consistent with the registration status of VoWi-Fi, and when there is invalid information in the acquired network information, the acquired The network information is inconsistent with the registration status of VoWi-Fi.
  • the registration status of VoWi-Fi it can be determined that the electronic device has access to the VoWi-Fi network, that is, for the electronic device, the network information displayed on the display bar of the electronic device should be valid information. Therefore, when the network information acquired by the electronic device is all valid information, it can be determined that the acquired network information is consistent with the registration status of VoWi-Fi. Conversely, when there is invalid information in the acquired network information, the acquired network information and The registration status of VoWi-Fi is inconsistent.
  • the VoWi-Fi is a valid network
  • the VoWi-Fi is an invalid network.
  • the icon of the VoWi-Fi is controlled to be hidden.
  • the processor may include an information transmission layer, an information analysis layer, an information judgment layer, and an information display layer.
  • the information transmission layer may receive the network information sent by the modem and transmit the received network information to the information analysis layer.
  • the information analysis layer Analyze the received network information, and send the parsed network information to the information judgment layer, so that the information judgment layer can recognize the network information.
  • the information judgment layer receives the parsed network information, it first judges whether the network information is consistent with the cache registration status of the cache area. If they match, the network information is sent to the cache area, and the VoWi-Fi information of the information display layer is updated. The icon shows the status.
  • whether the VoWi-Fi is a valid network is determined according to the network information and the corresponding registration status of the VoWi-Fi. If it is a valid network, the display state of the VoWi-Fi icon is updated; if it is an invalid network, then Maintain the display state of the VoWi-Fi icon and not update it, which improves the accuracy of the VoWi-Fi network display and improves the user experience.
  • the modem directly registers VoWi-Fi and the registration is successful. After the electronic device is turned on, the real state of VoWi-Fi is not turned on.
  • the processor sends VoWi-Fi to the modem in the unturned state.
  • the modem does not receive the turned-on state of VoWi-Fi issued by the processor. Before, the registration status of VoWi-Fi was not uploaded to the processor, so as to ensure the stability of the display of the VoWi-Fi icon.
  • the network information may be queried every preset duration.
  • the network information obtained after the query is the same as the corresponding
  • the registration status of VoWi-Fi is the same, it is determined that the VoWi-Fi is a valid network, and the display status of the VoWi-Fi icon is updated.
  • the electronic device may query all the information in the network information of the VoWi-Fi network every preset time, and judge the inquired network information and VoWi-Fi Whether the registration status of Fi is consistent, if they are consistent, the network information is sent to the cache area, and the VoWi-Fi icon display status of the information display layer is updated; otherwise, continue to query the network of the VoWi-Fi network every preset time All information in the information until the re-inquired network information is consistent with the registration status of VoWi-Fi.
  • the electronic device can also first determine the information in the obtained network information that is inconsistent with the registration status of VoWi-Fi, and then query the network information every preset time Information that is inconsistent with the changed registration status, and determine whether the queried information is consistent with the registration status of VoWi-Fi. If they match, the network information is sent to the cache area, and the corresponding information displayed by VoWi-Fi on the information display layer is updated.
  • the network information and VoWi-Fi icon display status are not limited to the inconsistent information every preset time until the information and the network information are sent to the cache area again, and the VoWi-Fi of the information display layer is updated Corresponding to the displayed network information and VoWi-Fi icon display status.
  • the network information may be queried every preset duration.
  • the network information obtained after the query is consistent with the corresponding
  • the registration status of the VoWi-Fi is the same, it is determined that the VoWi-Fi is a valid network, and the icon display status of the VoWi-Fi is updated, which improves the accuracy of the VoWi-Fi icon display and improves the user experience.
  • the method further includes: selecting one of the VoWi-Fi lists according to the VoWi-Fi connection record of the electronic device A VoWi-Fi is automatically connected.
  • selecting one of the VoWi-Fi automatic connections in the VoWi-Fi list specifically:
  • the electronic device is automatically connected to the network with the largest signal strength value.
  • the connection efficiency of the VoWi-Fi network can be improved To improve user experience.
  • an embodiment of the present application provides an apparatus 20 for acquiring a Wi-Fi-based voice service registration status.
  • the apparatus includes an acquiring module 21, an updating module 22, and a display module 23, where,
  • the obtaining module 21 is used to obtain the Wi-Fi-based voice service VoWi-Fi switch status information and VoWi-Fi registration status, and cache;
  • VoWi-Fi is a Wi-Fi-based voice service that uses electronic devices with VoWi-Fi capabilities.
  • voice calls and calls can be made through traditional dialing methods without requiring users to download APP applications.
  • VoWi-Fi is a function built into electronic equipment, which can directly enter the operator's core network to achieve interworking with the cellular network.
  • the Wi-Fi-based voice service VoWi-Fi switch status information can be displayed on the display interface of the electronic device.
  • the display interface can display the prompt information in a pop-up window, a floating frame, etc., wherein the prompt information It may include "Yes” and “No” selection buttons, and carry prompts to prompt the corresponding operation, for example, whether to enable the VoWi-Fi function, under which are configured "Yes” and “No” selection buttons. It also receives the control instruction input by the user through the "Yes” and “No” selection keys, and performs corresponding operations according to the control instruction.
  • the obtaining module 21 obtains a control instruction for turning on the VoWi-Fi input by the user, and then caches the turning-on state information of the VoWi-Fi; when “No” is monitored
  • the selection button it means that the obtaining module 21 obtains a control instruction for turning off VoWi-Fi input by the user, and then caches the turning off state information of VoWi-Fi.
  • the default operation determines the control instruction and performs the corresponding operation.
  • the default operation may be preset by the user, for example, the default operation is an operation in which the selection button of "Yes" is selected, and the like.
  • the preset time may also be preset by the user or the system default, for example, 30 seconds, 60 seconds, etc. The specific value is not limited in this embodiment of the present application.
  • the operation interface / logo of the VoWi-Fi function may be added to the user interface of the terminal device, and the user Displayed in the interface.
  • the dial interface displays VoWi-Fi buttons
  • the setting interface displays VoWi-Fi switches.
  • the registration status of VoWi-Fi includes a registration status and an unregistered status. After the electronic device is turned on, a registration status of VoWi-Fi is generated, and the acquisition module 21 caches the registration status of VoWi-Fi and the switching status information of VoWi-Fi.
  • the update module 22 is configured to update the registration state of the VoWi-Fi according to the switch state information of the VoWi-Fi;
  • the electronic device may include a processor and a modem
  • the processor may include an acquisition module 21, an update module 22, and a display module 23 of the apparatus 20.
  • the modem transmits the registration status of the VoWi-Fi to the processor.
  • the switch status information is generated, and the acquisition module 21 acquires the switch status information and caches it.
  • the switch state information is transmitted to the update module 22 in the processor, and the update module 22 updates the registration state of the VoWi-Fi according to the switch state information of the VoWi-Fi.
  • the modem will register VoWi-Fi according to the last time the user performs the switch operation on VoWi-Fi
  • the modem Register VoWi-Fi directly and register successfully, and then directly send the registration status to the processor.
  • the processor displays the registration status in the form of VoWi-Fi icon in the status display bar.
  • the processor displays the registration status in the form of VoWi-Fi icon in the status display bar. After the processor sends VoWi-Fi to the modem in an unopened state, the modem turns off VoWi-Fi again, so that the VoWi-Fi icon display disappears after a while.
  • the obtaining module 21 obtains the configuration parameters of the VoWi-Fi, the configuration parameters including the switch state parameters of the VoWi-Fi and the registration parameters of the VoWi-Fi, according to the VoWi -Fi switch status parameters and VoWi-Fi registration parameters, update the registration status of VoWi-Fi.
  • the configuration parameters of VoWi-Fi can reflect VoWi-Fi network services.
  • VoWi-Fi switch state parameters to determine VoWi-Fi switch state information
  • VoWi-Fi registration parameters to determine whether VoWi-Fi network services can be used, so as to determine whether the VoWi-Fi voice call function can be used normally And update the registration status of VoWi-Fi.
  • the update module 22 updates the registered state of the VoWi-Fi to an unregistered state
  • the update module 22 determines whether the VoWi-Fi registration is successful according to the registration parameters of the VoWi-Fi;
  • the update module 22 updates the registration status of the VoWi-Fi to an unregistered state
  • the update module 22 updates the registration status of the VoWi-Fi to the registered status.
  • the display module 23 is configured to control the icon of the VoWi-Fi to be displayed or hidden according to the registration status of the VoWi-Fi.
  • the display module 23 displays the icon of the VoWi-Fi
  • the display module 23 hides the icon of the VoWi-Fi.
  • the Wi-Fi-based voice service VoWi-Fi switch status information and VoWi-Fi registration status are acquired and cached through the acquisition module 21, and the update module 22 updates the VoWi-Fi switch status information according to the In the registration state of the VoWi-Fi, the display module 23 controls the icon of the VoWi-Fi to be displayed or hidden according to the registration state of the VoWi-Fi, thereby improving the accuracy and stability of the display of the VoWi-Fi icon.
  • the device further includes a judgment module (not shown in the figure).
  • the update module 22 updates the registration status of the VoWi-Fi according to the switch state information of the VoWi-Fi, the registered VoWi-Fi is acquired Network information
  • the judgment module judges the validity of the VoWi-Fi network according to the network information and the corresponding VoWi-Fi registration status, and controls the display or hiding of the VoWi-Fi icon according to the validity of the VoWi-Fi network.
  • the network information may include one or more combinations of the registered VoWi-Fi network name, network signal value, and network type.
  • it may include a network signal value, a network name, a registered network type, or a combination of multiple network information, and the specific combination form is not limited.
  • Network information refers to information used to describe the currently registered VoWi-Fi network of the electronic device, including but not limited to the registered network name, registered network type, network signal value, etc.
  • the registered network name refers to the VoWi-Fi network name currently registered by the electronic device.
  • the registered network name may be Wi-Fi-1, Wi-Fi-china, etc.
  • the signal value is used to indicate the network signal strength of the electronic device currently connected. For example, 350k, 600k or 800k.
  • the registered network type can be a fixed-line broadband type or a mobile network type. You can read the network type corresponding to the public network IP from the database. For example, when the public network IP is within the range of the Unicom fixed network broadband start IP and end IP, you can determine that the network type of the public network IP is fixed network Broadband, when the public network IP is within the range of the starting IP and ending IP of the mobile network, it can be determined that the network type of the public network IP is a mobile network.
  • the judgment module judges whether the network information and the corresponding registration status of the VoWi-Fi are consistent
  • the registration status of VoWi-Fi is unregistered
  • the network information includes the signal value, registered network name, and registered network type
  • the signal value is 0dB
  • the registered network name is no service
  • the registered network type is no network
  • the valid information and invalid information refer to the validity and invalidity of the information in the network information, for example, when the signal value of the registered VoWi-Fi network is 0dB, the signal value is invalid information, when the registered VoWi-Fi The signal value of the network is 100k, the signal value is valid information; when the registered VoWi-Fi registered network signal name is no service, the registered network signal name is invalid information, when the registered VoWi-Fi registered network signal name is Wi -Fi-china, the registered network signal name is valid information.
  • the acquired network information is all valid information, it is determined that the acquired network information is consistent with the registration status of VoWi-Fi, and when there is invalid information in the acquired network information, the acquired The network information is inconsistent with the registration status of VoWi-Fi.
  • the registration status of VoWi-Fi is already registered, it can be determined that the electronic device has access to the VoWi-Fi network, that is, for the electronic device, the network information displayed on the display bar of the mobile terminal should be valid information. Therefore, when the network information acquired by the electronic device is all valid information, it can be determined that the acquired network information is consistent with the registration status of VoWi-Fi. Conversely, when there is invalid information in the acquired network information, the acquired network information and The registration status of VoWi-Fi is inconsistent.
  • the VoWi-Fi is a valid network
  • the VoWi-Fi is an invalid network.
  • the display module 23 controls the icon of the VoWi-Fi to be displayed;
  • the display module 23 controls the icon of the VoWi-Fi to be hidden.
  • whether the VoWi-Fi is a valid network is determined according to the network information and the corresponding VoWi-Fi registration status. If the network is a valid network, the display state of the VoWi-Fi icon is updated; if it is an invalid network, Maintain the display state of the VoWi-Fi icon and not update it, which improves the accuracy of the VoWi-Fi network display and improves the user experience.
  • the modem directly registers VoWi-Fi and the registration is successful. After the electronic device is turned on, the real state of VoWi-Fi is not turned on.
  • the processor sends VoWi-Fi to the modem in the unturned state.
  • the modem does not receive the turned-on state of VoWi-Fi issued by the processor. Before, the registration status of VoWi-Fi was not uploaded to the processor, so as to ensure the stability of the display of the VoWi-Fi icon.
  • the network information may be queried every preset duration.
  • the network information obtained after the query is the same as the corresponding
  • the registration status of VoWi-Fi is the same, it is determined that the VoWi-Fi is a valid network, and the display status of the VoWi-Fi icon is updated.
  • the electronic device may query all the information in the network information of the VoWi-Fi network every preset time, and judge the network information and VoWi- Whether the registration status of Fi is consistent, if they are consistent, the network information is sent to the cache area, and the VoWi-Fi icon display status of the information display layer is updated; otherwise, continue to query the network of the VoWi-Fi network every preset time All information in the information until the re-inquired network information is consistent with the registration status of VoWi-Fi.
  • the electronic device can also first determine the information in the obtained network information that is inconsistent with the registration status of VoWi-Fi, and then query the network information every preset time Information that is inconsistent with the changed registration status, and determine whether the queried information is consistent with the registration status of VoWi-Fi. If they match, the network information is sent to the cache area, and the corresponding information displayed by VoWi-Fi on the information display layer is updated.
  • the network information and VoWi-Fi icon display status are not limited to the inconsistent information every preset time until the information and the network information are sent to the cache area again, and the VoWi-Fi of the information display layer is updated Corresponding to the displayed network information and VoWi-Fi icon display status.
  • the network information is queried every preset time period.
  • the network information obtained after the query is the same as the corresponding
  • the registration status of VoWi-Fi is the same, it is determined that the VoWi-Fi is a valid network, and the icon display status of the VoWi-Fi is updated to improve the accuracy of the VoWi-Fi icon display and improve the user experience.
  • the method further includes: selecting one of the VoWi-Fi lists according to the VoWi-Fi connection record of the electronic device A VoWi-Fi is automatically connected.
  • selecting one of the VoWi-Fi automatic connections in the VoWi-Fi list specifically:
  • the electronic device is automatically connected to the network with the largest signal strength value.
  • the connection efficiency of the VoWi-Fi network can be improved To improve user experience.
  • the electronic device includes a processor connected through a system bus, a non-volatile storage medium, an internal memory and a network interface, a sound collection device, a speaker, a display screen, and an input device.
  • the non-volatile storage medium of the terminal stores an operating system and computer-readable instructions.
  • the processor is used to provide computing and control capabilities to support the operation of the entire electronic device.
  • the internal memory in the electronic device provides an environment for the execution of computer-readable instructions in the non-volatile storage medium.
  • the display screen of the electronic device may be a liquid crystal display screen or an electronic ink display screen, etc.
  • the input device may be a touch layer covered on the display screen, a button, a trackball or a touch pad provided on the housing of the electronic device, or External keyboard, touchpad or mouse, etc.
  • the electronic device may be a mobile phone, a tablet computer, a personal digital assistant or a wearable device.
  • FIG. 3 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied.
  • the specific electronic device may It includes more or fewer components than shown in the figure, or some components are combined, or have a different component arrangement.
  • the method for processing the application mentioned above may specifically be:
  • the icon of the VoWi-Fi is controlled to be displayed or hidden according to the registration status of the VoWi-Fi.
  • the embodiments of the present application also provide a computer non-volatile readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of processing the application program as described above are realized.
  • An embodiment of the present invention also provides a computer device. As shown in FIG. 4, for ease of description, only parts related to the embodiments of the present invention are shown, and specific technical details are not disclosed, please refer to the method part of the embodiments of the present invention.
  • the computer device can be any terminal device including electronic devices, tablet computers, PDA (Personal Digital Assistant), POS (Point of Sales), in-vehicle computers, wearable devices, etc. Taking computer devices as electronic devices is example:
  • the electronic device includes: a radio frequency (Radio Frequency) circuit 410, a memory 420, an input unit 430, a display unit 440, a sensor 450, an audio circuit 460, a wireless fidelity (Wi-Fi) module 470, Processor 480, power supply 490 and other components.
  • a radio frequency (Radio Frequency) circuit 410 for detecting radio frequency (Radio Frequency)
  • a memory 420 for a digital signal
  • an input unit 430 a keyboard
  • a display unit 440 a sensor 450
  • an audio circuit 460 a wireless fidelity (Wi-Fi) module
  • Wi-Fi wireless fidelity
  • Processor 480 power supply 490 and other components.
  • FIG. 4 does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine some components, or arrange different components.
  • the RF circuit 410 can be used to receive and send signals during the sending and receiving of information or during a call. It can receive the downlink information of the base station and process it to the processor 480; it can also send the uplink data to the base station.
  • RF circuits include but are not limited to antennas, at least one amplifier, transceiver, coupler, low noise amplifier (Low Noise Amplifier, LNA), duplexer, and so on.
  • the RF circuit 410 can also communicate with other devices through a wireless communication network.
  • the above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (Code Division) Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Message Service (SMS), etc.
  • GSM Global System of Mobile
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Message Service
  • the memory 420 may be used to store software programs and modules.
  • the processor 480 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 420.
  • the memory 420 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system and at least one function-required application program (such as a sound playback function application program, an image playback function application program, etc.), etc .;
  • the data storage area can store data (such as audio data, address book, etc.) created according to the use of electronic devices.
  • the memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the input unit 430 may be used to receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device 400.
  • the input unit 430 may include a touch panel 431 and other input devices 432.
  • the touch panel 431 also known as a touch screen, can collect user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers or stylus on or near the touch panel 431 Operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 431 may include a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates, and then sends To the processor 480, and can receive the command sent by the processor 480 and execute it.
  • the touch panel 431 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 430 may also include other input devices 432.
  • the other input devices 432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.).
  • the display unit 440 may be used to display information input by the user or information provided to the user and various menus of the electronic device.
  • the display unit 440 may include a display panel 441.
  • the display panel 441 may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
  • the touch panel 431 may cover the display panel 441, and when the touch panel 431 detects a touch operation on or near it, it is transmitted to the processor 480 to determine the type of touch event, and then the processor 480 according to The type of touch event provides corresponding visual output on the display panel 441.
  • the touch panel 431 and the display panel 441 are implemented as two independent components to realize the input and input functions of the electronic device, in some embodiments, the touch panel 431 and the display panel 441 may be integrated And realize the input and output functions of electronic equipment.
  • the electronic device 400 may further include at least one sensor 450, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 441 according to the brightness of the ambient light, and the proximity sensor may close the display panel 441 and the electronic device when moving to the ear / Or backlight.
  • the motion sensor may include an acceleration sensor. The acceleration sensor can detect the magnitude of acceleration in various directions, and can detect the magnitude and direction of gravity when at rest.
  • electronic devices can be used for applications that recognize the posture of electronic devices (such as horizontal and vertical screen switching), and vibration recognition related functions ( For example, pedometer, percussion, etc .; in addition, electronic devices can also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc.
  • sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc.
  • the audio circuit 460, the speaker 461, and the microphone 462 may provide an audio interface between the user and the electronic device.
  • the audio circuit 460 can transmit the converted electrical signal of the received audio data to the speaker 461, which converts the speaker 461 into a sound signal for output; on the other hand, the microphone 462 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 460 After receiving, it is converted into audio data, and then processed by the audio data output processor 480, and then sent to another electronic device via the RF circuit 410, or the audio data is output to the memory 420 for subsequent processing.
  • Wi-Fi is a short-distance wireless transmission technology. Electronic devices can help users send and receive emails, browse web pages, and access streaming media through the Wi-Fi module 470. It provides users with wireless broadband Internet access. Although FIG. 4 shows the Wi-Fi module 470, it can be understood that it is not a necessary component of the electronic device 400, and may be omitted as needed.
  • the processor 480 is a control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device, by running or executing software programs and / or modules stored in the memory 420, and calling data stored in the memory 420 , Perform various functions of electronic devices and process data, so as to monitor the electronic devices as a whole.
  • the processor 480 may include one or more processing units.
  • the processor 480 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, user interface, application programs, and the like; the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 480.
  • the electronic device 400 further includes a power supply 490 (such as a battery) that supplies power to various components.
  • a power supply 490 (such as a battery) that supplies power to various components.
  • the power supply can be logically connected to the processor 480 through the power management system, so as to implement functions such as charging, discharging, and power management through the power management system .
  • the electronic device 400 may further include a camera, a Bluetooth module, and the like.
  • the processor 480 included in the computer device implements the methods of the foregoing embodiments when executing the computer program stored on the memory.
  • the program may be stored in a non-volatile computer-readable storage medium
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), etc.
  • An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the methods of the foregoing embodiments.

Abstract

The present invention relates to a method for acquiring the registration state of a Wi-Fi-based voice service, the method comprising: acquiring on-off state information of a Wi-Fi-based voice service (VoWi-Fi) as well as the registration state of the VoWi-Fi, and carrying out caching; according to the on-off state information of the VoWi-Fi, updating the registration state of the VoWi-Fi; and according to the registration state of the VoWi-Fi, controlling an icon of the VoWi-Fi to be displayed or hidden. Correspondingly, further provided by the present invention are an apparatus for acquiring the registration state of a Wi-Fi-based voice service, an electronic device, and a readable storage medium, which increase accuracy and stability in displaying a VoWi-Fi icon.

Description

基于Wi-Fi语音服务注册状态获取方法、装置和电子设备Wi-Fi voice service registration state acquisition method, device and electronic equipment 技术领域Technical field
本发明涉及通信技术领域,特别涉及一种基于Wi-Fi的语音服务注册状态获取方法、装置、电子设备和计算机可读存储介质。The present invention relates to the field of communication technology, and in particular, to a method, device, electronic device, and computer-readable storage medium for acquiring a voice service registration state based on Wi-Fi.
背景技术Background technique
随着Wi-Fi在公共场所的普及,当LTE的覆盖范围不能达到全面覆盖及室内覆盖较弱时,基于Wi-Fi接入技术非3GPP网络通话功能VoWi-Fi(Voice over Wi-Fi,基于Wi-Fi的语音服务)应运而生。VoWi-Fi技术是运营商利用Wi-Fi热点,为用户提供的VoWi-Fi语音服务。VoWi-Fi技术能够解决运营商在室内覆盖以及偏远山区移动信号差的问题,使用户在有Wi-Fi的信号的地方,即可像蜂窝网一样进行拨打/接听语音或视频电话。但是,现有电子设备存在VoWi-Fi图标显示不稳定的问题。With the popularity of Wi-Fi in public places, when the coverage of LTE cannot reach full coverage and indoor coverage is weak, the non-3GPP network call function based on Wi-Fi access technology, VoWi-Fi (Voice over Wi-Fi, based on Wi-Fi voice service) came into being. VoWi-Fi technology is the VoWi-Fi voice service that operators use Wi-Fi hotspots to provide users. VoWi-Fi technology can solve the problem of poor indoor coverage of operators and mobile signals in remote mountain areas, so that users can make / receive voice or video calls like cellular networks in places where Wi-Fi signals are available. However, the existing electronic device has a problem of unstable display of the VoWi-Fi icon.
发明内容Summary of the invention
基于此,有必要提供一种能够解决VoWi-Fi图标显示不稳定的方法、装置、电子设备和计算机可读存储介质。Based on this, it is necessary to provide a method, device, electronic device, and computer-readable storage medium capable of solving the unstable display of VoWi-Fi icons.
本申请实施例提供一种基于Wi-Fi的语音服务注册状态获取方法,包括:An embodiment of the present application provides a method for acquiring a voice service registration status based on Wi-Fi, including:
获取获取基于Wi-Fi的语音服务VoWi-Fi的开关状态信息和VoWi-Fi的注册状态,并进行缓存;Obtain the Wi-Fi-based voice service VoWi-Fi switch status information and VoWi-Fi registration status, and cache;
根据所述VoWi-Fi的开关状态信息,更新所述VoWi-Fi的注册状态;Update the registration status of the VoWi-Fi according to the switch status information of the VoWi-Fi;
根据所述VoWi-Fi的注册状态控制所述VoWi-Fi的图标进行显示或隐藏。The icon of the VoWi-Fi is controlled to be displayed or hidden according to the registration status of the VoWi-Fi.
本申请实施例提供一种基于Wi-Fi的语音服务注册状态获取装置,包括:An embodiment of the present application provides a Wi-Fi-based voice service registration status acquisition device, including:
获取模块,用于获取基于Wi-Fi的语音服务VoWi-Fi的开关状态信息和VoWi-Fi的注册状态,并进行缓存;Acquisition module, used to acquire the Wi-Fi-based voice service VoWi-Fi switch status information and VoWi-Fi registration status, and cache;
更新模块,用于根据所述VoWi-Fi的开关状态信息,更新所述VoWi-Fi的注册状态;An update module, configured to update the registration state of the VoWi-Fi according to the switch state information of the VoWi-Fi;
显示模块,用于根据所述VoWi-Fi的注册状态控制所述VoWi-Fi的图标进行显示或隐藏。The display module is configured to control the icon of the VoWi-Fi to be displayed or hidden according to the registration status of the VoWi-Fi.
本申请实施例还提供一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,其特征在于,所述计算机程序被所述处理器执行时,使得所述处理器执 行:An embodiment of the present application further provides an electronic device, including a memory and a processor. The memory stores a computer program, and is characterized in that, when the computer program is executed by the processor, the processor is executed:
获取基于Wi-Fi的语音服务VoWi-Fi的开关状态信息和VoWi-Fi的注册状态,并进行缓存;Obtain the Wi-Fi-based voice service VoWi-Fi switch status information and VoWi-Fi registration status, and cache;
根据所述VoWi-Fi的开关状态信息,更新所述VoWi-Fi的注册状态;Update the registration status of the VoWi-Fi according to the switch status information of the VoWi-Fi;
根据所述VoWi-Fi的注册状态控制所述VoWi-Fi的图标进行显示或隐藏。The icon of the VoWi-Fi is controlled to be displayed or hidden according to the registration status of the VoWi-Fi.
本申请实施例还提供一种计算机非易失性可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述的对应用程序进行处理的步骤。Embodiments of the present application also provide a computer non-volatile readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of processing the application program as described above are realized.
电子设备和计算机可读存储介质在实现上述方法时,通过获取基于Wi-Fi的语音服务VoWi-Fi的开关状态信息并进行缓存,根据所述VoWi-Fi的开关状态信息,更新所述VoWi-Fi的注册状态,根据所述VoWi-Fi的注册状态控制所述VoWi-Fi的图标进行显示或隐藏,提高了VoWi-Fi图标显示的准确性和稳定性。When the above method is implemented by the electronic device and the computer-readable storage medium, the VoWi-Fi-based voice service switching status information of VoWi-Fi is acquired and cached, and the VoWi-Fi is updated according to the VoWi-Fi switching status information. The registration status of Fi controls the display or hiding of the icon of the VoWi-Fi according to the registration status of the VoWi-Fi, which improves the accuracy and stability of the display of the VoWi-Fi icon.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他实施例的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, without paying any creative labor, drawings of other embodiments can be obtained based on these drawings.
图1为一实施例的基于Wi-Fi的语音服务注册状态获取方法的流程图;1 is a flowchart of a method for acquiring a voice service registration status based on Wi-Fi according to an embodiment;
图2为一实施例的基于Wi-Fi的语音服务注册状态获取装置结构示意图;2 is a schematic structural diagram of a Wi-Fi-based voice service registration status acquisition device according to an embodiment;
图3为一实施例中电子设备的内部结构示意图;3 is a schematic diagram of the internal structure of an electronic device in an embodiment;
图4为与本申请实施例提供的计算机设备相关的电子设备的部分结构的框图。4 is a block diagram of a partial structure of an electronic device related to a computer device provided by an embodiment of the present application.
具体实施方式detailed description
为了便于理解本发明,下面将参照相关附图对本发明进行更全面的描述。附图中给出了本发明的较佳实施例。但是,本发明可以以许多不同的形式来实现,并不限于本文所描述的实施例。相反地,提供这些实施例的目的是使对本发明的公开内容的理解更加透彻全面。In order to facilitate understanding of the present invention, the present invention will be described more fully below with reference to related drawings. The drawings show preferred embodiments of the invention. However, the present invention can be implemented in many different forms, and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive.
如图1所示,本申请实施例提供了一种基于Wi-Fi的语音服务注册状态获取方法,应用于电子设备,该方法包括:As shown in FIG. 1, an embodiment of the present application provides a Wi-Fi-based voice service registration status acquisition method, which is applied to an electronic device. The method includes:
S110、获取基于Wi-Fi的语音服务VoWi-Fi的开关状态信息和VoWi-Fi的注册状态,并进行缓存。S110. Acquire the Wi-Fi-based voice service VoWi-Fi switch status information and VoWi-Fi registration status, and cache.
VoWi-Fi是基于Wi-Fi的语音服务,使用具有VoWi-Fi功能的电子设备,在Wi-Fi环境下能够通过传统的拨号方式进行语音呼叫和接听,不需要用户下载APP应用程序。VoWi-Fi是内置在电子设备中的功能,可以直接进入运营商的核心网,实现和蜂窝网的互通。VoWi-Fi is a Wi-Fi-based voice service that uses electronic devices with VoWi-Fi capabilities. In a Wi-Fi environment, voice calls and calls can be made through traditional dialing methods without requiring users to download APP applications. VoWi-Fi is a function built into electronic equipment, which can directly enter the operator's core network to achieve interworking with the cellular network.
基于Wi-Fi的语音服务VoWi-Fi的开关状态信息可以显示在电子设备的显示界面上,具体地,显示界面可以为弹窗、悬浮框等方式显示所述提示信息,其中,所述提示信息可以包括“是”和“否”的选择按键,并携带提示相应操作的提示语,例如,是否开启VoWi-Fi功能,其下配置有“是”和“否”选择按键。并接收用户通过所述“是”和“否”选择按键输入的控制指令,根据所述控制指令进行相应的操作。具体地,当监听到“是”选择按键被点击时,说明接收到用户输入的开启VoWi-Fi的控制指令,则将VoWi-Fi的开启状态信息进行缓存;当监听到“否”选择按键被点击时,说明接收到用户输入的关闭VoWi-Fi的控制指令,则将VoWi-Fi的关闭状态信息进行缓存。此外,若预设时间内未接收到用户输入的控制指令,则可以默认操作控制指令,并执行相应的操作。其中,所述默认操作可以是用户可以预先设置,如,默认操作为“是”选择按键被选取的操作等。所述预设时间也可以是用户预先设置的,或者系统默认的,如,30秒、60秒等,具体数值本申请实施例不作限定。The Wi-Fi-based voice service VoWi-Fi switch status information can be displayed on the display interface of the electronic device. Specifically, the display interface can display the prompt information in a pop-up window, a floating frame, etc., wherein the prompt information It may include "Yes" and "No" selection buttons, and carry prompts to prompt the corresponding operation, for example, whether to enable the VoWi-Fi function, under which are configured "Yes" and "No" selection buttons. It also receives the control instruction input by the user through the "Yes" and "No" selection keys, and performs corresponding operations according to the control instruction. Specifically, when the “Yes” selection button is clicked, it means that the user has input the control instruction to turn on the VoWi-Fi, and the VoWi-Fi on status information is cached; when the “No” selection button is monitored, When clicked, it means that the control instruction for turning off VoWi-Fi received by the user is received, and then the information about the turning off status of VoWi-Fi is cached. In addition, if the control instruction input by the user is not received within the preset time, the control instruction can be operated by default and the corresponding operation is performed. Wherein, the default operation may be preset by the user, for example, the default operation is an operation in which the selection button of "Yes" is selected, and the like. The preset time may also be preset by the user or the system default, for example, 30 seconds, 60 seconds, etc. The specific value is not limited in this embodiment of the present application.
本申请实施例中,在开启所述VoWi-Fi功能后,为了便于用户使用所述VoWi-Fi功能,可以将VoWi-Fi功能的操作界面或标识添加至电子设备的用户界面内,并在用户界面内显示。例如,在设置界面显示VoWi-Fi的开关。In the embodiment of the present application, after the VoWi-Fi function is turned on, in order to facilitate the user to use the VoWi-Fi function, the operation interface or logo of the VoWi-Fi function may be added to the user interface of the electronic device, and the user Displayed in the interface. For example, the VoWi-Fi switch is displayed on the setting interface.
VoWi-Fi的注册状态包括注册状态和未注册状态,在电子设备开启后,会生成VoWi-Fi的注册状态,并将VoWi-Fi的注册状态与VoWi-Fi的开关状态信息进行缓存。The registration status of VoWi-Fi includes the registration status and the unregistered status. After the electronic device is turned on, the registration status of VoWi-Fi is generated, and the registration status of VoWi-Fi and the switch status information of VoWi-Fi are cached.
S120、根据所述VoWi-Fi的开关状态信息,更新所述VoWi-Fi的注册状态。S120: Update the registration status of the VoWi-Fi according to the switch status information of the VoWi-Fi.
在一个实施例中,电子设备可以包括处理器和调制解调器,所述调制解调器将所述VoWi-Fi的注册状态传输至所述处理器,当用户打开或关闭VoWi-Fi开关时,会产生开关状态信息,所述处理器缓存所述VoWi-Fi的开关状态信息,并根据所述VoWi-Fi的开关状态信息更新所述VoWi-Fi的注册状态。In one embodiment, the electronic device may include a processor and a modem, the modem transmits the registration status of the VoWi-Fi to the processor, and when the user turns on or off the VoWi-Fi switch, switch status information is generated , The processor caches the switch state information of the VoWi-Fi, and updates the registration state of the VoWi-Fi according to the switch state information of the VoWi-Fi.
电子设备开启后,由于调制解调器会根据最后一次用户对VoWi-Fi的开关操作执行是否注册VoWi-Fi,若在电子设备开启之前VoWi-Fi的最后的状态为开启状态,则电子设备开启后,调制解调器直接注册VoWi-Fi并且注册成功,然后直接将注册状态发送给处理器,处理器将注册状态以VoWi-Fi图标的形式显示在状态显示栏。而此时,如果VoWi-Fi真实的开关状态为未开启状态,处理器还没有将VoWi-Fi处于未开启的 状态发送至调制解调器,调制解调器已经将等到将VoWi-Fi的注册状态发送给处理器,处理器将注册状态以VoWi-Fi图标的形式显示在状态显示栏。等到处理器将VoWi-Fi处于未开启状态发送至调制解调器后,调制解调器重新关闭VoWi-Fi,从而造成VoWi-Fi图标显示一会又消失的现象。After the electronic device is turned on, because the modem will register VoWi-Fi according to the last time the user performs the switch operation on VoWi-Fi, if the last state of VoWi-Fi is on before the electronic device is turned on, the modem Register VoWi-Fi directly and register successfully, and then directly send the registration status to the processor. The processor displays the registration status in the form of VoWi-Fi icon in the status display bar. At this time, if the real switch state of VoWi-Fi is not turned on, the processor has not yet sent VoWi-Fi to the modem in the unturned state, and the modem will wait until the registered state of VoWi-Fi is sent to the processor. The processor displays the registration status in the form of VoWi-Fi icon in the status display bar. After the processor sends VoWi-Fi to the modem in an unopened state, the modem turns off VoWi-Fi again, causing the VoWi-Fi icon to display and disappear for a while.
本申请实施例中,根据所述VoWi-Fi开关状态参数判断所述VoWi-Fi开关状态是否为开启状态。In the embodiment of the present application, it is determined whether the VoWi-Fi switch state is on according to the VoWi-Fi switch state parameter.
具体地,在接收到VoWi-Fi的开关状态信息后,获取所述VoWi-Fi的配置参数,所述配置参数包括VoWi-Fi的开关状态参数和VoWi-Fi的注册参数,根据VoWi-Fi的开关状态参数和VoWi-Fi的注册参数,更新VoWi-Fi的注册状态。VoWi-Fi的配置参数可以反映VoWi-Fi网络服务,当VoWi-Fi的开关状态参数变化后,会导致VoWi-Fi的注册参数发生改变。因此可以利用VoWi-Fi的开关状态参数判断VoWi-Fi开关状态信息,并利用VoWi-Fi的注册参数判断VoWi-Fi网络服务是否能够使用,从而判断此时VoWi-Fi语音通话功能是否可以正常使用,并更新VoWi-Fi的注册状态。VoWi-Fi的注册状态可以在电子设备的状态栏显示,以使用户可以实时看到VoWi-Fi的注册状态。Specifically, after receiving the switch state information of VoWi-Fi, the configuration parameters of the VoWi-Fi are obtained, and the configuration parameters include the switch state parameter of the VoWi-Fi and the registration parameter of the VoWi-Fi. Switch status parameters and VoWi-Fi registration parameters to update the registration status of VoWi-Fi. The configuration parameters of VoWi-Fi can reflect VoWi-Fi network services. When the switch state parameters of VoWi-Fi change, the registration parameters of VoWi-Fi will change. Therefore, you can use VoWi-Fi's switch status parameters to determine VoWi-Fi's switch status information, and use VoWi-Fi's registration parameters to determine whether VoWi-Fi network services can be used to determine whether the VoWi-Fi voice call function can be used normally at this time. And update the registration status of VoWi-Fi. The registration status of VoWi-Fi can be displayed in the status bar of the electronic device, so that the user can see the registration status of VoWi-Fi in real time.
若所述VoWi-Fi的开关状态处于未开启状态,则更新所述VoWi-Fi的注册状态为未注册状态;If the switch state of the VoWi-Fi is not turned on, update the registered state of the VoWi-Fi to an unregistered state;
若所述VoWi-Fi的开关状态为开启状态,则根据所述VoWi-Fi的注册参数判断VoWi-Fi是否注册成功;If the switch state of the VoWi-Fi is on, determine whether the VoWi-Fi registration is successful according to the registration parameters of the VoWi-Fi;
若VoWi-Fi未注册成功,则更新所述VoWi-Fi的注册状态为未注册状态;If VoWi-Fi is not successfully registered, update the registration status of the VoWi-Fi to an unregistered state;
若所述VoWi-Fi注册成功,则更新所述VoWi-Fi的注册状态为已注册状态。If the VoWi-Fi registration is successful, the registration status of the VoWi-Fi is updated to the registered status.
S130、根据所述VoWi-Fi的注册状态控制所述VoWi-Fi的图标进行显示或隐藏。S130. Control the icon of the VoWi-Fi to be displayed or hidden according to the registration status of the VoWi-Fi.
当VoWi-Fi的注册状态为已注册状态时,则显示所述VoWi-Fi的图标;When the registration status of VoWi-Fi is the registered status, the icon of the VoWi-Fi is displayed;
当VoWi-Fi的注册状态为未注册状态时,则隐藏所述VoWi-Fi的图标。When the registered state of VoWi-Fi is an unregistered state, the icon of VoWi-Fi is hidden.
本申请实施例,通过获取基于Wi-Fi的语音服务VoWi-Fi的开关状态信息并进行缓存,根据所述VoWi-Fi的开关状态信息,更新所述VoWi-Fi的注册状态,根据所述VoWi-Fi的注册状态控制所述VoWi-Fi的图标进行显示或隐藏,提高了VoWi-Fi图标显示的准确性和稳定性。In the embodiment of the present application, by acquiring and buffering the switch state information of the WiWi-based voice service VoWi-Fi, the registration state of the VoWi-Fi is updated according to the switch state information of the VoWi-Fi, and the VoWi-Fi registration state is updated according to the VoWi -The registration status of Fi controls the display or hiding of the VoWi-Fi icon, which improves the accuracy and stability of the display of the VoWi-Fi icon.
在一个实施例中,根据VoWi-Fi的开关状态信息,更新所述VoWi-Fi的注册状态后,获取注册的VoWi-Fi的网络信息,根据网络信息和对应的VoWi-Fi的注册状态判断所述所述VoWi-Fi网络的有效性,根据VoWi-Fi网络的有效性控制VoWi-Fi图标的显示或隐藏。In one embodiment, after updating the registration status of the VoWi-Fi according to the switch status information of the VoWi-Fi, the network information of the registered VoWi-Fi is obtained, and the judgment is made according to the network information and the corresponding registration status of the VoWi-Fi The validity of the VoWi-Fi network is described, and the display or hiding of the VoWi-Fi icon is controlled according to the effectiveness of the VoWi-Fi network.
网络信息可以包括注册的VoWi-Fi的网络名称、网络信号值和网络类型的一种或多种的组合。例如可以包括网络信号值,网络名称和注册网络类型或多个网络信息的组合,具体组合形式不做限定。The network information may include one or more combinations of the registered VoWi-Fi network name, network signal value, and network type. For example, it may include a network signal value, a network name, a registered network type, or a combination of multiple network information, and the specific combination form is not limited.
网络信息是指用于描述电子设备当前己注册的VoWi-Fi网络的信息,包括但不限于注册网络名称、注册网络类型、网络信号值等。Network information refers to information used to describe the currently registered VoWi-Fi network of the electronic device, including but not limited to the registered network name, registered network type, network signal value, etc.
注册网络名称是指电子设备当前注册的VoWi-Fi网络名称。比如,注册网络名称可以是Wi-Fi-1、Wi-Fi-china等。The registered network name refers to the VoWi-Fi network name currently registered by the electronic device. For example, the registered network name may be Wi-Fi-1, Wi-Fi-china, etc.
信号值是用于指示电子设备当前连接的网络信号强度。比如350k,600k或800k等。The signal value is used to indicate the network signal strength of the electronic device currently connected. For example, 350k, 600k or 800k.
注册网络类型可以是固网宽带类型或者移动网络类型。可以从数据库中读取与公网IP对应的网络类型,例如,当公网IP在联通固网宽带的起始IP和终止IP的范围内时,可以判定该公网IP的网络类型为固网宽带,当公网IP在移动网络的起始IP和终止IP的范围内时,可以判定该公网IP的网络类型为移动网络。The registered network type can be a fixed-line broadband type or a mobile network type. You can read the network type corresponding to the public network IP from the database. For example, when the public network IP is within the range of the Unicom fixed network broadband start IP and end IP, you can determine that the network type of the public network IP is fixed network Broadband, when the public network IP is within the range of the starting IP and ending IP of the mobile network, it can be determined that the network type of the public network IP is a mobile network.
根据所述网络信息和所述VoWi-Fi的注册状态判断所述VoWi-Fi是否为有效网络。具体为:Determine whether the VoWi-Fi is a valid network according to the network information and the registration status of the VoWi-Fi. Specifically:
判断所述网络信息和对应的所述VoWi-Fi的注册状态是否一致;Determine whether the registration status of the network information and the corresponding VoWi-Fi are consistent;
例如,若VoWi-Fi的注册状态为未注册,当网络信息中包括信号值、注册网络名称、注册网络类型时,若信号值为0dB、注册网络名称为无服务、注册网络类型为无网络,由于获取的网络信息均为无效信息,因此可以确定获取的网络信息与VoWi-Fi的注册状态一致。相反,若信号值为0dB、注册网络名称为Wi-Fi-china、注册网络类型为无网络,由于注册网络名称为有效信息,因此,可以确定获取的网络信息中存在有效信息,进而可以确定获取的网络信息与VoWi-Fi的注册状态不一致。For example, if the registration status of VoWi-Fi is unregistered, when the network information includes the signal value, registered network name, and registered network type, if the signal value is 0dB, the registered network name is no service, and the registered network type is no network, Since the acquired network information is all invalid information, it can be determined that the acquired network information is consistent with the registration status of VoWi-Fi. On the contrary, if the signal value is 0dB, the registered network name is Wi-Fi-china, and the registered network type is no network, because the registered network name is valid information, it can be determined that there is valid information in the acquired network information, and then the acquisition can be determined 'S network information is inconsistent with the registration status of VoWi-Fi.
其中,有效信息和无效信息是指网络信息中个信息的有效性和无效性,例如,当注册的VoWi-Fi网络的信号值为0dB,则该信号值为无效信息,当注册的VoWi-Fi网络的信号值为100k,则该信号值有效信息;当注册的VoWi-Fi注册网络信号名称为无服务,则该注册网络信号名称为无效信息,当注册的VoWi-Fi注册网络信号名称为Wi-Fi-china,则该注册网络信号名称为有效信息。Among them, the valid information and invalid information refer to the validity and invalidity of the information in the network information, for example, when the signal value of the registered VoWi-Fi network is 0dB, the signal value is invalid information, when the registered VoWi-Fi The signal value of the network is 100k, the signal value is valid information; when the registered VoWi-Fi registered network signal name is no service, the registered network signal name is invalid information, when the registered VoWi-Fi registered network signal name is Wi -Fi-china, the registered network signal name is valid information.
如果VoWi-Fi的注册状态为己注册,当获取的网络信息均为有效信息时,确定获取的网络信息与VoWi-Fi的注册状态一致,当获取的网络信息中存在无效信息时,确定获取的网络信息与VoWi-Fi的注册状态不一致。If the registration status of VoWi-Fi is already registered, when the acquired network information is all valid information, it is determined that the acquired network information is consistent with the registration status of VoWi-Fi, and when there is invalid information in the acquired network information, the acquired The network information is inconsistent with the registration status of VoWi-Fi.
如果VoWi-Fi的注册状态为己注册时,则可以确定电子设备己接入VoWi-Fi网络, 也即是,对于电子设备而言,该电子设备的显示栏上显示的网络信息均应为有效信息。因此,当电子设备获取的网络信息均为有效信息时,可以确定获取的网络信息与VoWi-Fi的注册状态一致,相反,当获取的网络信息中存在无效信息时,可以确定获取的网络信息与VoWi-Fi的注册状态不一致。If the registration status of VoWi-Fi is registered, it can be determined that the electronic device has access to the VoWi-Fi network, that is, for the electronic device, the network information displayed on the display bar of the electronic device should be valid information. Therefore, when the network information acquired by the electronic device is all valid information, it can be determined that the acquired network information is consistent with the registration status of VoWi-Fi. Conversely, when there is invalid information in the acquired network information, the acquired network information and The registration status of VoWi-Fi is inconsistent.
若所述网络信息和对应的所述VoWi-Fi的注册状态一致,则所述VoWi-Fi为有效网络;If the network information and the corresponding registration status of the VoWi-Fi are consistent, the VoWi-Fi is a valid network;
若所述网络信息和对应的所述VoWi-Fi的注册状态不一致,则所述VoWi-Fi为无效网络。If the network information and the corresponding registration status of the VoWi-Fi are inconsistent, the VoWi-Fi is an invalid network.
若所述VoWi-Fi为有效网络,则控制所述VoWi-Fi的图标进行显示;If the VoWi-Fi is a valid network, control the icon of the VoWi-Fi to display;
若所述VoWi-Fi为无效网络,则控制所述VoWi-Fi的图标进行隐藏。If the VoWi-Fi is an invalid network, the icon of the VoWi-Fi is controlled to be hidden.
具体地,处理器可以包括信息传输层、信息解析层、信息判断层和信息显示层,信息传输层可以接收调制解调器发送的网络信息,并将接收到的网络信息传输到信息解析层,信息解析层对接收到的网络信息进行解析,并将解析后的网络信息发送至信息判断层,以便于信息判断层可以识别该网络信息。在信息判断层接收到解析后的网络信息后时,首先判断网络信息是否与缓存区缓存的注册状态一致,若一致,则将网络信息发送至缓存区,并更新信息显示层的VoWi-Fi的图标显示状态。Specifically, the processor may include an information transmission layer, an information analysis layer, an information judgment layer, and an information display layer. The information transmission layer may receive the network information sent by the modem and transmit the received network information to the information analysis layer. The information analysis layer Analyze the received network information, and send the parsed network information to the information judgment layer, so that the information judgment layer can recognize the network information. When the information judgment layer receives the parsed network information, it first judges whether the network information is consistent with the cache registration status of the cache area. If they match, the network information is sent to the cache area, and the VoWi-Fi information of the information display layer is updated. The icon shows the status.
本申请实施例,通过根据网络信息和对应的VoWi-Fi的注册状态判断所述VoWi-Fi是否为有效网络,若为有效网络,则更新VoWi-Fi图标的显示状态;若为无效网络,则保持VoWi-Fi图标的显示状态,不对其进行更新,提高了VoWi-Fi网络显示的准确性,提升了用户体验。In the embodiment of the present application, whether the VoWi-Fi is a valid network is determined according to the network information and the corresponding registration status of the VoWi-Fi. If it is a valid network, the display state of the VoWi-Fi icon is updated; if it is an invalid network, then Maintain the display state of the VoWi-Fi icon and not update it, which improves the accuracy of the VoWi-Fi network display and improves the user experience.
在一个实施例中,若在电子设备开启之前VoWi-Fi最后状态为开启状态,则电子设备开启后,调制解调器直接注册VoWi-Fi并且注册成功。而在电子设备开启后,VoWi-Fi真实的状态为未开启状态,处理器将VoWi-Fi处于未开启的状态发送至调制解调器,调制解调器在未接收到处理器下发的VoWi-Fi的开启的状态前,并不上传VoWi-Fi的注册状态发送给处理器,从而保证VoWi-Fi图标显示的稳定性。In one embodiment, if the last state of VoWi-Fi is on before the electronic device is turned on, after the electronic device is turned on, the modem directly registers VoWi-Fi and the registration is successful. After the electronic device is turned on, the real state of VoWi-Fi is not turned on. The processor sends VoWi-Fi to the modem in the unturned state. The modem does not receive the turned-on state of VoWi-Fi issued by the processor. Before, the registration status of VoWi-Fi was not uploaded to the processor, so as to ensure the stability of the display of the VoWi-Fi icon.
在一个实施例中,若所述网络信息和对应的所述VoWi-Fi的注册状态不一致,可以每隔预设时长查询所述网络信息,当查询后得到的所述网络信息与对应的所述VoWi-Fi的注册状态一致时,则判定所述VoWi-Fi为有效网络,对VoWi-Fi图标的显示状态进行更新。In one embodiment, if the network information and the corresponding registration status of the VoWi-Fi are inconsistent, the network information may be queried every preset duration. When the network information obtained after the query is the same as the corresponding When the registration status of VoWi-Fi is the same, it is determined that the VoWi-Fi is a valid network, and the display status of the VoWi-Fi icon is updated.
具体地,当获取的网络信息与VoWi-Fi的注册状态不一致时,该电子设备可以每隔预设时长查询该VoWi-Fi网络的网络信息中的所有信息,并判断查询的网络信息与 VoWi-Fi的注册状态是否一致,如果一致,则将网络信息发送至缓存区,并更新信息显示层的VoWi-Fi的图标显示状态;否则,继续每隔预设时长重新查询该VoWi-Fi网络的网络信息中的所有信息,直至重新查询的网络信息与VoWi-Fi的注册状态一致。然而,由于上一次获取的网络信息中可能存在与VoWi-Fi的注册状态一致的信息,因此,每隔预设时长查询网络信息中的所有信息会耗费大量的时间。为了节省时间,提高网络信息和VoWi-Fi图标的显示效率,该电子设备还可以先确定获取的网络信息中与VoWi-Fi的注册状态不一致的信息,然后,每隔预设时长查询网络信息中与变化后的注册状态不一致的信息,并判断查询到的信息与VoWi-Fi的注册状态是否一致,如果一致,则将网络信息发送至缓存区,并更新信息显示层的VoWi-Fi对应显示的网络信息和VoWi-Fi的图标显示状态;否则,继续每隔预设时长重新查询不一致的信息,直至重新查询到的信息与则将网络信息发送至缓存区,并更新信息显示层的VoWi-Fi对应显示的网络信息和VoWi-Fi的图标显示状态。Specifically, when the acquired network information is inconsistent with the registration status of VoWi-Fi, the electronic device may query all the information in the network information of the VoWi-Fi network every preset time, and judge the inquired network information and VoWi-Fi Whether the registration status of Fi is consistent, if they are consistent, the network information is sent to the cache area, and the VoWi-Fi icon display status of the information display layer is updated; otherwise, continue to query the network of the VoWi-Fi network every preset time All information in the information until the re-inquired network information is consistent with the registration status of VoWi-Fi. However, since there may be information consistent with the registration status of VoWi-Fi in the network information obtained last time, it would take a lot of time to query all the information in the network information every preset duration. In order to save time and improve the display efficiency of network information and VoWi-Fi icons, the electronic device can also first determine the information in the obtained network information that is inconsistent with the registration status of VoWi-Fi, and then query the network information every preset time Information that is inconsistent with the changed registration status, and determine whether the queried information is consistent with the registration status of VoWi-Fi. If they match, the network information is sent to the cache area, and the corresponding information displayed by VoWi-Fi on the information display layer is updated. The network information and VoWi-Fi icon display status; otherwise, continue to query the inconsistent information every preset time until the information and the network information are sent to the cache area again, and the VoWi-Fi of the information display layer is updated Corresponding to the displayed network information and VoWi-Fi icon display status.
本申请实施例,若所述网络信息和对应的所述VoWi-Fi的注册状态不一致后,可以通过每隔预设时长查询所述网络信息,当查询后得到的所述网络信息与对应的所述VoWi-Fi的注册状态一致时,则判定所述VoWi-Fi为有效网络,更新VoWi-Fi的图标显示状态,提高了VoWi-Fi图标显示的准确性,提升了用户体验。In the embodiment of the present application, if the network information and the corresponding registration status of the VoWi-Fi are inconsistent, the network information may be queried every preset duration. When the network information obtained after the query is consistent with the corresponding When the registration status of the VoWi-Fi is the same, it is determined that the VoWi-Fi is a valid network, and the icon display status of the VoWi-Fi is updated, which improves the accuracy of the VoWi-Fi icon display and improves the user experience.
在一个实施例中,根据所述VoWi-Fi的注册状态控制所述VoWi-Fi的图标进行显示或隐藏后,还包括:根据电子设备的VoWi-Fi连接记录,在VoWi-Fi列表中选择其中一个VoWi-Fi自动连接。In one embodiment, after controlling the icon of the VoWi-Fi to be displayed or hidden according to the registration status of the VoWi-Fi, the method further includes: selecting one of the VoWi-Fi lists according to the VoWi-Fi connection record of the electronic device A VoWi-Fi is automatically connected.
在一个实施例中,在VoWi-Fi列表选择其中一个VoWi-Fi自动连接,具体为:In one embodiment, selecting one of the VoWi-Fi automatic connections in the VoWi-Fi list, specifically:
检测当前VoWi-Fi列表中多个VoWi-Fi的信号强度值;Detect the signal strength values of multiple VoWi-Fi in the current VoWi-Fi list;
比较多个所述VoWi-Fi的信号强度值的大小,以获取信号强度值最大的网络;Comparing the signal strength values of multiple VoWi-Fis to obtain the network with the largest signal strength value;
将所述电子设备自动连接至所述信号强度值最大的网络。The electronic device is automatically connected to the network with the largest signal strength value.
本申请实施例,通过检测当前VoWi-Fi列表中多个VoWi-Fi的信号强度值,并将所述电子设备自动连接至所述信号强度值最大的网络,可以提高VoWi-Fi网络的连接效率,提升用户体验。In the embodiment of the present application, by detecting the signal strength values of multiple VoWi-Fi in the current VoWi-Fi list and automatically connecting the electronic device to the network with the largest signal strength value, the connection efficiency of the VoWi-Fi network can be improved To improve user experience.
如图2所示,本申请实施例提供了一种基于Wi-Fi的语音服务注册状态获取的装置20,该装置包括获取模块21、更新模块22和显示模块23,其中,As shown in FIG. 2, an embodiment of the present application provides an apparatus 20 for acquiring a Wi-Fi-based voice service registration status. The apparatus includes an acquiring module 21, an updating module 22, and a display module 23, where,
获取模块21,用于获取基于Wi-Fi的语音服务VoWi-Fi的开关状态信息和VoWi-Fi的注册状态,并进行缓存;The obtaining module 21 is used to obtain the Wi-Fi-based voice service VoWi-Fi switch status information and VoWi-Fi registration status, and cache;
VoWi-Fi是基于Wi-Fi的语音服务,使用具有VoWi-Fi功能的电子设备,在Wi-Fi 环境下能够通过传统的拨号方式进行语音呼叫和接听,不需要用户下载APP应用程序。VoWi-Fi是内置在电子设备中的功能,可以直接进入运营商的核心网,实现和蜂窝网的互通。VoWi-Fi is a Wi-Fi-based voice service that uses electronic devices with VoWi-Fi capabilities. In a Wi-Fi environment, voice calls and calls can be made through traditional dialing methods without requiring users to download APP applications. VoWi-Fi is a function built into electronic equipment, which can directly enter the operator's core network to achieve interworking with the cellular network.
基于Wi-Fi的语音服务VoWi-Fi的开关状态信息可以显示在电子设备的显示界面上,具体地,显示界面可以为弹窗、悬浮框等方式显示所述提示信息,其中,所述提示信息可以包括“是”和“否”的选择按键,并携带提示相应操作的提示语,例如,是否开启VoWi-Fi功能,其下配置有“是”和“否”选择按键。并接收用户通过“是”和“否”选择按键输入的控制指令,根据所述控制指令进行相应的操作。具体地,当监听到“是”选择按键被点击时,说明获取模块21获取到用户输入的开启VoWi-Fi的控制指令,则将VoWi-Fi的开启状态信息进行缓存;当监听到“否”选择按键被点击时,说明获取模块21获取到用户输入的关闭VoWi-Fi的控制指令,则将VoWi-Fi的关闭状态信息进行缓存。此外,若预设时间内未获取到用户输入的控制指令,则默认操作确定控制指令,并执行相应的操作。其中,所述默认操作可以是用户可以预先设置,如,默认操作为“是”选择按键被选取的操作等。所述预设时间也可以是用户预先设置的,或者系统默认的,如,30秒、60秒等,具体数值本申请实施例不作限定。The Wi-Fi-based voice service VoWi-Fi switch status information can be displayed on the display interface of the electronic device. Specifically, the display interface can display the prompt information in a pop-up window, a floating frame, etc., wherein the prompt information It may include "Yes" and "No" selection buttons, and carry prompts to prompt the corresponding operation, for example, whether to enable the VoWi-Fi function, under which are configured "Yes" and "No" selection buttons. It also receives the control instruction input by the user through the "Yes" and "No" selection keys, and performs corresponding operations according to the control instruction. Specifically, when it is heard that the “Yes” selection button is clicked, it means that the obtaining module 21 obtains a control instruction for turning on the VoWi-Fi input by the user, and then caches the turning-on state information of the VoWi-Fi; when “No” is monitored When the selection button is clicked, it means that the obtaining module 21 obtains a control instruction for turning off VoWi-Fi input by the user, and then caches the turning off state information of VoWi-Fi. In addition, if the control instruction input by the user is not obtained within the preset time, the default operation determines the control instruction and performs the corresponding operation. Wherein, the default operation may be preset by the user, for example, the default operation is an operation in which the selection button of "Yes" is selected, and the like. The preset time may also be preset by the user or the system default, for example, 30 seconds, 60 seconds, etc. The specific value is not limited in this embodiment of the present application.
本申请实施例中,在开启所述VoWi-Fi功能后,为了便于用户使用所述VoWi-Fi功能,可以将VoWi-Fi功能的操作界面/标识添加至终端设备的用户界面内,并在用户界面内显示。例如,拨号界面显示VoWi-Fi的按钮,在设置界面显示VoWi-Fi的开关。In the embodiment of the present application, after the VoWi-Fi function is turned on, in order to facilitate users to use the VoWi-Fi function, the operation interface / logo of the VoWi-Fi function may be added to the user interface of the terminal device, and the user Displayed in the interface. For example, the dial interface displays VoWi-Fi buttons, and the setting interface displays VoWi-Fi switches.
VoWi-Fi的注册状态包括注册状态和未注册状态,在电子设备开启后,会生成VoWi-Fi的注册状态,获取模块21将VoWi-Fi的注册状态与VoWi-Fi的开关状态信息进行缓存。The registration status of VoWi-Fi includes a registration status and an unregistered status. After the electronic device is turned on, a registration status of VoWi-Fi is generated, and the acquisition module 21 caches the registration status of VoWi-Fi and the switching status information of VoWi-Fi.
更新模块22,用于根据所述VoWi-Fi的开关状态信息,更新所述VoWi-Fi的注册状态;The update module 22 is configured to update the registration state of the VoWi-Fi according to the switch state information of the VoWi-Fi;
在一个实施例中,电子设备可以包括处理器和调制解调器,处理器可以包括所述装置20的获取模块21、更新模块22和显示模块23。所述调制解调器将所述VoWi-Fi的注册状态传输至所述处理器,当用户打开或关闭VoWi-Fi开关时,会产生开关状态信息,获取模块21获取所述开关状态信息,并进行缓存,然后将开关状态信息传输至所述处理器中的更新模块22,更新模块22根据所述VoWi-Fi的开关状态信息更新所述VoWi-Fi的注册状态。In one embodiment, the electronic device may include a processor and a modem, and the processor may include an acquisition module 21, an update module 22, and a display module 23 of the apparatus 20. The modem transmits the registration status of the VoWi-Fi to the processor. When the user turns on or off the VoWi-Fi switch, the switch status information is generated, and the acquisition module 21 acquires the switch status information and caches it. Then, the switch state information is transmitted to the update module 22 in the processor, and the update module 22 updates the registration state of the VoWi-Fi according to the switch state information of the VoWi-Fi.
电子设备开启后,由于调制解调器会根据最后一次用户对VoWi-Fi的开关操作执行是否注册VoWi-Fi,若在电子设备开启之前VoWi-Fi的最后的状态为开启状态,则电 子设备开启后,调制解调器直接注册VoWi-Fi并且注册成功,然后直接将注册状态发送给处理器,处理器将注册状态以VoWi-Fi图标的形式显示在状态显示栏。而此时,如果VoWi-Fi真实的开关状态为未开启状态,处理器还没有将VoWi-Fi处于未开启的状态发送至调制解调器,调制解调器已经将等到将VoWi-Fi的注册状态发送给处理器,处理器将注册状态以VoWi-Fi图标的形式显示在状态显示栏。等到处理器将VoWi-Fi处于未开启状态发送至调制解调器后,调制解调器重新关闭VoWi-Fi,从而出现VoWi-Fi图标显示一会又消失的现象。After the electronic device is turned on, because the modem will register VoWi-Fi according to the last time the user performs the switch operation on VoWi-Fi, if the last state of VoWi-Fi is on before the electronic device is turned on, then after the electronic device is turned on, the modem Register VoWi-Fi directly and register successfully, and then directly send the registration status to the processor. The processor displays the registration status in the form of VoWi-Fi icon in the status display bar. At this time, if the real switch state of VoWi-Fi is not turned on, the processor has not yet sent VoWi-Fi to the modem in the unturned state, and the modem will wait until the registered state of VoWi-Fi is sent to the processor. The processor displays the registration status in the form of VoWi-Fi icon in the status display bar. After the processor sends VoWi-Fi to the modem in an unopened state, the modem turns off VoWi-Fi again, so that the VoWi-Fi icon display disappears after a while.
本申请实施例中,根据所述VoWi-Fi开关状态参数判断所述VoWi-Fi开关状态是否为开启状态。In the embodiment of the present application, it is determined whether the VoWi-Fi switch state is on according to the VoWi-Fi switch state parameter.
具体地,获取模块21在获取到VoWi-Fi的开关状态信息后,获取所述VoWi-Fi的配置参数,所述配置参数包括VoWi-Fi的开关状态参数和VoWi-Fi的注册参数,根据VoWi-Fi的开关状态参数和VoWi-Fi的注册参数,更新VoWi-Fi的注册状态。VoWi-Fi的配置参数可以反映VoWi-Fi网络服务,当VoWi-Fi的开关状态参数变化后,会导致VoWi-Fi的注册参数发生改变。因此可以利用VoWi-Fi的开关状态参数判断VoWi-Fi开关状态信息,并利用VoWi-Fi的注册参数判断VoWi-Fi网络服务是否能够使用,从而判断此时VoWi-Fi语音通话功能是否可以正常使用,并更新VoWi-Fi的注册状态。Specifically, after obtaining the switch state information of VoWi-Fi, the obtaining module 21 obtains the configuration parameters of the VoWi-Fi, the configuration parameters including the switch state parameters of the VoWi-Fi and the registration parameters of the VoWi-Fi, according to the VoWi -Fi switch status parameters and VoWi-Fi registration parameters, update the registration status of VoWi-Fi. The configuration parameters of VoWi-Fi can reflect VoWi-Fi network services. When the switch state parameters of VoWi-Fi change, the registration parameters of VoWi-Fi will change. Therefore, you can use VoWi-Fi switch state parameters to determine VoWi-Fi switch state information, and use VoWi-Fi registration parameters to determine whether VoWi-Fi network services can be used, so as to determine whether the VoWi-Fi voice call function can be used normally And update the registration status of VoWi-Fi.
若所述VoWi-Fi的开关状态处于未开启状态,更新模块22更新所述VoWi-Fi的注册状态为未注册状态;If the switch state of the VoWi-Fi is not turned on, the update module 22 updates the registered state of the VoWi-Fi to an unregistered state;
若所述VoWi-Fi的开关状态为开启状态,更新模块22根据所述VoWi-Fi的注册参数判断VoWi-Fi是否注册成功;If the switch state of the VoWi-Fi is on, the update module 22 determines whether the VoWi-Fi registration is successful according to the registration parameters of the VoWi-Fi;
若VoWi-Fi未注册成功,更新模块22更新所述VoWi-Fi的注册状态为未注册状态;If VoWi-Fi is not registered successfully, the update module 22 updates the registration status of the VoWi-Fi to an unregistered state;
若所述VoWi-Fi注册成功,更新模块22更新所述VoWi-Fi的注册状态为已注册状态。If the VoWi-Fi registration is successful, the update module 22 updates the registration status of the VoWi-Fi to the registered status.
显示模块23,用于根据所述VoWi-Fi的注册状态控制所述VoWi-Fi的图标进行显示或隐藏。The display module 23 is configured to control the icon of the VoWi-Fi to be displayed or hidden according to the registration status of the VoWi-Fi.
当VoWi-Fi的注册状态为已注册状态时,则显示模块23显示所述VoWi-Fi的图标;When the registered state of VoWi-Fi is the registered state, the display module 23 displays the icon of the VoWi-Fi;
当VoWi-Fi的注册状态为未注册状态时,则显示模块23隐藏所述VoWi-Fi的图标。When the registered state of VoWi-Fi is an unregistered state, the display module 23 hides the icon of the VoWi-Fi.
本申请实施例,通过获取模块21获取基于Wi-Fi的语音服务VoWi-Fi的开关状态信息和VoWi-Fi的注册状态并进行缓存,更新模块22根据所述VoWi-Fi的开关状态信息,更新所述VoWi-Fi的注册状态,显示模块23根据所述VoWi-Fi的注册状态控制所述VoWi-Fi的图标进行显示或隐藏,提高了VoWi-Fi图标显示的准确性和稳定性。In the embodiment of the present application, the Wi-Fi-based voice service VoWi-Fi switch status information and VoWi-Fi registration status are acquired and cached through the acquisition module 21, and the update module 22 updates the VoWi-Fi switch status information according to the In the registration state of the VoWi-Fi, the display module 23 controls the icon of the VoWi-Fi to be displayed or hidden according to the registration state of the VoWi-Fi, thereby improving the accuracy and stability of the display of the VoWi-Fi icon.
在一个实施例中,该装置还包括判断模块(图中未示出),在更新模块22根据VoWi-Fi的开关状态信息,更新所述VoWi-Fi的注册状态后,获取注册的VoWi-Fi的网络信息,判断模块根据网络信息和对应的VoWi-Fi的注册状态判断所述所述VoWi-Fi网络的有效性,根据VoWi-Fi网络的有效性控制VoWi-Fi图标的显示或隐藏。In one embodiment, the device further includes a judgment module (not shown in the figure). After the update module 22 updates the registration status of the VoWi-Fi according to the switch state information of the VoWi-Fi, the registered VoWi-Fi is acquired Network information, the judgment module judges the validity of the VoWi-Fi network according to the network information and the corresponding VoWi-Fi registration status, and controls the display or hiding of the VoWi-Fi icon according to the validity of the VoWi-Fi network.
网络信息可以包括注册的VoWi-Fi的网络名称、网络信号值和网络类型的一种或多种的组合。例如可以包括网络信号值,网络名称和注册网络类型或多个网络信息的组合,具体组合形式不做限定。The network information may include one or more combinations of the registered VoWi-Fi network name, network signal value, and network type. For example, it may include a network signal value, a network name, a registered network type, or a combination of multiple network information, and the specific combination form is not limited.
网络信息是指用于描述电子设备当前己注册的VoWi-Fi网络的信息,包括但不限于注册网络名称、注册网络类型、网络信号值等。Network information refers to information used to describe the currently registered VoWi-Fi network of the electronic device, including but not limited to the registered network name, registered network type, network signal value, etc.
注册网络名称是指电子设备当前注册的VoWi-Fi网络名称。比如,注册网络名称可以是Wi-Fi-1、Wi-Fi-china等。The registered network name refers to the VoWi-Fi network name currently registered by the electronic device. For example, the registered network name may be Wi-Fi-1, Wi-Fi-china, etc.
信号值是用于指示电子设备当前连接的网络信号强度。比如350k,600k或800k等。The signal value is used to indicate the network signal strength of the electronic device currently connected. For example, 350k, 600k or 800k.
注册网络类型可以是固网宽带类型或者移动网络类型。可以从数据库中读取与公网IP对应的网络类型,例如,当公网IP在联通固网宽带的起始IP和终止IP的范围内时,可以判定该公网IP的网络类型为固网宽带,当公网IP在移动网络的起始IP和终止IP的范围内时,可以判定该公网IP的网络类型为移动网络。The registered network type can be a fixed-line broadband type or a mobile network type. You can read the network type corresponding to the public network IP from the database. For example, when the public network IP is within the range of the Unicom fixed network broadband start IP and end IP, you can determine that the network type of the public network IP is fixed network Broadband, when the public network IP is within the range of the starting IP and ending IP of the mobile network, it can be determined that the network type of the public network IP is a mobile network.
根据所述网络信息和所述VoWi-Fi的注册状态判断所述VoWi-Fi是否为有效网络。具体为:Determine whether the VoWi-Fi is a valid network according to the network information and the registration status of the VoWi-Fi. Specifically:
判断模块判断所述网络信息和对应的所述VoWi-Fi的注册状态是否一致;The judgment module judges whether the network information and the corresponding registration status of the VoWi-Fi are consistent;
例如,若VoWi-Fi的注册状态为未注册,当网络信息中包括信号值、注册网络名称、注册网络类型时,若信号值为0dB、注册网络名称为无服务、注册网络类型为无网络,由于获取的网络信息均为无效信息,因此可以确定获取的网络信息与VoWi-Fi的注册状态一致。相反,若信号值为0dB、注册网络名称为Wi-Fi-china、注册网络类型为无网络,由于注册网络名称为有效信息,因此,可以确定获取的网络信息中存在有效信息,进而可以确定获取的网络信息与VoWi-Fi的注册状态不一致。For example, if the registration status of VoWi-Fi is unregistered, when the network information includes the signal value, registered network name, and registered network type, if the signal value is 0dB, the registered network name is no service, and the registered network type is no network, Since the acquired network information is all invalid information, it can be determined that the acquired network information is consistent with the registration status of VoWi-Fi. On the contrary, if the signal value is 0dB, the registered network name is Wi-Fi-china, and the registered network type is no network, because the registered network name is valid information, it can be determined that there is valid information in the acquired network information, and then the acquisition can be determined 'S network information is inconsistent with the registration status of VoWi-Fi.
其中,有效信息和无效信息是指网络信息中个信息的有效性和无效性,例如,当注册的VoWi-Fi网络的信号值为0dB,则该信号值为无效信息,当注册的VoWi-Fi网络的信号值为100k,则该信号值有效信息;当注册的VoWi-Fi注册网络信号名称为无服务,则该注册网络信号名称为无效信息,当注册的VoWi-Fi注册网络信号名称为Wi-Fi-china,则该注册网络信号名称为有效信息。Among them, the valid information and invalid information refer to the validity and invalidity of the information in the network information, for example, when the signal value of the registered VoWi-Fi network is 0dB, the signal value is invalid information, when the registered VoWi-Fi The signal value of the network is 100k, the signal value is valid information; when the registered VoWi-Fi registered network signal name is no service, the registered network signal name is invalid information, when the registered VoWi-Fi registered network signal name is Wi -Fi-china, the registered network signal name is valid information.
如果VoWi-Fi的注册状态为己注册,当获取的网络信息均为有效信息时,确定获取的网络信息与VoWi-Fi的注册状态一致,当获取的网络信息中存在无效信息时,确定获取的网络信息与VoWi-Fi的注册状态不一致。If the registration status of VoWi-Fi is already registered, when the acquired network information is all valid information, it is determined that the acquired network information is consistent with the registration status of VoWi-Fi, and when there is invalid information in the acquired network information, the acquired The network information is inconsistent with the registration status of VoWi-Fi.
如果VoWi-Fi的注册状态为己注册时,则可以确定电子设备己接入VoWi-Fi网络,也即是,对于电子设备而言,该移动终端的显示栏上显示的网络信息均应为有效信息。因此,当电子设备获取的网络信息均为有效信息时,可以确定获取的网络信息与VoWi-Fi的注册状态一致,相反,当获取的网络信息中存在无效信息时,可以确定获取的网络信息与VoWi-Fi的注册状态不一致。If the registration status of VoWi-Fi is already registered, it can be determined that the electronic device has access to the VoWi-Fi network, that is, for the electronic device, the network information displayed on the display bar of the mobile terminal should be valid information. Therefore, when the network information acquired by the electronic device is all valid information, it can be determined that the acquired network information is consistent with the registration status of VoWi-Fi. Conversely, when there is invalid information in the acquired network information, the acquired network information and The registration status of VoWi-Fi is inconsistent.
若所述网络信息和对应的所述VoWi-Fi的注册状态一致,则所述VoWi-Fi为有效网络;If the network information and the corresponding registration status of the VoWi-Fi are consistent, the VoWi-Fi is a valid network;
若所述网络信息和对应的所述VoWi-Fi的注册状态不一致,则所述VoWi-Fi为无效网络。If the network information and the corresponding registration status of the VoWi-Fi are inconsistent, the VoWi-Fi is an invalid network.
若判断模块判断所述VoWi-Fi为有效网络,则显示模块23控制所述VoWi-Fi的图标进行显示;If the judgment module judges that the VoWi-Fi is a valid network, the display module 23 controls the icon of the VoWi-Fi to be displayed;
若判断模块判断所述VoWi-Fi为无效网络,则显示模块23控制所述VoWi-Fi的图标进行隐藏。If the judgment module judges that the VoWi-Fi is an invalid network, the display module 23 controls the icon of the VoWi-Fi to be hidden.
本申请实施例,通过根据网络信息和对应的VoWi-Fi的注册状态判断所述VoWi-Fi是否为有效网络,若为有效网络,则更新VoWi-Fi图标的显示状态;若为无效网络,则保持VoWi-Fi图标的显示状态,不对其进行更新,提高了VoWi-Fi网络显示的准确性,提升了用户体验。In this embodiment of the present application, whether the VoWi-Fi is a valid network is determined according to the network information and the corresponding VoWi-Fi registration status. If the network is a valid network, the display state of the VoWi-Fi icon is updated; if it is an invalid network, Maintain the display state of the VoWi-Fi icon and not update it, which improves the accuracy of the VoWi-Fi network display and improves the user experience.
在一个实施例中,若在电子设备开启之前VoWi-Fi最后状态为开启状态,则电子设备开启后,调制解调器直接注册VoWi-Fi并且注册成功。而在电子设备开启后,VoWi-Fi真实的状态为未开启状态,处理器将VoWi-Fi处于未开启的状态发送至调制解调器,调制解调器在未接收到处理器下发的VoWi-Fi的开启的状态前,并不上传VoWi-Fi的注册状态发送给处理器,从而保证VoWi-Fi图标显示的稳定性。In one embodiment, if the last state of VoWi-Fi is on before the electronic device is turned on, after the electronic device is turned on, the modem directly registers VoWi-Fi and the registration is successful. After the electronic device is turned on, the real state of VoWi-Fi is not turned on. The processor sends VoWi-Fi to the modem in the unturned state. The modem does not receive the turned-on state of VoWi-Fi issued by the processor. Before, the registration status of VoWi-Fi was not uploaded to the processor, so as to ensure the stability of the display of the VoWi-Fi icon.
在一个实施例中,若所述网络信息和对应的所述VoWi-Fi的注册状态不一致,可以每隔预设时长查询所述网络信息,当查询后得到的所述网络信息与对应的所述VoWi-Fi的注册状态一致时,则判定所述VoWi-Fi为有效网络,对VoWi-Fi图标的显示状态进行更新。In one embodiment, if the network information and the corresponding registration status of the VoWi-Fi are inconsistent, the network information may be queried every preset duration. When the network information obtained after the query is the same as the corresponding When the registration status of VoWi-Fi is the same, it is determined that the VoWi-Fi is a valid network, and the display status of the VoWi-Fi icon is updated.
具体地,当获取的网络信息与VoWi-Fi的注册状态不一致时,该电子设备可以每隔预设时长查询该VoWi-Fi网络的网络信息中的所有信息,并判断查询的网络信息与 VoWi-Fi的注册状态是否一致,如果一致,则将网络信息发送至缓存区,并更新信息显示层的VoWi-Fi的图标显示状态;否则,继续每隔预设时长重新查询该VoWi-Fi网络的网络信息中的所有信息,直至重新查询的网络信息与VoWi-Fi的注册状态一致。然而,由于上一次获取的网络信息中可能存在与VoWi-Fi的注册状态一致的信息,因此,每隔预设时长查询网络信息中的所有信息会耗费大量时间。为了节省时间,提高网络信息和VoWi-Fi图标的显示效率,该电子设备还可以先确定获取的网络信息中与VoWi-Fi的注册状态不一致的信息,然后,每隔预设时长查询网络信息中与变化后的注册状态不一致的信息,并判断查询到的信息与VoWi-Fi的注册状态是否一致,如果一致,则将网络信息发送至缓存区,并更新信息显示层的VoWi-Fi对应显示的网络信息和VoWi-Fi的图标显示状态;否则,继续每隔预设时长重新查询不一致的信息,直至重新查询到的信息与则将网络信息发送至缓存区,并更新信息显示层的VoWi-Fi对应显示的网络信息和VoWi-Fi的图标显示状态。Specifically, when the acquired network information is inconsistent with the registration status of VoWi-Fi, the electronic device may query all the information in the network information of the VoWi-Fi network every preset time, and judge the network information and VoWi- Whether the registration status of Fi is consistent, if they are consistent, the network information is sent to the cache area, and the VoWi-Fi icon display status of the information display layer is updated; otherwise, continue to query the network of the VoWi-Fi network every preset time All information in the information until the re-inquired network information is consistent with the registration status of VoWi-Fi. However, since there may be information consistent with the registration status of VoWi-Fi in the network information obtained last time, it would take a lot of time to query all information in the network information every preset duration. In order to save time and improve the display efficiency of network information and VoWi-Fi icons, the electronic device can also first determine the information in the obtained network information that is inconsistent with the registration status of VoWi-Fi, and then query the network information every preset time Information that is inconsistent with the changed registration status, and determine whether the queried information is consistent with the registration status of VoWi-Fi. If they match, the network information is sent to the cache area, and the corresponding information displayed by VoWi-Fi on the information display layer is updated. The network information and VoWi-Fi icon display status; otherwise, continue to query the inconsistent information every preset time until the information and the network information are sent to the cache area again, and the VoWi-Fi of the information display layer is updated Corresponding to the displayed network information and VoWi-Fi icon display status.
本申请实施例,若所述网络信息和对应的所述VoWi-Fi的注册状态不一致后,通过每隔预设时长查询所述网络信息,当查询后得到的所述网络信息与对应的所述VoWi-Fi的注册状态一致时,则判定所述VoWi-Fi为有效网络,更新VoWi-Fi的图标显示状态,提高了VoWi-Fi图标显示的准确性,提升了用户体验。In the embodiment of the present application, if the network information and the corresponding registration status of the VoWi-Fi are inconsistent, the network information is queried every preset time period. When the network information obtained after the query is the same as the corresponding When the registration status of VoWi-Fi is the same, it is determined that the VoWi-Fi is a valid network, and the icon display status of the VoWi-Fi is updated to improve the accuracy of the VoWi-Fi icon display and improve the user experience.
在一个实施例中,根据所述VoWi-Fi的注册状态控制所述VoWi-Fi的图标进行显示或隐藏后,还包括:根据电子设备的VoWi-Fi连接记录,在VoWi-Fi列表中选择其中一个VoWi-Fi自动连接。In one embodiment, after controlling the icon of the VoWi-Fi to be displayed or hidden according to the registration status of the VoWi-Fi, the method further includes: selecting one of the VoWi-Fi lists according to the VoWi-Fi connection record of the electronic device A VoWi-Fi is automatically connected.
在一个实施例中,在VoWi-Fi列表选择其中一个VoWi-Fi自动连接,具体为:In one embodiment, selecting one of the VoWi-Fi automatic connections in the VoWi-Fi list, specifically:
检测当前VoWi-Fi列表中多个VoWi-Fi的信号强度值;Detect the signal strength values of multiple VoWi-Fi in the current VoWi-Fi list;
比较多个所述VoWi-Fi的信号强度值的大小,以获取信号强度值最大的网络;Comparing the signal strength values of multiple VoWi-Fis to obtain the network with the largest signal strength value;
将所述电子设备自动连接至所述信号强度值最大的网络。The electronic device is automatically connected to the network with the largest signal strength value.
本申请实施例,通过检测当前VoWi-Fi列表中多个VoWi-Fi的信号强度值,并将所述电子设备自动连接至所述信号强度值最大的网络,可以提高VoWi-Fi网络的连接效率,提升用户体验。In the embodiment of the present application, by detecting the signal strength values of multiple VoWi-Fi in the current VoWi-Fi list and automatically connecting the electronic device to the network with the largest signal strength value, the connection efficiency of the VoWi-Fi network can be improved To improve user experience.
图3为一实施例中电子设备的内部结构示意图。如图3所示,该电子设备包括通过系统总线连接的处理器、非易失性存储介质、内存储器和网络接口、声音采集装置、扬声器、显示屏和输入装置。其中,终端的非易失性存储介质存储有操作系统和计算机可读指令。该计算机可读指令被处理器执行时以实现一种电子设备的对应用程序进行处理的方法。该处理器用于提供计算和控制能力,支撑整个电子设备的运行。电子 设备中的内存储器为非易失性存储介质中的计算机可读指令的运行提供环境。电子设备的显示屏可以是液晶显示屏或者电子墨水显示屏等,输入装置可以是显示屏上覆盖的触摸层,也可以是电子设备外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。该电子设备可以是手机、平板电脑或者个人数字助理或穿戴式设备等。本领域技术人员可以理解,图3中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的电子设备的限定,具体的电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。3 is a schematic diagram of an internal structure of an electronic device in an embodiment. As shown in FIG. 3, the electronic device includes a processor connected through a system bus, a non-volatile storage medium, an internal memory and a network interface, a sound collection device, a speaker, a display screen, and an input device. Among them, the non-volatile storage medium of the terminal stores an operating system and computer-readable instructions. When the computer-readable instructions are executed by the processor, a method for processing an application program of an electronic device is realized. The processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The internal memory in the electronic device provides an environment for the execution of computer-readable instructions in the non-volatile storage medium. The display screen of the electronic device may be a liquid crystal display screen or an electronic ink display screen, etc. The input device may be a touch layer covered on the display screen, a button, a trackball or a touch pad provided on the housing of the electronic device, or External keyboard, touchpad or mouse, etc. The electronic device may be a mobile phone, a tablet computer, a personal digital assistant or a wearable device. Those skilled in the art can understand that the structure shown in FIG. 3 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may It includes more or fewer components than shown in the figure, or some components are combined, or have a different component arrangement.
其中,上述提及的对应用程序进行处理的方法具体可以为:Among them, the method for processing the application mentioned above may specifically be:
获取基于Wi-Fi的语音服务VoWi-Fi的开关状态信息和VoWi-Fi的注册状态,并进行缓存;Obtain the Wi-Fi-based voice service VoWi-Fi switch status information and VoWi-Fi registration status, and cache;
根据所述VoWi-Fi的开关状态信息,更新所述VoWi-Fi的注册状态;Update the registration status of the VoWi-Fi according to the switch status information of the VoWi-Fi;
根据所述VoWi-Fi的注册状态控制所述VoWi-Fi的图标进行显示或隐藏。The icon of the VoWi-Fi is controlled to be displayed or hidden according to the registration status of the VoWi-Fi.
此外,本申请实施例还提供了一种计算机非易失性可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述对应用程序进行处理的步骤。In addition, the embodiments of the present application also provide a computer non-volatile readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of processing the application program as described above are realized.
本发明实施例还提供了一种计算机设备。如图4所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该计算机设备可以为包括电子设备、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point ofSales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以计算机设备为电子设备为例:An embodiment of the present invention also provides a computer device. As shown in FIG. 4, for ease of description, only parts related to the embodiments of the present invention are shown, and specific technical details are not disclosed, please refer to the method part of the embodiments of the present invention. The computer device can be any terminal device including electronic devices, tablet computers, PDA (Personal Digital Assistant), POS (Point of Sales), in-vehicle computers, wearable devices, etc. Taking computer devices as electronic devices is example:
图4为与本发明实施例提供的计算机设备相关的电子设备的部分结构的框图。参考图4,电子设备包括:射频(Radio Frequency,RF)电路410、存储器420、输入单元430、显示单元440、传感器450、音频电路460、无线保真(wireless fidelity,Wi-Fi)模块470、处理器480、以及电源490等部件。本领域技术人员可以理解,图4所示的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。4 is a block diagram of a partial structure of an electronic device related to a computer device provided by an embodiment of the present invention. 4, the electronic device includes: a radio frequency (Radio Frequency) circuit 410, a memory 420, an input unit 430, a display unit 440, a sensor 450, an audio circuit 460, a wireless fidelity (Wi-Fi) module 470, Processor 480, power supply 490 and other components. Those skilled in the art may understand that the structure of the electronic device shown in FIG. 4 does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine some components, or arrange different components.
其中,RF电路410可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器480处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路410还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括 但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。Among them, the RF circuit 410 can be used to receive and send signals during the sending and receiving of information or during a call. It can receive the downlink information of the base station and process it to the processor 480; it can also send the uplink data to the base station. Generally, RF circuits include but are not limited to antennas, at least one amplifier, transceiver, coupler, low noise amplifier (Low Noise Amplifier, LNA), duplexer, and so on. In addition, the RF circuit 410 can also communicate with other devices through a wireless communication network. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (Code Division) Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Message Service (SMS), etc.
存储器420可用于存储软件程序以及模块,处理器480通过运行存储在存储器420的软件程序以及模块,从而执行电子设备的各种功能应用以及数据处理。存储器420可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据电子设备的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 420 may be used to store software programs and modules. The processor 480 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 420. The memory 420 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system and at least one function-required application program (such as a sound playback function application program, an image playback function application program, etc.), etc .; The data storage area can store data (such as audio data, address book, etc.) created according to the use of electronic devices. In addition, the memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
输入单元430可用于接收输入的数字或字符信息,以及产生与电子设备400的用户设置以及功能控制有关的键信号输入。具体地,输入单元430可包括触控面板431以及其他输入设备432。触控面板431,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板431上或在触控面板431附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板431可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器480,并能接收处理器480发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板431。除了触控面板431,输入单元430还可以包括其他输入设备432。具体地,其他输入设备432可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 430 may be used to receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device 400. Specifically, the input unit 430 may include a touch panel 431 and other input devices 432. The touch panel 431, also known as a touch screen, can collect user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers or stylus on or near the touch panel 431 Operation), and drive the corresponding connection device according to the preset program. In one embodiment, the touch panel 431 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates, and then sends To the processor 480, and can receive the command sent by the processor 480 and execute it. In addition, the touch panel 431 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 431, the input unit 430 may also include other input devices 432. Specifically, the other input devices 432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.).
显示单元440可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种菜单。显示单元440可包括显示面板441。在一个实施例中,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板441。在一个实施例中,触控面板431可覆盖显示面板441,当触控面板431检测到在其上或附近的触摸操作后,传送给处理 器480以确定触摸事件的类型,随后处理器480根据触摸事件的类型在显示面板441上提供相应的视觉输出。虽然在图4中,触控面板431与显示面板441是作为两个独立的部件来实现电子设备的输入和输入功能,但是在某些实施例中,可以将触控面板431与显示面板441集成而实现电子设备的输入和输出功能。The display unit 440 may be used to display information input by the user or information provided to the user and various menus of the electronic device. The display unit 440 may include a display panel 441. In one embodiment, the display panel 441 may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. In one embodiment, the touch panel 431 may cover the display panel 441, and when the touch panel 431 detects a touch operation on or near it, it is transmitted to the processor 480 to determine the type of touch event, and then the processor 480 according to The type of touch event provides corresponding visual output on the display panel 441. Although in FIG. 4, the touch panel 431 and the display panel 441 are implemented as two independent components to realize the input and input functions of the electronic device, in some embodiments, the touch panel 431 and the display panel 441 may be integrated And realize the input and output functions of electronic equipment.
电子设备400还可包括至少一种传感器450,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板441的亮度,接近传感器可在电子设备移动到耳边时,关闭显示面板441和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,电子设备还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。The electronic device 400 may further include at least one sensor 450, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 441 according to the brightness of the ambient light, and the proximity sensor may close the display panel 441 and the electronic device when moving to the ear / Or backlight. The motion sensor may include an acceleration sensor. The acceleration sensor can detect the magnitude of acceleration in various directions, and can detect the magnitude and direction of gravity when at rest. It can be used for applications that recognize the posture of electronic devices (such as horizontal and vertical screen switching), and vibration recognition related functions ( For example, pedometer, percussion, etc .; in addition, electronic devices can also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc.
音频电路460、扬声器461和传声器462可提供用户与电子设备之间的音频接口。音频电路460可将接收到的音频数据转换后的电信号,传输到扬声器461,由扬声器461转换为声音信号输出;另一方面,传声器462将收集的声音信号转换为电信号,由音频电路460接收后转换为音频数据,再将音频数据输出处理器480处理后,经RF电路410可以发送给另一电子设备,或者将音频数据输出至存储器420以便后续处理。The audio circuit 460, the speaker 461, and the microphone 462 may provide an audio interface between the user and the electronic device. The audio circuit 460 can transmit the converted electrical signal of the received audio data to the speaker 461, which converts the speaker 461 into a sound signal for output; on the other hand, the microphone 462 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 460 After receiving, it is converted into audio data, and then processed by the audio data output processor 480, and then sent to another electronic device via the RF circuit 410, or the audio data is output to the memory 420 for subsequent processing.
Wi-Fi属于短距离无线传输技术,电子设备通过Wi-Fi模块470可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图4示出了Wi-Fi模块470,但是可以理解的是,其并不属于电子设备400的必须构成,可以根据需要而省略。Wi-Fi is a short-distance wireless transmission technology. Electronic devices can help users send and receive emails, browse web pages, and access streaming media through the Wi-Fi module 470. It provides users with wireless broadband Internet access. Although FIG. 4 shows the Wi-Fi module 470, it can be understood that it is not a necessary component of the electronic device 400, and may be omitted as needed.
处理器480是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器420内的软件程序和/或模块,以及调用存储在存储器420内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。在一个实施例中,处理器480可包括一个或多个处理单元。在一个实施例中,处理器480可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器480中。The processor 480 is a control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device, by running or executing software programs and / or modules stored in the memory 420, and calling data stored in the memory 420 , Perform various functions of electronic devices and process data, so as to monitor the electronic devices as a whole. In one embodiment, the processor 480 may include one or more processing units. In one embodiment, the processor 480 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, user interface, application programs, and the like; the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 480.
电子设备400还包括给各个部件供电的电源490(比如电池),优选的,电源可以通过电源管理系统与处理器480逻辑相连,从而通过电源管理系统实现管理充 电、放电、以及功耗管理等功能。The electronic device 400 further includes a power supply 490 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically connected to the processor 480 through the power management system, so as to implement functions such as charging, discharging, and power management through the power management system .
在一个实施例中,电子设备400还可以包括摄像头、蓝牙模块等。In one embodiment, the electronic device 400 may further include a camera, a Bluetooth module, and the like.
在本发明实施例中,该计算机设备所包括的处理器480执行存储在存储器上的计算机程序时实现上述各实施例的方法。In the embodiments of the present invention, the processor 480 included in the computer device implements the methods of the foregoing embodiments when executing the computer program stored on the memory.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时上述各实施例的方法。Those of ordinary skill in the art may understand that all or part of the processes in the method of the above embodiments may be completed by instructing relevant hardware through a computer program, and the program may be stored in a non-volatile computer-readable storage medium In this case, when the program is executed, it may include the flow of the above method embodiments. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), etc. An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the methods of the foregoing embodiments.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-mentioned embodiments can be combined arbitrarily. To simplify the description, all possible combinations of the technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, All should be considered within the scope of this description.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several embodiments of the present invention, and their descriptions are more specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that, for a person of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can also be made, which all fall within the protection scope of the present invention. Therefore, the protection scope of the invention patent shall be subject to the appended claims.

Claims (20)

  1. 一种基于Wi-Fi的语音服务注册状态获取方法,应用于电子设备,其特征在于,包括:A Wi-Fi-based voice service registration status acquisition method, applied to electronic equipment, is characterized by including:
    获取基于Wi-Fi的语音服务VoWi-Fi的开关状态信息和VoWi-Fi的注册状态,并进行缓存;Obtain the Wi-Fi-based voice service VoWi-Fi switch status information and VoWi-Fi registration status, and cache;
    根据所述VoWi-Fi的开关状态信息,更新所述VoWi-Fi的注册状态;Update the registration status of the VoWi-Fi according to the switch status information of the VoWi-Fi;
    根据所述VoWi-Fi的注册状态控制所述VoWi-Fi的图标进行显示或隐藏。The icon of the VoWi-Fi is controlled to be displayed or hidden according to the registration status of the VoWi-Fi.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述VoWi-Fi的开关状态信息,更新所述VoWi-Fi的注册状态,包括:The method according to claim 1, wherein the updating the registration status of the VoWi-Fi according to the switch status information of the VoWi-Fi includes:
    获取所述VoWi-Fi的配置参数,所述配置参数包括所述VoWi-Fi的开关状态参数和所述VoWi-Fi的注册参数;Obtaining configuration parameters of the VoWi-Fi, the configuration parameters including the switch state parameter of the VoWi-Fi and the registration parameter of the VoWi-Fi;
    根据所述VoWi-Fi的开关状态参数和所述VoWi-Fi的注册参数,更新所述VoWi-Fi的注册状态。Update the registration state of the VoWi-Fi according to the switch state parameter of the VoWi-Fi and the registration parameter of the VoWi-Fi.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述VoWi-Fi的开关状态参数和所述VoWi-Fi的注册状态参数,更新所述VoWi-Fi的注册状态,包括:The method according to claim 2, wherein the updating the registration state of the VoWi-Fi according to the switch state parameter of the VoWi-Fi and the registration state parameter of the VoWi-Fi includes:
    根据所述VoWi-Fi开关状态参数判断所述VoWi-Fi开关状态是否为开启状态;Judging whether the VoWi-Fi switch state is on according to the VoWi-Fi switch state parameter;
    若所述VoWi-Fi的开关状态处于未开启状态,则更新所述VoWi-Fi的注册状态为未注册状态;If the switch state of the VoWi-Fi is not turned on, update the registered state of the VoWi-Fi to an unregistered state;
    若所述VoWi-Fi的开关状态为开启状态,则根据所述VoWi-Fi的注册参数判断VoWi-Fi是否注册成功;If the switch state of the VoWi-Fi is on, determine whether the VoWi-Fi registration is successful according to the registration parameters of the VoWi-Fi;
    若所述VoWi-Fi未注册成功,则更新所述VoWi-Fi的注册状态为未注册状态;If the VoWi-Fi is not registered successfully, update the registration status of the VoWi-Fi to an unregistered state;
    若所述VoWi-Fi注册成功,则更新所述VoWi-Fi的注册状态为已注册状态。If the VoWi-Fi registration is successful, the registration status of the VoWi-Fi is updated to the registered status.
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述VoWi-Fi的注册状态控制所述VoWi-Fi的图标进行显示或隐藏,包括:The method according to claim 1, wherein the controlling or displaying the icon of the VoWi-Fi according to the registration status of the VoWi-Fi includes:
    获取VoWi-Fi的网络信息,所述网络信息包括注册的VoWi-Fi的网络名称、网络信号值和网络类型的一种或多种的组合;Obtain VoWi-Fi network information, which includes one or more combinations of registered VoWi-Fi network name, network signal value, and network type;
    根据所述网络信息和所述VoWi-Fi的注册状态判断所述VoWi-Fi是否为有效网络;Judging whether the VoWi-Fi is a valid network according to the network information and the registration status of the VoWi-Fi;
    若所述VoWi-Fi为有效网络,则控制所述VoWi-Fi的图标进行显示;If the VoWi-Fi is a valid network, control the icon of the VoWi-Fi to display;
    若所述VoWi-Fi为无效网络,则控制所述VoWi-Fi的图标进行隐藏。If the VoWi-Fi is an invalid network, the icon of the VoWi-Fi is controlled to be hidden.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述网络信息和所述VoWi-Fi的注册状态判断所述VoWi-Fi是否为有效网络,包括:The method according to claim 4, wherein the judging whether the VoWi-Fi is a valid network according to the network information and the registration status of the VoWi-Fi includes:
    判断所述网络信息和对应的所述VoWi-Fi的注册状态是否一致;Determine whether the registration status of the network information and the corresponding VoWi-Fi are consistent;
    若所述网络信息和对应的所述VoWi-Fi的注册状态一致,则所述VoWi-Fi为有效网络;If the network information and the corresponding registration status of the VoWi-Fi are consistent, the VoWi-Fi is a valid network;
    若所述网络信息和对应的所述VoWi-Fi的注册状态不一致,则所述VoWi-Fi为无效网络。If the network information and the corresponding registration status of the VoWi-Fi are inconsistent, the VoWi-Fi is an invalid network.
  6. 根据权利要求5所述的方法,其特征在于,在所述若所述网络信息和对应的所述VoWi-Fi的注册状态不一致后,还包括:The method according to claim 5, wherein after the if the network information is inconsistent with the corresponding registration status of the VoWi-Fi, the method further includes:
    每隔预设时长查询所述网络信息,当查询后得到的所述网络信息与对应的所述VoWi-Fi的注册状态一致时,则所述VoWi-Fi为有效网络。The network information is queried every preset duration. When the network information obtained after the query is consistent with the corresponding registration status of the VoWi-Fi, the VoWi-Fi is a valid network.
  7. 根据权利要求1所述的方法,其特征在于,在所述根据所述VoWi-Fi的注册状态控制所述VoWi-Fi的图标进行显示或隐藏后,还包括:The method according to claim 1, wherein after the icon of the VoWi-Fi is controlled to be displayed or hidden according to the registration status of the VoWi-Fi, the method further comprises:
    根据电子设备的VoWi-Fi连接记录,在VoWi-Fi列表中选择其中一个VoWi-Fi自动连接。According to the VoWi-Fi connection record of the electronic device, select one of the VoWi-Fi automatic connections in the VoWi-Fi list.
  8. 根据权利要求7所述的方法,其特征在于,所述在VoWi-Fi列表选择其中一个VoWi-Fi自动连接,包括:The method according to claim 7, wherein the selecting one of the VoWi-Fi automatic connections in the VoWi-Fi list includes:
    检测当前VoWi-Fi列表中多个VoWi-Fi的信号强度值;Detect the signal strength values of multiple VoWi-Fi in the current VoWi-Fi list;
    比较多个所述VoWi-Fi的信号强度值的大小,以获取信号强度值最大的网络;Comparing the signal strength values of multiple VoWi-Fis to obtain the network with the largest signal strength value;
    将所述电子设备自动连接至所述信号强度值最大的网络。The electronic device is automatically connected to the network with the largest signal strength value.
  9. 根据权利要求1所述的方法,其特征在于,所述电子设备包括处理器和调制解调器,所述方法还包括:The method of claim 1, wherein the electronic device includes a processor and a modem, and the method further includes:
    所述调制解调器将所述VoWi-Fi的注册状态传输至所述处理器,所述处理器缓存所述VoWi-Fi的开关状态信息,并根据所述VoWi-Fi的开关状态信息更新所述VoWi-Fi的注册状态。The modem transmits the registration status of the VoWi-Fi to the processor, the processor caches the switch status information of the VoWi-Fi, and updates the VoWi-Fi according to the switch status information of the VoWi-Fi Fi registration status.
  10. 一种基于Wi-Fi的语音服务VoWi-Fi注册状态获取装置,应用于电子设备,其特征在于,所述装置包括:A Wi-Fi-based voice service VoWi-Fi registration status acquisition device, applied to electronic equipment, characterized in that the device includes:
    获取模块,用于获取基于Wi-Fi的语音服务VoWi-Fi的开关状态信息和VoWi-Fi的注册状态并进行缓存;The acquisition module is used to acquire the Wi-Fi-based voice service VoWi-Fi switch status information and VoWi-Fi registration status and cache;
    更新模块,用于根据所述VoWi-Fi的开关状态信息,更新所述VoWi-Fi的注册状态;An update module, configured to update the registration state of the VoWi-Fi according to the switch state information of the VoWi-Fi;
    显示模块,用于根据所述VoWi-Fi的注册状态控制所述VoWi-Fi的图标进行显示 或隐藏。The display module is configured to control the icon of the VoWi-Fi to be displayed or hidden according to the registration status of the VoWi-Fi.
  11. 根据权利要求10所述的装置,其特征在于,所述更新模块根据所述VoWi-Fi的开关状态信息,更新所述VoWi-Fi的注册状态,包括:The apparatus according to claim 10, wherein the update module updates the registration status of the VoWi-Fi according to the switch status information of the VoWi-Fi, including:
    获取所述VoWi-Fi的配置参数,所述配置参数包括所述VoWi-Fi的开关状态参数和所述VoWi-Fi的注册参数;Obtaining configuration parameters of the VoWi-Fi, the configuration parameters including the switch state parameter of the VoWi-Fi and the registration parameter of the VoWi-Fi;
    根据所述VoWi-Fi的开关状态参数和所述VoWi-Fi的注册参数更新所述VoWi-Fi的注册状态。Updating the registration state of the VoWi-Fi according to the switch state parameter of the VoWi-Fi and the registration parameter of the VoWi-Fi.
  12. 根据权利要求11所述的装置,其特征在于,所述更新模块根据所述VoWi-Fi的开关状态参数和所述VoWi-Fi的注册状态参数更新所述VoWi-Fi的注册状态,包括:The apparatus according to claim 11, wherein the update module updates the registration status of the VoWi-Fi according to the switching status parameter of the VoWi-Fi and the registration status parameter of the VoWi-Fi, including:
    根据所述VoWi-Fi开关状态参数判断所述VoWi-Fi开关状态是否为开启状态;Judging whether the VoWi-Fi switch state is on according to the VoWi-Fi switch state parameter;
    若所述VoWi-Fi的开关状态处于未开启状态,则更新所述VoWi-Fi的注册状态为未注册状态;If the switch state of the VoWi-Fi is not turned on, update the registered state of the VoWi-Fi to an unregistered state;
    若所述VoWi-Fi的开关状态为开启状态,则根据所述VoWi-Fi的注册参数判断VoWi-Fi是否注册成功;If the switch state of the VoWi-Fi is on, determine whether the VoWi-Fi registration is successful according to the registration parameters of the VoWi-Fi;
    若所述VoWi-Fi未注册成功,则更新所述VoWi-Fi的注册状态为未注册状态;If the VoWi-Fi is not registered successfully, update the registration status of the VoWi-Fi to an unregistered state;
    若所述VoWi-Fi注册成功,则更新所述VoWi-Fi的注册状态为已注册状态。If the VoWi-Fi registration is successful, the registration status of the VoWi-Fi is updated to the registered status.
  13. 根据权利要求10所述的装置,其特征在于,所述显示模块根据所述VoWi-Fi的注册状态控制所述VoWi-Fi的图标进行显示或隐藏,包括:The apparatus according to claim 10, wherein the display module controls the icon of the VoWi-Fi to be displayed or hidden according to the registration status of the VoWi-Fi, including:
    获取VoWi-Fi的网络信息,所述网络信息包括注册的VoWi-Fi的网络名称、网络信号值、网络类型;Obtain VoWi-Fi network information, where the network information includes the registered VoWi-Fi network name, network signal value, and network type;
    根据所述网络信息判断所述VoWi-Fi是否为有效网络;Determine whether the VoWi-Fi is a valid network according to the network information;
    若所述VoWi-Fi为有效网络,则控制所述VoWi-Fi的图标进行显示;If the VoWi-Fi is a valid network, control the icon of the VoWi-Fi to display;
    若所述VoWi-Fi为无效网络,则控制所述VoWi-Fi的图标进行隐藏。If the VoWi-Fi is an invalid network, the icon of the VoWi-Fi is controlled to be hidden.
  14. 根据权利要求13所述的装置,其特征在于,所述显示模块根据所述网络信息判断所述VoWi-Fi是否为有效网络,包括:The apparatus according to claim 13, wherein the display module determines whether the VoWi-Fi is a valid network according to the network information, including:
    判断所述网络信息和对应的所述VoWi-Fi的注册状态是否一致;Determine whether the registration status of the network information and the corresponding VoWi-Fi are consistent;
    若所述网络信息和对应的所述VoWi-Fi的注册状态一致,则所述VoWi-Fi为有效网络;If the network information and the corresponding registration status of the VoWi-Fi are consistent, the VoWi-Fi is a valid network;
    若所述网络信息和对应的所述VoWi-Fi的注册状态不一致,则所述VoWi-Fi为无效网络。If the network information and the corresponding registration status of the VoWi-Fi are inconsistent, the VoWi-Fi is an invalid network.
  15. 根据权利要求14所述的装置,其特征在于,还包括查询模块,用于在所述若 所述网络信息和对应的所述VoWi-Fi的注册状态不一致后,每隔预设时长查询所述网络信息,当查询后得到的所述网络信息与对应的所述VoWi-Fi的注册状态一致时,则所述VoWi-Fi为有效网络。The apparatus according to claim 14, further comprising a query module for querying the network every preset time after the network information is inconsistent with the corresponding registration status of the VoWi-Fi Network information, when the network information obtained after the query is consistent with the corresponding registration status of the VoWi-Fi, the VoWi-Fi is a valid network.
  16. 根据权利要求10所述的装置,其特征在于,还包括连接模块,用于根据电子设备的VoWi-Fi连接记录,在所述显示模块中显示的VoWi-Fi列表中选择其中一个VoWi-Fi自动连接。The apparatus according to claim 10, further comprising a connection module for selecting one of the VoWi-Fi automatic in the VoWi-Fi list displayed in the display module according to the VoWi-Fi connection record of the electronic device connection.
  17. 根据权利要求16所述的装置,其特征在于,所述连接模块根据电子设备的VoWi-Fi连接记录,在所述显示模块中显示的VoWi-Fi列表中选择其中一个VoWi-Fi自动连接,包括:The apparatus according to claim 16, wherein the connection module selects one of the VoWi-Fi automatic connections from the VoWi-Fi list displayed in the display module according to the VoWi-Fi connection record of the electronic device, including :
    检测当前VoWi-Fi列表中多个VoWi-Fi的信号强度值;Detect the signal strength values of multiple VoWi-Fi in the current VoWi-Fi list;
    比较多个所述VoWi-Fi的信号强度值的大小,以获取信号强度值最大的网络;Comparing the signal strength values of multiple VoWi-Fis to obtain the network with the largest signal strength value;
    将所述电子设备自动连接至所述信号强度值最大的网络。The electronic device is automatically connected to the network with the largest signal strength value.
  18. 根据权利要求10所述的装置,其特征在于,所述装置包括处理器和调制解调器,所述调制解调器将所述VoWi-Fi的注册状态传输至所述处理器,所述处理器缓存所述VoWi-Fi的开关状态信息,并根据所述VoWi-Fi的开关状态信息更新所述VoWi-Fi的注册状态。The apparatus of claim 10, wherein the apparatus includes a processor and a modem, the modem transmits the registration status of the VoWi-Fi to the processor, and the processor caches the VoWi-Fi Fi switch status information, and update the registration status of the VoWi-Fi according to the VoWi-Fi switch status information.
  19. 一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至9中任一项所述的基于Wi-Fi的语音服务注册状态获取方法的步骤。An electronic device includes a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is executed as described in any one of claims 1 to 9. Of the method for acquiring the registration status of Wi-Fi-based voice service.
  20. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至9中任一项所述的方法的步骤。A computer-readable storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are realized.
PCT/CN2018/115111 2018-11-13 2018-11-13 Method and apparatus for acquiring registration state of wifi-based voice service, and electronic device WO2020097776A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880097894.7A CN112740634B (en) 2018-11-13 2018-11-13 Registration state acquisition method and device based on Wi-Fi voice service and electronic equipment
PCT/CN2018/115111 WO2020097776A1 (en) 2018-11-13 2018-11-13 Method and apparatus for acquiring registration state of wifi-based voice service, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/115111 WO2020097776A1 (en) 2018-11-13 2018-11-13 Method and apparatus for acquiring registration state of wifi-based voice service, and electronic device

Publications (1)

Publication Number Publication Date
WO2020097776A1 true WO2020097776A1 (en) 2020-05-22

Family

ID=70730974

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/115111 WO2020097776A1 (en) 2018-11-13 2018-11-13 Method and apparatus for acquiring registration state of wifi-based voice service, and electronic device

Country Status (2)

Country Link
CN (1) CN112740634B (en)
WO (1) WO2020097776A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449511A (en) * 2022-01-20 2022-05-06 惠州Tcl移动通信有限公司 Product activation method and device, electronic equipment and computer readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806000A (en) * 2021-09-24 2021-12-17 维沃移动通信有限公司 Display method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984343A (en) * 2012-10-10 2013-03-20 北京小米科技有限责任公司 Information cue method, device and mobile terminal
CN106713350A (en) * 2017-01-20 2017-05-24 深圳市万普拉斯科技有限公司 IMS (IP Multimedia Subsystem) registration status update reporting method and device
US10033856B1 (en) * 2015-07-07 2018-07-24 T-Mobile Usa, Inc. Determining quality of providing network services by a wireless communication network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899957B (en) * 2017-01-13 2019-12-31 深圳市万普拉斯科技有限公司 Method and device for correcting IMS registration state
CN106937273B (en) * 2017-01-20 2020-01-07 深圳市万普拉斯科技有限公司 HD icon display control method and device
CN107426813B (en) * 2017-05-11 2020-06-02 青岛海信移动通信技术股份有限公司 Network information display method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984343A (en) * 2012-10-10 2013-03-20 北京小米科技有限责任公司 Information cue method, device and mobile terminal
US10033856B1 (en) * 2015-07-07 2018-07-24 T-Mobile Usa, Inc. Determining quality of providing network services by a wireless communication network
CN106713350A (en) * 2017-01-20 2017-05-24 深圳市万普拉斯科技有限公司 IMS (IP Multimedia Subsystem) registration status update reporting method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449511A (en) * 2022-01-20 2022-05-06 惠州Tcl移动通信有限公司 Product activation method and device, electronic equipment and computer readable storage medium
CN114449511B (en) * 2022-01-20 2023-11-14 惠州Tcl移动通信有限公司 Product activation method, device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN112740634B (en) 2023-04-04
CN112740634A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN107430394B (en) Method, server, mobile terminal and device for data interaction with vehicle machine
WO2017107714A1 (en) Method and device for switching screen interface, and terminal
JP2023505129A (en) Application sharing method, electronic device and computer readable storage medium
WO2018103492A1 (en) Method for setting wifi roaming, and terminal device
WO2016150270A1 (en) Method and apparatus for processing group session message
US20160105418A1 (en) Method, system, device, and terminal for network initialization of multimedia playback device
WO2019001270A1 (en) Mobile terminal and split screen control method thereof, and computer readable storage medium
JP2018513499A (en) Communication message transmission method and wearable device
CN111083755B (en) Equipment switching method and related equipment
WO2016119580A1 (en) Method, device and terminal for starting voice input function of terminal
WO2021036711A1 (en) Network control method and related product
CN107592415B (en) Voice transmission method, terminal, and computer-readable storage medium
WO2020253340A1 (en) Navigation method and mobile terminal
WO2015010466A1 (en) Information display method and apparatus, and mobile terminal
CN111327458A (en) Configuration information sharing method, terminal device and computer readable storage medium
CN107295591B (en) Call method, device, computer storage medium and mobile terminal
WO2020010965A1 (en) Mobile terminal, and method and device for updating application thereof
WO2015024372A1 (en) Communication initiation method, apparatus, and mobile terminal
CN110072013B (en) Terminal control method and device
WO2020133350A1 (en) Interface display method and control terminal
WO2015117554A1 (en) Data processing method, apparatus, and terminal device
WO2014094600A1 (en) Mobile terminal and method for reducing power consumption thereof
TWI575458B (en) Method, device and system for providing service based on application
CN109976612B (en) Application function implementation method, wearable device, mobile phone and computer-readable storage medium
WO2020097776A1 (en) Method and apparatus for acquiring registration state of wifi-based voice service, and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18939801

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18939801

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15/09/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18939801

Country of ref document: EP

Kind code of ref document: A1