WO2017020608A1 - WiFi热点的共享方法和电子设备 - Google Patents

WiFi热点的共享方法和电子设备 Download PDF

Info

Publication number
WO2017020608A1
WO2017020608A1 PCT/CN2016/079249 CN2016079249W WO2017020608A1 WO 2017020608 A1 WO2017020608 A1 WO 2017020608A1 CN 2016079249 W CN2016079249 W CN 2016079249W WO 2017020608 A1 WO2017020608 A1 WO 2017020608A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
wifi hotspot
primary
slave
main
Prior art date
Application number
PCT/CN2016/079249
Other languages
English (en)
French (fr)
Inventor
李鑫
Original Assignee
惠州Tcl移动通信有限公司
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 惠州Tcl移动通信有限公司 filed Critical 惠州Tcl移动通信有限公司
Priority to US15/377,769 priority Critical patent/US9986087B2/en
Publication of WO2017020608A1 publication Critical patent/WO2017020608A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/42136Administration or customisation of services
    • H04M3/42153Administration or customisation of services by subscriber
    • 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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/06Access restriction performed under specific conditions based on traffic conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/668Internet protocol [IP] address subnets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/04Access restriction performed under specific conditions based on user or terminal location or mobility data, e.g. moving direction, speed
    • 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]
    • 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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and an electronic device for sharing a WiFi hotspot.
  • WiFi Wireless
  • WiFi Wireless
  • WiFi hotspot multiple electronic devices join the WiFi hotspot to share wireless Internet access.
  • the number of connected WiFi hotspots is limited, and multiple electronic devices compete for bandwidth and other issues, resulting in the subsequent electronic devices unable to connect to hotspots, or connected to the external network. Internet access will also happen frequently.
  • the WiFi hotspot has been connected, but the external network cannot be connected, which wastes the user's operation and greatly affects the user experience.
  • the technical problem to be solved by the present invention is to provide a method and an electronic device for sharing a WiFi hotspot, which can promptly send a prompt message to remind the user whether the WiFi hotspot can be added.
  • the first technical solution adopted by the present invention is to provide an electronic device, including a main electronic device and a slave electronic device, the main electronic device includes: a processor, a memory, a transceiver, a bus, a processor, The memory and the transceiver are respectively connected to the bus, the memory is used for storing the program, and the transceiver is configured to receive the hotspot sharing request sent from the electronic device;
  • a program responsive to the hotspot sharing request, and collecting current resource information of the primary electronic device, wherein the current resource information of the primary electronic device includes the number of the slave electronic devices connected to the WiFi hotspot of the primary electronic device, the temperature of the primary electronic device, and the primary electronic device At least one of the remaining power;
  • a program determining whether at least one of the number of slave electronic devices connected to the WiFi hotspot of the main electronic device, the temperature of the main electronic device, and the remaining power of the main electronic device exceeds a preset threshold
  • the program determines that at least one of the number of slave electronic devices connected to the WiFi hotspot of the primary electronic device, the temperature of the primary electronic device, and the remaining power of the primary electronic device does not exceed a preset threshold, determining that the secondary device allows access to the primary device a WiFi hotspot of the electronic device, the transceiver further transmitting the first prompt information to the slave electronic device to remind the slave device from accessing the WiFi hotspot of the master electronic device;
  • the program further initializes the WiFi hotspot of the main electronic device to prepare for the connection from the electronic device to the WiFi hotspot of the main electronic device;
  • the program determines that any one of the number of slave electronic devices connected to the WiFi hotspot of the primary electronic device, the temperature of the primary electronic device, and the remaining power of the primary electronic device exceeds a preset threshold, determining that the secondary device does not allow access to the primary device a WiFi hotspot of the electronic device, the transceiver further sending the second prompt information to the slave electronic device to remind the slave that the electronic device does not allow access to the WiFi hotspot of the main electronic device;
  • the program further hides the WiFi hotspot of the main electronic device from the electronic device;
  • a processor that is used to run programs.
  • the current resource information of the main electronic device further includes the signal strength of the main electronic device.
  • the program is further configured to further determine the main electronic when it is determined that at least one of the number of the slave electronic devices connected to the WiFi hotspot of the main electronic device, the temperature of the main electronic device, and the remaining power of the main electronic device does not exceed a preset threshold Whether the signal strength of the device is greater than the preset signal strength;
  • the program determines that the signal strength of the primary electronic device is greater than the predetermined signal strength, then determining that the secondary device allows access to the WiFi hotspot of the primary electronic device.
  • the current resource information of the main electronic device further includes a distance value between the main electronic device and the slave electronic device,
  • the program is further configured to further determine the distance value when it is determined that at least one of the number of the slave electronic devices connected to the WiFi hotspot of the main electronic device, the temperature of the main electronic device, and the remaining power of the main electronic device does not exceed a preset threshold Whether it is less than the preset distance value;
  • the program determines that the distance value is less than the preset distance value, it is determined that the slave device allows access to the WiFi hotspot of the primary electronic device.
  • the second technical solution adopted by the present invention is to provide a method for sharing a WiFi hotspot, the method comprising: receiving, by the main electronic device, a hotspot sharing request sent from the electronic device; and the main electronic device responding to the hotspot sharing request And collecting current resource information of the primary electronic device, wherein the current resource information of the primary electronic device includes at least one of a number of the slave electronic devices connected to the WiFi hotspot of the primary electronic device, a temperature of the primary electronic device, and a remaining power of the primary electronic device.
  • the primary electronic device determines, by the current resource information of the primary electronic device, whether the wireless hotspot is allowed to access the primary electronic device from the electronic device; and the primary electronic device determines to send the first when the electronic device allows access to the WiFi hotspot of the primary electronic device.
  • the prompt information is sent to the slave electronic device to remind the slave device from accessing the WiFi hotspot of the master electronic device, and the WiFi hotspot of the master electronic device is initialized to prepare for the WiFi hotspot connection
  • the method further includes: when the main electronic device determines that the electronic hotspot does not allow access to the WiFi hotspot of the main electronic device, sending the second prompt information to the slave electronic device to remind the slave electronic hotspot that the electronic device does not allow access to the main electronic device, and The WiFi hotspot of the primary electronic device is hidden from the electronic device.
  • the step of determining, by the main electronic device, whether the electronic device allows access to the WiFi hotspot of the primary electronic device by using the current resource information of the primary electronic device includes: determining, by the primary electronic device, the number of the secondary electronic devices connected to the WiFi hotspot of the primary electronic device, Whether at least one of the temperature of the main electronic device and the remaining power of the main electronic device exceeds a preset threshold; if the main electronic device determines the number of slave electronic devices connected to the WiFi hotspot of the main electronic device, the temperature of the main electronic device, and the main When at least one of the remaining power of the electronic device does not exceed the preset threshold, it is determined that the WiFi hotspot that the slave device allows access to the primary electronic device.
  • the current resource information of the main electronic device further includes a signal strength of the main electronic device, and the main electronic device determines the number of the slave electronic devices connected to the WiFi hotspot of the main electronic device, the temperature of the main electronic device, and the remaining power of the main electronic device.
  • the method further includes: determining, by the main electronic device, whether the signal strength of the main electronic device is greater than a preset signal strength; and if the main electronic device determines that the signal strength of the main electronic device is greater than the preset signal strength, Determining a WiFi hotspot from the electronic device that allows access to the primary electronic device.
  • the current resource information of the main electronic device further includes a distance value between the main electronic device and the slave electronic device, and the main electronic device determines the number of the slave electronic devices connected to the WiFi hotspot of the master electronic device, the temperature of the main electronic device, and the main electronic device.
  • the method further includes: determining, by the main electronic device, whether the distance value is less than a preset distance value; and determining, when the main electronic device determines that the distance value is less than the preset distance value, determining the slave electronic device, if the at least one of the remaining powers does not exceed the preset threshold. Allow access to the WiFi hotspot of the main electronic device.
  • the third technical solution adopted by the present invention is to provide an electronic device, including a main electronic device and a slave electronic device, the main electronic device including: a receiving module, configured to receive a hot spot sent from the electronic device a sharing request; a resource collection module, configured to respond to the hotspot sharing request, and collect current resource information of the main electronic device, where the current resource information of the main electronic device includes the number of the slave electronic devices connected to the WiFi hotspot of the main electronic device, and the main electronic a determining module, configured to determine, by the current resource information of the main electronic device, whether the slave electronic device allows access to the WiFi hotspot of the main electronic device; the sending module is configured to The determining module determines that when the electronic device allows access to the WiFi hotspot of the main electronic device, sending the first prompt information to the slave electronic device to remind the slave device to allow access to the WiFi hotspot of the master electronic device; and the initialization module is configured to initialize the master electronic device WiFi hotspot, thought to be a WiFi
  • the main electronic device further includes a hidden module, wherein: the sending module is further configured to: when the determining module determines that the electronic hotspot does not allow access to the WiFi hotspot of the main electronic device, send the second prompt information to the slave electronic device to remind the slave electronic device
  • the WiFi hotspot of the primary electronic device is not allowed to be accessed
  • the hidden module is configured to hide the WiFi hotspot of the primary electronic device from the electronic device when the determining module determines that the wireless hotspot of the primary electronic device is not allowed to be accessed from the electronic device.
  • the judging module includes a threshold judging unit, wherein: the threshold judging unit is configured to determine whether at least one of the number of slave electronic devices connected to the WiFi hotspot of the main electronic device, the temperature of the main electronic device, and the remaining power of the main electronic device Exceeding a preset threshold; the threshold determination unit determines that at least one of the number of slave electronic devices connected to the WiFi hotspot of the primary electronic device, the temperature of the primary electronic device, and the remaining power of the primary electronic device does not exceed a preset threshold
  • the access from the electronic device allows access to the WiFi hotspot of the primary electronic device.
  • the current resource information of the main electronic device further includes a signal strength of the main electronic device
  • the determining module further includes a signal strength determining unit, wherein the signal strength determining unit is configured to determine, at the threshold determining unit, a slave connected to the WiFi hotspot of the main electronic device. Determining whether the signal strength of the main electronic device is greater than a preset signal strength when at least one of the number of the electronic devices, the temperature of the main electronic device, and the remaining power of the main electronic device does not exceed a preset threshold; the signal strength determining unit determines the main When the signal strength of the electronic device is greater than the preset signal strength, it is determined that the WiFi hotspot that is allowed to access the main electronic device from the electronic device is determined.
  • the current resource information of the main electronic device further includes a distance value between the main electronic device and the slave electronic device
  • the determining module further includes a distance determining unit, wherein the distance determining unit is configured to determine, at the threshold determining unit, the WiFi hotspot connection with the main electronic device. Whether at least one of the number of slave electronic devices, the temperature of the main electronic device, and the remaining power of the main electronic device does not exceed a preset threshold, determining whether the distance value is less than a preset distance value; the distance determining unit determines that the distance value is less than a pre-determination When the distance value is set, it is determined that the WiFi hotspot from the electronic device is allowed to access the main electronic device.
  • the method for sharing a WiFi hotspot includes: the main electronic device receives a hotspot sharing request sent from the electronic device; the main electronic device responds to the hotspot sharing request, and collects the main electronic The current resource information of the device; the main electronic device determines, by the current resource information of the main electronic device, whether the slave device allows access to the WiFi hotspot of the master electronic device; if yes, the master electronic device sends the first prompt message to the slave device to remind The electronic device allows access to the WiFi hotspot of the main electronic device, and initializes the WiFi hotspot of the main electronic device to prepare for the connection of the WiFi hotspot from the electronic device and the main electronic device.
  • the present invention finds that the electronic device allows to join the WiFi.
  • a hot spot is sent, promptly send a prompt message to remind the user that the electronic device can be connected to the WiFi hotspot to access the Internet, thereby avoiding the problem that the external device cannot be connected to the Internet when the electronic device is connected to the WiFi hotspot, thereby greatly improving the user experience.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for sharing a WiFi hotspot according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for sharing a WiFi hotspot according to the present invention
  • FIG. 3 is a schematic flowchart of a third embodiment of a method for sharing a WiFi hotspot according to the present invention.
  • FIG. 4 is a schematic structural view of an electronic device of the present invention.
  • Figure 5 is a schematic structural view of the main electronic device of Figure 3.
  • Figure 6 is a schematic structural view of the first embodiment of the judging module of Figure 5;
  • Figure 7 is a schematic structural view of a second embodiment of the judging module of Figure 5;
  • FIG. 8 is a schematic structural view of a third embodiment of the judging module of FIG. 5.
  • FIG. 8 is a schematic structural view of a third embodiment of the judging module of FIG. 5.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for sharing a WiFi hotspot according to the present invention. The method includes the following steps:
  • Step S101 The main electronic device receives the hotspot sharing request sent from the electronic device.
  • Step S102 The main electronic device responds to the hotspot sharing request, and collects current resource information of the main electronic device.
  • the current resource information of the main electronic device includes at least one of a processing capability strength of a controller of the main electronic device, a usage condition of the hardware device, and a processing capability of a WiFi chip of the main electronic device.
  • the processing capability strength of the controller of the main electronic device includes a limitation of the multi-thread processing capability of the main electronic device itself, a capability usage rate of the main electronic device, a usage rate of the encryption capability of the main electronic device, and a storage usage rate of the main electronic device. At least one of them.
  • the processing capability of the WiFi chip of the main electronic device includes at least one of a data throughput rate of the WiFi chip, a packet retransmission rate of the WiFi chip, and a packet delay rate of the WiFi chip.
  • the usage of the hardware device includes at least one of the number of slave electronic devices connected to the WiFi hotspot of the primary electronic device, the temperature of the primary electronic device, and the remaining power of the primary electronic device.
  • Step S103 The main electronic device determines, by the current resource information of the main electronic device, whether the slave electronic hotspot is allowed to access the main electronic device.
  • the main electronic device determines whether the slave electronic device is allowed to access the master through at least one of the processing capability strength of the controller of the master electronic device, the usage of the hardware device, and the processing capability of the WiFi chip of the master electronic device.
  • WiFi hotspot for electronic devices.
  • the main electronic device determines whether at least one of the number of the slave electronic devices connected to the WiFi hotspot of the master electronic device, the temperature of the master electronic device, and the remaining power of the master electronic device exceeds a preset threshold.
  • the slave device allows access from the electronic device when the primary electronic device determines that at least one of the number of slave electronic devices connected to the WiFi hotspot of the primary electronic device, the temperature of the primary electronic device, and the remaining power of the primary electronic device does not exceed a preset threshold WiFi hotspot for the main electronic device.
  • the main electronic device may determine whether one of the number of the slave electronic devices connected to the WiFi hotspot of the main electronic device, the temperature of the main electronic device, and the remaining power of the main electronic device exceeds a preset threshold, and if so, from The electronic device allows access to the WiFi hotspot of the primary electronic device.
  • the main electronic device can further determine whether the number of the slave electronic devices connected to the WiFi hotspot of the main electronic device, the temperature of the main electronic device, and the remaining power of the main electronic device exceed a preset threshold, and if so, The access from the electronic device allows access to the WiFi hotspot of the primary electronic device.
  • the preset threshold includes a quantity preset threshold
  • the main electronic device mainly determines whether the number of slave electronic devices connected to the WiFi hotspot of the main electronic device exceeds a preset threshold.
  • the quantity preset threshold is related to the traffic bandwidth package subscribed by the main electronic device, that is, the larger the bandwidth bandwidth package subscribed by the main electronic device, and the larger the preset threshold. It should be understood that the quantity preset threshold may also be related to the applicable mobile communication technology of the main electronic device, such as when the main electronic device is applicable to a 2G (second generation mobile communication technology) network, and the preset threshold is not more than the first quantity.
  • 2G second generation mobile communication technology
  • the number of preset thresholds does not exceed the second quantity value
  • the quantity is pre- The threshold value is not more than the third quantity value
  • the third quantity value is greater than the second quantity value
  • the second quantity value is greater than the first quantity value.
  • the number of preset thresholds can also be customized by the user.
  • the main electronic device may also pass the multi-thread processing capability of the main electronic device itself, the encryption capability usage rate of the main electronic device, the storage usage rate of the main electronic device, the data throughput rate of the WiFi chip, and the WiFi. At least one of a packet retransmission rate of the chip and a packet delay rate of the WiFi chip determines whether the slave device allows access to the WiFi hotspot of the master electronic device.
  • Step S104 The main electronic device determines that when the electronic device allows access to the WiFi hotspot of the main electronic device, the first prompt information is sent to the slave electronic device to remind the slave device to allow access to the WiFi hotspot of the main electronic device, and the main electronic device is initialized.
  • the WiFi hotspot is thought to be prepared from the WiFi hotspot connection of the electronic device to the main electronic device.
  • step S104 when the slave electronic device allows access to the WiFi hotspot of the master electronic device, the master electronic device newly adds a new communication path and redistributes the traffic bandwidth, and the traffic bandwidth is evenly distributed from the electronic device through the new communication path.
  • the WiFi hotspot of the main electronic device when the WiFi hotspot of the main electronic device is connected to the four slave electronic devices, the WiFi hotspot of the main electronic device distributes the traffic bandwidth equally to the four slave electronic devices, and if the new one continues to add one new slave electronic device, the main electronic device The device re-adds a new communication path and redistributes the traffic bandwidth, and distributes the traffic bandwidth equally to the five slave electronic devices through five communication paths.
  • the master electronic device detects the performance of the slave electronic device, and when detecting that the performance of the slave electronic device is good, the interference is small, and the allocation is less.
  • the traffic bandwidth is given to the slave electronic device, so that only a small amount of traffic bandwidth can be realized when the slave electronic device is interfered with the hour; when the performance of the slave electronic device is detected to be poor, that is, the interference is large, and a little more traffic bandwidth is allocated to the slave electronic device.
  • the device can enable communication from the electronic device when a large amount of traffic bandwidth is required when the interference is large.
  • the main electronic device determines that the number of the slave electronic devices connected to the WiFi hotspot of the master electronic device exceeds a preset threshold, determining that the slave device does not allow access to the WiFi hotspot of the master electronic device, transmitting the second prompt message to the slave electronic device
  • the device reminds the WiFi hotspot that the electronic device does not allow access to the main electronic device, and hides the WiFi hotspot of the main electronic device from the electronic device, so that the slave electronic device cannot search the WiFi hotspot of the main electronic device again for a period of time.
  • FIG. 2 is a schematic flowchart diagram of a second embodiment of a method for sharing a WiFi hotspot according to the present invention. The method includes the following steps:
  • Step S201 The main electronic device receives the hotspot sharing request sent from the electronic device.
  • Step S202 The main electronic device responds to the hotspot sharing request, and collects current resource information of the main electronic device.
  • the current resource information of the main electronic device includes the number of slave electronic devices connected to the WiFi hotspot of the main electronic device and the distance value between the master electronic device and the slave electronic device.
  • Step S203 The main electronic device determines whether the number of slave electronic devices connected to the WiFi hotspot of the main electronic device exceeds a preset threshold.
  • step S204 the primary electronic device determines whether the distance value is less than a preset distance value.
  • the preset distance value is preferably half of the normal WiFi transmission distance value. If the normal WiFi transmission distance value is 10-30 m (meter), the preset distance value is selected to be 5-15 m.
  • the primary electronic device determines that the number of slave electronic devices connected to the WiFi hotspot of the primary electronic device does not exceed a preset threshold or the primary electronic device determines that the distance value is less than a preset distance value, the primary electronic device Further detecting the temperature of the main electronic device, and determining whether the temperature of the main electronic device exceeds a preset temperature value, and if so, prohibiting access to the WiFi hotspot of the main electronic device from the electronic device; if not, allowing access to the main device from the electronic device
  • the WiFi hotspot of the electronic device can proceed to step S205.
  • the main electronic device may further detect the remaining power of the main electronic device, and determine whether the remaining power of the main electronic device exceeds the preset power value. If yes, accessing the WiFi hotspot of the main electronic device from the electronic device is prohibited; if not, allowing access to the WiFi hotspot of the main electronic device from the electronic device, then proceeding to step S205.
  • the present invention can determine, by one of the temperature of the main electronic device and the remaining power of the main electronic device, whether the slave electronic device allows access to the WiFi hotspot of the main electronic device.
  • step S205 the main electronic device sends the first prompt information to the slave electronic device to remind the slave electronic device to allow access to the WiFi hotspot of the master electronic device.
  • step S205 when the first prompt information is sent to the slave electronic device, the first prompt information is popped up in a window manner, and the user's slave electronic device is allowed to access the WiFi hotspot of the master electronic device.
  • Step S206 Initialize the WiFi hotspot of the main electronic device to prepare for the connection from the electronic device to the WiFi hotspot of the main electronic device.
  • step S206 initializing the WiFi hotspot of the primary electronic device includes re-adding a new communication path and reallocating the traffic bandwidth.
  • step S207 is performed: sending the second prompt information to From the electronic device to remind the slave from the electronic device that the WiFi hotspot is not allowed to access the main electronic device.
  • Step S208 hiding the WiFi hotspot of the main electronic device from the electronic device.
  • the current resource information of the main electronic device further includes a signal strength of the main electronic device, and if the main electronic device determines that the distance value is less than the preset distance value, further determining whether the signal strength of the main electronic device is greater than a preset. Signal strength, if it is determined that the signal strength of the main electronic device is greater than the preset signal strength, step S205 is performed; otherwise, step S207 is performed.
  • FIG. 3 is a schematic flowchart diagram of a second embodiment of a method for sharing a WiFi hotspot according to the present invention. The method includes the following steps:
  • Step S301 The main electronic device receives the hotspot sharing request sent from the electronic device.
  • Step S302 The main electronic device responds to the hotspot sharing request, and collects current resource information of the main electronic device.
  • the current resource information of the main electronic device includes the number of slave electronic devices connected to the WiFi hotspot of the main electronic device and the signal strength of the main electronic device.
  • Step S303 The main electronic device determines whether the number of slave electronic devices connected to the WiFi hotspot of the main electronic device exceeds a preset threshold.
  • step S304 the primary electronic device determines whether the signal strength of the primary electronic device is greater than a preset signal strength. That is, it mainly detects whether the signal of the current main electronic device is smooth, and if the current signal strength is good, the interference is small, and the traffic bandwidth is easily obtained.
  • the primary electronic device determines that the number of slave electronic devices connected to the WiFi hotspot of the primary electronic device does not exceed a preset threshold or the primary electronic device determines that the signal strength of the primary electronic device is greater than a preset signal strength
  • the main electronic device further detects the temperature of the main electronic device, and determines whether the temperature of the main electronic device exceeds a preset temperature value, and if so, prohibits accessing the WiFi hotspot of the main electronic device from the electronic device; if not, allowing the electronic device If the device accesses the WiFi hotspot of the main electronic device, the process may proceed to step S305.
  • the main electronic device may further detect the remaining power of the main electronic device, and determine whether the remaining power of the main electronic device exceeds the preset power value. If yes, the WiFi hotspot of the main electronic device is prohibited from being accessed from the electronic device; if not, the WiFi hotspot of the main electronic device is allowed to be accessed from the electronic device, and then the process may proceed to step S305.
  • the present invention can determine, by one of the temperature of the main electronic device and the remaining power of the main electronic device, whether the slave electronic device allows access to the WiFi hotspot of the main electronic device.
  • step S305 the main electronic device sends the first prompt information to the slave electronic device to remind the slave electronic device to allow access to the WiFi hotspot of the master electronic device.
  • step S305 when the first prompt information is sent to the slave electronic device, the first prompt information is popped up in a window manner, and the user's slave electronic device is allowed to access the WiFi hotspot of the master electronic device.
  • Step S306 Initialize the WiFi hotspot of the main electronic device to prepare for the connection from the electronic device to the WiFi hotspot of the main electronic device.
  • step S306 initializing the WiFi hotspot of the primary electronic device includes re-adding a new communication path and reallocating the traffic bandwidth.
  • step S307 transmitting the second The prompt message to the slave electronic device to remind the slave from the electronic device that the WiFi hotspot is not allowed to access the master electronic device.
  • Step S308 Hide the WiFi hotspot of the main electronic device from the electronic device.
  • the current resource information of the main electronic device further includes a distance value between the main electronic device and the slave electronic device, and if the main electronic device determines that the signal strength of the main electronic device is greater than the preset signal strength, further determining the distance value. Whether it is less than the preset distance value, if it is determined that the distance value is less than the preset distance value, step S305 is performed; otherwise, step S307 is performed.
  • FIG. 4 is a schematic structural view of an electronic device of the present invention.
  • the electronic device includes a main electronic device 11 and at least one slave electronic device 12.
  • the main electronic device 11 includes a receiving module 111, a resource collecting module 112, a determining module 113, a sending module 114, an initializing module 115, and a hiding module 116.
  • the receiving module 111 is configured to receive a hotspot sharing request sent from the electronic device 12.
  • the resource collection module 112 is configured to respond to the hotspot sharing request and collect current resource information of the main electronic device 11.
  • the current resource information of the main electronic device 11 includes at least one of the processing capability strength of the controller of the main electronic device 11, the usage of the hardware device, and the processing capability of the WiFi chip of the main electronic device 11.
  • the processing capability strength of the controller of the main electronic device 11 includes the limitation of the multi-thread processing capability of the main electronic device 11 itself, the capability usage rate of the main electronic device 11, the encryption capability usage rate of the main electronic device 11, and the main electronic device 11 At least one of the storage usage rates.
  • the processing capability of the WiFi chip of the main electronic device 11 includes at least one of a data throughput rate of the WiFi chip, a packet retransmission rate of the WiFi chip, and a packet delay rate of the WiFi chip.
  • the usage of the hardware device includes the number of slave electronic devices connected to the WiFi hotspot of the main electronic device 11, the temperature of the main electronic device 11 and the remaining power of the main electronic device 11, the signal strength of the main electronic device 11, and the main electronic device 11 and At least one of the distance values from the electronic device 12.
  • the determining module 113 is configured to determine, by the current resource information of the main electronic device 11, whether the slave WiFi hotspot of the main electronic device 11 is allowed to be accessed from the electronic device 12. Specifically, the determining module 113 is configured to determine, by the at least one of the processing capability strength of the controller of the main electronic device 11 , the usage of the hardware device, and the processing capability of the WiFi chip of the main electronic device 11 , whether the slave electronic device 12 is allowed to connect.
  • the WiFi hotspot of the main electronic device 11 is entered. As shown in FIG.
  • the judging module 113 includes a threshold judging unit 1131, which is preferably used for judging the number of slave electronic devices 12 connected to the WiFi hotspot of the main electronic device 11, the temperature of the main electronic device 11, and the main electronic device. Whether at least one of the remaining power of 11 exceeds a preset threshold.
  • the threshold determination unit 1131 determines that at least one of the number of slave electronic devices 12, the temperature of the main electronic device 11, and the remaining power of the main electronic device 11 connected to the WiFi hotspot of the main electronic device 11 does not exceed a preset threshold.
  • the slave electronic device 12 allows access to the WiFi hotspot of the main electronic device 11.
  • the threshold determination unit 1131 determines that the at least one of the number of slave electronic devices 12, the temperature of the main electronic device 11, and the remaining power of the main electronic device 11 connected to the WiFi hotspot of the main electronic device 11 exceeds a preset threshold.
  • the electronic device 12 does not allow access to the WiFi hotspot of the primary electronic device 11.
  • the threshold determining unit 1131 can also pass the multi-thread processing capability of the main electronic device itself, the encryption capability usage rate of the main electronic device, the storage usage rate of the main electronic device, the data throughput rate of the WiFi chip, and the WiFi chip.
  • At least one of a packet retransmission rate and a packet delay rate of the WiFi chip determines whether the slave device allows access to the WiFi hotspot of the master electronic device.
  • the determining module 113 may further include a signal strength determining unit 1132, and the signal strength determining unit 1132 is configured to determine, at the threshold determining unit 1131, the number of slave electronic devices 12 connected to the WiFi hotspot of the main electronic device 11, and the main electronic device 11 Whether the signal strength of the main electronic device 11 is greater than the preset signal strength is determined when at least one of the temperature and the remaining power of the main electronic device 11 does not exceed the preset threshold.
  • the signal strength judging unit 1132 determines that the WiFi hotspot that is allowed to access the main electronic device 11 from the electronic device 12 when determining that the signal strength of the main electronic device 11 is greater than the preset signal strength.
  • the signal strength judging unit 1132 determines that the WiFi hotspot that the slave electronic device 12 does not allow access to the main electronic device 11 when determining that the signal strength of the main electronic device 11 is not greater than the preset signal strength.
  • the determination module 113 includes a threshold determination unit 2131 and a distance determination unit 2132.
  • the distance judging unit 2132 is configured to determine at the threshold judging unit 2131 that at least one of the number of the slave electronic devices 12 connected to the WiFi hotspot of the main electronic device 11, the temperature of the main electronic device, and the remaining power of the main electronic device does not exceed the preset. At the threshold, it is judged whether the distance value is smaller than the preset distance value.
  • the distance judging unit 2132 determines that the WiFi hotspot that is allowed to access the main electronic device 11 from the electronic device 12 when determining that the distance value is smaller than the preset distance value.
  • the distance determining unit 2132 determines that the WiFi hotspot from the electronic device 12 is not allowed to access the main electronic device 11 when it is determined that the distance value is not less than the preset distance value.
  • the determination module 113 includes a threshold value determination unit 3131, a signal strength determination unit 3132, and a distance determination unit 3133.
  • the signal strength judging unit 3132 is configured to determine at least one of the number of slave electronic devices 12, the temperature of the main electronic device 11, and the remaining power of the main electronic device 11 that are connected to the WiFi hotspot of the main electronic device 11 at the threshold determining unit 3131. When the preset threshold is exceeded, it is judged whether the signal strength of the main electronic device 11 is greater than the preset signal strength.
  • the distance judging unit 3133 determines whether the distance value is smaller than the preset distance value when the signal strength judging unit 3132 determines that the signal strength of the main electronic device 11 is greater than the preset signal strength.
  • the distance determining unit 3133 determines at least one of the number of the slave electronic devices 12 connected to the WiFi hotspot of the main electronic device 11, the temperature of the main electronic device, and the remaining power of the main electronic device at the threshold determining unit 3131 not exceeding the preset.
  • the threshold value it is determined whether the distance value is smaller than the preset distance value.
  • the signal strength determining unit 3132 determines whether the signal strength of the main electronic device 11 is greater than the preset signal strength.
  • the sending module 114 is configured to: when the determining module 113 determines that the WiFi hotspot of the main electronic device 11 is allowed to be accessed from the electronic device 12, send the first prompt information to the slave electronic device 12 to remind the electronic device 12 to allow access to the main electronic device 11 WiFi hotspot.
  • the initialization module 115 is configured to initialize the WiFi hotspot of the main electronic device 11 when the determining module 113 determines that the WiFi hotspot of the main electronic device 11 is allowed to be accessed from the electronic device 12, so as to make a connection from the electronic device 12 and the WiFi hotspot of the main electronic device 11 ready. Specifically, the initialization module 115 re-adds a new communication path and redistributes the traffic bandwidth to distribute the traffic bandwidth evenly from the electronic device 12 over the new communication path. Or the initialization module 115 detects the performance of the slave electronic device 12, and when it detects that the performance of the slave electronic device 12 is good, that is, the interference is small, and the traffic bandwidth is allocated to the slave electronic device 12, the slave device 12 can be interfered.
  • Communication can be realized only by a small amount of traffic bandwidth in an hour; when the performance of the slave electronic device 12 is detected to be poor, that is, the interference is large, and a little more traffic bandwidth is allocated to the slave electronic device 12, so that the slave device 12 can be subjected to interference. Communication is required by requiring a large amount of traffic bandwidth.
  • the sending module 114 is further configured to: when the determining module 113 determines that the WiFi hotspot of the main electronic device 11 is not allowed to be accessed from the electronic device 12, send the second prompt information to the slave electronic device 12 to remind the slave electronic device 12 from accessing the main electronic device.
  • the hiding module 116 is configured to: when the determining module 113 determines that the WiFi hotspot of the main electronic device 11 is not allowed to be accessed from the electronic device 12, hide the WiFi hotspot of the main electronic device 11 from the electronic device 12, and let the slave electronic device for a period of time The WiFi hotspot of the main electronic device 11 cannot be searched again.
  • the invention also discloses an electronic device comprising: a main electronic device and a slave electronic device, the main electronic device comprising: a main electronic device and a slave electronic device, the main electronic device comprising: a processor, a memory, a transceiver and a bus, a processor, The memory and the transceiver are respectively connected to the bus, the memory is used to store the program, the transceiver is configured to receive the hotspot sharing request sent from the electronic device, and the main electronic device receives the hotspot sharing request sent from the electronic device;
  • a program responsive to the hotspot sharing request, and collecting current resource information of the primary electronic device, wherein the current resource information of the primary electronic device includes the number of the slave electronic devices connected to the WiFi hotspot of the primary electronic device, the temperature of the primary electronic device, and the primary electronic device At least one of the remaining power;
  • a program determining whether at least one of the number of slave electronic devices connected to the WiFi hotspot of the main electronic device, the temperature of the main electronic device, and the remaining power of the main electronic device exceeds a preset threshold
  • the program determines that at least one of the number of slave electronic devices connected to the WiFi hotspot of the primary electronic device, the temperature of the primary electronic device, and the remaining power of the primary electronic device does not exceed a preset threshold, determining that the secondary device allows access to the primary device a WiFi hotspot of the electronic device, the transceiver further transmitting the first prompt information to the slave electronic device to remind the slave device from accessing the WiFi hotspot of the master electronic device;
  • the program further initializes the WiFi hotspot of the main electronic device to prepare for the connection from the electronic device to the WiFi hotspot of the main electronic device;
  • the program determines that any one of the number of slave electronic devices connected to the WiFi hotspot of the primary electronic device, the temperature of the primary electronic device, and the remaining power of the primary electronic device exceeds a preset threshold, determining that the secondary device does not allow access to the primary device a WiFi hotspot of the electronic device, the transceiver further sending the second prompt information to the slave electronic device to remind the slave that the electronic device does not allow access to the WiFi hotspot of the main electronic device;
  • the program further hides the WiFi hotspot of the main electronic device from the electronic device;
  • a processor that is used to run programs.
  • the current resource information of the main electronic device further includes the signal strength of the main electronic device
  • the program is further configured to determine the number of the slave electronic devices connected to the WiFi hotspot of the main electronic device, the temperature of the main electronic device, and the remaining power of the main electronic device.
  • at least one of the preset thresholds is not exceeded, further determining whether the signal strength of the main electronic device is greater than a preset signal strength
  • the program determines that the signal strength of the primary electronic device is greater than the predetermined signal strength, then determining that the secondary device allows access to the WiFi hotspot of the primary electronic device.
  • the current resource information of the main electronic device further includes a distance value between the main electronic device and the slave electronic device, and the program is further used to determine the number of the slave electronic devices connected to the WiFi hotspot of the main electronic device, the temperature of the main electronic device, and If at least one of the remaining power of the main electronic device does not exceed the preset threshold, further determining whether the distance value is less than a preset distance value;
  • the program determines that the distance value is less than the preset distance value, it is determined that the slave device allows access to the WiFi hotspot of the primary electronic device.
  • the memory includes: U disk, mobile hard disk, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access
  • ROM read only memory
  • RAM random access memory
  • U disk mobile hard disk
  • ROM read only memory
  • RAM random access memory
  • RAM Random Access
  • media such as a memory, a magnetic disk, or an optical disk, that can store program code, and a processor executes all or part of the steps of the methods of the various embodiments of the present invention.
  • the present invention determines whether the slave device is allowed to join the WiFi hotspot of the master electronic device by detecting the current resource information of the master electronic device.
  • the first prompt information is sent in time to remind the user that the hotspot can be connected.
  • the WiFi hotspot is clearly connected from the electronic device to the WiFi hotspot to access the Internet; when the electronic device is found not allowed to join the WiFi hotspot, the second prompt message is sent in time to remind the user that the WiFi hotspot cannot be connected to the Internet, and the WiFi hotspot is taken from the electronic device. Elimination, to avoid the problem of not being able to connect to the external network when connecting to the WiFi hotspot, reducing unnecessary operations and greatly improving the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开了一种WiFi热点的共享方法,该方法包括:主电子设备接收从电子设备发送的热点共享请求;主电子设备响应热点共享请求,并收集主电子设备的当前资源信息;主电子设备通过主电子设备的当前资源信息判断从电子设备是否允许接入主电子设备的WiFi热点;如果是,则主电子设备发送第一提示信息至从电子设备以提醒从电子设备允许接入主电子设备的WiFi热点,并初始化主电子设备的WiFi热点,以为从电子设备与主电子设备的WiFi热点连接做准备。本发明还公开一种电子设备。通过上述方式,本发明能够明确从电子设备连上WiFi热点进行上网,避免了在电子设备连接上WiFi热点时无法连接外部网络上网的问题,大大提高用户的体验。

Description

WiFi热点的共享方法和电子设备
【技术领域】
本发明涉及通信技术领域,特别是涉及一种WiFi热点的共享方法和电子设备。
【背景技术】
随着技术的发展,特别是移动互联时代,WiFi(Wireless Fidelity,无线上网)逐渐变为了智能电子设备的标配,在节约流量费用的同时,也可以让一台电子设备当作WiFi热点,多台电子设备加入WiFi热点共享无线上网。在享受方便之余,由于电子设备的软硬件配置有限,连接WiFi热点的数量有限,多台电子设备争抢带宽等问题,导致后来的电子设备无法连接热点,又或者连接上去,无法连接外部网络上网的情况也会经常发生。对用户而言,可能明明已经知道已经连接WiFi热点,却依旧无法连接外部网络,浪费用户的操作,极度影响用户体验。
综上所述,有必要提供一种WiFi热点的共享方法和电子设备以解决上述问题。
【发明内容】
本发明主要解决的技术问题是提供一种WiFi热点的共享方法和电子设备,能够及时发送提示信息提醒用户是否可以加入WiFi热点。
为解决上述技术问题,本发明采用的第一个技术方案是:提供一种电子设备,包括主电子设备和从电子设备,主电子设备包括:处理器、存储器、收发器及总线,处理器、存储器及收发器分别与总线连接,存储器用于存储程序,收发器用于接收从电子设备发送的热点共享请求;
程序,响应热点共享请求,并收集主电子设备的当前资源信息,其中主电子设备的当前资源信息包括与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者;
程序,判断与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者是否超过预设阈值;
如果程序确定与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者没有超过预设阈值,则确定从电子设备允许接入主电子设备的WiFi热点,收发器进一步发送第一提示信息至从电子设备以提醒从电子设备允许接入主电子设备的WiFi热点;
程序进一步初始化主电子设备的WiFi热点,以为从电子设备与主电子设备的WiFi热点连接做准备;
如果程序确定与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的任意一者超过预设阈值,则确定从电子设备不允许接入主电子设备的WiFi热点,收发器进一步发送第二提示信息至从电子设备以提醒从电子设备不允许接入主电子设备的WiFi热点;
程序进一步在从电子设备上隐藏主电子设备的WiFi热点;
处理器,用于运行程序。
其中,主电子设备的当前资源信息还包括主电子设备的信号强度,
程序还用于,在确定与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者没有超过预设阈值时,进一步判断主电子设备的信号强度是否大于预设信号强度;
如果程序确定主电子设备的信号强度大于预设信号强度,则确定从电子设备允许接入主电子设备的WiFi热点。
其中,主电子设备的当前资源信息还包括主电子设备与从电子设备的距离值,
程序还用于,在确定与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者没有超过预设阈值时,进一步判断距离值是否小于预设距离值;
如果程序确定距离值小于预设距离值,则确定从电子设备允许接入主电子设备的WiFi热点。
为解决上述技术问题,本发明采用的第二个技术方案是:提供一种WiFi热点的共享方法,该方法包括:主电子设备接收从电子设备发送的热点共享请求;主电子设备响应热点共享请求,并收集主电子设备的当前资源信息,其中主电子设备的当前资源信息包括与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者;主电子设备通过主电子设备的当前资源信息判断从电子设备是否允许接入主电子设备的WiFi热点;主电子设备确定从电子设备允许接入主电子设备的WiFi热点时,发送第一提示信息至从电子设备以提醒从电子设备允许接入主电子设备的WiFi热点,并初始化主电子设备的WiFi热点,以为从电子设备与主电子设备的WiFi热点连接做准备。
该方法还包括:主电子设备确定从电子设备不允许接入主电子设备的WiFi热点时,发送第二提示信息至从电子设备以提醒从电子设备不允许接入主电子设备的WiFi热点,并在从电子设备上隐藏主电子设备的WiFi热点。
其中,主电子设备通过主电子设备的当前资源信息判断从电子设备是否允许接入主电子设备的WiFi热点的步骤包括:主电子设备判断与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者是否超过预设阈值;如果主电子设备确定与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者没有超过预设阈值时,确定从电子设备允许接入主电子设备的WiFi热点。
其中,主电子设备的当前资源信息还包括主电子设备的信号强度,主电子设备确定与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者没有超过预设阈值时,方法还包括:主电子设备判断主电子设备的信号强度是否大于预设信号强度;如果主电子设备确定主电子设备的信号强度大于预设信号强度时,确定从电子设备允许接入主电子设备的WiFi热点。
其中,主电子设备的当前资源信息还包括主电子设备与从电子设备的距离值,主电子设备确定与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者没有超过预设阈值时,方法还包括:主电子设备判断距离值是否小于预设距离值;如果主电子设备确定距离值小于预设距离值时,确定从电子设备允许接入主电子设备的WiFi热点。
为解决上述技术问题,本发明采用的第三个技术方案是:提供一种电子设备,包括主电子设备和从电子设备,该主电子设备包括:接收模块,用于接收从电子设备发送的热点共享请求;资源收集模块,用于响应热点共享请求,并收集主电子设备的当前资源信息,其中主电子设备的当前资源信息包括与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者;判断模块,用于通过主电子设备的当前资源信息判断从电子设备是否允许接入主电子设备的WiFi热点;发送模块,用于在判断模块确定从电子设备允许接入主电子设备的WiFi热点时,发送第一提示信息至从电子设备以提醒从电子设备允许接入主电子设备的WiFi热点;初始化模块,用于初始化主电子设备的WiFi热点,以为从电子设备与主电子设备的WiFi热点连接做准备。
其中,主电子设备还包括隐藏模块,其中:发送模块还用于在判断模块确定从电子设备不允许接入主电子设备的WiFi热点时,发送第二提示信息至从电子设备以提醒从电子设备不允许接入主电子设备的WiFi热点;隐藏模块用于在判断模块确定从电子设备不允许接入主电子设备的WiFi热点时,在从电子设备上隐藏主电子设备的WiFi热点。
其中,判断模块包括阈值判断单元,其中:阈值判断单元用于判断与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者是否超过预设阈值;阈值判断单元在确定与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者没有超过预设阈值时,确定从电子设备允许接入主电子设备的WiFi热点。
其中,主电子设备的当前资源信息还包括主电子设备的信号强度,判断模块还包括信号强度判断单元,其中:信号强度判断单元用于在阈值判断单元确定与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者没有超过预设阈值时,判断主电子设备的信号强度是否大于预设信号强度;信号强度判断单元在确定主电子设备的信号强度大于预设信号强度时,确定从电子设备允许接入主电子设备的WiFi热点。
其中,主电子设备的当前资源信息还包括主电子设备与从电子设备的距离值,判断模块还包括距离判断单元,其中:距离判断单元用于在阈值判断单元确定与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者没有超过预设阈值时,判断距离值是否小于预设距离值;距离判断单元在确定距离值小于预设距离值时,确定从电子设备允许接入主电子设备的WiFi热点。
本发明的有益效果是:区别于现有技术的情况,本发明的WiFi热点的共享方法包括:主电子设备接收从电子设备发送的热点共享请求;主电子设备响应热点共享请求,并收集主电子设备的当前资源信息;主电子设备通过主电子设备的当前资源信息判断从电子设备是否允许接入主电子设备的WiFi热点;如果是,则主电子设备发送第一提示信息至从电子设备以提醒从电子设备允许接入主电子设备的WiFi热点,并初始化主电子设备的WiFi热点,以为从电子设备与主电子设备的WiFi热点连接做准备,通过上述方式,本发明在发现电子设备允许加入WiFi热点时,及时发送提示信息提醒用户,明确从电子设备能够连上WiFi热点进行上网,避免了在电子设备连接上WiFi热点时无法连接外部网络上网的问题,大大提高用户的体验。
【附图说明】
图1是本发明WiFi热点的共享方法的第一实施例的流程示意图;
图2是本发明WiFi热点的共享方法的第二实施例的流程示意图;
图3是本发明WiFi热点的共享方法的第三实施例的流程示意图;
图4是本发明电子设备的结构示意图;
图5是图3中主电子设备的结构示意图;
图6是图5中判断模块的第一实施例的结构示意图;
图7是图5中判断模块的第二实施例的结构示意图;
图8是图5中判断模块的第三实施例的结构示意图。
【具体实施方式】
为了使本发明所要解决的技术问题、技术方案及有益效果更加清楚、明白,以下结合附图和实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明公开一种WiFi热点的共享方法,如图1所示,图1是本发明WiFi热点的共享方法的第一实施例的流程示意图。该方法包括以下步骤:
步骤S101:主电子设备接收从电子设备发送的热点共享请求。
步骤S102:主电子设备响应热点共享请求,并收集主电子设备的当前资源信息。
在步骤S102中,主电子设备的当前资源信息包括主电子设备的控制器的处理能力强度、硬件设备的使用情况和主电子设备的WiFi芯片的处理能力中的至少一者。其中,主电子设备的控制器的处理能力强度包括主电子设备本身的多线程处理能力的限制、主电子设备的能力使用率、主电子设备的加密能力使用率以及主电子设备的存储使用率中的至少一者。主电子设备的WiFi芯片的处理能力包括WiFi芯片的数据吞吐率、WiFi芯片的数据包重传率以及WiFi芯片的数据包延迟率中的至少一者。硬件设备的使用情况包括与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者。
步骤S103:主电子设备通过主电子设备的当前资源信息判断从电子设备是否允许接入主电子设备的WiFi热点。
在步骤S103中,主电子设备通过主电子设备的控制器的处理能力强度、硬件设备的使用情况和主电子设备的WiFi芯片的处理能力中的至少一者来判断从电子设备是否允许接入主电子设备的WiFi热点。优选地,主电子设备通过判断与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者是否超过预设阈值。主电子设备确定与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者没有超过预设阈值时,确定从电子设备允许接入主电子设备的WiFi热点。
具体地,主电子设备可以通过判断与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的一者是否超过预设阈值,如果是,从电子设备允许接入主电子设备的WiFi热点。又或者,主电子设备还可以通过判断与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的两者是否超过预设阈值,如果是,从电子设备允许接入主电子设备的WiFi热点。
在本实施例中,预设阈值包括数量预设阈值,主电子设备主要通过判断与主电子设备的WiFi热点连接的从电子设备的数量是否超过数量预设阈值。其中,数量预设阈值与主电子设备所订购的流量带宽套餐有关,即主电子设备所订购的流量带宽套餐越大,数量预设阈值越大。应理解,数量预设阈值还可以与主电子设备的所适用的移动通信技术有关,如当主电子设备的适用于2G(第二代移动通信技术)网络,数量预设阈值为不超过第一数量值,当主电子设备的适用于3G(第三代移动通信技术)网络,数量预设阈值为不超过第二数量值,当主电子设备的适用于4G(第四代移动通信技术)网络,数量预设阈值为不超过第三数量值,第三数量值大于第二数量值,第二数量值大于第一数量值。当然,数量预设阈值也可以由用户自定义设置。
应理解,在其他实施例中,主电子设备还可以通过主电子设备本身的多线程处理能力、主电子设备的加密能力使用率、主电子设备的存储使用率、WiFi芯片的数据吞吐率、WiFi芯片的数据包重传率以及WiFi芯片的数据包延迟率中的至少一者来判断从电子设备是否允许接入主电子设备的WiFi热点。
步骤S104:主电子设备确定从电子设备允许接入主电子设备的WiFi热点时,发送第一提示信息至从电子设备以提醒从电子设备允许接入主电子设备的WiFi热点,并初始化主电子设备的WiFi热点,以为从电子设备与主电子设备的WiFi热点连接做准备。
在步骤S104中,从电子设备允许接入主电子设备的WiFi热点时,主电子设备重新增加一条新通信路径,并重新分配流量带宽,通过新通信路径为从电子设备平均分配流量带宽。具体地,当主电子设备的WiFi热点与4个从电子设备连接,主电子设备的WiFi热点将流量带宽平均分配给4个从电子设备,如果增继续增加1个新的从电子设备时,主电子设备重新增加一条新通信路径,并重新分配流量带宽,通过5条通信路径将流量带宽平均分配给5个从电子设备。
进一步地,主电子设备确定从电子设备允许接入主电子设备的WiFi热点时,主电子设备检测从电子设备的性能,在检测到从电子设备的性能好时,即受干扰小,分配少一点流量带宽给从电子设备,能够使得从电子设备在受到干扰小时只需要少量流量带宽即可实现通信;在检测到从电子设备的性能差时,即受干扰大,分配多一点流量带宽给从电子设备,能够使得从电子设备在受到干扰大时需要大量流量带宽即可实现通信。
另外,主电子设备确定与主电子设备的WiFi热点连接的从电子设备的数量超过预设阈值时,确定从电子设备不允许接入主电子设备的WiFi热点,则发送第二提示信息至从电子设备以提醒从电子设备不允许接入主电子设备的WiFi热点,并在从电子设备上隐藏主电子设备的WiFi热点,让从电子设备在一段时间内无法再次搜查到主电子设备的WiFi热点。
如图2所示,图2是本发明WiFi热点的共享方法的第二实施例的流程示意图。该方法包括以下步骤:
步骤S201:主电子设备接收从电子设备发送的热点共享请求。
步骤S202:主电子设备响应热点共享请求,并收集主电子设备的当前资源信息。
其中,主电子设备的当前资源信息包括与主电子设备的WiFi热点连接的从电子设备的数量以及主电子设备与从电子设备的距离值。
步骤S203:主电子设备判断与主电子设备的WiFi热点连接的从电子设备的数量是否超过预设阈值。
如果主电子设备确定与主电子设备的WiFi热点连接的从电子设备的数量没有超过预设阈值,则执行步骤S204:主电子设备判断距离值是否小于预设距离值。其中,预设距离值优选为正常WiFi传输距离值的一半,如正常WiFi传输距离值为10-30m(米)时,预设距离值选择为5-15m。
应理解,在其他实施例中,如果主电子设备确定与主电子设备的WiFi热点连接的从电子设备的数量没有超过预设阈值或者主电子设备确定距离值小于预设距离值时,主电子设备进一步检测主电子设备的温度,并判断主电子设备的温度是否超过预设温度值,如果是,则禁止从电子设备接入主电子设备的WiFi热点;如果否,则允许从电子设备接入主电子设备的WiFi热点,则可以进入步骤S205。又或者,如果主电子设备确定主电子设备的温度没有超过预设温度值时,主电子设备还可以进一步检测主电子设备的剩余电量,并判断主电子设备的剩余电量是否超过预设电量值,如果是,则禁止从电子设备接入主电子设备的WiFi热点;如果否,则允许从电子设备接入主电子设备的WiFi热点,则可以进入步骤S205。当然,为了简单化,本发明可以通过主电子设备的温度和主电子设备的剩余电量中的一者作为判断从电子设备是否允许接入主电子设备的WiFi热点的条件。
如果主电子设备确定距离值小于预设距离值,则执行步骤S205:主电子设备发送第一提示信息至从电子设备以提醒从电子设备允许接入主电子设备的WiFi热点。
在步骤S205中,第一提示信息发送至从电子设备时,第一提示信息会以窗口方式弹出,提醒用户的从电子设备允许接入主电子设备的WiFi热点。
步骤S206:初始化主电子设备的WiFi热点,以为从电子设备与主电子设备的WiFi热点连接做准备。
在步骤S206中,初始化主电子设备的WiFi热点包括重新增加新的通信路径以及重新分配流量带宽。
如果主电子设备确定与主电子设备的WiFi热点连接的从电子设备的数量超过预设阈值以及如果主电子设备确定距离值没有小于预设距离值时,则执行步骤S207:发送第二提示信息至从电子设备以提醒从电子设备不允许接入主电子设备的WiFi热点。
步骤S208:在从电子设备上隐藏主电子设备的WiFi热点。
另外,在其他实施例中,主电子设备的当前资源信息还包括主电子设备的信号强度,如果主电子设备确定距离值小于预设距离值时,进一步判断主电子设备的信号强度是否大于预设信号强度,如果确定主电子设备的信号强度大于预设信号强度,则执行步骤S205;否则执行步骤S207。
如图3所示,图3是本发明WiFi热点的共享方法的第二实施例的流程示意图。该方法包括以下步骤:
步骤S301:主电子设备接收从电子设备发送的热点共享请求。
步骤S302:主电子设备响应热点共享请求,并收集主电子设备的当前资源信息。
其中,主电子设备的当前资源信息包括与主电子设备的WiFi热点连接的从电子设备的数量以及主电子设备的信号强度。
步骤S303:主电子设备判断与主电子设备的WiFi热点连接的从电子设备的数量是否超过预设阈值。
如果主电子设备确定与主电子设备的WiFi热点连接的从电子设备的数量没有超过预设阈值,则执行步骤S304:主电子设备判断主电子设备的信号强度是否大于预设信号强度。即主要检测当前主电子设备的信号是否流畅,如果流畅证明当前的信号强度好,受到干扰小,容易获取流量带宽。
应理解,在其他实施例中,如果主电子设备确定与主电子设备的WiFi热点连接的从电子设备的数量没有超过预设阈值或者主电子设备确定主电子设备的信号强度大于预设信号强度时,主电子设备进一步检测主电子设备的温度,并判断主电子设备的温度是否超过预设温度值,如果是,则禁止从电子设备接入主电子设备的WiFi热点;如果否,则允许从电子设备接入主电子设备的WiFi热点,则可以进入步骤S305。又或者,如果主电子设备确定主电子设备的温度没有超过预设温度值时,主电子设备还可以进一步检测主电子设备的剩余电量,并判断主电子设备的剩余电量是否超过预设电量值,如果是,则禁止从电子设备接入主电子设备的WiFi热点;如果否,则允许从电子设备接入主电子设备的WiFi热点,则可以进入步骤S305。当然,为了简单化,本发明可以通过主电子设备的温度和主电子设备的剩余电量中的一者作为判断从电子设备是否允许接入主电子设备的WiFi热点的条件。
如果主电子设备确定主电子设备的信号强度大于预设信号强度时,则执行步骤S305:主电子设备发送第一提示信息至从电子设备以提醒从电子设备允许接入主电子设备的WiFi热点。
在步骤S305中,第一提示信息发送至从电子设备时,第一提示信息会以窗口方式弹出,提醒用户的从电子设备允许接入主电子设备的WiFi热点。
步骤S306:初始化主电子设备的WiFi热点,以为从电子设备与主电子设备的WiFi热点连接做准备。
在步骤S306中,初始化主电子设备的WiFi热点包括重新增加新的通信路径以及重新分配流量带宽。
如果主电子设备确定与主电子设备的WiFi热点连接的从电子设备的数量没有超过预设阈值以及主电子设备确定主电子设备的信号强度没有大于预设信号强度,则执行步骤S307:发送第二提示信息至从电子设备以提醒从电子设备不允许接入主电子设备的WiFi热点。
步骤S308:在从电子设备上隐藏主电子设备的WiFi热点。
另外,在其他实施例中,主电子设备的当前资源信息还包括主电子设备与从电子设备的距离值,如果主电子设备确定主电子设备的信号强度大于预设信号强度时,进一步判断距离值是否小于预设距离值,如果确定距离值小于预设距离值,则执行步骤S305;否则执行步骤S307。
如图4所示,图4是本发明电子设备的结构示意图。该电子设备包括主电子设备11和至少1个从电子设备12。如图5所示,主电子设备11包括接收模块111、资源收集模块112、判断模块113、发送模块114、初始化模块115和隐藏模块116。
接收模块111用于接收从电子设备12发送的热点共享请求。
资源收集模块112用于响应热点共享请求,并收集主电子设备11的当前资源信息。其中主电子设备11的当前资源信息包括主电子设备11的控制器的处理能力强度、硬件设备的使用情况和主电子设备11的WiFi芯片的处理能力中的至少一者。其中,主电子设备11的控制器的处理能力强度包括主电子设备11本身的多线程处理能力的限制、主电子设备11的能力使用率、主电子设备11的加密能力使用率以及主电子设备11的存储使用率中的至少一者。主电子设备11的WiFi芯片的处理能力包括WiFi芯片的数据吞吐率、WiFi芯片的数据包重传率以及WiFi芯片的数据包延迟率中的至少一者。硬件设备的使用情况包括与主电子设备11的WiFi热点连接的从电子设备的数量、主电子设备11的温度和主电子设备11的剩余电量、主电子设备11的信号强度和主电子设备11与从电子设备12的距离值中的至少一者。
判断模块113用于通过主电子设备11的当前资源信息判断从电子设备12是否允许接入主电子设备11的WiFi热点。具体地,判断模块113用于通过主电子设备11的控制器的处理能力强度、硬件设备的使用情况和主电子设备11的WiFi芯片的处理能力中的至少一者判断从电子设备12是否允许接入主电子设备11的WiFi热点。如图6所示,判断模块113包括阈值判断单元1131,阈值判断单元1131优选用于判断与主电子设备11的WiFi热点连接的从电子设备12的数量、主电子设备11的温度和主电子设备11的剩余电量中的至少一者是否超过预设阈值。阈值判断单元1131在确定与主电子设备11的WiFi热点连接的从电子设备12的数量、主电子设备11的温度和主电子设备11的剩余电量中的至少一者没有超过预设阈值时,确定从电子设备12允许接入主电子设备11的WiFi热点。阈值判断单元1131在确定与主电子设备11的WiFi热点连接的从电子设备12的数量、主电子设备11的温度和主电子设备11的剩余电量中的至少一者超过预设阈值时,确定从电子设备12不允许接入主电子设备11的WiFi热点。在其他实施例中,阈值判断单元1131还可以通过主电子设备本身的多线程处理能力、主电子设备的加密能力使用率、主电子设备的存储使用率、WiFi芯片的数据吞吐率、WiFi芯片的数据包重传率以及WiFi芯片的数据包延迟率中的至少一者来判断从电子设备是否允许接入主电子设备的WiFi热点。
进一步地,判断模块113还可以包括信号强度判断单元1132,信号强度判断单元1132用于在阈值判断单元1131确定与主电子设备11的WiFi热点连接的从电子设备12的数量、主电子设备11的温度和主电子设备11的剩余电量中的至少一者没有超过预设阈值时,判断主电子设备11的信号强度是否大于预设信号强度。信号强度判断单元1132在确定主电子设备11的信号强度大于预设信号强度时,确定从电子设备12允许接入主电子设备11的WiFi热点。信号强度判断单元1132在确定主电子设备11的信号强度没有大于预设信号强度时,确定从电子设备12不允许接入主电子设备11的WiFi热点。
进一步地,如图7所示,判断模块113包括阈值判断单元2131和距离判断单元2132。距离判断单元2132用于在阈值判断单元2131确定与主电子设备11的WiFi热点连接的从电子设备12的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者没有超过预设阈值时,判断距离值是否小于预设距离值。距离判断单元2132在确定距离值小于预设距离值时,确定从电子设备12允许接入主电子设备11的WiFi热点。距离判断单元2132在确定距离值没有小于预设距离值时,确定从电子设备12不允许接入主电子设备11的WiFi热点。
另外,如图8所示,判断模块113包括阈值判断单元3131、信号强度判断单元3132和距离判断单元3133。信号强度判断单元3132用于在阈值判断单元3131确定与主电子设备11的WiFi热点连接的从电子设备12的数量、主电子设备11的温度和主电子设备11的剩余电量中的至少一者没有超过预设阈值时,判断主电子设备11的信号强度是否大于预设信号强度。距离判断单元3133在信号强度判断单元3132确定主电子设备11的信号强度大于预设信号强度时,判断距离值是否小于预设距离值。又或者距离判断单元3133在阈值判断单元3131确定与主电子设备11的WiFi热点连接的从电子设备12的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者没有超过预设阈值时,判断距离值是否小于预设距离值;信号强度判断单元3132在距离判断单元3133确定距离值小于预设距离值时,判断主电子设备11的信号强度是否大于预设信号强度。
发送模块114用于在判断模块113确定从电子设备12允许接入主电子设备11的WiFi热点时,发送第一提示信息至从电子设备12以提醒从电子设备12允许接入主电子设备11的WiFi热点。
初始化模块115用于在判断模块113确定从电子设备12允许接入主电子设备11的WiFi热点时,初始化主电子设备11的WiFi热点,以为从电子设备12与主电子设备11的WiFi热点连接做准备。具体地,初始化模块115重新增加一条新通信路径,并重新分配流量带宽,通过新通信路径为从电子设备12平均分配流量带宽。又或者初始化模块115检测从电子设备12的性能,在检测到从电子设备12的性能好时,即受干扰小,分配少一点流量带宽给从电子设备12,能够使得从电子设备12在受到干扰小时只需要少量流量带宽即可实现通信;在检测到从电子设备12的性能差时,即受干扰大,分配多一点流量带宽给从电子设备12,能够使得从电子设备12在受到干扰大时需要大量流量带宽即可实现通信。
发送模块114还用于在判断模块113确定从电子设备12不允许接入主电子设备11的WiFi热点时,发送第二提示信息至从电子设备12以提醒从电子设备12不允许接入主电子设备11的WiFi热点。
隐藏模块116用于在判断模块113确定从电子设备12不允许接入主电子设备11的WiFi热点时,在从电子设备12上隐藏主电子设备11的WiFi热点,让从电子设备在一段时间内无法再次搜查到主电子设备11的WiFi热点。
本发明还公开一种电子设备,包括主电子设备和从电子设备,主电子设备包括:包括主电子设备和从电子设备,主电子设备包括:处理器、存储器、收发器及总线,处理器、存储器及收发器分别与总线连接,存储器用于存储程序,收发器用于接收从电子设备发送的热点共享请求;主电子设备接收从电子设备发送的热点共享请求;
程序,响应热点共享请求,并收集主电子设备的当前资源信息,其中主电子设备的当前资源信息包括与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者;
程序,判断与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者是否超过预设阈值;
如果程序确定与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者没有超过预设阈值,则确定从电子设备允许接入主电子设备的WiFi热点,收发器进一步发送第一提示信息至从电子设备以提醒从电子设备允许接入主电子设备的WiFi热点;
程序进一步初始化主电子设备的WiFi热点,以为从电子设备与主电子设备的WiFi热点连接做准备;
如果程序确定与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的任意一者超过预设阈值,则确定从电子设备不允许接入主电子设备的WiFi热点,收发器进一步发送第二提示信息至从电子设备以提醒从电子设备不允许接入主电子设备的WiFi热点;
程序进一步在从电子设备上隐藏主电子设备的WiFi热点;
处理器,用于运行程序。
主电子设备的当前资源信息还包括主电子设备的信号强度,程序还用于,在确定与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者没有超过预设阈值时,进一步判断主电子设备的信号强度是否大于预设信号强度;
如果程序确定主电子设备的信号强度大于预设信号强度,则确定从电子设备允许接入主电子设备的WiFi热点。
其中,主电子设备的当前资源信息还包括主电子设备与从电子设备的距离值,程序还用于,在确定与主电子设备的WiFi热点连接的从电子设备的数量、主电子设备的温度和主电子设备的剩余电量中的至少一者没有超过预设阈值时,进一步判断距离值是否小于预设距离值;
如果程序确定距离值小于预设距离值,则确定从电子设备允许接入主电子设备的WiFi热点。
其中,存储器包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,处理器(processor)执行本发明各个实施方式所述方法的全部或部分步骤。
综上所述,本发明通过检测主电子设备的当前资源信息来判断是否允许从设备加入主电子设备的WiFi热点,在发现电子设备允许加入WiFi热点时,及时发送第一提示信息提醒用户可以连接WiFi热点,明确从电子设备能够连上WiFi热点进行上网;在发现电子设备不允许加入WiFi热点时,及时发送第二提示信息提醒用户不可以连接WiFi热点上网,并将WiFi热点从从电子设备上消除,以避免了在连接上WiFi热点时无法连接外部网络上网的问题,减少不必要的操作,大大提高用户的体验。
以上参照附图说明了本发明的优选实施例,并非因此局限本发明的权利范围。本领域技术人员不脱离本发明的范围和实质内所作的任何修改、等同替换和改进,均应在本发明的权利范围之内

Claims (13)

  1. 一种电子设备,包括主电子设备和从电子设备,其中,所述主电子设备包括:处理器、存储器、收发器及总线,所述处理器、所述存储器及所述收发器分别与所述总线连接,所述存储器用于存储程序,所述收发器用于接收所述从电子设备发送的热点共享请求;
    所述程序,响应所述热点共享请求,并收集所述主电子设备的当前资源信息,其中所述主电子设备的当前资源信息包括与所述主电子设备的WiFi热点连接的所述从电子设备的数量、所述主电子设备的温度和所述主电子设备的剩余电量中的至少一者;
    所述程序,判断与所述主电子设备的WiFi热点连接的所述从电子设备的数量、所述主电子设备的温度和所述主电子设备的剩余电量中的至少一者是否超过预设阈值;
    如果所述程序确定与所述主电子设备的WiFi热点连接的所述从电子设备的数量、所述主电子设备的温度和所述主电子设备的剩余电量中的至少一者没有超过所述预设阈值,则确定所述从电子设备允许接入所述主电子设备的WiFi热点,所述收发器进一步发送第一提示信息至所述从电子设备以提醒所述从电子设备允许接入所述主电子设备的WiFi热点;
    所述程序进一步初始化所述主电子设备的WiFi热点,以为所述从电子设备与所述主电子设备的WiFi热点连接做准备;
    如果所述程序确定与所述主电子设备的WiFi热点连接的所述从电子设备的数量、所述主电子设备的温度和所述主电子设备的剩余电量中的任意一者超过所述预设阈值,则确定所述从电子设备不允许接入所述主电子设备的WiFi热点,所述收发器进一步发送第二提示信息至所述从电子设备以提醒所述从电子设备不允许接入所述主电子设备的WiFi热点;
    所述程序进一步在所述从电子设备上隐藏所述主电子设备的WiFi热点;
    所述处理器,用于运行所述程序。
  2. 根据权利要求1所述的电子设备,其中,所述主电子设备的当前资源信息还包括所述主电子设备的信号强度,
    所述程序还用于,在确定与所述主电子设备的WiFi热点连接的所述从电子设备的数量、所述主电子设备的温度和所述主电子设备的剩余电量中的至少一者没有超过所述预设阈值时,进一步判断所述主电子设备的信号强度是否大于预设信号强度;
    如果所述程序确定所述主电子设备的信号强度大于所述预设信号强度,则确定所述从电子设备允许接入所述主电子设备的WiFi热点。
  3. 根据权利要求1所述的电子设备,其中,所述主电子设备的当前资源信息还包括所述主电子设备与所述从电子设备的距离值,
    所述程序还用于,在确定与所述主电子设备的WiFi热点连接的所述从电子设备的数量、所述主电子设备的温度和所述主电子设备的剩余电量中的至少一者没有超过所述预设阈值时,进一步判断所述距离值是否小于预设距离值;
    如果所述程序确定所述距离值小于所述预设距离值,则确定所述从电子设备允许接入所述主电子设备的WiFi热点。
  4. 一种WiFi热点的共享方法,其中,所述方法包括:
    主电子设备接收从电子设备发送的热点共享请求;
    所述主电子设备响应所述热点共享请求,并收集所述主电子设备的当前资源信息,其中所述主电子设备的当前资源信息包括与所述主电子设备的WiFi热点连接的所述从电子设备的数量、所述主电子设备的温度和所述主电子设备的剩余电量中的至少一者;
    所述主电子设备通过所述主电子设备的当前资源信息判断所述从电子设备是否允许接入所述主电子设备的WiFi热点;
    所述主电子设备确定所述从电子设备允许接入所述主电子设备的WiFi热点时,发送第一提示信息至所述从电子设备以提醒所述从电子设备允许接入所述主电子设备的WiFi热点,并初始化所述主电子设备的WiFi热点,以为所述从电子设备与所述主电子设备的WiFi热点连接做准备。
  5. 根据权利要求4所述的方法,其中,所述方法还包括:
    所述主电子设备确定所述从电子设备不允许接入所述主电子设备的WiFi热点时,发送第二提示信息至所述从电子设备以提醒所述从电子设备不允许接入所述主电子设备的WiFi热点,并在所述从电子设备上隐藏所述主电子设备的WiFi热点。
  6. 根据权利要求4所述的方法,其中,所述主电子设备通过所述主电子设备的当前资源信息判断所述从电子设备是否允许接入所述主电子设备的WiFi热点的步骤包括:
    所述主电子设备判断所述与所述主电子设备的WiFi热点连接的所述从电子设备的数量、所述主电子设备的温度和所述主电子设备的剩余电量中的至少一者是否超过预设阈值;
    如果所述主电子设备确定所述与所述主电子设备的WiFi热点连接的所述从电子设备的数量、所述主电子设备的温度和所述主电子设备的剩余电量中的至少一者没有超过所述预设阈值时,确定所述从电子设备允许接入所述主电子设备的WiFi热点。
  7. 根据权利要求6所述的方法,其中,所述主电子设备的当前资源信息还包括所述主电子设备的信号强度,
    所述主电子设备确定所述与所述主电子设备的WiFi热点连接的所述从电子设备的数量、所述主电子设备的温度和所述主电子设备的剩余电量中的至少一者没有超过所述预设阈值时,所述方法还包括:
    所述主电子设备判断所述主电子设备的信号强度是否大于预设信号强度;
    如果所述主电子设备确定所述主电子设备的信号强度大于所述预设信号强度时,确定所述从电子设备允许接入所述主电子设备的WiFi热点。
  8. 根据权利要求6所述的方法,其中,所述主电子设备的当前资源信息还包括所述主电子设备与所述从电子设备的距离值,
    所述主电子设备确定所述与所述主电子设备的WiFi热点连接的所述从电子设备的数量、所述主电子设备的温度和所述主电子设备的剩余电量中的至少一者没有超过所述预设阈值时,所述方法还包括:
    所述主电子设备判断所述距离值是否小于预设距离值;
    如果所述主电子设备确定所述距离值小于所述预设距离值时,确定所述从电子设备允许接入所述主电子设备的WiFi热点。
  9. 一种电子设备,包括主电子设备和从电子设备,其中,所述主电子设备包括:
    接收模块,用于接收所述从电子设备发送的热点共享请求;
    资源收集模块,用于响应所述热点共享请求,并收集所述主电子设备的当前资源信息,其中所述主电子设备的当前资源信息包括与所述主电子设备的WiFi热点连接的所述从电子设备的数量、所述主电子设备的温度和所述主电子设备的剩余电量中的至少一者;
    判断模块,用于通过所述主电子设备的当前资源信息判断所述从电子设备是否允许接入所述主电子设备的WiFi热点;
    发送模块,用于在所述判断模块确定所述从电子设备允许接入所述主电子设备的WiFi热点时,发送第一提示信息至所述从电子设备以提醒所述从电子设备允许接入所述主电子设备的WiFi热点;
    初始化模块,用于初始化所述主电子设备的WiFi热点,以为所述从电子设备与所述主电子设备的WiFi热点连接做准备。
  10. 根据权利要求9所述的电子设备,其中,所述主电子设备还包括隐藏模块,其中:
    所述发送模块还用于在所述判断模块确定所述从电子设备不允许接入所述主电子设备的WiFi热点时,发送第二提示信息至所述从电子设备以提醒所述从电子设备不允许接入所述主电子设备的WiFi热点;
    所述隐藏模块用于在所述判断模块确定所述从电子设备不允许接入所述主电子设备的WiFi热点时,在所述从电子设备上隐藏所述主电子设备的WiFi热点。
  11. 根据权利要求9所述的电子设备,其中,所述判断模块包括阈值判断单元,其中:
    所述阈值判断单元用于判断所述与所述主电子设备的WiFi热点连接的所述从电子设备的数量、所述主电子设备的温度和所述主电子设备的剩余电量中的至少一者是否超过预设阈值;
    所述阈值判断单元在确定所述与所述主电子设备的WiFi热点连接的所述从电子设备的数量、所述主电子设备的温度和所述主电子设备的剩余电量中的至少一者没有超过所述预设阈值时,确定所述从电子设备允许接入所述主电子设备的WiFi热点。
  12. 根据权利要求11所述的电子设备,其中,所述主电子设备的当前资源信息还包括所述主电子设备的信号强度,所述判断模块还包括信号强度判断单元,其中:
    所述信号强度判断单元用于在所述阈值判断单元确定所述与所述主电子设备的WiFi热点连接的所述从电子设备的数量、所述主电子设备的温度和所述主电子设备的剩余电量中的至少一者没有超过所述预设阈值时,判断所述主电子设备的信号强度是否大于预设信号强度;
    所述信号强度判断单元在确定所述主电子设备的信号强度大于所述预设信号强度时,确定所述从电子设备允许接入所述主电子设备的WiFi热点。
  13. 根据权利要求11所述的电子设备,其中,所述主电子设备的当前资源信息还包括所述主电子设备与所述从电子设备的距离值,所述判断模块还包括距离判断单元,其中:
    所述距离判断单元用于在所述阈值判断单元确定所述与所述主电子设备的WiFi热点连接的所述从电子设备的数量、所述主电子设备的温度和所述主电子设备的剩余电量中的至少一者没有超过所述预设阈值时,判断所述距离值是否小于预设距离值;
    所述距离判断单元在确定所述距离值小于预设距离值时,确定所述从电子设备允许接入所述主电子设备的WiFi热点。
PCT/CN2016/079249 2015-08-03 2016-04-14 WiFi热点的共享方法和电子设备 WO2017020608A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/377,769 US9986087B2 (en) 2015-08-03 2016-12-13 Methods of sharing a WiFi hotspot and associated electronic devices

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510483965.5 2015-08-03
CN201510483965.5A CN105072670B (zh) 2015-08-03 2015-08-03 WiFi热点的共享方法和电子设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/377,769 Continuation US9986087B2 (en) 2015-08-03 2016-12-13 Methods of sharing a WiFi hotspot and associated electronic devices

Publications (1)

Publication Number Publication Date
WO2017020608A1 true WO2017020608A1 (zh) 2017-02-09

Family

ID=54501914

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079249 WO2017020608A1 (zh) 2015-08-03 2016-04-14 WiFi热点的共享方法和电子设备

Country Status (3)

Country Link
US (1) US9986087B2 (zh)
CN (1) CN105072670B (zh)
WO (1) WO2017020608A1 (zh)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3202089B1 (en) * 2014-09-30 2020-03-11 Convida Wireless, LLC Dynamic policy control
CN105072670B (zh) 2015-08-03 2020-07-10 惠州Tcl移动通信有限公司 WiFi热点的共享方法和电子设备
CN105722178B (zh) * 2016-01-29 2018-10-30 高翔 语音数据转发方法、装置及系统
JP6689500B2 (ja) 2016-03-30 2020-04-28 華為技術有限公司Huawei Technologies Co.,Ltd. Wi−Fiホットスポット推奨方法、端末およびグラフィカル・ユーザ・インターフェース
CN106131899A (zh) * 2016-06-22 2016-11-16 广东欧珀移动通信有限公司 联网控制方法及终端设备
CN106572488B (zh) * 2016-11-02 2021-01-08 捷开通讯(深圳)有限公司 一种终端设备的wifi热点共享方法以及终端设备
WO2019047022A1 (zh) * 2017-09-05 2019-03-14 深圳传音通讯有限公司 Wifi共享方法、移动终端及计算机可读存储介质
CN108307433B (zh) * 2017-09-29 2021-06-15 努比亚技术有限公司 无线热点共享方法、移动终端及计算机可读存储介质
CN107911831B (zh) * 2017-11-16 2022-03-01 北京小米移动软件有限公司 提醒用户更换路由器的方法、装置、设备和存储介质
WO2019117625A1 (en) * 2017-12-12 2019-06-20 Samsung Electronics Co., Ltd. Apparatus and method for sharing content
CN109362121B (zh) * 2018-11-20 2021-02-26 Oppo(重庆)智能科技有限公司 无线局域网的共享方法、装置、存储介质及终端
CN115021430B (zh) * 2021-03-03 2024-09-03 捷普科技(上海)有限公司 WiFi无线充电控制方法、服务控制方法、装置及系统
CN113613310B (zh) * 2021-07-02 2023-10-13 深圳Tcl新技术有限公司 Wifi连接方法、装置、存储介质及移动终端
US11997737B2 (en) 2022-01-31 2024-05-28 Kyndryl, Inc. Cognitive hotspot provisioning and network prioritization
US20240171494A1 (en) * 2022-11-18 2024-05-23 Cypress Semiconductor Corporation Integrating secure ranging between wi-fi internet-of-things (iot) devices into a device commissioning protocol

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103096384A (zh) * 2012-12-17 2013-05-08 东莞宇龙通信科技有限公司 限制从机上网流量的方法及其系统
WO2013178254A1 (en) * 2012-05-30 2013-12-05 Nokia Siemens Networks Oy Dynamic hotspot access control
CN104427537A (zh) * 2013-09-11 2015-03-18 中国电信股份有限公司 控制Wifi终端接入互联网的方法与系统
CN105072670A (zh) * 2015-08-03 2015-11-18 惠州Tcl移动通信有限公司 WiFi热点的共享方法和电子设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8996698B1 (en) * 2000-11-03 2015-03-31 Truphone Limited Cooperative network for mobile internet access
US8445826B2 (en) * 2007-06-29 2013-05-21 Orion Energy Systems, Inc. Outdoor lighting systems and methods for wireless network communications
US20120057456A1 (en) * 2009-04-16 2012-03-08 Nearverse, Inc. Method and apparatus for distributed communication using short range and wide range communication links
CN104581997B (zh) * 2014-12-29 2018-07-06 广东欧珀移动通信有限公司 一种移动wifi热点连接方法及移动设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013178254A1 (en) * 2012-05-30 2013-12-05 Nokia Siemens Networks Oy Dynamic hotspot access control
CN103096384A (zh) * 2012-12-17 2013-05-08 东莞宇龙通信科技有限公司 限制从机上网流量的方法及其系统
CN104427537A (zh) * 2013-09-11 2015-03-18 中国电信股份有限公司 控制Wifi终端接入互联网的方法与系统
CN105072670A (zh) * 2015-08-03 2015-11-18 惠州Tcl移动通信有限公司 WiFi热点的共享方法和电子设备

Also Published As

Publication number Publication date
US20170094054A1 (en) 2017-03-30
CN105072670A (zh) 2015-11-18
US9986087B2 (en) 2018-05-29
CN105072670B (zh) 2020-07-10

Similar Documents

Publication Publication Date Title
WO2017020608A1 (zh) WiFi热点的共享方法和电子设备
WO2009113801A2 (ko) 무선 애드혹 네트워크 설정 방법 및 장치
WO2012023743A2 (en) Communication method of a terminal and an access point for multi-user transmission opportunity (txop) power saving
WO2014178622A1 (en) Method and apparatus for performing distributed resource scheduling in device-to-device communication system
WO2017161885A1 (zh) 一种调度信令的配置方法、接收方法和相关设备
WO2013069931A1 (en) System and method for controlling temperature in mobile device
WO2013095074A1 (en) Method and system for secured communication of control information in a wireless network environment
WO2018149368A1 (zh) 一种移动终端VoWiFi通话的处理方法、系统及移动终端
WO2012070811A2 (en) Method and system for minimizing latencies for content protection in audio/video networks
WO2016080692A1 (en) Method for controlling access point operation in wireless communication system
EP2619926A1 (en) Apparatus and method for detecting cause of radio link failure or handover failure in mobile communication system
WO2017133264A1 (zh) 一种调度指令的检测方法和终端
WO2017049984A1 (zh) 一种无线网络的接入方法及无线访问节点
WO2011105738A2 (en) Method and apparatus for performing handover
WO2016114588A1 (ko) 무선자원관리방법 및 이를 이용하는 액세스 포인트
WO2023017952A1 (ko) 센싱 장치, 센싱 장치를 포함하는 무선 침입 방지 시스템 및 그것의 동작 방법
WO2020022592A1 (ko) 인지 무선 네트워크에서 2차 사용자의 패킷 전송 성능 개선 방법 및 그 장치
WO2015102447A1 (ko) 배터리 사용 패턴에 따른 데이터 전송 방법
WO2012093915A2 (en) Apparatus and method for supporting time-controlled service in machine-to-machine communication system
WO2012118266A1 (en) Communication method of a target terminal and an access point for group id management in mu-mimo transmission
WO2015143915A1 (zh) 通信系统、通信终端、中转台以及握手通信的方法
WO2018000790A1 (zh) 移动终端的小区重选方法、小区重选装置及移动终端
WO2011030967A1 (ko) 유선 및 무선 통합 게이트웨이 및 그 동작 방법
WO2020196989A1 (ko) 무선 통신 신호 송수신 방법 및 무선 통신 신호 송수신 단말 장치
EP2622911A1 (en) Communication method using multi-radio and communication apparatus

Legal Events

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

Ref document number: 16832097

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16832097

Country of ref document: EP

Kind code of ref document: A1