WO2022257472A1 - 一种热点连接方法、终端设备及电子设备 - Google Patents

一种热点连接方法、终端设备及电子设备 Download PDF

Info

Publication number
WO2022257472A1
WO2022257472A1 PCT/CN2022/072983 CN2022072983W WO2022257472A1 WO 2022257472 A1 WO2022257472 A1 WO 2022257472A1 CN 2022072983 W CN2022072983 W CN 2022072983W WO 2022257472 A1 WO2022257472 A1 WO 2022257472A1
Authority
WO
WIPO (PCT)
Prior art keywords
program
electronic device
hotspot
terminal device
processing instruction
Prior art date
Application number
PCT/CN2022/072983
Other languages
English (en)
French (fr)
Inventor
张震
岑飞
岳永保
任晓龙
Original Assignee
荣耀终端有限公司
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 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Priority to EP22741143.6A priority Critical patent/EP4124156A4/en
Priority to US17/793,283 priority patent/US20240179760A1/en
Publication of WO2022257472A1 publication Critical patent/WO2022257472A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1698Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a sending/receiving arrangement to establish a cordless communication link, e.g. radio or infrared link, integrated cellular phone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1686Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being an integrated camera
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/065Continuous authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • H04W12/082Access security using revocation of authorisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the invention relates to the field of communication technology, in particular to a hotspot connection method, terminal equipment and electronic equipment.
  • the electronic device when the electronic device cannot connect to WiFi, for example, when the user uses a laptop computer to work in an area without available WiFi, the electronic device can be connected to a mobile phone hotspot to surf the Internet.
  • the mobile phone can convert the received GPRS, 3G or 4G signals into hotspot WiFi, and generate the password of hotspot WiFi, and the user can connect and use hotspot WiFi on other electronic devices.
  • the electronic device can enable the connection mode of the wireless network to charge by traffic, so as to limit the traffic consumption after the electronic device is connected to the hotspot WiFi.
  • the user can set a threshold that restricts the upper limit of data usage, so that the program that consumes more than the threshold will be restricted from executing. For example, if the user sets the threshold to 1G, and the system automatically updates will consume 3G of data traffic, it will not Execute the automatic system update program.
  • users often need to adjust the threshold adaptively for different scenarios, resulting in many inconveniences in the use of hotspot WiFi.
  • the present invention provides a hotspot connection method, terminal equipment and electronic equipment. After the terminal equipment is connected to the electronic equipment, if the terminal user agrees to open the hotspot for the electronic equipment and close The program that is automatically executed when the network is connected allows the electronic device to switch to the trigger flow application mode and then connect to the hotspot WiFi. The automatic program that is designated to be closed by the terminal will no longer be actively executed, thereby reducing the traffic consumption of the terminal device.
  • the hotspot connection method provided by the embodiment of the first aspect is used for a terminal device, including:
  • the terminal device establishes a communication connection with the electronic device
  • the terminal device When the terminal device is successfully connected to the electronic device, it displays a first inquiry pop-up window, and the first inquiry pop-up window is used to ask the user whether to allow opening a hotspot for the electronic device;
  • the terminal device When the terminal device receives an instruction allowing the hotspot to be opened for the electronic device, it closes the first query pop-up window and displays a second query pop-up window; the second query pop-up window is used to ask the user whether to close the automatic program, and the automatic
  • the program is a program automatically executed by the electronic device when it is connected to the network;
  • the terminal device acquires a set of program indications submitted by the user through the second inquiry pop-up window; the program indications in the set of program indications are used to indicate to the electronic device the target programs designated by the user to be closed;
  • the terminal device sends a processing instruction to the electronic device, and the processing instruction is used to instruct the electronic device to connect to the hotspot after closing all target programs indicated by the program instruction set.
  • the inquiry mechanism of the terminal is triggered.
  • One asks through the first inquiry pop-up window whether to provide hotspot services for the electronic device, and the other asks whether to turn off the electronic device through the second inquiry pop-up window.
  • the executed program is automatically started, so that the user can decide whether to limit the automatic execution of the flow-consuming program on the electronic device according to the remaining traffic of the terminal device, the usage scenario of the electronic device and other factors.
  • the terminal device sending processing instructions to the electronic device includes: when the terminal device detects that the program indication set is a non-empty set, according to the program indication set The set generates and sends a first processing instruction to the electronic device, the first processing instruction is used to instruct the electronic device to request the terminal device to obtain the wifi password of the hotspot after closing all target programs indicated by the program instruction set.
  • the terminal device after acquiring the program indication set, the terminal device directly detects whether the program indication set is an empty set at the local end, and issues corresponding processing instructions according to the detection result. If the program indication set is a non-empty set, then send the first processing instruction to the electronic device, and the electronic device will close all the target programs indicated by the program indication set in response to the first processing instruction, so as to ensure that these target programs will not Automatically start, so as to implement the trigger traffic usage mode. After all target programs are closed, request the terminal device to obtain the wifi password of the hotspot, and automatically connect to the hotspot after obtaining the wifi password.
  • the terminal device sending the processing instruction to the electronic device includes: when the terminal device detects that the program instruction set is an empty set, sending the instruction to the electronic device A second processing instruction; the second processing instruction carries the wifi password of the hotspot, and is used to instruct the electronic device to automatically connect to the hotspot by using the wifi password.
  • the program indicates that the set is an empty set, and another type of processing instruction needs to be issued, that is, the second processing instruction, so that the electronic device can directly use the wifi password to connect to the hotspot in response to the second processing instruction without turning off Any automatic program on the local side, that is, after the electronic device is connected to the hotspot, it still maintains the scene state of automatically starting to execute the automatic program.
  • the terminal device sending a processing instruction to the electronic device includes: sending a third processing instruction to the electronic device; the third processing instruction carries a hotspot
  • the wifi password and the program indication set are used to instruct the electronic device to automatically connect to the hotspot according to the wifi password after closing all target programs indicated by the program indication set.
  • the terminal device instead of the terminal device detecting program indicating whether the set is an empty set, it can be executed by the electronic device side. After receiving the third processing instruction sent by the terminal device, the electronic device first detects whether the program instruction set is an empty set, and executes matching hotspot connection processing logic according to the detection result.
  • the program indication set is not an empty set, first close all the targets indicated by the program indication set Program, and then connect to the terminal hotspot to implement the trigger traffic usage mode, so that the electronic device can adapt to the terminal traffic situation when using the hotspot, avoid excessive consumption of terminal traffic, and ensure that the electronic device can access the Internet normally. Improved user experience.
  • the method further includes: the terminal device receives the The closed program information; the terminal device controls the opening of the hotspot function; the terminal device sends the wifi password of the hotspot to the electronic device, so that the electronic device connects to the hotspot.
  • the electronic device end first closes the target program, and the terminal device end turns on the hotspot and shares the wifi password, thereby avoiding the situation that the electronic device end accesses the hotspot when the target program has not been completely closed, thereby ensuring that the electronic device end accesses the hotspot.
  • the target program will not be actively executed, and it will not actively consume terminal traffic.
  • the method further includes: after sending a processing instruction to the electronic device, controlling the hotspot The function is turned on.
  • the terminal device sends a second processing instruction to the display device, indicating that the user does not restrict the execution of any automatic program on the electronic device side, then after sending the second processing instruction, the hotspot function can be directly enabled;
  • the display device sends the third processing instruction.
  • the electronic device responds to the third processing instruction, it will not directly connect to the hotspot, but needs to first detect whether the program instruction set is an empty set, and execute the corresponding processing logic based on the detection result. Therefore, the terminal device After the third processing instruction is issued, the hotspot function can also be turned on directly, without worrying that the target program is not closed after the electronic device is connected to the hotspot.
  • the terminal device before displaying the second inquiry pop-up window, sends first instruction information to the electronic device, and the first instruction information is used to instruct the electronic device to feedback
  • a program list the program list includes the program identifiers of all the automatic programs currently on in the electronic device; the terminal device receives the program list sent by the electronic device; the terminal device generates the second program list according to the program list
  • An inquiry pop-up window, the second inquiry pop-up window is used to enable the user to select empty or at least one target program from the program list, so that the program indication set acquired by the terminal device is an empty set or a non-identical set of programs in the program list. empty subset.
  • This implementation method displays the program list in the second query pop-up window, so that the end user can clearly know which data-consuming programs will be automatically started and executed after the electronic device is connected to the hotspot, which is convenient for the terminal user to check the automatic program according to the remaining data of the terminal. Choose not to close the automatic program, or close some or all of the automatic programs due to factors such as your usage needs.
  • the second query pop-up window displays information asking the user whether to close all automatic programs that are currently on in the electronic device, a confirmation control, and a cancel control;
  • the program indication set obtained by the terminal device is a complete set of program lists, and the program list includes the program identifiers of all automatic programs currently on in the electronic device;
  • the cancel control When triggered, the program indication set acquired by the terminal device is an empty set.
  • the terminal device displays the first inquiry pop-up window, if it does not receive an instruction allowing the opening of a hotspot for the electronic device within a time threshold, it only closes the second pop-up window.
  • An inquiry pop-up window the second inquiry pop-up window is not displayed.
  • the user may enter an instruction that does not allow the hotspot to be opened for the electronic device, or the input command may time out. In these cases, the first query pop-up window will be automatically closed, and the second query pop-up window will not be displayed. Guarantee The accuracy of the UI operation process.
  • the hotspot connection method provided by the embodiment of the second aspect is used for electronic equipment, including:
  • the electronic device establishes a communication connection with the terminal device
  • the electronic device After the electronic device is successfully connected to the terminal device, it receives the processing instruction sent by the terminal device;
  • the electronic device identifies the category of said processing instruction
  • the electronic device If the electronic device recognizes that the processing instruction belongs to the target category, it responds to the processing instruction, closes all target programs indicated by the program instruction set in the processing instruction, and then connects to the hotspot; wherein, the processing instruction of the target category includes a set of program indications, and the program indications in the set of program indications are used to indicate the target program to the electronic device, and the target program is an automatic program that is designated to be closed by the end user, and the automatic program is an electronic device that is connected to the network. Programs that execute automatically.
  • the processing instruction is one of the aforementioned first processing instruction, second processing instruction or third processing instruction.
  • the electronic device After receiving the processing instruction, first identify the type of processing instruction, wherein the first processing instruction and the third processing instruction belong to the target category, and the second processing instruction belongs to the non-target category.
  • the electronic device executes the corresponding processing logic to ensure that the target program is completely closed first, and then the electronic device is connected to the hotspot, and then the trigger traffic usage mode can be implemented, so that the electronic device end is in When using hotspots, it is more suitable for terminal traffic conditions, avoiding excessive consumption of terminal traffic, and ensuring that electronic devices can access the Internet normally, improving user experience.
  • the electronic device if the electronic device recognizes that the processing instruction belongs to the target category, in response to the processing instruction, close all target programs indicated by the program instruction set in the processing instruction , and then connecting to the hotspot, including: if the electronic device recognizes that the processing instruction is the first processing instruction, closing all target programs indicated by the program instruction set; the electronic device sends closed program information to the terminal device, The closed program information is used to notify the terminal device that the target program has been closed, and request the wifi password of the hotspot; the electronic device receives the wifi password sent by the terminal device, and uses the wifi password to automatically connect to the hotspot; wherein , the first processing instruction is a processing instruction sent by the terminal device when it receives an instruction allowing to open a hotspot for an electronic device, acquires a set of program instructions submitted by a terminal user, and detects that the set of program instructions is a non-empty set.
  • the electronic device if the electronic device recognizes that the processing instruction belongs to the target category, in response to the processing instruction, close all target programs indicated by the program instruction set in the processing instruction , and then connecting the hotspot, comprising: if the electronic device recognizes that the processing instruction is a third processing instruction, detecting whether the program instruction set is an empty set; the third processing instruction also includes the wifi password of the hotspot; If the device detects that the program indication set is a non-empty set, after closing all the target programs indicated by the program indication set, it uses the wifi password to automatically connect to the hotspot; if the electronic device detects that the program indication set is an empty set, then use the wifi password to automatically connect to the hotspot without closing any automatic program.
  • the method further includes: if the electronic device recognizes that the processing instruction is a second processing instruction of a non-target category, according to the wifi The password automatically connects to the hotspot without closing any automatic program; wherein, the second processing instruction is that the terminal device receives the instruction allowing the hotspot to be opened for the electronic device, acquires a set of program instructions submitted by the terminal user, and detects that the program Indicates the processing instruction sent when the collection is empty.
  • the method before the electronic device receives the processing instruction sent by the terminal device, the method further includes: when the electronic device receives the first indication information sent by the terminal device , sending the obtained program list to the terminal device; wherein, the program list includes the program identifiers of all automatic programs currently on in the electronic device, and the program list is used to enable the terminal user to select the target program.
  • the electronic device can send the program list maintained or acquired by the terminal to the terminal device after receiving the first instruction information, so that the second inquiry pop-up window generated by the terminal device can be integrated into the program list, which is convenient for the user to select from the program list. Select the target program to form and confirm the submission of a set of program instructions that meet the actual scene requirements.
  • a first connection unit configured to establish a communication connection between the terminal device and the electronic device
  • the display unit is configured to display a first query pop-up window when the terminal device is successfully connected to the electronic device, and the first query pop-up window is used to ask the user whether to allow opening a hotspot for the electronic device;
  • the display unit is further configured to close the first query pop-up window and display a second query pop-up window when receiving an instruction allowing the hotspot to be opened for the electronic device; the second query pop-up window is used to ask the user whether to close the An automatic program, the automatic program is a program automatically executed by the electronic device in a network connection state;
  • a set acquisition unit configured to acquire a set of program indications submitted by the user through the second query pop-up window; the program indications in the set of program indications are used to indicate to the electronic device the target program designated by the user to be closed;
  • the processing and sending and receiving unit is configured to send a processing instruction to the electronic device, and the processing instruction is used to instruct the electronic device to connect to the hotspot after closing all target programs indicated by the program instruction set.
  • the processing and sending and receiving unit is specifically configured to: when detecting that the program indication set is a non-empty set, generate and send the program indication set according to the program indication set to the electronic device
  • the first processing instruction is used to instruct the electronic device to request the terminal device to obtain the wifi password of the hotspot after closing all the target programs indicated by the program instruction set.
  • the processing and transceiving unit is specifically configured to: send a second processing instruction to the electronic device when detecting that the program instruction set is an empty set;
  • the second processing instruction carries the wifi password of the hotspot, and is used to instruct the electronic device to automatically connect to the hotspot by using the wifi password
  • the processing and transceiving unit is specifically configured to: send a third processing instruction to the electronic device; the third processing instruction carries the wifi password of the hotspot and the The program instruction set is used to instruct the electronic device to automatically connect to the hotspot according to the wifi password after closing all target programs indicated by the program instruction set.
  • the processing and transceiving unit is further configured to: receive the response from the electronic device to the first processing instruction The closed program information sent later; control the hotspot function to open; send the wifi password of the hotspot to the electronic device, so that the electronic device can connect to the hotspot.
  • the processing and sending and receiving unit is further configured to: send a processing instruction to the electronic device After that, the control hotspot function is enabled.
  • the processing and transceiving unit is further configured to: send first instruction information to the electronic device before the display unit displays the second inquiry pop-up window,
  • the first indication information is used to instruct the electronic device to feed back a program list, the program list including the program identifiers of all automatic programs that are currently turned on by the electronic device; receiving the program list sent by the electronic device;
  • the second query pop-up window is generated according to the program list, and the second query pop-up window is used to enable the user to select empty or at least one target program from the program list, so that the program indication set acquired by the terminal device is The empty set or a non-empty subset of the program list.
  • the display unit is further configured to: display in the second query pop-up window information asking the user whether to close all automatic programs that are currently turned on in the electronic device , a confirmation control and a cancellation control;
  • the confirmation control is used to make the set of program indications acquired by the terminal device be a complete set of program lists when triggered, and the program list includes all automatic programs currently in the open state of the electronic device the program identifier;
  • the cancel control is used to make the program indication set obtained by the terminal device an empty set when triggered.
  • the display unit is further configured to: after displaying the first inquiry pop-up window, if an instruction allowing to open a hotspot for the electronic device is not received within a time threshold, Then only the first query pop-up window is closed, and the second query pop-up window is not displayed.
  • a second connection unit configured to establish a communication connection between the electronic device and the terminal device
  • a transceiver unit configured to receive a processing instruction sent by the terminal device after the electronic device is successfully connected to the terminal device
  • a processing unit configured to identify the category of the processing instruction
  • the processing unit is further configured to, if it is recognized that the processing instruction belongs to the target category, respond to the processing instruction, close all target programs indicated by the program instruction set in the processing instruction, and then connect to the hot spot; wherein, the The processing instructions of the target category include a set of program indications, and the program indications in the set of program indications are used to indicate the target program to the electronic device. A program that is automatically executed by the device when it is connected to the network.
  • the processing unit is specifically configured to: if the processing instruction is identified as the first processing instruction, close all target programs indicated by the program instruction set;
  • the terminal device sends closed program information, and the closed program information is used to notify the terminal device that the target program has been closed, and requests the wifi password of the hotspot; receiving the wifi password sent by the terminal device, using the wifi password to automatically Connecting to the hotspot; wherein, the first processing instruction is sent when the terminal device receives an instruction allowing the opening of a hotspot for an electronic device, obtains a set of program instructions submitted by a terminal user, and detects that the set of program instructions is a non-empty set processing instructions.
  • the processing unit is specifically configured to: if the processing instruction is identified as a third processing instruction, detect whether the program instruction set is an empty set; the third The processing instruction also includes the wifi password of the hotspot; if it is detected that the program indication set is a non-empty set, after closing all the target programs indicated by the program indication set, the wifi password is used to automatically connect to the hotspot; if If it is detected that the program indication set is empty, then use the wifi password to automatically connect to the hotspot without closing any automatic program.
  • the processing unit is further configured to: if it is recognized that the processing instruction is a second processing instruction of a non-target category, according to the wifi The password automatically connects to the hotspot without closing any automatic program; wherein, the second processing instruction is that the terminal device receives the instruction allowing the hotspot to be opened for the electronic device, acquires a set of program instructions submitted by the terminal user, and detects that the program Indicates the processing instruction sent when the collection is empty.
  • the transceiving unit is further configured to: before receiving the processing instruction sent by the terminal device, when receiving the first indication information sent by the terminal device, obtain The received program list is sent to the terminal device; wherein, the program list includes the program identifiers of all automatic programs that are currently turned on in the electronic device, and the program list is used to enable the terminal user to select the target program therefrom.
  • the terminal device provided in the embodiment of the fifth aspect includes: a memory and at least one processor; the memory is used to store instructions; the at least one processor is used to execute the instructions in the memory, and execute the above-mentioned On the one hand, any one of the hotspot connection methods.
  • the electronic device provided by the embodiment of the sixth aspect includes: a memory and at least one processor; the memory is used to store instructions; the at least one processor is used to execute the instructions in the memory, and execute the above-mentioned The hotspot connection method described in any one of the two aspects.
  • the embodiment of the seventh aspect provides a computer-readable storage medium, including instructions, which, when run on a computer, cause the computer to execute the hotspot connection method described in any one of the above first aspects.
  • the embodiment of the eighth aspect provides a computer-readable storage medium, including instructions, which, when run on a computer, cause the computer to execute the hotspot connection method described in any one of the above second aspects.
  • the embodiment of the present application also provides a chip system, the chip system includes a processor and a memory, the memory stores program instructions, and when the program instructions are executed by the processor, the chip system executes the above aspects and various aspects thereof.
  • method in the implementation For example, generating or processing information involved in the methods described above.
  • the embodiment of the present application further provides a computer program product, which, when running on a computer, causes the computer to execute the methods in the above aspects and various implementation manners thereof.
  • Figure 1 exemplarily shows a schematic diagram of an application scenario
  • FIG. 2 exemplarily shows a schematic diagram of a terminal device displaying a personal hotspot page
  • FIG. 3 exemplarily shows a schematic diagram of an electronic device displaying a mobile phone connection page
  • FIG. 4 exemplarily shows a schematic diagram A of UI changes after the electronic device is successfully connected to the mobile phone
  • FIG. 5 exemplarily shows a schematic diagram B of UI changes after the electronic device is successfully connected to the mobile phone
  • FIG. 6 exemplarily shows a schematic diagram of a terminal device displaying a first inquiry pop-up window
  • FIG. 7 exemplarily shows a schematic diagram of the first type of second inquiry pop-up window displayed by the terminal device
  • FIG. 8 exemplarily shows a schematic diagram of a second type of second inquiry pop-up window displayed by the terminal device
  • Figure 9(a) exemplarily shows a flow chart of the first hotspot connection method executed by the terminal device
  • Figure 9(b) exemplarily shows a flow chart of the first hotspot connection method executed by the electronic device
  • Figure 9(c) exemplarily shows a flow chart of the second hotspot connection method executed by the terminal device
  • FIG. 10 exemplarily shows a flow chart of the second hotspot connection method executed by the electronic device
  • FIG. 11 exemplarily shows a flowchart of a third hotspot connection method executed by the terminal device
  • FIG. 12 exemplarily shows a flowchart of a third hotspot connection method executed by the electronic device
  • FIG. 13 exemplarily shows a flowchart of the fourth hotspot connection method executed by the terminal device
  • FIG. 14 exemplarily shows a flowchart of a fourth hotspot connection method executed by the electronic device
  • FIG. 15 exemplarily shows a flowchart of a fifth hotspot connection method executed by the terminal device
  • FIG. 16 exemplarily shows a flowchart of a fifth hotspot connection method executed by the electronic device
  • FIG. 17 exemplarily shows a signaling interaction diagram between a terminal device of the first type and an electronic device
  • FIG. 18 exemplarily shows a signaling interaction diagram between a second type of terminal device and an electronic device
  • FIG. 19 exemplarily shows a signaling interaction diagram between a third type of terminal device and an electronic device
  • FIG. 20 exemplarily shows a schematic structural diagram of a terminal device
  • FIG. 21 exemplarily shows a schematic structural diagram of an electronic device.
  • the scenario involves a terminal device 100 and an electronic device 200.
  • the terminal device 100 is a smart phone
  • the electronic device 200 includes but is not limited to a smart phone, a smart bracelet, a tablet computer, a notebook computer, a desktop computer, etc.
  • the terminal device 100 is the end that releases the hotspot and provides the hotspot wifi
  • the electronic device is the end that uses the hotspot wifi.
  • the personal hotspot page of the terminal device 100 is shown, the page is provided with a switch control of the personal hotspot, and the user can operate the switch control to switch the switch state of the hotspot function, and information such as the password of the hotspot wifi is also displayed in the page .
  • the terminal device 100 activates the hotspot function, it will release the hotspot wifi within a certain area of the scene.
  • the user chooses to access the network in the wireless local area network mode on the electronic device 200, and then selects the wifi name of the terminal device 100 that releases the hotspot, and enters the known After successfully connecting to the hotspot WiFi, you can access the Internet on the electronic device 200.
  • the data usage of the electronic device 200 is limited by setting a traffic threshold.
  • the user needs to set an appropriate threshold in different usage scenarios. For example, when the package of the user terminal device 100 contains sufficient traffic, the traffic threshold of the electronic device 200 will be set larger. ; When the remaining flow of the terminal device 100 is insufficient, and the electronic device 200 must use the terminal hotspot, the user can only reduce the flow threshold, which brings inconvenience to the user to use the hotspot wifi.
  • the purpose of this application is to ask the user on the terminal device 100 whether to provide a hotspot wifi for the electronic device 200 after the terminal device 100 establishes a communication connection with the electronic device 200, and if the user agrees, further ask whether it is necessary to turn off the electronic device 200.
  • the manner in which the terminal device 100 establishes a communication connection with the electronic device 200 is not limited.
  • the terminal device 100 has an NFC (Near Field Communication, short-range wireless communication) function
  • the devices at both ends can establish an NFC connection.
  • the terminal device needs to provide a hotspot
  • the terminal device needs to turn on the NFC function.
  • the user brings the NFC sensing area of the terminal device close to and aligns with the NFC tag of the electronic device. After the NFC sensing area responds, the NFC tag is successfully written and the connection is completed.
  • NFC Near Field Communication, short-range wireless communication
  • the terminal device 100 when the terminal device 100 detects that the NFC connection is successful, it displays a first inquiry pop-up window as shown in FIG. 6 on the UI interface.
  • a scheme of code scanning connection between the terminal device 100 and the electronic device 200 is also provided.
  • the communication protocol for the code scanning connection needs to be preset in the terminal device 100 and the electronic device 200, and the electronic device 200 can be configured with The target application of the communication protocol, such as a computer housekeeper, a mobile phone assistant, and the like.
  • the target application of the communication protocol such as a computer housekeeper, a mobile phone assistant, and the like.
  • the computer housekeeper application installed in the electronic device 200 as an example, after starting the computer housekeeper, select the mobile phone connection option to enter the mobile phone connection page shown in FIG. 3 .
  • the user can scan the entrance through the QR code of the terminal device or For apps with a code scanning function, go to the QR code image on the code scanning page.
  • the electronic device 200 After the electronic device 200 receives the code-scanned message sent by the terminal device 100 , the electronic device 200 is successfully connected to the terminal device 100 .
  • the UI changes as shown in FIG.
  • a third inquiry pop-up window and a second prompt message indicating that the terminal device is successfully connected to the electronic device are displayed.
  • the third query pop-up window is used to ask the user whether to use the mobile phone hotspot as a network, and the third query pop-up window is also provided with a third confirmation control and a third cancellation control.
  • the electronic device 200 If the electronic device 200 receives the user's click on the third confirmation control operation, then send a hotspot request to the terminal device 100, and the terminal device 100 responds to the hotspot request, and displays the first inquiry pop-up window as shown in Figure 6 on the UI interface; if the electronic device 200 receives the user's click on the third cancel control operation, the hotspot request is not sent to the terminal device 100, the third inquiry pop-up window is closed, and the electronic device 200 and the terminal device 100 respectively maintain the status quo.
  • the second prompt information can be canceled when the display time reaches a preset duration.
  • the UI changes as shown in FIG. Displaying the second prompt information and related function options, such as contacts, information, pictures, videos, audios, applications, hotspots, and the like.
  • the mobile phone hotspot can be set as the network, then the electronic device 200 sends a hotspot request to the terminal device 100, and the terminal device 100 responds to the hotspot request, and displays the first inquiry pop-up window shown in Figure 6 on the UI interface .
  • the manner in which the electronic device 200 sets the mobile phone hotspot as the network is not limited to the examples shown in FIG. 4 and FIG. 5 .
  • the terminal device 100 when the terminal device 100 detects that the NFC connection with the electronic device 200 is successful, or the terminal device 100 receives a hotspot request sent by the electronic device 200 after scanning the code, in the current UI interface
  • the first inquiry pop-up window shown in Figure 6 pops up.
  • the first query pop-up window is used to ask the user whether to allow the electronic device 200 to use the hotspot, which is equivalent to asking the user whether to open the hotspot for the electronic device 200.
  • the first query pop-up window is also provided with a first confirmation control and a first cancel control.
  • terminal device 100 receives the user's click operation on the first confirmation control, then close the first inquiry pop-up window, and display the second inquiry pop-up window as shown in Figure 7 or Figure 8;
  • the click operation of the first cancel control only closes the first query pop-up window, and does not display the second query pop-up window.
  • the user may neither click the first confirmation control nor the first cancel control in the first inquiry pop-up window for a long period of time, it is considered that the response timed out, so set according to the actual situation
  • the first timeout threshold start the timing when the first query pop-up window is displayed, if the timing duration is greater than the first timeout threshold and no click operation on the first confirmation control and the first cancel control is received, close the first query pop-up window .
  • the user can set the switch status of various automatic programs on the electronic device side.
  • the automatic program is a program that is automatically started and executed after the electronic device 200 is connected to the network.
  • the automatic program can be either the electronic device 200
  • the program automatically executed by the system may also be a program automatically executed by an application installed on the electronic device 200 . For example, on the system-related settings page, if you set the system to automatically upgrade the system when connected to the Internet, the automatic program "Automatic System Upgrade" is turned on; The automatic program "Automatically download attachments" is turned on.
  • Automatic programs are generally enabled by default, and users can switch the status of some automatic programs according to their personal wishes.
  • the terminal device 100 after receiving the user's click operation on the first confirmation control in the first query pop-up window, the terminal device 100 sends a first indication message to the electronic device 200, and the first indication message uses To notify the electronic device 200 that the terminal user agrees to open the hotspot for it.
  • the electronic device 200 queries all the automatic programs that are currently on in the whole machine, and summarizes the program identifications of these automatic programs into a program list, and then sends the program list to the terminal device 100; the terminal device 100 according to The received program list generates and displays the second inquiry pop-up window.
  • the program list specifically records the program identifier of the automatic program that the electronic device is currently on, and the program identifier can be an identifier preset for the automatic program, or an identifier of the automatic program.
  • Name, category, etc., the setting form of the program identification is not specifically limited.
  • the program ID is globally unique, that is, each automatic program in the program list corresponds to a unique program ID, and each program ID points to a unique automatic program, that is, there is a one-to-one mapping relationship between an automatic program and a program ID, and there is no one-to-one Many, many-to-one and many-to-many mapping relationships.
  • the electronic device 200 may maintain a program list locally, and the program list records program identifiers of all automatic programs that are currently enabled.
  • the program identification of the automatic program A will be deleted from the program list; when the automatic program B is switched from the closed state to the open state, the program of the automatic program B will be deleted.
  • the logo is added to the program list to realize the dynamic update of the program list and facilitate the management of various automatic programs.
  • the terminal device 100 sends a first indication message to the electronic device 200 after receiving the user's click operation on the first confirmation control in the first inquiry pop-up window; the electronic device 200 receives the first After indicating the information, the program list maintained by the machine is directly called, and the program list is synchronized to the terminal device 100, so that the terminal device 100 generates and displays the second query pop-up window according to the received program list.
  • the user selects the mobile phone hotspot as the network on the electronic device side, and the electronic device 200 needs to send a hotspot request to the terminal device 100, Then, the program list maintained by the machine may be carried in the hotspot request, and the terminal device 100 may obtain the program list after parsing the hotspot request.
  • the time node and implementation method for the terminal device 100 to obtain the program list are not limited to the description in the embodiment of this application, as long as the program list is obtained before the second query pop-up window is displayed.
  • the terminal device 100 after receiving the program list sent by the electronic device 200, the terminal device 100 generates and displays a second query pop-up window according to the program list, and the second query pop-up window is used to ask the user whether to close the automatic program
  • Fig. 7 shows the first kind of second inquiry pop-up window
  • the program list is displayed in the second inquiry pop-up window, which may include identifications such as the category or name of the automatic program, so that the user can identify each automatic program, for example, the program identification is For automatic system upgrade, automatic application update, automatic video playback, etc., each category has a corresponding selection control.
  • the automatic program of this category will be activated after the electronic device 200 is connected to the hotspot wifi.
  • Limit execution A select all control can also be set in the second inquiry pop-up window, and the user only needs to click the select all control once to select all the automatic programs of all categories in the program list.
  • a large category of automatic programs may also be subdivided into multiple subcategories.
  • you can set the drop-down control that is, "+” in Figure 7.
  • the user clicks on the drop-down control of the large category of video autoplay and a drop-down menu is displayed, which includes the names of all applications that enable video autoplay programs, such as Youku Video, Tencent Video, and iQiyi Video.
  • each application name has a corresponding selection control, so that users can choose which applications to close the video autoplay program according to the use needs, and the unselected applications can normally execute the video autoplay program, after the user selects the subcategory , click the pull-up control (that is, "-" in Figure 7) to hide the drop-down menu.
  • the user clicks the selection control of the large category that is, all subcategories are selected by default.
  • a second confirmation control A is also set in the second inquiry pop-up window.
  • the user selects the program identification of the restricted target program in the program list, he can click the second confirmation control A.
  • the terminal device 100 receives the user's click operation on the second confirmation control A, according to the program identifier of the target program selected and submitted by the user in the program list, it then constructs and generates a program indication set, which is a subset of the program list.
  • the program indication set is either an empty set, or includes at least one program indication.
  • the program indication is, for example, the program identification of a target program designated to be closed by the user, and the program identification may be The embodiment of the present application does not limit the preset identifier, name or category of the automatic program. By identifying the program indications included in the collection, the electronic device can know which target programs have been designated to be closed by the end user, and then control the closing of these target programs at the local end.
  • the user directly clicks the second confirmation control A without selecting any category/subcategory of automatic programs in the program list of the second inquiry pop-up window, and the terminal device 100 will recognize the program If the indication set is an empty set, then close the second query pop-up window, and control the hotspot function to open, and send a second indication message to the electronic device 200, the second indication message is used to instruct the electronic device 200 not to close any automatic program,
  • the wifi password of the hotspot of the terminal can be carried in the second indication information.
  • the electronic device 200 After receiving the second instruction information, the electronic device 200 connects to the hotspot wifi of the terminal device 100 according to the wifi password, and does not limit the execution of all automatic programs of the whole machine, that is, the automatic program can automatically start and execute after detecting that the hotspot wifi is successfully connected.
  • a second cancel control A can be set in the second inquiry pop-up window. No matter whether the user selects the target program in the program list, once the user clicks the second cancel control A, it will default to the authorized electronic program.
  • the device executes any automatic program that is turned on after connecting to the hotspot wifi.
  • the terminal device receives the user's click operation on the second cancel control A, it will recognize that the program instruction set is an empty set, close the second query pop-up window, and control the hotspot function to be enabled, and send the second instruction to the electronic device 200 message, the second indication message is used to instruct the electronic device 200 not to close any automatic program, and the second indication information may choose to carry the wifi password of the terminal hotspot.
  • the electronic device 200 After receiving the second instruction information, the electronic device 200 connects to the hotspot wifi of the terminal device 100 according to the wifi password, and does not restrict the execution of all automatic programs of the whole machine, that is, the automatic program can automatically start and execute after detecting that the hotspot wifi is successfully connected.
  • the terminal device 100 when the terminal device 100 receives the user's click operation on the second confirmation control A, it closes the second query pop-up window, and if it recognizes that the program indication set is a non-empty set, that is, the program indication set includes program identifiers of some or all of the automatic programs in the program list, generate third indication information according to the program indication set, and send the third indication information to the electronic device 200, the third indication information is used to indicate that the electronic device 200 Close all the target programs indicated by the program indication set; after the electronic device receives the third indication information, it obtains the program indication set, and switches the switching states of all the target programs in the program indication set to the closed state.
  • the terminal device 100 receives the user's click operation on the second confirmation control A, it closes the second query pop-up window, and if it recognizes that the program indication set is a non-empty set, that is, the program indication set includes program identifiers of some or all of the automatic programs in the program list, generate third indication information according to the program
  • the target program of the electronic device 200 The program is switched to the triggered traffic usage mode, that is, unless the user actively triggers the use of these target programs, the terminal traffic will be consumed, otherwise the closed target program will no longer actively consume the terminal traffic; after all the target programs are closed, the electronic device 200 sends fourth indication information to the terminal device 100, the fourth indication information is used to indicate to the terminal device 100 that all target programs indicated by the program indication set have been closed; after receiving the fourth indication information, the terminal device controls the hotspot function to be turned on , and share the wifi password of the terminal hotspot to the electronic device 200; after the electronic device 200 receives the wifi password, it can automatically connect to the hotspot wifi, and the target program in the machine will no longer actively start and execute during the use of the hotspot.
  • the second inquiry pop-up window shown in Figure 7 supports the user to choose empty (the program indication set is an empty set), select part (the program indication set is a non-empty subset of the program list) or all (the program indication set is a complete set) according to the user's will. automatic program. In other exemplary implementation manners, all automatic programs involved in the program list on the electronic device side may be closed by default without user selection.
  • the terminal device receives the user's click operation on the first confirmation control in the first query pop-up window, it closes the first query pop-up window, and does not send the above-mentioned first instruction information to the electronic device, but directly displays the message shown in Figure 8.
  • the second kind of second query pop-up window the second query pop-up window displays information asking the user whether to close the program that is automatically executed after the electronic device is connected to the hotspot, and is provided with a second confirmation control B and a second cancel control B.
  • the terminal device receives the user's click operation on the second cancel control B, then close the second inquiry pop-up window, control the hotspot function to open, optionally generate the second instruction information according to the wifi password of the hotspot, and send the second instruction information Give the electronic device so that the electronic device automatically connects to the terminal hotspot according to the wifi password.
  • any automatic program involved in the program list on the electronic device side is not closed.
  • the automatic program detects that the electronic device is successfully connected to the hotspot, it can automatically start and execute. That is to say, when the user clicks the second cancel control B in the second inquiry pop-up window, it is equivalent to that the program instruction set acquired by the terminal device is an empty set.
  • the terminal device receives the user's click operation on the second confirmation control B, it sends fifth instruction information to the electronic device, and the fifth instruction information is used to instruct the electronic device to turn off the terminal. All automatic programs that are currently enabled, that is, close all automatic programs involved in the program list maintained by the machine.
  • the electronic device closes all the automatic programs involved in the program list, and then feeds back sixth instruction information to the terminal device, and the sixth instruction information is used to notify the terminal device of all the automatic programs that are turned on.
  • the terminal device controls the hotspot function to be turned on in response to the received sixth instruction information, and sends the wifi password of the hotspot to the electronic device; after the electronic device receives the wifi password, it automatically connects to the terminal hotspot according to the wifi password, and the electronic device At this time, all automatic programs are turned off, and it is in the triggered traffic usage mode, that is, the applications and programs triggered by the user will consume the terminal traffic, and the electronic device will not actively consume the terminal traffic if it is not triggered.
  • the difference between the user clicking the second confirmation control B and the aforementioned second confirmation control A is only that: when the user clicks the second confirmation control A, the set of program indications obtained by the terminal device is a subset of the program list, that is, It is an empty set, a non-empty subset or a complete set, depending on the behavior of the user selecting the target program in the first type of second inquiry pop-up window, and when the user clicks the second confirmation control B, all automatic programs are closed by default. That is, the set of program indications acquired by the terminal device is the same as the program list, that is, the set of program indications is a complete set.
  • the electronic device after closing all the target programs indicated by the program instruction set, the electronic device sends the fourth instruction information or the sixth instruction information to the terminal device to instruct the terminal device to enable the hotspot function and feed back the wifi information of the hotspot. password to allow electronic devices to access terminal hotspots.
  • the terminal device acquires the set of program instructions, it can turn on the hotspot function, and generate a third processing instruction according to the set of program instructions and the wifi password of the hotspot, and send the third processing instruction to the electronic device ; After the electronic device receives the third processing instruction, it parses the third processing instruction, thereby obtaining the program instruction set and the wifi password.
  • the electronic device 200 can obtain relevant device information of the terminal device 100 in advance, such as device brand, device model, The wifi name of the hotspot, etc., after the terminal device 100 enables the hotspot function, when the electronic device connects to the hotspot, it can directly match the wifi name of the hotspot from the local wireless network connection, and then automatically enter the wifi password to access and use hotspot.
  • relevant device information of the terminal device 100 such as device brand, device model, The wifi name of the hotspot, etc.
  • the electronic device 200 is connected to the terminal device 100, and the obtained device model of the terminal is Honor V40
  • the "My Honor V40" matched by the electronic device in the wireless network connection list is the wifi name of the hotspot, and the name of the hotspot wifi After you have both the name and password, you can successfully connect to the hotspot.
  • the target program to be closed is from the designation of the program indication set; if the fifth indication information is received, the target program to be closed is the program list All programs in identify the corresponding automatic program.
  • the program identification of these closed target programs can be Deleted from the program list, that is, unless the subsequent user modifies the switch status of these target programs again, the closed status of these target programs can be valid for a long time.
  • the user may only wish to temporarily close the target program when connecting to the hotspot, while under other non-hotspot network connections, the user using the electronic device is allowed to execute these target programs.
  • the electronic device 200 switches the target programs matching the instruction information to the closed state, and makes the program list retain the program identifiers of these target programs, and the electronic device 200 accesses the hotspot After wifi, during the use of the hotspot, the target program remains closed; when the electronic device 200 detects that the hotspot connection is disconnected, for example, the terminal device 100 closes the hotspot function, or the electronic device 200 actively exits the hotspot, etc., then controls the previously closed target The program restarts, that is, the closed status of these target programs is only valid during the current hotspot connection.
  • the electronic device 200 after the electronic device 200 receives the third indication information or the fifth indication information, and switches the target program matching the indication information to the closed state, it may occur that the electronic device 200 has been unable to In the case of connecting to a hotspot, for example, after the terminal device 100 turns on the hotspot function and sends the wifi password to the electronic device 200, the terminal user artificially turns off the hotspot function, or there is an abnormal communication between the terminal device 100 and the electronic device 200, resulting in the electronic device not receiving the Wi-Fi password.
  • the wifi password of the hotspot, etc., that is, the hotspot connection timeout occurs on the electronic device side. Therefore, the second timeout threshold can be set according to the actual situation, and the timing is started when all target programs are closed. If the timing duration is greater than the second timeout threshold, the hotspot has not been successfully connected, and the closed target program before the control is re-opened.
  • the query mechanism of the terminal is triggered, one asks whether to provide hotspot services for the electronic device 200, and the other asks whether to turn off the automatic activation of the electronic device when it is connected to the network
  • the executed program (including the two implementation modes shown in FIG. 7 and FIG. 8 ) is convenient for the user to decide whether to limit the automatic execution of the flow consumption program at the electronic device end according to factors such as the remaining flow rate of the terminal device 100 and the usage scenario of the electronic device 200 .
  • the electronic device 200 After receiving the corresponding instruction information from the terminal device 100, the electronic device 200 either maintains the current normal traffic usage mode, or closes the target program specified by the terminal user, and implements a triggered traffic usage mode, so that the electronic device side is more efficient when using hotspots. Adapting to the terminal traffic conditions avoids excessive consumption of terminal traffic, and also ensures that the electronic device 200 can access the Internet normally, thereby improving user experience.
  • the foregoing content provides an example of the UI and combines the technical description with the UI, but the UI display effect, page settings and UI-based user interface provided by this application The operation is only an example, and the actual design and application shall prevail.
  • some links in the hotspot connection process can be adaptively adjusted and modified, and the connection mode between the terminal device 100 and the electronic device 200 is not limited to NFC and code scanning.
  • the indication information and processing instructions involved in the embodiments of the present application are exemplary terminology descriptions when two-terminal devices communicate, and are not specific limitations on information communication and interaction forms.
  • 9(a) provides an embodiment of the first hotspot connection method executed by the terminal device, including the following procedural steps:
  • Step S01 establishing a communication connection between a terminal device and an electronic device.
  • connection manner between the terminal device 100 and the electronic device 200 is not limited, for example, NFC connection, or a code scanning connection based on a target application may be used.
  • Step S02 when the terminal device is successfully connected to the electronic device, display a first pop-up window for asking whether the user is allowed to open a hotspot for the electronic device.
  • a first confirmation control and a first cancel control can be set in the first query pop-up window, and the first confirmation control is used to input the permission to open a hotspot for the electronic device when triggered.
  • the first cancel control is used to enter an instruction that does not allow opening a hotspot for an electronic device when it is triggered.
  • Step S03 when receiving the instruction of allowing the hotspot to be opened for the electronic device, close the first query pop-up window and display a second query pop-up window; the second query pop-up window is used to ask the user whether to close the automatic program.
  • the second inquiry pop-up window adopts the form of Fig. 7 or Fig. 8.
  • Fig. 7 supports the user to customize and select the target program to be closed from the program list. to request the program list;
  • FIG. 8 supports the user to close all the automatic programs currently on in the electronic device at one time, so there is no need to send the first prompt message to the electronic device.
  • Performing different input operations in FIG. 7 or FIG. 8 can obtain different sets of program instructions.
  • Step S04 acquiring a set of program instructions submitted by the user through the second inquiry pop-up window.
  • the set of program indications includes program indications, and the program indications are used to indicate to the electronic device target programs designated to be closed by the user.
  • the program indication set submitted by the user through the second query pop-up window shown in FIG. 7 may be an empty set, or a non-empty subset or complete set of the program list;
  • the program submitted by the window indicates that the set is an empty set or a complete set, and there is no non-empty proper subset.
  • Step S05 sending a processing instruction to the electronic device, where the processing instruction is used to instruct the electronic device to connect to the hotspot after closing all target programs indicated by the program instruction set.
  • the purpose of the terminal device sending processing instructions to the electronic device is to ensure that the electronic device side closes the target program specified by the terminal user according to the instructions set by the program instruction set (if it is not specified, there is no need to close the automatic program), and then connects Hotspots, to ensure that after all the automatic programs of electronic devices are converted to the trigger traffic usage mode, the electronic devices will use hotspots again, so as to avoid the violent consumption of terminal traffic by automatic programs.
  • FIG. 9(b) provides an embodiment of the first hotspot connection method executed on the electronic device side, including the following procedural steps:
  • Step S06 establishing a communication connection between the electronic device and the terminal device.
  • Step S07 after the electronic device is successfully connected to the terminal device, receiving a processing instruction sent by the terminal device.
  • Step S08 identifying the type of the processing instruction.
  • instruction categories can be divided into at least two categories, for example, one is a target category, and the other is a non-target category.
  • the processing instructions of the target category include a set of program instructions. After receiving and analyzing the processing instructions of the target category, the electronic device can obtain the set of program instructions, and close the corresponding target program according to the program instructions in the set, and then connect to the terminal hotspot , if the program instruction set is an empty set, that is, the program instruction set indicates that there is no target program to be closed; the non-target category processing instructions do not include the program instruction set, and when the electronic device receives and recognizes the non-target category processing instructions, You can directly use the obtained wifi password to connect to the hotspot without closing any automatic programs.
  • Step S09 judging whether the processing instruction belongs to the target category. If it belongs to the target category, execute step S010; if it belongs to the non-target category, execute step S011.
  • Step S010 in response to the processing instruction, close all target programs indicated by the program instruction set in the processing instruction, and then connect to the hotspot.
  • Step S011 obtaining the wifi password of the hotspot and automatically connecting to the hotspot without closing any automatic program.
  • Figure 9(a) and Figure 9(b) provide an example of a relatively high-level method for each terminal device.
  • the main equipment for executing this step, and the inquiry mode of the second inquiry pop-up window can further provide more detailed embodiments, which can be implemented with reference to the methods described below and Figure 9(c) to Figure 16 example.
  • the processing instruction can be subdivided into at least the first processing instruction, the second processing instruction, and the third processing instruction. After receiving the processing instruction, the electronic device recognizes the processing instruction, and then executes The processing logic that matches the processing instruction.
  • FIG. 9(c) provides an embodiment of the second hotspot connection method performed by the terminal device.
  • the terminal device 100 can be configured with the method program shown in FIG. 9(c), and the terminal device 100 Other software and hardware configurations are not limited, and the method corresponds to whether the electronic device side detects whether the indicated set is an empty set, and includes the following procedural steps:
  • Step S101 when the connection with the electronic device is successful, a first inquiry pop-up window is displayed.
  • the first query pop-up window is used to ask the user whether to allow opening the hotspot for the electronic device, that is, whether to authorize the electronic device 200 to access the terminal hotspot.
  • connection manner between the terminal device 100 and the electronic device 200 is not limited, for example, an NFC connection or a code scanning connection based on a target application may be used.
  • a first confirmation control and a first cancel control can be set in the first query pop-up window, the first confirmation control is used to input an instruction allowing the opening of a hotspot for the electronic device when triggered, and the first cancel control is used to Enter commands that do not allow hotspots for electronic devices.
  • Step S102 receiving an instruction input by the user in the first query pop-up window to allow opening a hotspot for the electronic device, closing the first query pop-up window, and displaying a second query pop-up window.
  • the second inquiry pop-up window adopts the form of Fig. 7 or Fig. 8.
  • Fig. 7 supports the user to customize and select the target program to be closed from the program list. to request the program list;
  • FIG. 8 supports the user to close all the automatic programs currently on in the electronic device at one time, so there is no need to send the first prompt message to the electronic device.
  • Performing different input operations in FIG. 7 or FIG. 8 can obtain different sets of program instructions.
  • Step S103 acquiring a set of program instructions submitted by the user through the second inquiry pop-up window.
  • Step S104 generate a third processing instruction according to the program instruction set and the wifi password of the hotspot, and send the third processing instruction to the electronic device, and control the hotspot function to be turned on.
  • the third processing instruction is used to instruct the electronic device to obtain the program instruction set and wifi password carried by the third processing instruction after receiving the third processing instruction, and firstly check whether the program instruction set is empty or not. If the electronic device determines that the program indication set is an empty set, then automatically access the terminal hotspot according to the wifi password without closing any automatic program; if the program indication set is a non-empty set, then close all target programs indicated by the program indication set, Then automatically connect to the terminal hotspot according to the wifi password.
  • the two steps of "controlling the activation of the hotspot function" and “sending the third processing instruction” can be executed synchronously, or in a certain sequence, because the electronic device receives In the third processing command, do not connect to the hotspot first, but first check whether the program indicates that the set is empty, and then execute the corresponding hotspot connection processing logic according to the detection result. password, the hotspot cannot be connected at this time.
  • FIG. 10 provides an embodiment of the second hotspot connection method performed on the electronic device side, and the electronic device 200 can be configured with the method shown in FIG. 10
  • the program, other software and hardware configurations of the terminal device 100 are not limited, and the method includes the following procedural steps:
  • Step S201 after successfully connecting with the terminal device, receiving a third processing instruction sent by the terminal device, the third processing instruction carrying the program instruction set and the wifi password of the hotspot.
  • Step S202 judging whether the program indication set is an empty set. If the program indicates that the set is an empty set, execute step S203, otherwise execute step S204.
  • Step S203 using the wifi password to automatically connect to the hotspot of the terminal without closing any automatic program that is currently on.
  • Step S204 closing all the target programs indicated by the program instruction set, and after detecting that all the target programs have been closed, automatically connecting to the hotspot of the terminal using the wifi password.
  • FIG. 11 provides an embodiment of the third hotspot connection method executed by the terminal device.
  • the terminal device 100 can be configured with the method program shown in FIG. 11 , and other software and hardware configurations of the terminal device 100 are not Restricted, the method corresponds to whether the terminal device detection program indicates whether the set is an empty set, including the following procedural steps:
  • Step S301 when the connection with the electronic device is successful, a first inquiry pop-up window is displayed.
  • the first inquiry pop-up window is used to inquire whether the user is allowed to open the hotspot for the electronic device, that is, whether to authorize the electronic device 200 to access the terminal hotspot.
  • Step S302 when receiving the instruction of allowing the hotspot to be opened for the electronic device, close the first query pop-up window and display a second query pop-up window, the second query pop-up window is used to ask the user whether to close the automatic program.
  • Step S303 acquiring a set of program instructions submitted by the user through the second inquiry pop-up window.
  • Step S304 judging whether the program indication set is an empty set. If the program indicates that the set is a non-empty set, execute steps S305 and S306; otherwise, if the program indicates that the set is an empty set, execute step S307.
  • Step S305 generating and sending a first processing instruction to the electronic device according to the program instruction set, the first processing instruction is used to instruct the electronic device to close all the target programs indicated by the program instruction set, and then request to the terminal device Get wifi password for hotspot.
  • Step S306 when the closed program information sent by the electronic device after responding to the first processing instruction is received, the hotspot function is controlled to be enabled, and the wifi password of the hotspot is sent to the electronic device.
  • the first processing instruction is equivalent to the aforementioned third instruction information; if the second inquiry pop-up window in the mode of FIG. 8 is adopted, the first processing instruction is equivalent to the aforementioned third instruction information. 5. instruction information.
  • the closed program information is used to notify the terminal device 100 that the target program indicated by the program indication set or the automatic program corresponding to all the program identifiers in the closed program list is used to notify the terminal device 100.
  • the information is equivalent to the aforementioned fourth indication information; if the second inquiry pop-up window in the mode of FIG. 8 is adopted, the closed program information is equivalent to the aforementioned sixth indication information.
  • the terminal device 100 receives the closed program information, and then shares the wifi password of the hotspot with the electronic device 200, so that the electronic device 200 uses the wifi password to automatically connect and use the terminal hotspot.
  • Step S307 sending a second processing instruction to the electronic device to control the hotspot function to be turned on.
  • the second processing instruction may carry a wifi password of the hotspot, and the second processing instruction is used to instruct the electronic device 200 not to close any automatic program, and to use the wifi password to automatically connect to the terminal hotspot.
  • the mode shown in FIG. 7 or FIG. 8 is adopted for the second query pop-up window, as long as the program instruction set is an empty set, the second processing instruction is equivalent to the aforementioned second instruction information, and the second processing instruction does not include the program instruction set.
  • the two steps of "controlling the activation of the hotspot function" and “sending the second processing instruction" can be executed synchronously, or can also be executed according to a certain sequence.
  • FIG. 12 provides an embodiment of a third hotspot connection method executed on the electronic device side.
  • the electronic device 200 can be configured with the method program shown in FIG. 12 , and the terminal Other software and hardware configurations of the device 100 are not limited, and the method includes the following procedural steps:
  • Step S401 after successfully connecting with the terminal device, receiving a processing instruction sent by the terminal device.
  • Step S402 identifying whether the processing instruction is a first processing instruction. If yes, execute step S403 and step S404; otherwise, if it is identified that the processing instruction is the second processing instruction, execute step S405.
  • the first processing instruction is sent by the terminal device 100 when it receives an instruction allowing to open a hotspot for the electronic device 200, obtains a set of program instructions submitted by the terminal user, and detects that the set of program instructions is a non-empty set; the first The second processing instruction is sent when the terminal device 100 receives the instruction allowing to open a hotspot for the electronic device 200, obtains a set of program instructions submitted by the terminal user, and detects that the set of program instructions is an empty set.
  • Step S403 close all target programs indicated by the program indication set, and then send closed program information to the terminal device.
  • the closed program information is used to notify the terminal device that all target programs are closed, and request the wifi password of the hotspot.
  • Step S404 receiving the wifi password of the hotspot sent by the terminal device, and using the wifi password to automatically connect to the hotspot.
  • Step S405 automatically connect to the hotspot according to the wifi password carried in the second processing instruction, without closing any automatic program.
  • the terminal device 100 can be configured with the method program shown in FIG. 13 , and other software and hardware configurations of the terminal device 100 are not limited.
  • the method includes the following program steps:
  • Step S501 when the connection with the electronic device is successful, a first inquiry pop-up window is displayed.
  • the first inquiry pop-up window is used to inquire whether the user is allowed to open the hotspot for the electronic device, that is, whether to authorize the electronic device 200 to access the terminal hotspot.
  • Step S502 judging whether an instruction allowing hotspot opening for the electronic device is received within the time threshold. If the judgment result is no, that is, the user clicks the first cancel control within the time threshold, or the user does not operate within the time threshold (response timeout), then execute step S503; if the judgment result is yes, then execute step S504.
  • Step S503 closing the first inquiry pop-up window.
  • Step S504 closing the first inquiry pop-up window, and sending first indication information to the electronic device.
  • the first indication information is used to notify the electronic device 200 that the terminal user agrees to open a hotspot for it, so that the electronic device 200 sends the program list to the terminal device 100, and the program list includes all the automatic programs that are currently on in the electronic device. Program ID.
  • Step S505 receiving the program list sent by the electronic device after responding to the first indication information, generating and displaying a second inquiry pop-up window according to the program list.
  • the program list is displayed in the second query pop-up window, and the program list displays the program identifications of all the automatic programs that are currently on in the electronic device.
  • the user can select empty, select some or all of the automatic programs, and the automatic
  • the program is named as the target program, and the program identifiers of all target programs can be combined into a program instruction set.
  • the second confirmation control A is used to confirm and submit the selected target program when triggered, and the second cancel control A is used to input when triggered Instructions that do not turn off any automated programs are equivalent to submitting an empty set of program instructions.
  • Step S506 acquiring a set of program instructions submitted by the user through the second inquiry pop-up window.
  • Step S507 judging whether the program indication set is an empty set. If the judgment result is yes, execute step S508; if the judgment result is no, execute steps S509-S510.
  • Step S508 closing the second query pop-up window, controlling the hotspot function to be enabled, and sending a second processing instruction to the electronic device.
  • the second processing instruction may carry the wifi password of the hotspot, and the second processing instruction is used to instruct the electronic device not to close any automatic program, and to connect to the terminal hotspot according to the wifi password.
  • Step S509 closing the second inquiry pop-up window, generating a first processing instruction according to the program instruction set, and sending the first processing instruction to the electronic device.
  • the first processing instruction is used to instruct the electronic device to close all the target programs indicated by the program instruction set, and send the closed program information to the terminal device after all the target programs are closed.
  • Step S510 when receiving the closed program information sent by the electronic device, control the function of the hotspot to be turned on, and send the wifi password of the hotspot to the electronic device.
  • the electronic device 200 After the electronic device 200 receives the wifi password, it can automatically connect to the hotspot wifi.
  • the electronic device is in the triggered traffic usage mode, and the closed automatic program will not be actively started and executed unless it is triggered by the user.
  • FIG. 14 shows an embodiment of the fourth hotspot connection method performed by the electronic device side.
  • the electronic device 200 can be configured with the method shown in FIG. 14 , and the electronic device 200 Other software and hardware configurations are not limited, and the method includes the following procedural steps:
  • Step S601 after establishing a communication connection with the terminal device, receiving first indication information sent by the terminal device.
  • the communication connection mode of the devices at both ends is not limited to NFC connection, code scanning connection, etc.
  • the first indication information is sent by the terminal device after receiving the instruction of allowing the hotspot to be opened for the electronic device.
  • Step S602 acquiring a program list, and sending the program list to the terminal device.
  • the program list includes the program identifiers of all the automatic programs that are currently enabled on the electronic device, and the program list is used to enable the terminal user to select a target program to be closed to form a program instruction set. According to whether the program indicates that the set is an empty set, two branch logics may be included. The first branch logic corresponds to step S603, and the second branch logic corresponds to steps S604 to S606.
  • Branch line logic one Step S603, receiving the second processing instruction sent by the terminal device, connecting to the terminal hotspot according to the wifi password carried in the second processing instruction, without closing any automatic program.
  • the second processing instruction is sent by the terminal device when it detects that the program instruction set is an empty set, and the second processing instruction may carry the wifi password shared when the terminal device turns on the hotspot function, so that the electronic device end can access hotspot.
  • Step S604 receiving the first processing instruction sent by the terminal device, and acquiring a program instruction set.
  • the first processing instruction is generated and sent by the terminal device according to the program instruction set when the terminal device detects that the program instruction set is non-empty. Therefore, the electronic device can obtain the program instruction set after parsing the first processing instruction.
  • Step S605 close all target programs indicated by the program indication set, and then send closed program information to the terminal device.
  • the closed program information is used to instruct the terminal device to enable the hotspot function, and to feed back the wifi password of the hotspot.
  • the processing instruction is ⁇ off ⁇ Type1: automatic system upgrade; Type2: automatic application upgrade; Type3: automatic playback of Tencent video; Type4: automatic download of attachments by mailbox master ⁇ , where the initial field of the processing instruction is "off " is used to identify the information type as the first processing instruction, indicating that the four target programs of Type1 to Type4 need to be closed, and the obtained program instruction set is ⁇ Type1: automatic system upgrade; Type2: automatic application update; Type3: automatic update of Tencent Video Play; Type4: Mailbox Master automatically downloads attachments ⁇ , and then the electronic device can issue corresponding control instructions to the corresponding underlying modules according to the program identification of the target program, such as issuing the control to close the "automatic system upgrade” to the system management module Instructions, issue a control instruction to disable "automatic application update” to the application management module, issue a control instruction to disable "automatic video playback” to the application program of Tencent Video, and issue a control instruction to disable "automatic download of attachments" to the application program
  • the processing instruction here is only exemplary, and does not refer to the actual structure and content.
  • the electronic device can adaptively execute the operation of closing the program according to the type of the target program, and the method of controlling the closing of the program is not limited.
  • Step S606 receiving the wifi password of the hotspot sent by the terminal device, and connecting to the terminal hotspot according to the wifi password.
  • the terminal device 100 can be configured with the method program shown in FIG. 15 , and other software and hardware configurations of the terminal device 100 are not limited. The method includes the following steps:
  • Step S701 when the connection with the electronic device is successful, a first inquiry pop-up window is displayed.
  • the first inquiry pop-up window is used to inquire whether the user is allowed to open the hotspot for the electronic device, that is, whether to authorize the electronic device 200 to access the terminal hotspot.
  • Step S702 judging whether an instruction allowing hotspot opening for the electronic device is received within the time threshold. If the judgment result is no, that is, the user clicks the first cancel control within the time threshold, or the user does not operate within the time threshold (response timeout), then execute step S703; if the judgment result is yes, then execute step S704.
  • Step S703 closing the first inquiry pop-up window.
  • Step S704 closing the first inquiry pop-up window and displaying the second inquiry pop-up window.
  • the second query pop-up window is used to ask the user whether to close all the programs that are automatically executed after the electronic device is connected to the hotspot.
  • the second confirmation control B and the second confirmation control B can be optionally set in the second query pop-up window.
  • Cancel control B, the second confirmation control B is used to confirm closing all automatic programs when triggered, that is, the program indication set is a non-empty complete set; the second cancel control B is used to input an instruction not to close any automatic program when triggered, that is, the program Indicates that the collection is an empty set.
  • Step S705 judging whether a confirmation closing program instruction input by the user in the second inquiry pop-up window is received. If the judgment result is no, it means that the user has clicked the second cancel control B in the second inquiry pop-up window, and then execute step S706; if the judgment result is yes, it means that the user has clicked the second confirmation control B in the second inquiry pop-up window , execute S707-S708.
  • Step S706 closing the second query pop-up window, controlling the hotspot function to be enabled, and sending a second processing instruction to the electronic device.
  • the second processing instruction carries the wifi password of the hotspot, and is used to instruct the electronic device to directly connect to the terminal hotspot according to the wifi password, without closing any automatic program involved in the program list.
  • Step S707 closing the second query pop-up window, and sending fifth instruction information to the electronic device.
  • the fifth instruction information is used to instruct the electronic device to close all automatic programs that are currently turned on, and send sixth instruction information to the terminal device after closing all automatic programs involved in the program list.
  • Step S708 when receiving the sixth indication information sent by the electronic device, control the function of the hotspot to be turned on, and send the wifi password of the hotspot to the electronic device.
  • the electronic device 200 After the electronic device 200 receives the wifi password, it can automatically connect to the hotspot wifi.
  • the electronic device is in the triggered traffic usage mode, and the closed automatic program will not be actively started and executed unless it is triggered by the user.
  • FIG. 16 shows an embodiment of the fifth hotspot connection method executed by the electronic device end.
  • the electronic device 200 can be configured with the method shown in FIG. 16 , and other software and hardware of the electronic device 200 The configuration is not limited, and the method includes the following procedural steps:
  • Step S801 establishing a communication connection with a terminal device.
  • the communication connection mode of the devices at both ends is not limited to NFC connection, code scanning connection, etc.
  • two branch logics may be included, branch logic three corresponds to step S802, and branch logic four corresponds to steps S803 and S804.
  • Branch line logic three Step S802, receiving the second processing instruction sent by the terminal device, connecting to the terminal hotspot according to the wifi password carried in the second processing instruction, without closing any automatic program.
  • the second processing instruction is sent by the terminal device when it receives the click operation on the second cancel control B, and the second processing instruction may carry the wifi password shared when the terminal device turns on the hotspot function, so that the electronic device Access terminal hotspot.
  • Step S803 receiving fifth instruction information sent by the terminal device, closing all automatic programs that are currently enabled, and then sending sixth instruction information to the terminal device.
  • the fifth instruction information is sent by the terminal device when it receives the click operation on the second confirmation control B, and the sixth instruction information is used to instruct the terminal device to enable the hotspot function and feed back the wifi password of the hotspot.
  • Step S804 receiving the wifi password of the hotspot sent by the terminal device, and connecting to the terminal hotspot according to the wifi password.
  • Both the aforementioned first processing instruction and the third processing instruction belong to the target category, and the second processing instruction belongs to the non-target category.
  • an instruction identifier can be set in a specified field in the processing instruction, and the electronic device can learn the specific type of the processing instruction by reading and identifying the instruction identifier. As an example only, if the electronic device read instruction is identified as orderT1, then the processing instruction is identified as the first processing instruction in the target category; if the electronic device read instruction is identified as orderT3, then the processing instruction is identified as the first processing instruction in the target category The third processing instruction of the electronic device, if the identification of the instruction read by the electronic device is orderNOOFF, it is recognized that the processing instruction is a second processing instruction of a non-target category.
  • a set field may be set in the instruction, and the set field is used to record a set of program indications acquired by the terminal device.
  • the set of program indications may be an empty set, a program list
  • the non-empty proper subset or complete set of the electronic device can obtain the set of program instructions by reading the set field in the processing instruction. If the processing instruction is the first processing instruction, then directly close all the target programs indicated by the program instruction set and then connect to the terminal hotspot; if the processing instruction is the third processing instruction, after obtaining the program instruction set, first check whether the set is Empty set, and execute the corresponding processing logic according to the detection structure.
  • the set field may not be set in the processing instruction, or the set field may be set to be an empty field.
  • a password field can also be set in the second processing instruction, and the wifi password of the terminal hotspot is recorded in the password field, and the electronic device recognizes that the second processing instruction has been received, and then reads the password field to obtain the wifi password, namely Can automatically access the terminal hotspot.
  • FIG. 17 exemplarily provides the first signaling interaction logic when performing a hotspot connection. Both ends of the interaction involve the terminal device 100 and the electronic device 200, and the terminal device 100 and the electronic device 200 perform NFC Connecting and judging the emptyness of the instruction set by the terminal device as an example, corresponding to the second inquiry pop-up window shown in Figure 7, includes the following program steps:
  • Step (A1) terminal device side: when receiving the user input to enable the NFC operation, enable the NFC function.
  • the NFC function is turned on and the electronic device 200 is powered on and working normally, the user approaches and aligns the NFC sensing area of the terminal device 100 with the NFC tag of the electronic device to establish an NFC connection between the two devices.
  • Step (A2) terminal device side: when it is detected that the NFC sensing area has responded, it means that the NFC connection between the terminal device 100 and the electronic device 200 is successful, and a first inquiry pop-up window is displayed. If the terminal device 100 does not respond, the NFC connection of the dual-end device fails, and the terminal device 100 and the electronic device 200 maintain the status quo.
  • Step (A3) terminal device side: when receiving an instruction from the user input through the first query pop-up window to allow hotspot opening for the electronic device within the time threshold, close the first query pop-up window and send the first instruction information to the electronic device . If the user enters an instruction to allow hotspot opening for electronic devices after exceeding the time threshold, or the user enters an instruction not to allow hotspots for electronic devices through the first query pop-up window, only the first query pop-up window will be closed, and no hotspot information will be sent to the electronic device. Send the first instruction message, and the second inquiry pop-up window will not be displayed later.
  • Step (A4) the electronic device side: after receiving the first indication information, obtain the program list of the device, and send the program list to the terminal device.
  • the program list records the program identifiers of all automatic programs that are currently turned on in the electronic device.
  • Step (A5) terminal device side: after receiving the program list, generate and display a second inquiry pop-up window according to the program list.
  • the program list is displayed to the terminal user in the second inquiry pop-up window, so that the user can select the target program that needs to be closed and executed from the program list, so as to form a program indication set according to the program identifier of the selected target program.
  • Step (A6) terminal device side: Acquire a set of program instructions submitted by the user through the second query pop-up window.
  • the program indicates that the collection is empty or non-empty. For example, the user clicks the second confirmation control A without selecting any target program in the second inquiry pop-up window, or finally clicks the second cancel control A regardless of whether the user selects the target program. , the program indicates that the sets are all empty sets.
  • Step (A7) terminal equipment side: judging whether the program indication set is an empty set. If the program indicates that the set is an empty set, execute steps (A8) and (A9); if the program indicates that the set is not empty, then execute steps (A10) to (A13).
  • Step (A8) terminal device side: close the second query pop-up window, control the hotspot function to open, generate second instruction information according to the wifi password of the hotspot, and send the second instruction information to the electronic device.
  • Step (A9) electronic device end: After receiving the second instruction information, automatically connect to the hotspot of the terminal according to the obtained wifi password, and do not close any automatic program. That is, after the electronic device is successfully connected to the hotspot, the automatic program detects that the electronic device is connected to the wifi network, and is allowed to start and execute automatically.
  • Step (A10) terminal device side: close the second inquiry pop-up window, generate third instruction information according to the program instruction set, and send the third instruction information to the electronic device.
  • Step (A11) the electronic device side: in response to the third instruction information, after closing all the target programs indicated by the program instruction set, send the fourth instruction information to the terminal device.
  • Step (A12) terminal device side: after receiving the fourth instruction information, control the hotspot function to be turned on, and send the wifi password of the hotspot to the electronic device.
  • Step (A13) electronic device end: automatically connect to the terminal hotspot according to the received wifi password.
  • FIG. 18 exemplarily provides the second signaling interaction logic when performing a hotspot connection. Both ends of the interaction involve the terminal device 100 and the electronic device 200, and the terminal device 100 and the electronic device 200 scan Code connection and the electronic device side judges the program to indicate the emptyness of the set as an example, including the following program steps:
  • Step (B1) electronic device side: start the target application when receiving the operation of starting the target application input by the user.
  • the target application is an application installed in an electronic device that has the function of connecting to a mobile phone, such as a computer housekeeper and a mobile phone connection assistant. Realize the scanning code connection of the devices at both ends.
  • Step (B2) electronic device side: generate and display a QR code image on the mobile phone connection page of the target application.
  • Step (B3) terminal device side: when receiving the user's operation of scanning the QR code image, send a scanned code message to the electronic device.
  • Step (B4) electronic device end: After receiving the scanned code message, display a prompt message indicating that the electronic device is successfully connected to the terminal device.
  • Step (B5) electronic device side: when receiving the user's operation of selecting the terminal hotspot as the wireless network, send a hotspot request to the terminal device. If the user does not input the operation of selecting the terminal hotspot as the wireless network, it means that the electronic device end user does not use the terminal hotspot, then no hotspot request is sent, and the terminal device 100 and the electronic device 200 maintain the status quo.
  • Step (B6) terminal device side: in response to the received hotspot request, display a first inquiry pop-up window.
  • Step (B7) terminal device side: when receiving an instruction input by the user through the first query pop-up window to allow hotspot opening for the electronic device within the time threshold, close the first query pop-up window and display the second query pop-up window. If the user enters an instruction to allow hotspot opening for electronic devices after the time threshold is exceeded, or the user enters an instruction not to allow hotspot opening for electronic devices through the first query pop-up window, only the first query pop-up window will be closed and the second pop-up window will not be displayed. Ask popup.
  • Step (B8) terminal device side: Acquire a set of program instructions submitted by the user through the second query pop-up window.
  • the program indication set is an empty set or non-empty, where the user clicks the second confirmation control A without selecting any target program in the first type of second inquiry pop-up window, or finally clicks the second confirmation control A no matter whether the user selects the target program or not Cancel control A, or the user clicks the second cancel control B in the second type of second query pop-up window, the program indicates that the set is empty.
  • Step (B9) terminal device side: generate a third processing instruction according to the program instruction set and the wifi password of the hotspot, and send the third processing instruction to the electronic device, and control the hotspot function to start.
  • Step (B10) the electronic device side: after receiving the third processing instruction, obtain the program instruction set and the wifi password.
  • Step (B12) electronic device end: automatically connect to the terminal hotspot according to the wifi password, without closing the automatic program that is currently on.
  • Step (B13) electronic device end: close all target programs indicated by the program instruction set, and after detecting that all target programs have been closed, automatically connect to the terminal hotspot according to the wifi password.
  • FIG. 19 exemplarily provides a third signaling interaction logic when performing a hotspot connection. Both ends of the interaction involve the terminal device 100 and the electronic device 200, and the terminal device 100 and the electronic device 200 perform scanning. Connect and let the terminal device determine the emptyness of the program indication set as an example, corresponding to the second query pop-up window shown in Figure 8, including the following program steps:
  • Step (C1) electronic device side: start the target application when receiving the operation of starting the target application input by the user.
  • the target application is an application installed in an electronic device that has the function of connecting to a mobile phone, such as a computer housekeeper and a mobile phone connection assistant. Realize the scanning code connection of the devices at both ends.
  • Step (C2) electronic device side: generate and display a QR code image on the mobile phone connection page of the target application.
  • Step (C3) terminal device side: when receiving the user's operation of scanning the QR code image, send a message of scanned code to the electronic device.
  • Step (C4) electronic device end: After receiving the scanned code message, display a prompt message indicating that the electronic device is successfully connected to the terminal device.
  • Step (C5) electronic device side: when receiving the user's operation of selecting the terminal hotspot as the wireless network, send a hotspot request to the terminal device. If the user does not input the operation of selecting the terminal hotspot as the wireless network, it means that the electronic device end user does not use the terminal hotspot, then no hotspot request is sent, and the terminal device 100 and the electronic device 200 maintain the status quo.
  • Step (C6) terminal device side: in response to the received hotspot request, display a first inquiry pop-up window.
  • Step (C7) terminal device side: when receiving an instruction from the user to allow opening a hotspot for the electronic device through the first query pop-up window within the time threshold, close the first query pop-up window and display the second query pop-up window. If the user enters an instruction to allow hotspot opening for electronic devices after the time threshold is exceeded, or the user enters an instruction not to allow hotspot opening for electronic devices through the first query pop-up window, only the first query pop-up window will be closed and the second pop-up window will not be displayed. Ask popup.
  • the second query pop-up window includes a second confirmation control B and a second cancellation control B. If the user clicks the second confirmation control B, the terminal device receives the confirmation instruction to close the program; if the user clicks the second cancellation control B , that is, the terminal does not receive a confirmation command to close the program.
  • Step (C8) terminal equipment side: judge whether to receive the confirmation closing program instruction that the user enters in the second inquiry pop-up window; If the judgment result is no, then execute step (C9) ⁇ step (C10); , then execute step (C11) to step (C14).
  • Step (C9) terminal device side: close the second query pop-up window, control the hotspot function to be turned on, and send a second instruction message to the electronic device.
  • the wifi password of the hotspot is carried in the second indication information.
  • Step (C10) electronic device end: after receiving the second instruction information, automatically connect to the hotspot of the terminal according to the obtained wifi password, and do not close any automatic program. That is, after the electronic device is successfully connected to the hotspot, the automatic program detects that the electronic device is connected to the wifi network, and is allowed to start and execute automatically.
  • Step (C11) terminal device side: close the second query pop-up window, and send fifth instruction information to the electronic device.
  • Step (C12) the electronic device side: after receiving the fifth instruction information, close the automatic programs corresponding to all the program identifiers in the program list, and then send the sixth instruction information to the terminal device.
  • Step (C13) terminal device side: after receiving the sixth instruction information, control the hotspot function to be turned on, and send the wifi password of the hotspot to the electronic device.
  • Step (C14) electronic device end: automatically connect to the terminal hotspot according to the received wifi password.
  • the communication interaction logic between the terminal device and the electronic device is not limited to the examples shown in FIGS. 17 to 19 .
  • the communication interaction logic between the terminal device and the electronic device is not limited to the examples shown in FIGS. 17 to 19 .
  • the connection mode between the two-terminal devices the query mode of the second query pop-up window, the execution subject of the emptyness of the program instruction set, and the requirements of specific usage scenarios, based on the foregoing embodiments, Appropriate combination, replacement, expansion or modification are performed on the above, so as to obtain more implementation solutions and communication interaction logics suitable for hotspot access scenarios, which are not listed in the embodiments of the present application.
  • an embodiment of the present application provides a terminal device, including a first connection unit 110 , a display unit 120 , a collection acquisition unit 130 , and a processing and transceiving unit 140 .
  • the first connection unit 110 is configured to establish a communication connection between the terminal device and the electronic device;
  • the display unit 120 is configured to display a first query pop-up window when the terminal device is successfully connected to the electronic device, and the first query pop-up window is used to ask the user whether to allow opening a hotspot for the electronic device;
  • the display unit 120 is further configured to close the first query pop-up window and display a second query pop-up window when receiving an instruction allowing the hotspot to be opened for the electronic device; the second query pop-up window is used to ask the user whether to closing the automatic program, the automatic program is a program automatically executed by the electronic device when it is connected to the network;
  • the set acquiring unit 130 is configured to acquire a set of program indications submitted by the user through the second inquiry pop-up window; the program indications in the set of program indications are used to indicate to the electronic device the target program designated to be closed by the user;
  • the processing and transceiving unit 140 is configured to send a processing instruction to the electronic device, and the processing instruction is used to instruct the electronic device to connect to the hotspot after closing all target programs indicated by the program instruction set.
  • the processing and transceiving unit 140 is specifically configured to: when detecting that the program instruction set is a non-empty set, generate and send the first processing instruction set to the electronic device according to the program instruction set. Instructions, the first processing instruction is used to instruct the electronic device to request the terminal device to obtain the wifi password of the hotspot after closing all the target programs indicated by the program instruction set.
  • the processing and transceiving unit 140 is also configured to: receive the closed program information sent by the electronic device after responding to the first processing instruction; control the opening of the hotspot function; send the wifi password of the hotspot to the an electronic device, so that the electronic device is connected to the hotspot.
  • the processing and transceiving unit 140 is specifically configured to: send a second processing instruction to the electronic device when detecting that the program instruction set is an empty set; the second processing The instruction carries the wifi password of the hotspot, and the second processing instruction is used to instruct the electronic device not to close any automatic program, and use the wifi password to automatically connect to the hotspot.
  • the processing and transceiving unit 140 is further configured to control the hotspot function to be turned on after sending the second processing instruction to the electronic device.
  • the processing and transceiving unit 140 is specifically configured to: generate a third processing instruction according to the program instruction set and the wifi password of the hotspot; the third processing instruction is specifically used to instruct the electronic device to The detection program indicates whether the set is an empty set, and executes corresponding processing logic according to the detection result.
  • the processing and transceiving unit 140 is further configured to control the hotspot function to be turned on after sending the third processing instruction to the electronic device.
  • the processing and transceiving unit 140 is further configured to: before the display unit 120 displays the second query pop-up window, send first instruction information to the electronic device, the The first indication information is used to instruct the electronic device to feed back a program list, the program list includes the program identifiers of all automatic programs currently on in the electronic device; receive the program list sent by the electronic device; according to the The program list generates the second query pop-up window, and the second query pop-up window is used to enable the user to select empty or at least one target program from the program list, so that the program indication set acquired by the terminal device is an empty set or a non-empty subset of the program list.
  • the display unit 120 is further configured to: display in the second query pop-up window information asking the user whether to close all automatic programs that are currently on in the electronic device, and a confirmation control and a cancel control;
  • the confirmation control is used to make the set of program instructions acquired by the terminal device be a complete set of program lists when triggered, and the program list includes the program identifications of all automatic programs that are currently on in the electronic device ;
  • the cancel control is used to make the set of program instructions acquired by the terminal device an empty set when triggered.
  • the display unit 120 is further configured to: after displaying the first inquiry pop-up window, if an instruction allowing the hotspot to be opened for the electronic device is not received within a time threshold, only close the The first query pop-up window does not display the second query pop-up window.
  • the terminal device 100 corresponds to the hotspot connection method performed by the terminal device provided by the above method embodiment
  • the specific implementation of each unit/module of the terminal device 100 is the same concept as the above method embodiment, therefore, regarding the terminal device 100
  • the functional configuration of each unit/module reference may be made to the description of the hotspot connection method performed by the terminal device in the above method embodiments, and details are not repeated here.
  • an embodiment of the present application provides an electronic device, including a second connection unit 210 , a transceiver unit 220 and a processing unit 230 .
  • the second connection unit 210 is configured to establish a communication connection between the electronic device and the terminal device;
  • the transceiver unit 220 is configured to receive a processing instruction sent by the terminal device after the electronic device is successfully connected to the terminal device;
  • a processing unit 230 configured to identify the type of the processing instruction
  • the processing unit 230 is further configured to, if it is recognized that the processing instruction belongs to the target category, respond to the processing instruction, close all target programs indicated by the program instruction set in the processing instruction, and then connect to the hot spot; wherein,
  • the processing instruction of the target category includes a set of program indications, and the program indications in the set of program indications are used to indicate the target program to the electronic device, the target program is an automatic program designated to be closed by the end user, and the automatic program is A program that is automatically executed by an electronic device when it is connected to a network.
  • the processing unit 230 is specifically configured to: if it is recognized that the processing instruction is the first processing instruction (belonging to the target category), close all target programs indicated by the program instruction set; Send closed program information to the terminal device, the closed program information is used to notify the terminal device that the target program has been closed, and request the wifi password of the hotspot; receive the wifi password sent by the terminal device, use the The wifi password automatically connects to the hotspot; wherein, the first processing instruction is when the terminal device receives an instruction allowing the hotspot to be opened for the electronic device, obtains a set of program instructions submitted by the terminal user, and detects that the set of program instructions is a non-empty set The processing instruction sent.
  • the processing unit 230 is specifically configured to: if the processing instruction is identified as a third processing instruction (belonging to the target category), detect whether the program instruction set is an empty set; The third processing instruction also includes the wifi password of the hotspot; if it is detected that the program indication set is a non-empty set, after closing all the target programs indicated by the program indication set, use the wifi password to automatically connect to the hotspot ; If it is detected that the program indication set is an empty set, then use the wifi password to automatically connect to the hotspot without closing any automatic program.
  • the processing unit 230 is further configured to: if it is recognized that the processing instruction is a second processing instruction of a non-target category, automatically connect to the wifi password according to the second processing instruction.
  • the hotspot does not close any automatic program; wherein, the second processing instruction is that the terminal device obtains a set of program instructions submitted by the terminal user after receiving the instruction allowing the opening of the hotspot for the electronic device, and detects that the set of program instructions is Processing instruction sent when the set is empty.
  • the transceiving unit 220 is further configured to: before receiving the processing instruction sent by the terminal device, when receiving the first indication information sent by the terminal device, the acquired program A list is sent to the terminal device; the program list includes program identifiers of all automatic programs currently on in the electronic device, and the program list is used to enable the terminal user to select the target program therefrom.
  • the electronic device 200 corresponds to the hotspot connection method performed by the electronic device provided by the above method embodiment
  • the specific implementation of each unit/module of the electronic device 200 is the same concept as the above method embodiment, therefore, regarding the electronic device 200
  • the functional configuration of each unit/module reference may be made to the description of the hotspot connection method performed by the electronic device in the above method embodiments, and details are not repeated here.
  • the terminal device 100 and the electronic device 200 can set corresponding units/modules for the program steps involved in the method based on the hotspot connection method configured and executed by the respective terminals, or set corresponding units/modules for each step, Units/modules with the same or similar functions can also be integrated, and the units/modules can also be divided into sub-units/sub-modules according to the further refinement of the steps.
  • the above-mentioned units/modules can be realized in the form of hardware or in the form of Realized in the form of a software functional unit.
  • the unitized/modularized configuration of the terminal device 100 and the electronic device 200 is not limited to what is described in the embodiment of the present application.
  • the present application provides another embodiment of a terminal device.
  • the terminal device includes: a memory and at least one processor; the memory is used to store instructions; the at least one processor is used to execute the Instructions to execute the hotspot connection method executed by the terminal device in the above embodiments.
  • the present application provides another embodiment of an electronic device, the electronic device includes: a memory and at least one processor; the memory is used to store instructions; the at least one processor is used to execute the Instructions to execute the hotspot connection method executed by the electronic device in the above embodiments.
  • the embodiment of the present application also provides a chip system, the chip system includes a processor and a memory, the memory stores program instructions, and when the program instructions are executed by the processor, the chip system executes the terminal device involved in the above embodiments.
  • the hotspot connection method executed by the terminal. For example, generating or processing information involved in the methods described above.
  • the embodiment of the present application also provides a chip system, the chip system includes a processor and a memory, and the memory stores program instructions.
  • the program instructions are executed by the processor, the chip system executes the electronic device involved in the above embodiments.
  • the hotspot connection method executed by the terminal. For example, generating or processing information involved in the methods described above.
  • the present application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the hotspot connection method executed by the terminal device in the above embodiments.
  • the present application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the hotspot connection method executed by the electronic device in the above embodiments.
  • the embodiment of the present application also provides a computer storage medium, in which program instructions are stored in the computer-readable storage medium, and when the program instructions are run on the computer, the computer executes the hotspot connection executed by the terminal device involved in the above embodiments method.
  • the embodiment of the present application also provides a computer storage medium, in which program instructions are stored in the computer-readable storage medium, and when the program instructions are run on the computer, the computer executes the hotspot connection executed by the electronic device terminal involved in the above embodiments method.
  • the present invention also provides a computer storage medium, wherein the computer storage medium can store a program, and when the computer storage medium is located in a terminal device or an electronic device, the program can include the terminal device or electronic device when executed.
  • the computer storage medium may be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, abbreviated: ROM) or a random access memory (English: random access memory, abbreviated: RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开一种热点连接方法、终端设备及电子设备,终端设备与电子设备通信连接成功时,显示第一询问弹窗,用以询问用户是否允许为电子设备开放热点;终端设备在接收到允许为电子设备开放热点的指令时,关闭第一询问弹窗,显示第二询问弹窗,用以询问用户是否关闭自动程序,自动程序为电子设备在网络连接状态下自动执行的程序;终端设备获取用户通过第二询问弹窗提交的程序指示集合,程序指示用于指示被用户指定关闭的目标程序;终端设备向电子设备发送处理指令,以指示电子设备在关闭程序指示集合指示的全部目标程序后再连接热点,从而实施触发式流量使用模式。本申请使电子设备端在使用热点时更适应于终端流量情况,避免终端流量过度消耗。

Description

一种热点连接方法、终端设备及电子设备
本申请要求于2021年6月10日提交到国家知识产权局、申请号为202110647215.2、发明名称为“一种热点连接方法、终端设备及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域,尤其涉及一种热点连接方法、终端设备及电子设备。
背景技术
在一些应用场景中,当电子设备无法连接WiFi时,比如用户使用笔记本电脑在无可用WiFi的区域办公时,可使电子设备连接手机热点进行上网。当用户开启热点功能时,手机可将接收到的GPRS、3G或4G等信号转换为热点WiFi,以及生成热点WiFi的密码,用户即可在其他电子设备端连接并使用热点WiFi。
在连接热点WiFi的电子设备上网时,提供热点的手机会消耗流量。电子设备中有些程序是在连网状态下自动执行,比如系统自动更新,应用程序自动加载并播放视频、自动推送广告、自动下载附件等,由于这类程序在检测到热点WiFi连接成功时会自动执行,而不是基于用户的上网需求而被触发执行,因此会额外增大手机流量的消耗。
目前电子设备可启用无线网络按流量计费的连接模式,来限制电子设备连接热点WiFi后的流量消耗。在该连接模式下,用户可设置约束流量使用上限的阈值,这样消耗流量值超过阈值的程序将会被限制执行,比如用户设置阈值为1G,而系统自动更新将消耗3G的数据流量,则不执行系统自动更新程序。然而受用户上网需求、手机当前可用流量、各程序执行时消耗的数据流量等多重因素影响,用户往往需要针对不同场景适应性调整阈值,导致热点WiFi的使用存在诸多不便。
发明内容
为解决上述背景技术中存在的问题,本发明提供一种热点连接方法、终端设备及电子设备,在终端设备与电子设备建立连接后,若终端用户同意为电子设备开放热点,并且关闭电子设备连网时自动执行的程序,则使电子设备切换至触发式流量应用模式后再连接热点WiFi,被终端指定关闭的自动程序将不再主动执行,从而降低终端设备的流量消耗。
第一方面实施例提供的热点连接方法,用于终端设备,包括:
终端设备与电子设备建立通信连接;
终端设备在与电子设备连接成功时,显示第一询问弹窗,所述第一询问弹窗用于询问用户是否允许为电子设备开放热点;
终端设备在接收到允许为电子设备开放热点的指令时,关闭所述第一询问弹窗,显示第二询问弹窗;所述第二询问弹窗用于询问用户是否关闭自动程序,所述自动程序为所述电子设备在网络连接状态下自动执行的程序;
终端设备获取用户通过所述第二询问弹窗提交的程序指示集合;所述程序指示集合中的程序指示用于向电子设备指示被用户指定关闭的目标程序;
终端设备向所述电子设备发送处理指令,所述处理指令用于指示所述电子设备在关闭所述程序指示集合指示的全部目标程序后再连接所述热点。
第一方面中,终端设备与电子设备建立通信连接时,触发终端的询问机制,一则通过第一询问弹窗询问是否为电子设备提供热点服务,二则通过第二询问弹窗询问是否关闭电子设备端连网时自动启动执行的程序,从而便于用户根据终端设备的剩余流量、电子设备的使用场景等因素,决策是否需限制电子设备端的耗流量程序的自动执行。然后向电子设备下发处理指令,以指示电子设备端先根据处理指令关闭终端用户指定的目标程序,之后再根据获取到的热点的wifi密码连接热点,即可实施触发式流量使用模式,从而使电子设备端在使用热点时更适应于终端流量情况,避免了终端流量过度消耗,也能保证电子设备能够正常上网,提升了用户体验。
在第一方面第一种示例性的实现方式中,所述终端设备向所述电子设备发送处理指令,包括:终端设备在检测到所述程序指示集合为非空集时,根据所述程序指示集合生成并向电子设备发送第一处理指令,第一处理指令用于指示所述电子设备在关闭所述程序指示集合指示的全部目标程序后,向终端设备请求获取热点的wifi密码。
该实现方式中是终端设备在获取程序指示集合后,直接在本端检测程序指示集合是否为空集,并根据检测结果下发相应的处理指令。若程序指示集合为非空集,则向电子设备发送第一处理指令,电子设备响应于第一处理指令,将程序指示集合指示的全部目标程序都关闭,保证接入热点后这些目标程序不会自动启动,从而使实施触发式流量使用模式,所有目标程序都关闭完成后,向终端设备请求获取热点的wifi密码,并在获取到wifi密码后自动连接热点。
在第一方面第二种示例性的实现方式中,所述终端设备向所述电子设备发送处理指令,包括:终端设备在检测到所述程序指示集合为空集时,向所述电子设备发送第二处理指令;所述第二处理指令中携带有热点的wifi密码,用于指示所述电子设备利用所述wifi密码自动连接所述热点。该实现方式中程序指示集合为空集,需要下发另一种类型的处理指令,即第二处理指令,以使电子设备端响应于第二处理指令,直接利用wifi密码连接热点,而无需关闭本端任何自动程序,即电子设备接入热点后仍保持自启动执行自动程序的场景状态。
在第一方面第三种示例性的实现方式中,所述终端设备向所述电子设备发送处理指令,包括:向所述电子设备发送第三处理指令;所述第三处理指令中携带有热点的wifi密码及所述程序指示集合,用于指示所述电子设备在关闭所述程序指示集合指示的全部目标程序后,根据所述wifi密码自动连接所述热点。
该实现方式中,不是由终端设备检测程序指示集合是否为空集,而是可由电子设备端执行。电子设备接收到终端设备发送的第三处理指令后,首先检测程序指示集合是否为空集,并根据检测结果执行相匹配的热点连接处理逻辑。进一步地,若为空集则维持当前正常流量使用模式,即无需关闭任一自动程序,直接根据wifi密码接入热点;若程序指示集合为非空集,则先关闭程序指示集合指示的全部目标程序,然后再接入终端热点,即可实施触发式流量使用模式,从而使电子设备端在使用热点时更适应于终端流量情况,避免了终端流量过度消耗,也能保证电子设备能够正常上网,提升了用户体验。
结合第一方面第一种示例性的实现方式,在第一方面第四种示例性的实现方式中,所述方法还包括:终端设备接收所述电子设备在响应所述第一处理指令后发送的已关闭程序信息;终端设备控制热点功能开启;终端设备将热点的wifi密码发送给所述电子设备,以使所述电 子设备连接所述热点。该实现方式中,采取电子设备端先关闭目标程序,终端设备端后开启热点并共享wifi密码,从而避免电子设备端在目标程序尚未完全关闭时接入热点的情况,进而保证电子设备端接入热点后,除非用户主动触发目标程序,否则目标程序不会主动执行,也就不会主动消耗终端流量。
结合第一方面第二种或第三种示例性的实现方式,在第一方面第五种示例性的实现方式中,所述方法还包括:在向所述电子设备发送处理指令后,控制热点功能开启。该实现方式中,若终端设备向显示设备发送第二处理指令,说明用户不限制电子设备端任何自动程序的执行,则下发第二处理指令后,即可直接开启热点功能;若终端设备向显示设备发送第三处理指令,电子设备端响应第三处理指令后,不会直接连接热点,而是需要先检测程序指示集合是否为空集,并基于检测结果执行相应的处理逻辑,因此终端设备下发第三处理指令后,也可直接开启热点功能,而无需担心电子设备接入热点后,出现目标程序未关闭的情况。
在第一方面第六种示例性的实现方式中,终端设备在显示第二询问弹窗之前,向所述电子设备发送第一指示信息,所述第一指示信息用于指示所述电子设备反馈程序列表,所述程序列表包括所述电子设备当前所有处于开启状态的自动程序的程序标识;终端设备接收所述电子设备发送的所述程序列表;终端设备根据所述程序列表生成所述第二询问弹窗,所述第二询问弹窗用于使用户从程序列表中空选或至少选择一个目标程序,则使终端设备获取到的所述程序指示集合为空集或为所述程序列表的非空子集。该实现方式在第二询问弹窗中显示程序列表,使终端用户能清楚获知电子设备端接入热点后有哪些耗流量的程序会自动启动执行,便于终端用户根据本端剩余流量以及对自动程序的使用需求等因素,选择不关闭自动程序,或者关闭部分或全部自动程序。
在第一方面第七种示例性的实现方式中,所述第二询问弹窗中显示有询问用户是否关闭所述电子设备当前所有处于开启状态的自动程序的信息、确认控件和取消控件;所述确认控件用于被触发时使终端设备获取到的所述程序指示集合为程序列表的全集,所述程序列表包括所述电子设备当前所有处于开启状态的自动程序的程序标识;所述取消控件用于被触发时使终端设备获取到的所述程序指示集合为空集。该实现方式在第二询问弹窗中通过信息询问的方式,无需终端用户选取目标程序,而是通过触发确认控件,实现一次性、快捷关闭电子设备端所有处于开启状态的自动程序,若终端用户想保持电子设备端接入热点后自动执行各自动程序的场景状态,则只需触发取消控件,操作更加方便快捷。
在第一方面第八种示例性的实现方式中,终端设备在显示所述第一询问弹窗之后,若未在时间阈值内接收到允许为电子设备开放热点的指令,则仅关闭所述第一询问弹窗,不显示所述第二询问弹窗。考虑到显示第一询问弹窗后,用户可能输入不允许为电子设备开放热点的指令,也可能输入指令超时,这些情形下自动关闭第一询问弹窗,并且不显示第二询问弹窗,保证UI操作流程的准确性。
第二方面实施例提供的热点连接方法,用于电子设备,包括:
电子设备与终端设备建立通信连接;
电子设备在与终端设备连接成功之后,接收终端设备发送的处理指令;
电子设备识别所述处理指令的类别;
电子设备若识别到所述处理指令属于目标类别,则响应所述处理指令,关闭所述处理指令中程序指示集合指示的全部目标程序,然后连接所述热点;其中,所述目标类别的处理指令中包括程序指示集合,所述程序指示集合中的程序指示用于向电子设备指示目标程序,所 述目标程序为被终端用户指定关闭的自动程序,所述自动程序为电子设备在网络连接状态下自动执行的程序。
第二方面中处理指令为前述第一处理指令、第二处理指令或第三处理指令的一种,在接收到处理指令后,先识别处理指令的类别,其中第一处理指令和第三处理指令都属于所述目标类别,第二处理指令属于非目标类别。电子设备根据终端下发的目标类别的处理指令,执行相应的处理逻辑,保证目标程序先被完全关闭后,电子设备再接入热点,即可实施触发式流量使用模式,从而使电子设备端在使用热点时更适应于终端流量情况,避免了终端流量过度消耗,也能保证电子设备能够正常上网,提升了用户体验。
在第二方面第一种示例性的实现方式中,所述电子设备若识别到所述处理指令属于目标类别,则响应所述处理指令,关闭所述处理指令中程序指示集合指示的全部目标程序,然后连接所述热点,包括:电子设备若识别出所述处理指令为第一处理指令,则关闭所述程序指示集合指示的全部目标程序;电子设备向所述终端设备发送已关闭程序信息,所述已关闭程序信息用于通知终端设备所述目标程序均已关闭,并请求热点的wifi密码;电子设备接收终端设备发送的所述wifi密码,利用所述wifi密码自动连接所述热点;其中,所述第一处理指令是终端设备在接收到允许为电子设备开放热点的指令,获取终端用户提交的程序指示集合,检测到所述程序指示集合为非空集时发送的处理指令。
在第二方面第二种示例性的实现方式中,所述电子设备若识别到所述处理指令属于目标类别,则响应所述处理指令,关闭所述处理指令中程序指示集合指示的全部目标程序,然后连接所述热点,包括:电子设备若识别出所述处理指令为第三处理指令,检测所述程序指示集合是否为空集;所述第三处理指令中还包括热点的wifi密码;电子设备若检测到所述程序指示集合为非空集,则在关闭所述程序指示集合指示的全部目标程序后,利用所述wifi密码自动连接所述热点;电子设备若检测到所述程序指示集合为空集,则利用所述wifi密码自动连接所述热点,不关闭任何自动程序。
在第二方面第三种示例性的实现方式中,所述方法还包括:电子设备若识别出所述处理指令为非目标类别的第二处理指令,则根据所述第二处理指令携带的wifi密码自动连接所述热点,不关闭任何自动程序;其中,所述第二处理指令是终端设备在接收到允许为电子设备开放热点的指令,获取终端用户提交的程序指示集合,检测到所述程序指示集合为空集时发送的处理指令。
在第二方面第四种示例性的实现方式中,电子设备在接收所述终端设备发送的处理指令之前,所述方法还包括:电子设备在接收到所述终端设备发送的第一指示信息时,将获取到的程序列表发送给所述终端设备;其中,所述程序列表包括所述电子设备当前所有处于开启状态的自动程序的程序标识,所述程序列表用于使终端用户从中选取所述目标程序。该实现方式中电子设备接收到第一指示信息,即可将本端维护或者获取的程序列表发送给终端设备,以使终端设备生成的第二询问弹窗中融入程序列表,方便用户从程序列表中选取目标程序,以组成并确认提交符合实际场景需求的程序指示集合。
第三方面实施例提供的终端设备,包括:
第一连接单元,用于建立终端设备与电子设备的通信连接;
显示单元,用于在终端设备与电子设备连接成功时,显示第一询问弹窗,所述第一询问弹窗用于询问用户是否允许为电子设备开放热点;
所述显示单元,还用于在接收到允许为电子设备开放热点的指令时,关闭所述第一询问 弹窗,显示第二询问弹窗;所述第二询问弹窗用于询问用户是否关闭自动程序,所述自动程序为所述电子设备在网络连接状态下自动执行的程序;
集合获取单元,用于获取用户通过所述第二询问弹窗提交的程序指示集合;所述程序指示集合中的程序指示用于向电子设备指示被用户指定关闭的目标程序;
处理及收发单元,用于向所述电子设备发送处理指令,所述处理指令用于指示所述电子设备在关闭所述程序指示集合指示的全部目标程序后再连接所述热点。
在第三方面第一种示例性的实现方式中,所述处理及收发单元具体用于:在检测到所述程序指示集合为非空集时,根据所述程序指示集合生成并向电子设备发送第一处理指令,第一处理指令用于指示所述电子设备在关闭所述程序指示集合指示的全部目标程序后,向终端设备请求获取热点的wifi密码。
在第三方面第二种示例性的实现方式中,所述处理及收发单元具体用于:在检测到所述程序指示集合为空集时,向所述电子设备发送第二处理指令;所述第二处理指令中携带有热点的wifi密码,用于指示所述电子设备利用所述wifi密码自动连接所述热点
在第三方面第三种示例性的实现方式中,所述处理及收发单元具体用于:向所述电子设备发送第三处理指令;所述第三处理指令中携带有热点的wifi密码及所述程序指示集合,用于指示所述电子设备在关闭所述程序指示集合指示的全部目标程序后,根据所述wifi密码自动连接所述热点。
结合第三方面第一种示例性的实现方式,在第三方面第四种示例性的实现方式中,所述处理及收发单元还用于:接收所述电子设备在响应所述第一处理指令后发送的已关闭程序信息;控制热点功能开启;将热点的wifi密码发送给所述电子设备,以使所述电子设备连接所述热点。
结合第三方面第二种或第三种示例性的实现方式,在第三方面第五种示例性的实现方式中,所述处理及收发单元还用于:在向所述电子设备发送处理指令后,控制热点功能开启。
在第三方面第六种示例性的实现方式中,所述处理及收发单元还用于:在所述显示单元显示所述第二询问弹窗之前,向所述电子设备发送第一指示信息,所述第一指示信息用于指示所述电子设备反馈程序列表,所述程序列表包括所述电子设备当前所有处于开启状态的自动程序的程序标识;接收所述电子设备发送的所述程序列表;根据所述程序列表生成所述第二询问弹窗,所述第二询问弹窗用于使用户从程序列表中空选或至少选择一个目标程序,则使终端设备获取到的所述程序指示集合为空集或为所述程序列表的非空子集。
在第三方面第七种示例性的实现方式中,所述显示单元还用于:在所述第二询问弹窗中显示询问用户是否关闭所述电子设备当前所有处于开启状态的自动程序的信息、确认控件和取消控件;所述确认控件用于被触发时使终端设备获取到的所述程序指示集合为程序列表的全集,所述程序列表包括所述电子设备当前所有处于开启状态的自动程序的程序标识;所述取消控件用于被触发时使终端设备获取到的所述程序指示集合为空集。
在第三方面第八种示例性的实现方式中,所述显示单元还用于:在显示所述第一询问弹窗之后,若未在时间阈值内接收到允许为电子设备开放热点的指令,则仅关闭所述第一询问弹窗,不显示所述第二询问弹窗。
第四方面实施例提供的电子设备,包括:
第二连接单元,用于建立电子设备与终端设备的通信连接;
收发单元,用于在电子设备与终端设备连接成功之后,接收所述终端设备发送的处理指 令;
处理单元,用于识别所述处理指令的类别;
所述处理单元,还用于若识别到所述处理指令属于目标类别,则响应所述处理指令,关闭所述处理指令中程序指示集合指示的全部目标程序,然后连接所述热点;其中,所述目标类别的处理指令中包括程序指示集合,所述程序指示集合中的程序指示用于向电子设备指示目标程序,所述目标程序为被终端用户指定关闭的自动程序,所述自动程序为电子设备在网络连接状态下自动执行的程序。
在第四方面第一种示例性的实现方式中,所述处理单元具体用于:若识别出所述处理指令为第一处理指令,关闭所述程序指示集合指示的全部目标程序;向所述终端设备发送已关闭程序信息,所述已关闭程序信息用于通知终端设备所述目标程序均已关闭,并请求热点的wifi密码;接收终端设备发送的所述wifi密码,利用所述wifi密码自动连接所述热点;其中,所述第一处理指令是终端设备在接收到允许为电子设备开放热点的指令,获取终端用户提交的程序指示集合,检测到所述程序指示集合为非空集时发送的处理指令。
在第四方面第二种示例性的实现方式中,所述处理单元具体用于:若识别出所述处理指令为第三处理指令,检测所述程序指示集合是否为空集;所述第三处理指令中还包括热点的wifi密码;若检测到所述程序指示集合为非空集,则在关闭所述程序指示集合指示的全部目标程序后,利用所述wifi密码自动连接所述热点;若检测到所述程序指示集合为空集,则利用所述wifi密码自动连接所述热点,不关闭任何自动程序。
在第四方面第三种示例性的实现方式中,所述处理单元还用于:若识别出所述处理指令为非目标类别的第二处理指令,则根据所述第二处理指令携带的wifi密码自动连接所述热点,不关闭任何自动程序;其中,所述第二处理指令是终端设备在接收到允许为电子设备开放热点的指令,获取终端用户提交的程序指示集合,检测到所述程序指示集合为空集时发送的处理指令。
在第四方面第四种示例性的实现方式中,所述收发单元还用于:在接收所述终端设备发送的处理指令之前,当接收到所述终端设备发送的第一指示信息,将获取到的程序列表发送给所述终端设备;其中,所述程序列表包括所述电子设备当前所有处于开启状态的自动程序的程序标识,所述程序列表用于使终端用户从中选取所述目标程序。
第五方面实施例提供的终端设备,包括:存储器和至少一个处理器;所述存储器,用于存储指令;所述至少一个处理器,用于执行所述存储器中的所述指令,执行以上第一方面任意一项所述的热点连接方法。
第六方面实施例提供的电子设备,包括:存储器和至少一个处理器;所述存储器,用于存储指令;所述至少一个处理器,用于执行所述存储器中的所述指令,执行以上第二方面任意一项所述的热点连接方法。
第七方面实施例提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行以上第一方面任意一项所述的热点连接方法。
第八方面实施例提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行以上第二方面任意一项所述的热点连接方法。
第九方面,本申请实施例还提供了一种芯片系统,该芯片系统包括处理器和存储器,存储器存储有程序指令,当程序指令被处理器执行时,使得芯片系统执行上述各方面及其各个实现方式中的方法。例如,生成或处理上述方法中所涉及的信息。
第十方面,本申请实施例还提供了一种计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面及其各个实现方式中的方法。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1中示例性示出了应用场景示意图;
图2中示例性示出了终端设备显示个人热点页面的示意图;
图3中示例性示出了电子设备显示手机连接页面的示意图;
图4中示例性示出了电子设备与手机连接成功后的UI变化示意图A;
图5中示例性示出了电子设备与手机连接成功后的UI变化示意图B;
图6中示例性示出了终端设备显示第一询问弹窗的示意图;
图7中示例性示出了终端设备显示的第一种第二询问弹窗的示意图;
图8中示例性示出了终端设备显示的第二种第二询问弹窗的示意图;
图9(a)中示例性示出了终端设备端执行的第一种热点连接方法的流程图;
图9(b)中示例性示出了电子设备端执行的第一种热点连接方法的流程图;
图9(c)中示例性示出了终端设备端执行的第二种热点连接方法的流程图;
图10中示例性示出了电子设备端执行的第二种热点连接方法的流程图;
图11中示例性示出了终端设备端执行的第三种热点连接方法的流程图;
图12中示例性示出了电子设备端执行的第三种热点连接方法的流程图;
图13中示例性示出了终端设备端执行的第四种热点连接方法的流程图;
图14中示例性示出了电子设备端执行的第四种热点连接方法的流程图;
图15中示例性示出了终端设备端执行的第五种热点连接方法的流程图;
图16中示例性示出了电子设备端执行的第五种热点连接方法的流程图;
图17中示例性示出了第一种终端设备与电子设备的信令交互图;
图18中示例性示出了第二种终端设备与电子设备的信令交互图;
图19中示例性示出了第三种终端设备与电子设备的信令交互图;
图20中示例性示出了一种终端设备的结构示意图;
图21中示例性示出了一种电子设备的结构示意图。
具体实施方式
为使本申请的目的、实施方式和优点更加清楚,下面将结合本申请示例性实施例中的附图,对本申请示例性实施方式进行清楚、完整地描述,显然,所描述的示例性实施例仅是本申请一部分实施例,而不是全部的实施例。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必 限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
如图1所示的应用场景,场景中涉及终端设备100和电子设备200,终端设备100为智能手机,电子设备200包括但不限于智能手机、智能手环、平板电脑、笔记本电脑、台式电脑等。其中,终端设备100是释放热点,提供热点wifi的一端,电子设备是使用热点wifi的一端。
参照图2示出终端设备100端的个人热点页面,该页面中设置有个人热点的开关控件,用户可以操作开关控件,来切换热点功能的开关状态,该页面中还显示有热点wifi的密码等信息。终端设备100启用热点功能后,会在场景的一定区域范围内释放热点wifi,用户在电子设备200选择以无线局域网模式接入网络,然后选中释放热点的终端设备100的wifi名称,并输入已获知的wifi密码,成功连接热点wifi之后,即可在电子设备200端进行上网。
在实际应用场景中,电子设备200成功连接热点wifi后,某些系统程序或应用程序检测到电子设备当前处于网络连接状态时会自动启动执行,比如系统自动升级、应用自动更新、自动加载广告、自动播放视频、自动下载附件等。由于这类程序是连网时自发启动执行,而不是响应用户触发后执行的,并且这类程序执行时请求下载的数据量通常很大,比如系统自动升级时可能消耗几十G,使终端设备100的流量产生剧烈消耗,若按照流量套餐计费,容易导致终端设备100的资费增加、欠费缴费频繁等问题。
目前通过设置流量阈值来限制电子设备200的数据使用量,用户需要在不同使用场景下设置合适的阈值,例如用户终端设备100的套餐包含充足流量时,会将电子设备200端的流量阈值设置较大;当终端设备100的剩余流量不足,而电子设备200又必须使用终端热点时,用户只能将流量阈值调小,这种方式给用户使用热点wifi带来不便。
对此,本申请的目的旨在终端设备100与电子设备200建立通信连接后,在终端设备100端询问用户是否为电子设备200提供热点wifi,若用户同意则进一步询问是否需要关闭电子设备200端的部分或全部自动程序,并根据用户的选择操作,执行相应的处理逻辑。终端设备100与电子设备200建立通信连接的方式不限定。
在一种示例性的实现方式中,若终端设备100具备NFC(Near Field Communication,近距离无线通信)功能,则两端设备可以建立NFC连接。在需要终端设备提供热点时,终端设备需开启NFC功能,用户将终端设备的NFC感应区靠近并对准电子设备的NFC标签,NFC感应区响应后,NFC标签写入成功则连接完成。
在一种示例性的实现方式中,终端设备100在检测到NFC连接成功时,在UI界面上显示如图6所示的第一询问弹窗。
在一种示例性的实现方式中,还提供终端设备100与电子设备200扫码连接的方案,终端设备100和电子设备200中需要预置扫码连接的通信协议,电子设备200中可以配置具有所述通信协议的目标应用,目标应用比如电脑管家、手机助手等。以电子设备200中安装的电脑管家应用为例,启动电脑管家后,选择手机连接选项,进入图3示例的手机连接页面。在手机连接页面生成并显示二维码图像,还可显示用于提示用户通过扫码连接终端的第一提示信息,用户查看到第一提示信息后,可通过终端设备的二维码扫描入口或者具有扫码功能的应用,去扫码页面中的二维码图像。电子设备200接收到终端设备100发送的已扫码消息后,则电子设备200与终端设备100连接成功。
在一种示例性的实现方式中,终端设备100通过扫码与电子设备200连接成功后,如图 4所示的UI变换,手机连接页面上取消显示第一提示信息和二维码图像,并显示第三询问弹窗,以及终端设备与电子设备连接成功的第二提示信息。其中,第三询问弹窗用于询问用户是否将手机热点作为网络,第三询问弹窗还设置有第三确认控件和第三取消控件,若电子设备200接收到用户对第三确认控件的点击操作,则向终端设备100发送热点请求,终端设备100响应于热点请求,在UI界面上显示如图6所示的第一询问弹窗;若电子设备200接收到用户对第三取消控件的点击操作,则不向终端设备100发送热点请求,关闭第三询问弹窗,电子设备200和终端设备100分别维持现状。第二提示信息可以在显示时间达到预设时长时被取消显示。
在一种示例性的实现方式中,终端设备100通过扫码与电子设备200连接成功后,如图5所示的UI变换,手机连接页面上取消显示第一提示信息和二维码图像,并显示第二提示信息,以及相关功能选项,比如联系人、信息、图片、视频、音频、应用、热点等。用户选择热点选项后,可以设置以手机热点作为网络,则电子设备200向终端设备100发送热点请求,终端设备100响应于热点请求,在UI界面上显示如图6所示的第一询问弹窗。需要说明的是,电子设备200将手机热点设置为网络的方式不限于图4和图5的示例。
在一种示例性的实现方式中,当终端设备100检测到与电子设备200之间的NFC连接成功,或者终端设备100扫码后接收到电子设备200发送的热点请求时,在当前UI界面中弹出图6所示的第一询问弹窗。第一询问弹窗用于询问用户是否允许电子设备200使用热点,即相当于询问用户是否为电子设备200开放热点,第一询问弹窗中还设置有第一确认控件和第一取消控件。若终端设备100接收到用户对第一确认控件的点击操作,则关闭第一询问弹窗,并显示如图7或如图8所示的第二询问弹窗;若终端设备100接收到用户对第一取消控件的点击操作,则仅关闭第一询问弹窗,不显示第二询问弹窗。
在一种示例性的实现方式中,用户可能在较长时间内既未点击第一询问弹窗中的第一确认控件,也未点击第一取消控件,则认为响应超时,因此根据实际情况设置第一超时阈值,在第一询问弹窗显示时启动计时,若计时时长大于第一超时阈值时仍未接收到对第一确认控件和第一取消控件的点击操作,则关闭第一询问弹窗。
在一种示例性的实现方式中,用户可以在电子设备端设置各项自动程序的开关状态,所述自动程序为电子设备200连接网络后自动启动执行的程序,自动程序既可以是电子设备200系统自动执行的程序,也可以是电子设备200安装的应用自动执行的程序。例如在系统相关设置页面,设置连网状态下自动升级系统,则“系统自动升级”这一自动程序处于开启状态;又例如在邮箱应用中设置连网状态下自动下载新邮件中的附件,则“自动下载附件”这一自动程序处于开启状态。自动程序一般默认为开启状态,用户可以根据个人意愿切换某些自动程序的开关状态。
在一种示例性的实现方式中,终端设备100接收到用户对第一询问弹窗中的第一确认控件的点击操作后,向电子设备200发送第一指示消息,所述第一指示消息用于通知电子设备200终端用户同意为其开放热点。电子设备200接收到第一指示信息后,查询整机当前所有处于开启状态的自动程序,并将这些自动程序的程序标识汇总成程序列表,然后将程序列表发送给终端设备100;终端设备100根据接收到的程序列表生成并显示第二询问弹窗。
在一种示例性的实现方式中,所述程序列表中具体记录电子设备当前处于开启状态的自动程序的程序标识,所述程序标识可以是为自动程序预设的标识符,或者是自动程序的名称、类别等,程序标识的设置形式不做具体限定。程序标识具有全局唯一性,即程序列表中每个 自动程序仅对应唯一一个程序标识,每个程序标识指向唯一一个自动程序,即自动程序与程序标识是一对一的映射关系,不存在一对多、多对一和多对多的映射关系。
在一种示例性的实现方式中,电子设备200可以在本机维护一个程序列表,程序列表中记录当前所有处于开启状态的自动程序的程序标识。当程序列表中涉及的自动程序A由开启状态切换为关闭状态,则将自动程序A的程序标识从程序列表中删除,当自动程序B由关闭状态切换为开启状态,则将自动程序B的程序标识填加到程序列表中,实现程序列表的动态更新,便于各项自动程序的管理。
在一种示例性的实现方式中,终端设备100接收到用户对第一询问弹窗中的第一确认控件的点击操作后,向电子设备200发送第一指示消息;电子设备200接收到第一指示信息后,直接调取本机维护的程序列表,并将程序列表同步至终端设备100,以使终端设备100根据接收到的程序列表生成并显示第二询问弹窗。
在一种示例性的实现方式中,电子设备200与终端设备100通过前述扫码方式连接成功后,用户在电子设备端选择以手机热点作为网络,电子设备200需要向终端设备100发送热点请求,则可在热点请求中携带本机维护的程序列表,终端设备100解析热点请求后,即可获取到程序列表。需要说明的是,终端设备100获取程序列表的时间节点和实现方式不限于本申请实施例所述,只要保证在显示第二询问弹窗之前获取到程序列表即可。
在一种示例性的实现方式中,终端设备100接收到电子设备200发送的程序列表之后,根据程序列表生成并显示第二询问弹窗,第二询问弹窗用于询问用户是否关闭自动程序,图7示出第一种第二询问弹窗,第二询问弹窗中显示程序列表,该程序列表中可包括自动程序的类别或名称等标识,便于用户识别每项自动程序,比如程序标识为系统自动升级、应用自动更新、视频自动播放等,每个类别都具有对应的选择控件,用户点击某一类别的选择控件后,该类别的自动程序将在电子设备200端接入热点wifi后被限制执行。第二询问弹窗中还可设置全选控件,用户只需点击一次全选控件,即可将程序列表中全部类别的自动程序都选中。
在一种示例性的实现方式中,大类别自动程序还可能被细分为多个小类别,例如对于应用类的自动程序,可以按照应用种类进行细分,对于包括子类别的大类别自动程序,可以设置下拉控件(即图7中的“+”)。参照图7,例如用户点击视频自动播放这一大类别的下拉控件,则显示下拉菜单,所述下拉菜单中包括所有开启视频自动播放程序的应用名称,比如优酷视频、腾讯视频、爱奇艺视频等子类别,每个应用名称具有对应的选择控件,使用户能根据使用需求选择关闭哪些应用的视频自动播放程序,而未被选择的应用可以正常执行视频自动播放程序,用户选择好子类别后,点击上拉控件(即图7中的“-”),即可隐藏下拉菜单。对于包括子类别的大类别自动程序,用户点击大类别的选择控件,即默认各子类别被全选。
在一种示例性的实现方式中,第二询问弹窗中还设置有第二确认控件A。用户在程序列表中选择好被限制执行的目标程序的程序标识后,即可点击第二确认控件A。终端设备100接收到用户对第二确认控件A的点击操作时,根据用户在程序列表中选择并提交的目标程序的程序标识,之后构建生成程序指示集合,程序指示集合是程序列表的子集。
在一种示例性的实现方式中,程序指示集合或为空集,或者包括至少一个程序指示,可选地,所述程序指示比如为被用户指定关闭的目标程序的程序标识,程序标识可以为自动程序的预设标识符、名称或类别等形式,本申请实施例不作限定。电子设备通过识别集合中包括的程序指示,即可获知终端用户指定关闭了哪些目标程序,进而在本端控制这些目标程序 关闭。
在一种示例性的实现方式中,用户在第二询问弹窗的程序列表中未选择任何一个类别/子类别的自动程序,就直接点击了第二确认控件A,终端设备100会识别到程序指示集合为空集,则关闭第二询问弹窗,并控制热点功能开启,以及,向电子设备200发送第二指示消息,所述第二指示消息用于指示电子设备200不关闭任何自动程序,可选择在第二指示信息中携带终端热点的wifi密码。电子设备200接收到第二指示信息后,根据wifi密码连接终端设备100的热点wifi,并且不限制整机所有自动程序的执行,即自动程序可以在检测到热点wifi连接成功后自动启动执行。
在一种示例性的实现方式中,第二询问弹窗中可设置第二取消控件A,无论用户在程序列表中是否选择了目标程序,一旦用户点击第二取消控件A,都默认为授权电子设备端在接入热点wifi后执行任意处于开启状态的自动程序。终端设备接收到用户对第二取消控件A的点击操作时,会识别到程序指示集合为空集,则关闭第二询问弹窗,并控制热点功能开启,以及,向电子设备200发送第二指示消息,所述第二指示消息用于指示电子设备200不关闭任何自动程序,可选择在第二指示信息中携带终端热点的wifi密码。电子设备200接收第二指示信息后,根据wifi密码连接终端设备100的热点wifi,并且不限制整机所有自动程序的执行,即自动程序可以在检测到热点wifi连接成功后自动启动执行。
在一种示例性的实现方式中,终端设备100接收到用户对第二确认控件A的点击操作时,关闭第二询问弹窗,若识别到程序指示集合为非空集,即程序指示集合包括程序列表中的部分或全部自动程序的程序标识,则根据所述程序指示集合生成第三指示信息,并将第三指示信息发送给电子设备200,所述第三指示信息用于指示电子设备200关闭程序指示集合指示的全部目标程序;电子设备接收到第三指示信息后,获取程序指示集合,并将程序指示集合中所有目标程序的开关状态都切换为关闭状态,此时电子设备200的目标程序被切换为触发式流量使用模式,即除非用户主动触发这些目标程序的使用,才会消耗终端流量,否则被关闭的目标程序不再主动消耗终端流量;所有目标程序都关闭完成后,电子设备200向终端设备100发送第四指示信息,所述第四指示信息用于向终端设备100指示程序指示集合指示的全部目标程序都已关闭;终端设备接收到第四指示信息后,控制热点功能开启,并将终端热点的wifi密码共享到电子设备200;电子设备200接收到wifi密码后,即可自动接入热点wifi,并且本机中的目标程序在使用热点期间不再主动启动执行。
图7示出的第二询问弹窗支持用户根据意愿空选(程序指示集合为空集)、选择部分(程序指示集合为程序列表的非空真子集)或全部(程序指示集合为全集)的自动程序。在其他示例性的实现方式中,也可无需用户选择,而是默认关闭电子设备端的程序列表中涉及的全部自动程序。终端设备接收到用户对第一询问弹窗中第一确认控件的点击操作时,关闭第一询问弹窗,并且不向电子设备发送上述第一指示信息,而是直接显示如图8所示的第二种第二询问弹窗,第二询问弹窗显示有询问用户是否关闭电子设备接入热点后自动执行的程序的信息,并设置有第二确认控件B和第二取消控件B。
终端设备若接收到用户对第二取消控件B的点击操作,则关闭第二询问弹窗,控制热点功能开启,可选地根据热点的wifi密码生成第二指示信息,并将第二指示信息发送给电子设备,以使电子设备根据wifi密码自动连接终端热点,此场景下不关闭电子设备端程序列表中涉及的任一自动程序,自动程序检测到电子设备成功连接热点后,可自动启动执行。也就是说,用户在第二询问弹窗中点击第二取消控件B时,相当于终端设备获取到的程序指示集合 为空集。
在一种示例性的实现方式中,终端设备若接收到用户对第二确认控件B的点击操作,则向电子设备发送第五指示信息,所述第五指示信息用于指示电子设备关闭本机当前所有处于开启状态的自动程序,即关闭本机维护的程序列表中所涉及的全部自动程序。电子设备响应于接收到的第五指示信息,将程序列表中涉及的全部自动程序都关闭后,向终端设备反馈第六指示信息,第六指示信息用于通知终端设备所有处于开启状态的自动程序皆已关闭;终端设备响应于接收到的第六指示信息,控制热点功能开启,并将热点的wifi密码发送给电子设备;电子设备接收到wifi密码后,根据wifi密码自动连接终端热点,电子设备此时所有的自动程序都被关闭,处于触发式流量使用模式,即被用户触发的应用和程序才会消耗终端流量,不触发则电子设备不主动消耗终端流量。
本示例中,用户点击第二确认控件B与点击前述第二确认控件A的区别仅在于:用户点击第二确认控件A时,终端设备获取到的程序指示集合为程序列表的子集,即可以是空集、非空真子集或全集,具体取决于用户在第一种第二询问弹窗中选择目标程序的行为,而在用户点击第二确认控件B时,则是默认关闭全部自动程序,即终端设备获取到的程序指示集合与程序列表相同,即程序指示集合为全集。
前述各实现方式的示例中,电子设备是在关闭程序指示集合指示的全部目标程序之后,向终端设备发送第四指示信息或第六指示信息,以指示终端设备开启热点功能,并反馈热点的wifi密码,以便电子设备接入终端热点。在其他示例性的实现方式中,终端设备在获取程序指示集合后,即可开启热点功能,以及根据程序指示集合和热点的wifi密码生成第三处理指令,并将第三处理指令发送给电子设备;电子设备接收到第三处理指令后,对第三处理指令进行解析,从而获取到程序指示集合和wifi密码,电子设备端此时先不连接热点,而是首先在本端判别程序指示集合是否为空集,若为空集,即程序指示集合指示无待关闭的目标程序,自然就无需关闭任何自动程序,直接根据wifi密码接入终端热点;若电子设备检测到程序指示集合为非空集,则在本端关闭程序指示集合指示的全部目标程序后,再利用wifi密码自动连接终端热点,即判别程序指示集合是否为空集的步骤既可以在终端设备执行,也可设置在电子设备端执行。
在一种示例性的实现方式中,由于终端设备100与电子设备200已经建立通信连接,电子设备200在连接热点之前,可提前获取到终端设备100的相关设备信息,比如设备品牌、设备型号、热点的wifi名称等,在终端设备100开启热点功能后,电子设备连接热点时,可从本机的无线网络连接中直接匹配到热点的wifi名称,然后自动输入wifi密码,即可接入并使用热点。例如,电子设备200与终端设备100连接后,获取到终端的设备型号为Honor V40,则电子设备在无线网络连接列表中匹配出的“My Honor V40”,即为热点的wifi名称,热点wifi的名称和密码都具备后,即可成功连接热点。
在一种示例性的实现方式中,电子设备200若接收到第三指示信息,则关闭的目标程序来源于程序指示集合的指定;若接收到第五指示信息,则关闭的目标程序是程序列表中的全部程序标识对应的自动程序。电子设备200接收到第三指示信息或第五指示信息,将与指示信息匹配的目标程序都切换为关闭状态后,若电子设备端维护有程序列表,可将这些被关闭的目标程序的程序标识从程序列表中删除,即除非后续用户再次修改这些目标程序的开关状态,否则这些目标程序的关闭状态可长期有效。
在一些示例性的实现方式中,用户可能仅希望在连接热点时暂时关闭目标程序,而在其 他非热点的网络连接下,使用电子设备的用户允许执行这些目标程序。对此,电子设备200接收到第三指示信息或第五指示信息后,将与指示信息匹配的目标程序切换为关闭状态,并且使程序列表保留这些目标程序的程序标识,电子设备200接入热点wifi后,在使用热点期间,目标程序保持关闭状态;电子设备200在检测到热点连接断开时,比如终端设备100关闭热点功能,或电子设备200主动退出热点等,则控制之前被关闭的目标程序重新开启,即这些目标程序的关闭状态仅在当次热点连接期间有效。
在一些示例性的实现方式中,电子设备200接收到第三指示信息或第五指示信息,将与指示信息匹配的目标程序切换为关闭状态后,可能出现电子设备200在较长时间内一直无法连接热点的情况,比如终端设备100在开启热点功能并向电子设备200发送wifi密码后,终端用户又人为关闭了热点功能,或者终端设备100与电子设备200存在通信异常,导致电子设备未接收到热点的wifi密码等,即电子设备端出现热点连接超时。因此可根据实际情况设置第二超时阈值,在所有目标程序都关闭完成时启动计时,若计时时长大于第二超时阈值时仍未成功连接热点,则控制之前被关闭的目标程序重新开启。
通过以上技术实现方式,使终端设备100与电子设备200建立通信连接时,触发终端的询问机制,一则询问是否为电子设备200提供热点服务,二则询问是否关闭电子设备端连网时自动启动执行的程序(包括图7和图8两种实现模式),从而便于用户根据终端设备100的剩余流量、电子设备200的使用场景等因素,决策是否需限制电子设备端的耗流量程序的自动执行。电子设备200接收到终端设备100的相应指示信息后,或是维持当前正常流量使用模式,或是关闭终端用户指定的目标程序,实施触发式流量使用模式,从而使电子设备端在使用热点时更适应于终端流量情况,避免了终端流量过度消耗,也能保证电子设备200能够正常上网,提升了用户体验。
应当理解的是,为便于清楚描述双端设备交互实现的热点接入方案,前述内容示例性提供了UI并结合UI进行技术说明,但本申请提供的UI显示效果、页面设置和基于UI的用户操作仅仅是示例性的,具体以实际设计和应用为准。另外,基于本发明的技术构思和实质,可以对热点连接流程中的某些环节进行适应性调整和变型,终端设备100和电子设备200的连接方式也不限于NFC和扫码。本申请实施例中涉及的指示信息和处理指令是双端设备通信时的示例性术语描述,不是对信息的通信和交互形式的具体限定。
在一种示例性的实现方式中,9(a)提供第一种终端设备端执行的热点连接方法的实施例,包括如下程序步骤:
步骤S01,建立终端设备与电子设备的通信连接。
参照前述相关实现方式的示例,终端设备100与电子设备200的连接方式不限定,比如可采用NFC连接,或基于目标应用的扫码连接等。
步骤S02,在终端设备与电子设备连接成功时,显示第一询问弹窗,所述第一询问弹窗用于询问用户是否允许为电子设备开放热点。
可选地,参照图6示出的UI界面示例图,第一询问弹窗中可设置第一确认控件和第一取消控件,第一确认控件用于被触发时输入允许为电子设备开放热点的指令,第一取消控件用于被触发时输入不允许为电子设备开放热点的指令。
步骤S03,在接收到允许为电子设备开放热点的指令时,关闭所述第一询问弹窗,显示第二询问弹窗;所述第二询问弹窗用于询问用户是否关闭自动程序。
可选地,第二询问弹窗采用图7或图8的形式,图7支持用户从程序列表中自定义选取 待关闭的目标程序,在具体实现时,可通过向电子设备发送第一指示信息来请求程序列表;图8支持用户一次性关闭电子设备当前所有处于开启状态的自动程序,因此可以无需向电子设备发送第一提示信息。在图7或图8中执行不同的输入操作,可获取不同的程序指示集合。
步骤S04,获取用户通过所述第二询问弹窗提交的程序指示集合。所述程序指示集合包括程序指示,所述程序指示用于向电子设备指示被用户指定关闭的目标程序。
在一些示例中,用户通过图7所示的第二询问弹窗提交的程序指示集合可能是空集,或者为程序列表的非空真子集或全集;用户通过图8所示的第二询问弹窗提交的程序指示集合为空集或全集,不存在非空真子集的情形。
步骤S05,向所述电子设备发送处理指令,所述处理指令用于指示所述电子设备在关闭所述程序指示集合指示的全部目标程序后再连接所述热点。
对于步骤S05,终端设备向电子设备发送处理指令的目的在于,确保电子设备端按照程序指示集合的指示,先关闭终端用户指定的目标程序后(若未指定自然无需关闭自动程序),再去连接热点,保证电子设备的自动程序全部转变为触发式流量使用模式后,电子设备再使用热点,从而避免自动程序对终端流量的剧烈消耗。
在一种示例性的实现方式中,与图9(a)方法相对应地,图9(b)提供第一种电子设备端执行的热点连接方法的实施例,包括如下程序步骤:
步骤S06,建立电子设备与终端设备的通信连接。
步骤S07,在电子设备与终端设备连接成功之后,接收所述终端设备发送的处理指令。
步骤S08,识别所述处理指令的类别。
在一些示例性的实现方式中,指令类别比如可至少分为两大类,一种是目标类别,另一种是非目标类别。目标类别的处理指令中包括程序指示集合,电子设备端接收并解析目标类别的处理指令后,可获取到程序指示集合,并根据集合中的程序指示,关闭对应的目标程序,然后再连接终端热点,若程序指示集合为空集,即程序指示集合指示无待关闭的目标程序;非目标类别的处理指令中则不包括程序指示集合,电子设备端接收并识别到非目标类别的处理指令时,即可直接利用获取到的wifi密码连接热点,而不关闭任何自动程序。
步骤S09,判断所述处理指令是否属于目标类别。若属于目标类别,则执行步骤S010;若属于非目标类别,则执行步骤S011。
步骤S010,响应所述处理指令,关闭所述处理指令中程序指示集合指示的全部目标程序,然后连接所述热点。
步骤S011,获取热点的wifi密码并自动连接所述热点,不关闭任何自动程序。
图9(a)和图9(b)提供了各端设备较为上位的方法示例,具体实现时,在终端设备和电子设备成功建立通信连接之后,根据“检测程序指示集合是否为空集”的检测结果和该步骤的执行主体设备,以及第二询问弹窗的询问模式等因素,可以进一步提供更多细化的实施例,具体可参照下文及图9(c)~图16描述的方法实施例。其中,在不同实现机制下,所述处理指令至少可细分为第一处理指令、第二处理指令和第三处理指令等形式,电子设备接收到处理指令后,对处理指令进行识别,然后执行与处理指令相匹配的处理逻辑。
在一种示例性的实现方式中,图9(c)提供第二种终端设备端执行的热点连接方法的实施例,终端设备100可配置图9(c)所示的方法程序,终端设备100的其他软硬件配置不限定,所述方法对应于由电子设备端检测程序指示集合是否为空集,包括如下程序步骤:
步骤S101,在与电子设备连接成功时,显示第一询问弹窗。第一询问弹窗用于询问用户 是否允许为电子设备开放热点,即是否授权电子设备200接入终端热点。
其中,参照前述相关实现方式的示例,终端设备100与电子设备200的连接方式不限定,比如可采用NFC连接,或基于目标应用的扫码连接等。可选地,第一询问弹窗中可设置第一确认控件和第一取消控件,第一确认控件用于被触发时输入允许为电子设备开放热点的指令,第一取消控件用于被触发时输入不允许为电子设备开放热点的指令。
步骤S102,接收用户在第一询问弹窗输入的允许为电子设备开放热点的指令,关闭第一询问弹窗,以及显示第二询问弹窗。
可选地,第二询问弹窗采用图7或图8的形式,图7支持用户从程序列表中自定义选取待关闭的目标程序,在具体实现时,可通过向电子设备发送第一指示信息来请求程序列表;图8支持用户一次性关闭电子设备当前所有处于开启状态的自动程序,因此可以无需向电子设备发送第一提示信息。在图7或图8中执行不同的输入操作,可获取不同的程序指示集合。
步骤S103,获取用户通过第二询问弹窗提交的程序指示集合。
步骤S104,根据所述程序指示集合和热点的wifi密码生成第三处理指令,并将所述第三处理指令发送给电子设备,以及,控制热点功能开启。
其中,所述第三处理指令用于指示电子设备在接收到第三处理指令后,获取第三处理指令携带的程序指示集合和wifi密码,并首先检测程序指示集合的空否性。若电子设备确定程序指示集合为空集,则根据wifi密码自动接入终端热点,不关闭任何自动程序;若程序指示集合为非空集,则关闭所述程序指示集合指示的全部目标程序之后,再根据wifi密码自动连接终端热点。
需要说明的是,本实施例中“控制热点功能开启”和“发送第三处理指令”这两个步骤既可以同步执行,或者也可按照一定的先后时序执行,这是由于电子设备端接收到第三处理指令时,先不连接热点,而是先检测程序指示集合是否为空,然后根据检测结果执行相应的热点连接的处理逻辑,即便终端设备先开启了热点功能,但电子设备端未知wifi密码,此时也无法连接热点。
在一种示例性的实现方式中,与图9(c)方法相对应地,图10提供第二种电子设备端执行的热点连接方法的实施例,电子设备200可配置图10所示的方法程序,终端设备100的其他软硬件配置不限定,所述方法包括如下程序步骤:
步骤S201,在与终端设备连接成功之后,接收终端设备发送的第三处理指令,所述第三处理指令携带有程序指示集合和热点的wifi密码。
步骤S202,判断所述程序指示集合是否为空集。若程序指示集合为空集,则执行步骤S203,反之则执行步骤S204。
步骤S203,利用wifi密码自动连接终端热点,不关闭任一当前处于开启状态的自动程序。
步骤S204,关闭所述程序指示集合指示的全部目标程序,并在检测到全部目标程序都已关闭完成后,再利用wifi密码自动连接终端热点。
在一种示例性的实现方式中,图11提供第三种终端设备端执行的热点连接方法的实施例,终端设备100可配置图11所示的方法程序,终端设备100的其他软硬件配置不限定,所述方法对应于由终端设备检测程序指示集合是否为空集,包括如下程序步骤:
步骤S301,在与电子设备连接成功时,显示第一询问弹窗。第一询问弹窗用于询问用户是否允许为电子设备开放热点,即是否授权电子设备200接入终端热点。
步骤S302,在接收到允许为电子设备开放热点的指令时,关闭所述第一询问弹窗,显示 第二询问弹窗,所述第二询问弹窗用于询问用户是否关闭自动程序。
步骤S303,获取用户通过所述第二询问弹窗提交的程序指示集合。
步骤S304,判断所述程序指示集合是否为空集。若程序指示集合为非空集,则执行步骤S305和步骤S306;反之,若程序指示集合为空集,则执行步骤S307。
步骤S305,根据所述程序指示集合生成并向电子设备发送第一处理指令,所述第一处理指令用于指示所述电子设备关闭所述程序指示集合指示的全部目标程序后,向终端设备请求获取热点的wifi密码。
步骤S306,接收到电子设备在响应所述第一处理指令后发送的已关闭程序信息时,控制热点功能开启,并将热点的wifi密码发送给所述电子设备。
当采用图7模式的第二询问弹窗时,所述第一处理指令相当于前述第三指示信息;若采用图8模式的第二询问弹窗,则所述第一处理指令相当于前述第五指示信息。已关闭程序信息用于通知终端设备100已关闭程序指示集合指示的目标程序或已关闭程序列表中的全部程序标识对应的自动程序,若采用图7模式的第二询问弹窗,则已关闭程序信息相当于前述第四指示信息;若采用图8模式的第二询问弹窗,则已关闭程序信息相当于前述第六指示信息。终端设备100接收到已关闭程序信息,则将热点的wifi密码共享给电子设备200,以使电子设备200利用wifi密码自动连接及使用终端热点。
步骤S307,向所述电子设备发送第二处理指令,控制热点功能开启。
可选地,所述第二处理指令可携带有热点的wifi密码,所述第二处理指令用于指示电子设备200不关闭任何自动程序,利用wifi密码自动连接终端热点。无论第二询问弹窗采用图7或图8的模式,只要程序指示集合为空集,则所述第二处理指令相当于前述第二指示信息,第二处理指令不包括程序指示集合。本实施例中“控制热点功能开启”和“发送第二处理指令”这两个步骤既可以同步执行,或者也可按照一定的先后时序执行。
在一种示例性的实现方式中,与图11方法相对应地,图12提供第三种电子设备端执行的热点连接方法的实施例,电子设备200可配置图12所示的方法程序,终端设备100的其他软硬件配置不限定,所述方法包括如下程序步骤:
步骤S401,在与终端设备连接成功之后,接收终端设备发送的处理指令。
步骤S402,识别所述处理指令是否为第一处理指令。若是,则执行步骤S403和步骤S404;反之,若识别出所述处理指令为第二处理指令,则执行步骤S405。
其中,所述第一处理指令是终端设备100在接收到允许为电子设备200开放热点的指令,获取终端用户提交的程序指示集合,检测到程序指示集合为非空集时发送的;所述第二处理指令是终端设备100在接收到允许为电子设备200开放热点的指令,获取终端用户提交的程序指示集合,检测到所述程序指示集合为空集时发送的。
步骤S403,关闭程序指示集合指示的全部目标程序,然后向终端设备发送已关闭程序信息。所述已关闭程序信息用于通知终端设备所有目标程序均已关闭,并请求热点的wifi密码。
步骤S404,接收终端设备发送的热点的wifi密码,利用所述wifi密码自动连接所述热点。
步骤S405,根据第二处理指令携带的wifi密码自动连接所述热点,不关闭任何自动程序。
请适应性参照前述第二种终端设备端执行的热点连接方法的描述,与图7所示的第二询问弹窗相对应地,参见图13,本申请提供第四种终端设备端执行的热点连接方法的实施例,终端设备100可配置图13所示的方法程序,终端设备100的其他软硬件配置不限定,所述方法包括如下程序步骤:
步骤S501,在与电子设备连接成功时,显示第一询问弹窗。第一询问弹窗用于询问用户是否允许为电子设备开放热点,即是否授权电子设备200接入终端热点。
步骤S502,判断时间阈值内是否接收到允许为电子设备开放热点的指令。若判断结果为否,即用户在时间阈值内点击了第一取消控件,或者,用户在时间阈值时未操作(响应超时),则执行步骤S503;若判断结果为是,则执行步骤S504。
步骤S503,关闭所述第一询问弹窗。
步骤S504,关闭所述第一询问弹窗,并向电子设备发送第一指示信息。
所述第一指示信息用于通知电子设备200终端用户同意为其开放热点,以使电子设备200将程序列表发送给终端设备100,所述程序列表包括电子设备当前所有处于开启状态的自动程序的程序标识。
步骤S505,接收电子设备在响应第一指示信息后发送的程序列表,根据所述程序列表生成并显示第二询问弹窗。
其中,第二询问弹窗中显示程序列表,该程序列表中显示电子设备当前所有处于开启状态的自动程序的程序标识,用户可以空选、选择部分或全部的自动程序,被用户指定关闭的自动程序命名为目标程序,可将所有目标程序的程序标识组成程序指示集合。第二询问弹窗中可选择设置第二确认控件A和第二取消控件A,第二确认控件A用于被触发时确认提交所选的目标程序,第二取消控件A用于被触发时输入不关闭任何自动程序的指令,相当于提交了为空集的程序指示集合。
步骤S506,获取用户通过所述第二询问弹窗提交的程序指示集合。
步骤S507,判断所述程序指示集合是否为空集。若判断结果为是,则执行步骤S508;若判断结果为否,则执行步骤S509~S510。
步骤S508,关闭所述第二询问弹窗,控制热点功能开启,以及向电子设备发送第二处理指令。可选地,第二处理指令可携带有热点的wifi密码,所述第二处理指令用于指示电子设备不关闭任何自动程序,根据wifi密码连接终端热点。
步骤S509,关闭所述第二询问弹窗,根据所述程序指示集合生成第一处理指令,并将第一处理指令发送给电子设备。所述第一处理指令用于指示电子设备关闭程序指示集合指示的全部目标程序,并在所有目标程序都关闭完成后,向终端设备发送已关闭程序信息。
步骤S510,在接收到电子设备发送的已关闭程序信息时,控制热点功能开启,并将热点的wifi密码发送给电子设备。电子设备200接收到wifi密码后,即可自动接入热点wifi,热点wifi使用期间,电子设备处于触发式流量使用模式,被关闭的自动程序在非用户触发状态下不会主动启动执行。
与前述图13所示终端设备执行的方法相对应地,图14示出第四种电子设备端执行的热点连接方法的实施例,电子设备200可配置图14所示的方法,电子设备200的其他软硬件配置不限定,所述方法包括如下程序步骤:
步骤S601,与终端设备建立通信连接后,接收终端设备发送的第一指示信息。
两端设备的通信连接方式不限于NFC连接、扫码连接等。其中,第一指示信息是终端设备在接收到允许为电子设备开放热点的指令后发送的。
步骤S602,获取程序列表,并将所述程序列表发送至终端设备。
所述程序列表包括电子设备当前所有处于开启状态的自动程序的程序标识,所述程序列表用于使终端用户从中选取待关闭的目标程序,组成程序指示集合。根据程序指示集合是否 为空集,可包括两条支线逻辑,支线逻辑一对应步骤S603,支线逻辑二对应步骤S604~步骤S606。
支线逻辑一:步骤S603,接收终端设备发送的第二处理指令,根据第二处理指令中携带的wifi密码连接终端热点,不关闭任何自动程序。
其中,所述第二处理指令是终端设备在检测到程序指示集合为空集时发送的,所述第二处理指令可携带有终端设备开启热点功能时共享的wifi密码,以便电子设备端接入热点。
支线逻辑二:
步骤S604,接收终端设备发送的第一处理指令,获取程序指示集合。
所述第一处理指令是终端设备在检测到程序指示集合为非空集时,根据程序指示集合生成并发送的,因此电子设备解析第一处理指令后,即可获取到程序指示集合。
步骤S605,关闭所述程序指示集合指示的全部目标程序,然后向终端设备发送已关闭程序信息。所述已关闭程序信息用于指示终端设备开启热点功能,并反馈热点的wifi密码。
在一种示例中,假设处理指令为{off∣Type1:系统自动升级;Type2:应用自动升级;Type3:腾讯视频自动播放;Type4:邮箱大师自动下载附件},其中处理指令的起始字段“off”用于标识该信息类型为第一处理指令,表明需要关闭Type1~Type4这四个目标程序,获取到的程序指示集合为{Type1:系统自动升级;Type2:应用自动更新;Type3:腾讯视频自动播放;Type4:邮箱大师自动下载附件},然后电子设备即可根据目标程序的程序标识,向相应的底层模块下发对应的控制指令,例如向系统管理模块下发关闭“系统自动升级”的控制指令,向应用管理模块下发关闭“应用自动更新”的控制指令,向腾讯视频的应用程序下发关闭“视频自动播放”的控制指令,向邮箱大师的应用程序下发关闭“自动下载附件”的控制指令,从而关闭程序指示集合指示的各个目标程序。需要说明的是,这里处理指令仅仅是示例性的,不指代实际的结构和内容,另外电子设备可以根据目标程序的类别,适应性执行关闭程序的操作,控制程序关闭的方式不限定。
步骤S606,接收终端设备发送的热点的wifi密码,并根据wifi密码连接终端热点。
请适应性参照前述第二种终端设备端执行的热点连接方法的描述,与图8所示的第二询问弹窗相对应地,参见图15,本申请还提供第五种终端设备端执行的热点连接方法的实施例,终端设备100可配置图15所示的方法程序,终端设备100的其他软硬件配置不限定,所述方法包括如下步骤:
步骤S701,在与电子设备连接成功时,显示第一询问弹窗。第一询问弹窗用于询问用户是否允许为电子设备开放热点,即是否授权电子设备200接入终端热点。
步骤S702,判断时间阈值内是否接收到允许为电子设备开放热点的指令。若判断结果为否,即用户在时间阈值内点击了第一取消控件,或者,用户在时间阈值时未操作(响应超时),则执行步骤S703;若判断结果为是,则执行步骤S704。
步骤S703,关闭所述第一询问弹窗。
步骤S704,关闭所述第一询问弹窗,并显示第二询问弹窗。
本方法中,第二询问弹窗用于询问用户是否将电子设备接入热点后自动执行的全部程序都关闭,可选地,第二询问弹窗中可选择设置第二确认控件B和第二取消控件B,第二确认控件B用于被触发时确认关闭全部自动程序,即程序指示集合为非空全集;第二取消控件B用于被触发时输入不关闭任何自动程序的指令,即程序指示集合为空集。
步骤S705,判断是否接收到用户在第二询问弹窗输入的确认关闭程序指令。若判断结果 为否,说明用户点击了第二询问弹窗中的第二取消控件B,则执行步骤S706;若判断结果为是,说明用户点击了第二询问弹窗中的第二确认控件B,则执行S707~S708。
步骤S706,关闭所述第二询问弹窗,控制热点功能开启,以及向电子设备发送第二处理指令。可选地,所述第二处理指令携带有热点的wifi密码,用于指示电子设备直接根据wifi密码连接终端热点,而不关闭程序列表中涉及的任何自动程序。
步骤S707,关闭所述第二询问弹窗,并向电子设备发送第五指示信息。所述第五指示信息用于指示电子设备关闭本机当前所有处于开启状态的自动程序,并在将程序列表中涉及的全部自动程序都关闭完成后,向终端设备发送第六指示信息。
步骤S708,在接收到电子设备发送的第六指示信息时,控制热点功能开启,并将热点的wifi密码发送给电子设备。电子设备200接收到wifi密码后,即可自动接入热点wifi,热点wifi使用期间,电子设备处于触发式流量使用模式,被关闭的自动程序在非用户触发状态下不会主动启动执行。
与上一对端设备执行方法相对应地,图16示出第五种电子设备端执行的热点连接方法的实施例,电子设备200可配置图16所示的方法,电子设备200的其他软硬件配置不限定,所述方法包括如下程序步骤:
步骤S801,与终端设备建立通信连接。
两端设备的通信连接方式不限于NFC连接、扫码连接等。根据用户在图8所示的第二询问弹窗中点击不同控件而输入的不同指令,可包括两条支线逻辑,支线逻辑三对应步骤S802,支线逻辑四对应步骤S803和步骤S804。
支线逻辑三:步骤S802,接收终端设备发送的第二处理指令,根据第二处理指令中携带的wifi密码连接终端热点,不关闭任何自动程序。
其中,所述第二处理指令是终端设备在接收到对第二取消控件B的点击操作时发送的,所述第二处理指令可携带有终端设备开启热点功能时共享的wifi密码,以便电子设备接入终端热点。
支线逻辑四:
步骤S803,接收终端设备发送的第五指示信息,关闭当前所有处于开启状态的自动程序,然后向终端设备发送第六指示信息。
所述第五指示信息是终端设备在接收到对第二确认控件B的点击操作时发送的,第六指示信息用于指示终端设备开启热点功能,并反馈热点的wifi密码。
步骤S804,接收终端设备发送的热点的wifi密码,并根据wifi密码连接终端热点。
前述第一处理指令和第三处理指令都属于目标类别,第二处理指令属于非目标类别。在一些示例性的实现方式中,可以在处理指令中的指定字段设置指令标识,电子设备通过读取并识别指令标识,即可获知处理指令的具体类别。仅作为一种示例,若电子设备读取指令标识为orderT1,则识别出处理指令为目标类别中的第一处理指令;若电子设备读取指令标识为orderT3,则识别出处理指令为目标类别中的第三处理指令,若电子设备读取指令标识为orderNOOFF,则识别出处理指令为非目标类别的第二处理指令。
在一种示例性的实现方式中,对于目标类别的处理指令,可以在指令中设置集合字段,集合字段用于记录终端设备获取到的程序指示集合,该程序指示集合可以为空集、程序列表的非空真子集或全集,电子设备通过读取处理指令中的集合字段,即可获取程序指示集合。若处理指令为第一处理指令,则直接关闭程序指示集合所指示的全部目标程序后再连接终端 热点;若处理指令为第三处理指令,则在获取到程序指示集合后,先行检测集合是否为空集,并根据检测结构执行相应的处理逻辑。
在一种示例性的实现方式中,对于非目标类别的处理指令,比如第二处理指令,则处理指令中可以不设置集合字段,或者设置集合字段为空字段。可选地,第二处理指令中还可设置密码字段,在密码字段中记录终端热点的wifi密码,电子设备识别出接收到了第二处理指令,则读取密码字段,从而获取到wifi密码,即可自动接入终端热点。
需要说明的是,本申请中所述处理指令的类别划分、格式及代码配置等内容均不做具体限定。
在一些示例性的实现方式中,图17示例性提供第一种执行热点连接时的信令交互逻辑,交互双端涉及终端设备100和电子设备200,是以终端设备100和电子设备200进行NFC连接并且由终端设备判别程序指示集合的空否性为例,对应于图7所示的第二询问弹窗,包括如下程序步骤:
步骤(A1),终端设备端:在接收到用户输入的开启NFC操作时,开启NFC功能。在NFC功能已开启并且电子设备200已开机并正常工作的场景下,用户将终端设备100的NFC感应区靠近并对准电子设备的NFC标签,以建立两端设备的NFC连接。
步骤(A2),终端设备端:在检测到NFC感应区已响应时,说明终端设备100与电子设备200间的NFC连接成功,则显示第一询问弹窗。若终端设备100无响应,则双端设备NFC连接失败,终端设备100与电子设备200维持现状。
步骤(A3),终端设备端:当时间阈值内接收到用户通过第一询问弹窗输入的允许为电子设备开放热点的指令,则关闭第一询问弹窗,并向电子设备发送第一指示信息。如果用户在超过时间阈值后才输入允许为电子设备开放热点的指令,或者用户通过第一询问弹窗输入不允许为电子设备开放热点的指令,则仅关闭第一询问弹窗,不向电子设备发送第一指示信息,后续也就不会显示第二询问弹窗。
步骤(A4),电子设备端:接收第一指示信息后,获取本机的程序列表,并将程序列表发送给终端设备。所述程序列表记录有电子设备当前所有处于开启状态的自动程序的程序标识。
步骤(A5),终端设备端:接收程序列表后,根据程序列表生成并显示第二询问弹窗。第二询问弹窗中向终端用户展示程序列表,以便用户从程序列表中选择需要被关闭执行的目标程序,从而根据所选目标程序的程序标识组成程序指示集合。
步骤(A6),终端设备端:获取用户通过第二询问弹窗提交的程序指示集合。程序指示集合为空集或非空,比如用户在第二询问弹窗中未选择任何目标程序就点击了第二确认控件A,或者无论用户是否选择目标程序,最终都点击了第二取消控件A,则程序指示集合都为空集。
步骤(A7),终端设备端:判断程序指示集合是否为空集。若程序指示集合为空集,则执行步骤(A8)和步骤(A9);若程序指示集合为非空集,则执行步骤(A10)~步骤(A13)。
步骤(A8),终端设备端:关闭第二询问弹窗,控制热点功能开启,根据热点的wifi密码生成第二指示信息,并将第二指示信息发送给电子设备。
步骤(A9),电子设备端:接收第二指示信息后,根据获取到的wifi密码自动连接终端热点,并且不关闭任何自动程序。即电子设备成功接入热点后,自动程序检测到电子设备已连接wifi网络,则被允许自动启动执行。
步骤(A10),终端设备端:关闭第二询问弹窗,根据程序指示集合生成第三指示信息,并将第三指示信息发送给电子设备。
步骤(A11),电子设备端:响应于第三指示信息,关闭程序指示集合指示的全部目标程序后,向终端设备发送第四指示信息。
步骤(A12),终端设备端:接收第四指示信息后,控制热点功能开启,并将热点的wifi密码发送给电子设备。
步骤(A13),电子设备端:根据接收的wifi密码,自动连接终端热点。
在一些示例性的实现方式中,图18示例性提供第二种执行热点连接时的信令交互逻辑,交互双端涉及终端设备100和电子设备200,是以终端设备100和电子设备200进行扫码连接并且由电子设备端判别程序指示集合的空否性为例,包括如下程序步骤:
步骤(B1),电子设备端:在接收到用户输入的开启目标应用操作时,启动目标应用。所述目标应用是电子设备中安装的具备连接手机功能的应用,比如电脑管家、手机连接助手等,通过将扫码连接的通信协议分别预置在终端设备和电子设备的目标应用中,便于后续实现两端设备的扫码连接。
步骤(B2),电子设备端:在目标应用的手机连接页面生成并显示二维码图像。
步骤(B3),终端设备端:在接收到用户扫码二维码图像的操作时,向电子设备发送已扫码消息。
步骤(B4),电子设备端:接收已扫码消息后,显示电子设备与终端设备连接成功的提示信息。
步骤(B5),电子设备端:在接收到用户选择终端热点作为无线网络的操作时,向终端设备发送热点请求。若用户未输入选择终端热点作为无线网络的操作,说明电子设备端用户不使用终端热点,则不发送热点请求,终端设备100和电子设备200维持现状。
步骤(B6),终端设备端:响应于接收到的热点请求,显示第一询问弹窗。
步骤(B7),终端设备端:当时间阈值内接收到用户通过第一询问弹窗输入的允许为电子设备开放热点的指令,则关闭第一询问弹窗,以及显示第二询问弹窗。如果用户在超过时间阈值后才输入允许为电子设备开放热点的指令,或者用户通过第一询问弹窗输入不允许为电子设备开放热点的指令,则仅关闭第一询问弹窗,不显示第二询问弹窗。
步骤(B8),终端设备端:获取用户通过第二询问弹窗提交的程序指示集合。程序指示集合为空集或非空,其中用户在第一种第二询问弹窗中未选择任何目标程序就点击了第二确认控件A,或者无论用户是否选择目标程序,最终都点击了第二取消控件A,或者用户在第二种第二询问弹窗中点击第二取消控件B,则程序指示集合都为空集。
步骤(B9),终端设备端:根据程序指示集合和热点的wifi密码生成第三处理指令,并将所述第三处理指令发送给电子设备,以及,控制热点功能开启。
步骤(B10),电子设备端:接收所述第三处理指令后,获取程序指示集合和wifi密码。
步骤(B11),电子设备端:判别程序指示集合是否为空集。若为空集,则执行步骤(B12),反之则执行步骤(B13)。
步骤(B12),电子设备端:根据所述wifi密码自动连接终端热点,不关闭当前处于开启状态的自动程序。
步骤(B13),电子设备端:关闭程序指示集合指示的全部目标程序,并在检测到全部目标程序都已关闭完成后,再根据所述wifi密码自动连接终端热点。
在一些示例性的实现方式中,图19示例性提供第三种执行热点连接时的信令交互逻辑,交互双端涉及终端设备100和电子设备200,是以终端设备100和电子设备200进行扫描连接并且由终端设备判别程序指示集合的空否性为例,对应于图8所示的第二询问弹窗,包括如下程序步骤:
步骤(C1),电子设备端:在接收到用户输入的开启目标应用操作时,启动目标应用。所述目标应用是电子设备中安装的具备连接手机功能的应用,比如电脑管家、手机连接助手等,通过将扫码连接的通信协议分别预置在终端设备和电子设备的目标应用中,便于后续实现两端设备的扫码连接。
步骤(C2),电子设备端:在目标应用的手机连接页面生成并显示二维码图像。
步骤(C3),终端设备端:在接收到用户扫码二维码图像的操作时,向电子设备发送已扫码消息。
步骤(C4),电子设备端:接收已扫码消息后,显示电子设备与终端设备连接成功的提示信息。
步骤(C5),电子设备端:在接收到用户选择终端热点作为无线网络的操作时,向终端设备发送热点请求。若用户未输入选择终端热点作为无线网络的操作,说明电子设备端用户不使用终端热点,则不发送热点请求,终端设备100和电子设备200维持现状。
步骤(C6),终端设备端:响应于接收到的热点请求,显示第一询问弹窗。
步骤(C7),终端设备端:当时间阈值内接收到用户通过第一询问弹窗输入的允许为电子设备开放热点的指令,则关闭第一询问弹窗,并显示第二询问弹窗。如果用户在超过时间阈值后才输入允许为电子设备开放热点的指令,或者用户通过第一询问弹窗输入不允许为电子设备开放热点的指令,则仅关闭第一询问弹窗,不显示第二询问弹窗。可选地,第二询问弹窗中包括第二确认控件B和第二取消控件B,用户若点击第二确认控件B,终端设备即接收到确认关闭程序指令;用户若点击第二取消控件B,即终端未接收到确认关闭程序指令。
步骤(C8),终端设备端:判断是否接收到用户在第二询问弹窗输入的确认关闭程序指令;若判断结果为否,则执行步骤(C9)~步骤(C10);若判断结果为是,则执行步骤(C11)~步骤(C14)。
步骤(C9),终端设备端:关闭第二询问弹窗,控制热点功能开启,以及向电子设备发送第二指示消息。可选地,第二指示信息中携带有热点的wifi密码。
步骤(C10),电子设备端:接收第二指示信息后,根据获取到的wifi密码自动连接终端热点,并且不关闭任何自动程序。即电子设备成功接入热点后,自动程序检测到电子设备已连接wifi网络,则被允许自动启动执行。
步骤(C11),终端设备端:关闭第二询问弹窗,并向电子设备发送第五指示信息。
步骤(C12),电子设备端:接收第五指示信息后,关闭程序列表中全部程序标识对应的自动程序,然后向终端设备发送第六指示信息。
步骤(C13),终端设备端:接收第六指示信息后,控制热点功能开启,并将热点的wifi密码发送给电子设备。
步骤(C14),电子设备端:根据接收的wifi密码,自动连接终端热点。
需要说明的是,终端设备与电子设备之间的通信交互逻辑不限于图17~图19的示例。在实际应用中,可以根据双端设备之间的连接方式、第二询问弹窗的询问模式、程序指示集合空否性的执行主体以及具体使用场景要求等多重因素,在前述各实施例的基础上进行适当组 合、替换、扩展或变型,从而得到更多适应于热点接入场景的实现方案和通信交互逻辑,本申请实施例不再一一列举。
参照图20,本申请实施例提供一种终端设备,包括第一连接单元110、显示单元120、集合获取单元130、处理及收发单元140。
第一连接单元110,用于建立终端设备与电子设备的通信连接;
显示单元120,用于在终端设备与电子设备连接成功时,显示第一询问弹窗,所述第一询问弹窗用于询问用户是否允许为电子设备开放热点;
所述显示单元120,还用于在接收到允许为电子设备开放热点的指令时,关闭所述第一询问弹窗,显示第二询问弹窗;所述第二询问弹窗用于询问用户是否关闭自动程序,所述自动程序为所述电子设备在网络连接状态下自动执行的程序;
集合获取单元130,用于获取用户通过所述第二询问弹窗提交的程序指示集合;所述程序指示集合中的程序指示用于向电子设备指示被用户指定关闭的目标程序;
处理及收发单元140,用于向所述电子设备发送处理指令,所述处理指令用于指示所述电子设备在关闭所述程序指示集合指示的全部目标程序后再连接所述热点。
在一种示例性的实现方式中,所述处理及收发单元140具体用于:在检测到所述程序指示集合为非空集时,根据所述程序指示集合生成并向电子设备发送第一处理指令,第一处理指令用于指示所述电子设备关闭所述程序指示集合指示的全部目标程序后,向终端设备请求获取热点的wifi密码。可选地,所述处理及收发单元140还用于:接收所述电子设备在响应所述第一处理指令后发送的已关闭程序信息;控制热点功能开启;将热点的wifi密码发送给所述电子设备,以使所述电子设备连接所述热点。
在一种示例性的实现方式中,所述处理及收发单元140具体用于:在检测到所述程序指示集合为空集时,向所述电子设备发送第二处理指令;所述第二处理指令中携带有热点的wifi密码,所述第二处理指令用于指示所述电子设备不关闭任何自动程序,利用所述wifi密码自动连接所述热点。可选地,所述处理及收发单元140还用于在向所述电子设备发送第二处理指令后,控制热点功能开启。
在一种示例性的实现方式中,所述处理及收发单元140具体用于:根据所述程序指示集合和热点的wifi密码生成第三处理指令;所述第三处理指令具体用于指示电子设备检测程序指示集合是否为空集,并根据检测结果执行相应的处理逻辑。电子设备响应于第三处理指令,若检测到程序指示集合为非空集,先关闭程序指示集合指示的全部目标程序,再根据所述wifi密码连接所述热点;电子设备若检测到所述程序指示集合为空集,则直接根据所述wifi密码连接所述热点。可选地,所述处理及收发单元140还用于在向所述电子设备发送第三处理指令后,控制热点功能开启。
在一种示例性的实现方式中,所述处理及收发单元140还用于:在所述显示单元120显示所述第二询问弹窗之前,向所述电子设备发送第一指示信息,所述第一指示信息用于指示所述电子设备反馈程序列表,所述程序列表包括所述电子设备当前所有处于开启状态的自动程序的程序标识;接收所述电子设备发送的所述程序列表;根据所述程序列表生成所述第二询问弹窗,所述第二询问弹窗用于使用户从程序列表中空选或至少选择一个目标程序,则使终端设备获取到的所述程序指示集合为空集或为所述程序列表的非空子集。
在一种示例性的实现方式中,所述显示单元120还用于:在所述第二询问弹窗中显示询问用户是否关闭所述电子设备当前所有处于开启状态的自动程序的信息、确认控件和取消控 件;所述确认控件用于被触发时使终端设备获取到的所述程序指示集合为程序列表的全集,所述程序列表包括所述电子设备当前所有处于开启状态的自动程序的程序标识;所述取消控件用于被触发时使终端设备获取到的所述程序指示集合为空集。
在一种示例性的实现方式中,所述显示单元120还用于:在显示所述第一询问弹窗之后,若未在时间阈值内接收到允许为电子设备开放热点的指令,则仅关闭所述第一询问弹窗,不显示所述第二询问弹窗。
由于终端设备100是与以上方法实施例提供的由终端设备执行的热点连接方法相对应,终端设备100的各个单元/模块的具体实现均与以上方法实施例为同一构思,因此,关于终端设备100的各个单元/模块的功能配置,可以参考以上方法实施例关于由终端设备执行的热点连接方法的描述,此处不再赘述。
参照图21,本申请实施例提供一种电子设备,包括第二连接单元210、收发单元220和处理单元230。
第二连接单元210,用于建立电子设备与终端设备的通信连接;
收发单元220,用于在电子设备与终端设备连接成功之后,接收所述终端设备发送的处理指令;
处理单元230,用于识别所述处理指令的类别;
所述处理单元230,还用于若识别到所述处理指令属于目标类别,则响应所述处理指令,关闭所述处理指令中程序指示集合指示的全部目标程序,然后连接所述热点;其中,所述目标类别的处理指令中包括程序指示集合,所述程序指示集合中的程序指示用于向电子设备指示目标程序,所述目标程序为被终端用户指定关闭的自动程序,所述自动程序为电子设备在网络连接状态下自动执行的程序。
在一种示例性的实现方式中,所述处理单元230具体用于:若识别出所述处理指令为第一处理指令(属于目标类别),则关闭所述程序指示集合指示的全部目标程序;向所述终端设备发送已关闭程序信息,所述已关闭程序信息用于通知终端设备所述目标程序均已关闭,并请求热点的wifi密码;接收终端设备发送的所述wifi密码,利用所述wifi密码自动连接所述热点;其中,所述第一处理指令是终端设备在接收到允许为电子设备开放热点的指令,获取终端用户提交的程序指示集合,检测到程序指示集合为非空集时发送的处理指令。
在一种示例性的实现方式中,所述处理单元230具体用于:若识别出所述处理指令为第三处理指令(属于目标类别),检测所述程序指示集合是否为空集;所述第三处理指令中还包括热点的wifi密码;若检测到所述程序指示集合为非空集,则在关闭所述程序指示集合指示的全部目标程序后,利用所述wifi密码自动连接所述热点;若检测到所述程序指示集合为空集,则利用所述wifi密码自动连接所述热点,不关闭任何自动程序。
在一种示例性的实现方式中,所述处理单元230还用于:若识别出所述处理指令为非目标类别的第二处理指令,则根据所述第二处理指令携带的wifi密码自动连接所述热点,不关闭任何自动程序;其中,所述第二处理指令是终端设备在接收到允许为电子设备开放热点的指令,获取终端用户提交的程序指示集合,检测到所述程序指示集合为空集时发送的处理指令。
在一种示例性的实现方式中,所述收发单元220还用于:在接收所述终端设备发送的处理指令之前,当接收到所述终端设备发送的第一指示信息,将获取到的程序列表发送给所述终端设备;所述程序列表包括所述电子设备当前所有处于开启状态的自动程序的程序标识, 所述程序列表用于使终端用户从中选取所述目标程序。
由于电子设备200是与以上方法实施例提供的由电子设备执行的热点连接方法相对应,电子设备200的各个单元/模块的具体实现均与以上方法实施例为同一构思,因此,关于电子设备200的各个单元/模块的功能配置,可以参考以上方法实施例关于由电子设备执行的热点连接方法的描述,此处不再赘述。
需要说明的是,终端设备100和电子设备200可以基于各自端被配置执行的热点连接方法,针对方法涉及的程序步骤设置对应的单元/模块,既可以每个步骤分别设置对应的单元/模块,也可将功能相同或相似的单元/模块进行集成,也可将单元/模块根据步骤的进一步细化拆分成子单元/子模块等,上述单元/模块既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。终端设备100和电子设备200的单元化/模块化的配置不限于本申请实施例所述。
本申请提供另一种终端设备的实施例,所述终端设备包括:存储器和至少一个处理器;所述存储器用于存储指令;所述至少一个处理器,用于执行所述存储器中的所述指令,以执行以上各实施例中涉及的由终端设备端执行的热点连接方法。
本申请提供另一种电子设备的实施例,所述电子设备包括:存储器和至少一个处理器;所述存储器用于存储指令;所述至少一个处理器,用于执行所述存储器中的所述指令,以执行以上各实施例中涉及的由电子设备端执行的热点连接方法。
本申请实施例还提供了一种芯片系统,该芯片系统包括处理器和存储器,存储器存储有程序指令,当程序指令被处理器执行时,使得芯片系统执行以上各实施例中涉及的由终端设备端执行的热点连接方法。例如,生成或处理上述方法中所涉及的信息。
本申请实施例还提供了一种芯片系统,该芯片系统包括处理器和存储器,存储器存储有程序指令,当程序指令被处理器执行时,使得芯片系统执行以上各实施例中涉及的由电子设备端执行的热点连接方法。例如,生成或处理上述方法中所涉及的信息。
本申请还提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行以上各实施例中涉及的由终端设备端执行的热点连接方法。
本申请还提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行以上各实施例中涉及的由电子设备端执行的热点连接方法。
本申请实施例还提供一种计算机存储介质,计算机可读存储介质中存储有程序指令,当程序指令在计算机上运行时,使得计算机执行以上各实施例中涉及的由终端设备端执行的热点连接方法。
本申请实施例还提供一种计算机存储介质,计算机可读存储介质中存储有程序指令,当程序指令在计算机上运行时,使得计算机执行以上各实施例中涉及的由电子设备端执行的热点连接方法。
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。在一些实施例中,本发明还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,当计算机存储介质位于终端设备或电子设备中时,该程序执行时可包括终端设备或电子设备执行的热点连接方法涉及的部分或全部程序步骤。其中,计算机存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。
最后应说明的是:以上各实现方式的示例仅用以说明本申请的技术方案,而非对其限制; 尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。
为了方便解释,已经结合具体的实施方式进行了上述说明。但是,上述示例性的讨论不是意图穷尽或者将实施方式限定到上述公开的具体形式。根据上述的教导,可以得到多种修改和变形。上述实施方式的选择和描述是为了更好的解释原理以及实际的应用,从而使得本领域技术人员更好的使用所述实施方式以及适于具体使用考虑的各种不同的变形的实施方式。

Claims (18)

  1. 一种热点连接方法,其特征在于,包括:
    终端设备与电子设备建立通信连接;
    终端设备在与电子设备连接成功时,显示第一询问弹窗,所述第一询问弹窗用于询问用户是否允许为电子设备开放热点;
    终端设备在接收到允许为电子设备开放热点的指令时,关闭所述第一询问弹窗,显示第二询问弹窗;所述第二询问弹窗用于询问用户是否关闭自动程序,所述自动程序为所述电子设备在网络连接状态下自动执行的程序;
    终端设备获取用户通过所述第二询问弹窗提交的程序指示集合;所述程序指示集合中的程序指示用于向电子设备指示被用户指定关闭的目标程序;
    终端设备向所述电子设备发送处理指令,所述处理指令用于指示所述电子设备在关闭所述程序指示集合指示的全部目标程序后再连接所述热点。
  2. 根据权利要求1所述的方法,其特征在于,所述终端设备向所述电子设备发送处理指令,包括:
    终端设备在检测到所述程序指示集合为非空集时,根据所述程序指示集合生成并向电子设备发送第一处理指令,第一处理指令用于指示所述电子设备在关闭所述程序指示集合指示的全部目标程序后,向终端设备请求获取热点的wifi密码。
  3. 根据权利要求1所述的方法,其特征在于,所述终端设备向所述电子设备发送处理指令,包括:
    终端设备在检测到所述程序指示集合为空集时,向所述电子设备发送第二处理指令;所述第二处理指令中携带有热点的wifi密码,用于指示所述电子设备利用所述wifi密码自动连接所述热点。
  4. 根据权利要求1所述的方法,其特征在于,所述终端设备向所述电子设备发送处理指令,包括:
    向所述电子设备发送第三处理指令;所述第三处理指令中携带有热点的wifi密码及所述程序指示集合,用于指示所述电子设备在关闭所述程序指示集合指示的全部目标程序后,根据所述wifi密码自动连接所述热点。
  5. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    终端设备接收所述电子设备在响应所述第一处理指令后发送的已关闭程序信息;
    终端设备控制热点功能开启;
    终端设备将热点的wifi密码发送给所述电子设备,以使所述电子设备连接所述热点。
  6. 根据权利要求3或4所述的方法,其特征在于,所述方法还包括:
    终端设备在向所述电子设备发送处理指令后,控制热点功能开启。
  7. 根据权利要求1所述的方法,其特征在于,终端设备在显示第二询问弹窗之前,所述方法还包括:
    终端设备向所述电子设备发送第一指示信息,所述第一指示信息用于指示所述电子设备反馈程序列表,所述程序列表包括所述电子设备当前所有处于开启状态的自动程序的程序标识;
    终端设备接收所述电子设备发送的所述程序列表;
    终端设备根据所述程序列表生成所述第二询问弹窗,所述第二询问弹窗用于使用户从程序列表中空选或至少选择一个目标程序,则使终端设备获取到的所述程序指示集合为空集或为所述程序列表的非空子集。
  8. 根据权利要求1所述的方法,其特征在于,所述第二询问弹窗中显示有询问用户是否关闭所述电子设备当前所有处于开启状态的自动程序的信息、确认控件和取消控件;所述确认控件用于被触发时使终端设备获取到的所述程序指示集合为程序列表的全集,所述程序列表包括所述电子设备当前所有处于开启状态的自动程序的程序标识;所述取消控件用于被触发时使终端设备获取到的所述程序指示集合为空集。
  9. 根据权利要求1所述的方法,其特征在于,终端设备在显示所述第一询问弹窗之后,所述方法还包括:
    终端设备若未在时间阈值内接收到允许为电子设备开放热点的指令,则仅关闭所述第一询问弹窗,不显示所述第二询问弹窗。
  10. 一种热点连接方法,其特征在于,包括:
    电子设备与终端设备建立通信连接;
    电子设备在与终端设备连接成功之后,接收终端设备发送的处理指令;
    电子设备识别所述处理指令的类别;
    电子设备若识别到所述处理指令属于目标类别,则响应所述处理指令,关闭所述处理指令中程序指示集合指示的全部目标程序,然后连接所述热点;其中,所述目标类别的处理指令中包括程序指示集合,所述程序指示集合中的程序指示用于向电子设备指示目标程序,所述目标程序为被终端用户指定关闭的自动程序,所述自动程序为电子设备在网络连接状态下自动执行的程序。
  11. 根据权利要求10所述的方法,其特征在于,所述电子设备若识别到所述处理指令属于目标类别,则响应所述处理指令,关闭所述处理指令中程序指示集合指示的全部目标程序,然后连接所述热点,包括:
    电子设备若识别出所述处理指令为第一处理指令,则关闭所述程序指示集合指示的全部目标程序;
    电子设备向所述终端设备发送已关闭程序信息,所述已关闭程序信息用于通知终端设备所述目标程序均已关闭,并请求热点的wifi密码;
    电子设备接收终端设备发送的所述wifi密码,利用所述wifi密码自动连接所述热点;
    其中,所述第一处理指令是终端设备在接收到允许为电子设备开放热点的指令,获 取终端用户提交的程序指示集合,检测到所述程序指示集合为非空集时发送的处理指令。
  12. 根据权利要求11所述的方法,其特征在于,所述电子设备若识别到所述处理指令属于目标类别,则响应所述处理指令,关闭所述处理指令中程序指示集合指示的全部目标程序,然后连接所述热点,包括:
    电子设备若识别出所述处理指令为第三处理指令,检测所述程序指示集合是否为空集;所述第三处理指令中还包括热点的wifi密码;
    电子设备若检测到所述程序指示集合为非空集,则在关闭所述程序指示集合指示的全部目标程序后,利用所述wifi密码自动连接所述热点;
    电子设备若检测到所述程序指示集合为空集,则利用所述wifi密码自动连接所述热点,不关闭任何自动程序。
  13. 根据权利要求11所述的方法,其特征在于,所述方法还包括:
    电子设备若识别出所述处理指令为非目标类别的第二处理指令,则根据所述第二处理指令携带的wifi密码自动连接所述热点,不关闭任何自动程序;
    其中,所述第二处理指令是终端设备在接收到允许为电子设备开放热点的指令,获取终端用户提交的程序指示集合,检测到所述程序指示集合为空集时发送的处理指令。
  14. 根据权利要求10~13任一项所述的方法,其特征在于,电子设备在接收所述终端设备发送的处理指令之前,所述方法还包括:
    电子设备在接收到所述终端设备发送的第一指示信息时,将获取到的程序列表发送给所述终端设备;其中,所述程序列表包括所述电子设备当前所有处于开启状态的自动程序的程序标识,所述程序列表用于使终端用户从中选取所述目标程序。
  15. 一种终端设备,其特征在于,所述终端设备包括:存储器和至少一个处理器;
    所述存储器,用于存储指令;
    所述至少一个处理器,用于执行所述存储器中的所述指令,执行权利要求1~14任意一项所述的热点连接方法。
  16. 一种计算机可读存储介质,其特征在于,包括指令,当其在计算机上运行时,使得计算机执行权利要求1~14任意一项所述的热点连接方法。
  17. 一种芯片系统,其特征在于,包括:存储器和处理器;所述存储器存储有程序指令,当所述程序指令被所述处理器执行时,使得所述芯片系统执行权利要求1-14任意一项所述的热点连接方法。
  18. 一种计算机程序产品,其特征在于,当其在计算机上运行时,使得计算机执行权利要求1-14任意一项所述的热点连接方法。
PCT/CN2022/072983 2021-06-10 2022-01-20 一种热点连接方法、终端设备及电子设备 WO2022257472A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP22741143.6A EP4124156A4 (en) 2021-06-10 2022-01-20 METHOD OF CONNECTING TO A HOTSPOT, TERMINAL DEVICE AND ELECTRONIC DEVICE
US17/793,283 US20240179760A1 (en) 2021-06-10 2022-01-20 Hotspot connection method, terminal device, and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110647215.2 2021-06-10
CN202110647215.2A CN114501674B (zh) 2021-06-10 2021-06-10 一种热点连接方法、终端设备及存储介质

Publications (1)

Publication Number Publication Date
WO2022257472A1 true WO2022257472A1 (zh) 2022-12-15

Family

ID=81491787

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/072983 WO2022257472A1 (zh) 2021-06-10 2022-01-20 一种热点连接方法、终端设备及电子设备

Country Status (4)

Country Link
US (1) US20240179760A1 (zh)
EP (1) EP4124156A4 (zh)
CN (1) CN114501674B (zh)
WO (1) WO2022257472A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120240197A1 (en) * 2011-03-18 2012-09-20 Smith Micro Software, Inc. Managing Tethered Data Traffic Over a Hotspot Network
CN105516026A (zh) * 2015-11-20 2016-04-20 小米科技有限责任公司 热点网络的连网控制方法及装置
CN106332225A (zh) * 2016-09-23 2017-01-11 依偎科技(南昌)有限公司 基于wifi冻结应用的方法以及相关设备
CN109151825A (zh) * 2017-06-15 2019-01-04 阿里巴巴集团控股有限公司 热点共享的方法、装置及系统

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016003943A1 (en) * 2014-06-29 2016-01-07 Tetherball Technology, LLC Automatic wireless grid access sharing and monetization from a mobile device app
CN105307235B (zh) * 2015-09-22 2019-03-22 Oppo广东移动通信有限公司 一种热点共享方法、装置和系统
CN106068019B (zh) * 2016-05-24 2019-10-11 中国联合网络通信集团有限公司 热点共享的授权方法、终端设备及服务器
WO2017223227A1 (en) * 2016-06-21 2017-12-28 Tetherball Technology, LLC Automatic wireless grid access sharing and monetization from a mobile device application that receives credentials over a wireless channel
WO2018010160A1 (zh) * 2016-07-15 2018-01-18 华为技术有限公司 移动数据共享方法和移动终端
CN106658358A (zh) * 2016-09-30 2017-05-10 宇龙计算机通信科技(深圳)有限公司 一种共享网络的方法、装置和终端
CN106559789A (zh) * 2016-11-15 2017-04-05 努比亚技术有限公司 热点共享装置、方法及系统
CN107967639A (zh) * 2017-08-30 2018-04-27 上海连尚网络科技有限公司 热点租赁的方法及设备
CN110445924B (zh) * 2019-06-26 2021-06-04 维沃移动通信有限公司 网络任务执行方法及终端设备
CN112243256B (zh) * 2019-07-16 2023-08-04 北京小米移动软件有限公司 无线网络分享方法、装置、移动终端及存储介质
CN111050380B (zh) * 2019-11-21 2024-07-02 深圳传音控股股份有限公司 热点开启方法、装置、终端设备及存储介质
CN111327458A (zh) * 2020-01-22 2020-06-23 维沃移动通信有限公司 配置信息分享方法、终端设备及计算机可读存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120240197A1 (en) * 2011-03-18 2012-09-20 Smith Micro Software, Inc. Managing Tethered Data Traffic Over a Hotspot Network
CN105516026A (zh) * 2015-11-20 2016-04-20 小米科技有限责任公司 热点网络的连网控制方法及装置
CN106332225A (zh) * 2016-09-23 2017-01-11 依偎科技(南昌)有限公司 基于wifi冻结应用的方法以及相关设备
CN109151825A (zh) * 2017-06-15 2019-01-04 阿里巴巴集团控股有限公司 热点共享的方法、装置及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4124156A4

Also Published As

Publication number Publication date
CN114501674B (zh) 2022-12-30
EP4124156A4 (en) 2023-08-23
EP4124156A1 (en) 2023-01-25
US20240179760A1 (en) 2024-05-30
CN114501674A (zh) 2022-05-13

Similar Documents

Publication Publication Date Title
US9826438B2 (en) Electronic device and method for operating an electronic device
US9699638B2 (en) Apparatus and method for providing integrated device information
WO2016138751A1 (zh) Wifi列表的展现方法和装置
US9226328B2 (en) Communication apparatus
JP7328900B2 (ja) ファイル伝送方法、装置、およびコンピュータ読み取り可能な記憶媒体
CN114390501B (zh) 数据传输的方法及电子设备
CN103460730A (zh) 服务承载的动态绑定
WO2016065977A1 (zh) 呼叫处理方法、装置、通信终端和服务器
US11729337B2 (en) Method and storage medium for controlling image-forming devices through network
WO2024140693A1 (zh) 通话方法、装置及电子设备
EP3169042A1 (en) A contents supply system, a method, a service server, a storage means, a relay method, an application server and a cellular phone for multi connected end terminal
WO2022257472A1 (zh) 一种热点连接方法、终端设备及电子设备
JP2016501492A (ja) デジタルネットワークに基づいた相互通信方法およびデバイス
US10938973B2 (en) Method and system for searching for object in network
WO2018076613A1 (zh) 无线网络连接的流量控制方法、装置及可读取存储介质
CN108712280B (zh) 一种网络功能的管理方法、装置、存储介质及智能终端
WO2022179284A1 (zh) WiFi热点的切换方法、终端设备及存储介质
WO2016107013A1 (zh) 传输处理、远程处理方法、装置及计算机存储介质
CN112399242A (zh) 基于电视的移动网络连接方法、装置、设备及介质
CN105636079A (zh) 网络确定方法及装置
KR101810623B1 (ko) 모바일 단말기 및 그 제어방법과, 메시지 전송 장치 및 메시지 전송 방법
WO2024051663A1 (zh) 数据通道建立方法、第一终端及第二终端
CN110839009B (zh) 网络访问请求的处理方法、装置、系统以及电子设备
US20220365732A1 (en) Automatic output of document
CN117135396A (zh) 投屏方法及其相关设备

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 17793283

Country of ref document: US

ENP Entry into the national phase

Ref document number: 2022741143

Country of ref document: EP

Effective date: 20220727

NENP Non-entry into the national phase

Ref country code: DE