CN115243339A - Network access method and device of target equipment, electronic equipment and intelligent home system - Google Patents

Network access method and device of target equipment, electronic equipment and intelligent home system Download PDF

Info

Publication number
CN115243339A
CN115243339A CN202210808418.XA CN202210808418A CN115243339A CN 115243339 A CN115243339 A CN 115243339A CN 202210808418 A CN202210808418 A CN 202210808418A CN 115243339 A CN115243339 A CN 115243339A
Authority
CN
China
Prior art keywords
target
network
channel
network information
channels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210808418.XA
Other languages
Chinese (zh)
Inventor
汤孝义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lumi United Technology Co Ltd
Original Assignee
Lumi United Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lumi United Technology Co Ltd filed Critical Lumi United Technology Co Ltd
Priority to CN202210808418.XA priority Critical patent/CN115243339A/en
Publication of CN115243339A publication Critical patent/CN115243339A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Automation & Control Theory (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a network access method and device of target equipment, electronic equipment and an intelligent home system, wherein through the network access method of the target equipment, a terminal can acquire network information from the target equipment according to network access operation aiming at the target equipment so as to control the target equipment to select a target network according to the network information, and the terminal can also control the target equipment to adjust the target network through the acquired refreshed network information, so that in the process of configuring the network access of the target equipment, peripheral router information can be acquired without frequent switching of connected WiFi hotspots, and the method is simple in step and convenient to operate.

Description

Network access method and device of target equipment, electronic equipment and intelligent home system
Technical Field
The application relates to the technical field of computers, in particular to a network access method and device of target equipment and an intelligent home system.
Background
With the development of the internet of things technology, more and more intelligent devices begin to integrate network functions, such as televisions, refrigerators, air conditioners and the like, and through the integration of the network functions, the devices become more intelligent, and the daily life experience of people is greatly enriched. However, in the process of accessing the intelligent device to the network based on the integrated network function, the operation process is complex, and the user experience is influenced. Therefore, how to improve the convenience of network access of the intelligent device is an urgent problem to be solved.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a method and an apparatus for accessing a target device, an electronic device, and a smart home system, which can improve convenience of accessing a smart device.
In order to achieve the above technical objective, the embodiments of the present specification provide the following technical solutions:
in a first aspect, the present application provides a network access method for a target device, including:
responding to network access operation aiming at target equipment, acquiring network information obtained by scanning of the target equipment, and controlling the target equipment to select a target network based on the network information;
and obtaining refreshed network information obtained by re-scanning the target equipment after the last scanning, and controlling the target equipment to adjust the target network based on the refreshed network information.
In a second aspect, the present application provides a network access method for a target device, including:
responding to network access operation sent by a terminal, sending network information in a target range to the terminal so as to select a target network determined by the terminal according to the network information;
and after the last scanning, scanning the network information in the target range again to obtain and store refreshed network information so as to adjust the target network based on the refreshed network information.
In a third aspect, the present application provides a network access apparatus for a target device, including:
the control module is used for responding to the network access operation aiming at the target equipment, acquiring the network information obtained by scanning the target equipment and controlling the target equipment to select a target network based on the network information;
and the adjusting module is used for acquiring refreshed network information obtained by re-scanning the target equipment after the last scanning, and controlling the target equipment to adjust the target network based on the refreshed network information.
Optionally, in the network access apparatus of the target device, the adjusting module includes:
and the selecting unit is used for responding to the operation of reselecting the target network in the refreshed network information and controlling the target equipment to select the determined target network again.
Optionally, in the network access apparatus of the target device, the control module includes:
the acquisition unit is used for responding to selection operation aiming at a target network in the network information and acquiring network access information of the target network;
and the first control unit is used for controlling the target equipment to select the target network according to the network access information of the target network.
Optionally, in the network access apparatus of the target device, the target network includes a plurality of channels;
the adjustment module includes:
a first determining unit, configured to determine, based on the refreshed network information, interference degrees of the plurality of channels;
the second determining unit is used for determining a target channel with the interference degree meeting a preset condition according to the interference degrees of the plurality of channels;
a second control unit, configured to control the target device to access a target channel of the target network.
Optionally, in the network access apparatus of the target device, when the first determining unit determines the interference degrees of the multiple channels based on the refreshed network information, the first determining unit is specifically configured to:
determining the occurrence frequency of each channel in the target network based on the refreshed network information;
and determining the interference degree of the channels according to the occurrence frequency of the channels and/or the position influence degree corresponding to each channel.
Optionally, in the network access apparatus of the target device, when the first determining unit determines the interference degree of the multiple channels according to the occurrence frequency of the multiple channels and/or the position influence degree corresponding to each of the multiple channels, the first determining unit is specifically configured to:
determining the occurrence frequency weight corresponding to the plurality of channels according to the occurrence frequency of the plurality of channels; and/or determining the channel position weight corresponding to each channel according to the position influence degree corresponding to each channel;
determining interference levels of a plurality of the channels based on the frequency of occurrence weights and/or the channel location weights.
Optionally, in the network access apparatus of the target device, when the first determining unit determines the frequency of occurrence weights corresponding to the multiple channels according to the frequency of occurrence of the multiple channels, the first determining unit is specifically configured to:
determining the occurrence frequency weight corresponding to a plurality of channels according to the relationship of the occurrence frequency weight and the occurrence frequency negative correlation of the plurality of channels;
the channels of the target network comprise independent channels and dependent channels; the first determining unit is specifically configured to, when determining the channel position weight corresponding to each channel according to the position influence degree corresponding to each channel:
determining channel position weights of the dependent channels according to the position influence degree between the dependent channels and the adjacent independent channels; the channel position weight of the non-independent channel and the position influence degree of the non-independent channel are in negative correlation; the channel position weight of the independent channel is greater than the channel position weight of the non-independent channel.
In a fourth aspect, the present application provides a network access apparatus for a target device, including:
the sending module is used for responding to network access operation sent by a terminal, sending network information in a target range to the terminal, and selecting a target network determined by the terminal according to the network information;
and the second adjusting module is used for scanning the network information in the target range again after the last scanning to obtain and store the refreshed network information so as to adjust the target network based on the refreshed network information.
In a fifth aspect, the present application provides an intelligent home system, including: intelligent equipment and a terminal; wherein the content of the first and second substances,
the terminal is used for responding to the network access operation aiming at the target equipment, acquiring the network information obtained by scanning the target equipment, and controlling the target equipment to select a target network based on the network information; obtaining refreshed network information obtained by re-scanning the target equipment after the last scanning, and controlling the target equipment to adjust the target network based on the refreshed network information;
the intelligent equipment is used for responding to network access operation sent by the terminal, sending network information in a target range to the terminal, and selecting a target network determined by the terminal according to the network information; and scanning the network information in the target range again after the last scanning to obtain and store the refreshed network information so as to adjust the target network based on the refreshed network information.
In a sixth aspect, the present application provides an electronic device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the method of any one of the above when executing the computer program.
In a seventh aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of any one of the above.
In an eighth aspect, embodiments of the present application provide a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the above-described method.
The embodiment of the specification provides a network access method and device of a target device, an electronic device and an intelligent home system, wherein through the network access method of the target device, a terminal can acquire network information from the target device according to network access operation aiming at the target device so as to control the target device to select a target network according to the network information, and the terminal can control the target device to adjust the target network according to the acquired refreshed network information, so that information of peripheral routers can be acquired without frequently switching a connected WiFi hotspot in the process of configuring the network access of the target device, and the method is simple in step and convenient to operate.
Drawings
Fig. 1 is a diagram illustrating an application environment of a network access method of a target device in an embodiment;
FIG. 2 is a block diagram of a hardware architecture of a gateway in one embodiment;
fig. 3 is a schematic flowchart illustrating a network access method of a target device in an embodiment;
FIG. 4 is a schematic diagram of a display of network information in one embodiment;
FIG. 5 is a flow diagram illustrating the steps of determining a target channel in one embodiment;
FIG. 6 is a flowchart illustrating the step of determining the interference level of a channel in one embodiment;
fig. 7 is a signaling flow diagram of a network access method of a target device in an embodiment;
fig. 8 is a block diagram illustrating a configuration of a network access device of a target device according to an embodiment;
fig. 9 is a schematic structural diagram of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
Exemplary implementation Environment
Referring to fig. 1, fig. 1 is a schematic diagram of an implementation environment that may be involved in accordance with the present invention. The implementation environment is an internet of things platform, and the internet of things platform includes a terminal 100, a gateway 200, an intelligent device 300 deployed in the gateway 200, a cloud server 400, and a router 500.
The terminal 100 may be any device with communication and storage functions, such as: a desktop computer, a notebook computer, a tablet computer, a smart phone or other smart communication devices capable of implementing network connection, which is not limited herein.
The smart device 300 may be a smart light, a smart printer, a smart fax machine, a smart camera, a smart air conditioner, a smart television, a smart refrigerator, or a human body sensor, a door/window sensor, a temperature/humidity sensor, a water sensor, a natural gas alarm, a smoke alarm, a wall switch, a wall socket, a wireless switch, a wireless wall switch, a magic cube controller, a curtain motor, and the like, which are configured with a communication module (e.g., a zigbee module, a WIFI module, a bluetooth communication module, and the like).
The terminal 100 and the gateway 200 establish a network connection, and in one embodiment, the terminal 100 and the gateway 200 establish a network connection through 2G/3G/4G/5G, wi-Fi, or the like. Interacts with the gateway 200 through the network connection, so that the user controls the smart device 300 accessing the gateway 200 to perform corresponding actions by means of the terminal 100.
Optionally, a client capable of managing the smart device is installed in the terminal 100, where the client may be an application client (e.g., a mobile phone APP), or may be a web page client or an applet, and is not limited herein.
The smart device 300 communicates with the gateway 200 through a communication module configured by itself, and is further controlled by the cloud server 400. In one embodiment, the smart device 300 accesses the gateway 200 through a local area network and is thus deployed in the gateway 200. The process of accessing the gateway 200 by the intelligent device 300 through the local area network includes that the gateway 200 firstly establishes a local area network, and the intelligent device 300 is connected with the gateway 200 so as to access the local area network established by the gateway 200. The local area network includes: zigBee or bluetooth. Accordingly, the smart device 300 has a communication module (e.g., a ZIGBEE module, a Wi-Fi module, a bluetooth communication module, etc.) built therein to have a function of implementing communication with the gateway 200 and the terminal.
Both the gateway 200 and the terminal 100 may be connected to the router 500, and may access the network through the router 500, and the router 500 may access the server 500 through a wired or wireless communication connection. For example, the gateway 200 and the terminal 100 may store the acquired information in the cloud server 400. Optionally, the terminal 100 may also establish a network connection with the cloud server 400 through 2G/3G/4G/5G, wi-Fi, and the like, so as to obtain data sent by the cloud server 400.
Alternatively, as shown in fig. 1, the terminal 100, the router 500 and the gateway 200 are in the same local area network, and a path established in the local area network may be referred to as a local area network path. When the terminal 100, the router 500, and the gateway 200 are in the same local area network, the terminal 100 may interact with the gateway 200 and the smart device 300 connected to the gateway 200 through a local area network path. The terminal 100 may also interact through the wan path when it is not in the same lan as the gateway 200 and the smart device 300. The wan path is a path formed by connecting the terminal to the cloud server 400 through a mobile network such as 2G/3G/4G/5G, and the smart device 300 is connected to the cloud server 400 through the gateway 200 and the router 500.
Fig. 2 is a block diagram illustrating a hardware architecture of a gateway according to an example embodiment. This gateway is suitable for use in the implementation environment shown in fig. 1.
It should be noted that the gateway is only an example adapted to the present invention, and should not be considered as providing any limitation to the scope of the present invention. The gateway is not to be interpreted as requiring reliance on, or necessity of, one or more of the components of the exemplary gateway 200 shown in fig. 2.
The hardware structure of the gateway 200 may be greatly different due to different configurations or performances, as shown in fig. 2, the gateway 200 includes: a power supply 210, an interface 230, at least one memory 250, and at least one Central Processing Unit (CPU) 270.
The power supply 210 is used to provide operating voltage for each hardware device on the gateway 200.
The interface 230 includes at least one wired or wireless network interface 231, at least one serial-to-parallel conversion interface 233, at least one input/output interface 235, and at least one USB interface 237, etc. for communicating with external devices.
The storage 250 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon include an operating system 251, an application 253 or data 255, etc., and the storage manner may be a transient storage or a permanent storage. The operating system 251 is used for managing and controlling various hardware devices and application programs 253 on the gateway 200 to implement the calculation and processing of the mass data 255 by the central processing unit 270, and may be Windows server, mac OS XTM, unix, linux, freeBSDTM, freeRTOS, and the like. The application 253 is a computer program that performs at least one specific task on top of the operating system 251, and may include at least one module (not shown in fig. 2), each of which may contain a series of computer-readable instructions for the gateway 200. The data 255 may be photographs, pictures, etc. stored in a disk.
The central processor 270 may include one or more processors and is arranged to communicate with the memory 250 via a bus for computing and processing the mass data 255 in the memory 250.
As described in detail above, the gateway 200 to which the present invention is applied will complete the device linkage control method by the cpu 270 reading a series of computer-readable instructions stored in the memory 250.
Furthermore, the present invention can be implemented by hardware circuitry or by a combination of hardware circuitry and software instructions, and thus, implementation of the present invention is not limited to any specific hardware circuitry, software, or combination of both.
Exemplary method
An exemplary embodiment of the present specification provides a network access method for a target device, which is described by taking a terminal in an exemplary embodiment environment as an example. Referring to fig. 3, the network access method of the target device may include the steps of:
s301: and responding to the network access operation aiming at the target equipment, acquiring the network information obtained by scanning the target equipment, and controlling the target equipment to select a target network based on the network information.
The target device refers to an intelligent device with a network access requirement, and specifically may be an intelligent device with a network access requirement in an exemplary embodiment environment. For example, the target device may be a smart television, a smart air conditioner, a smart refrigerator, or the like, in an example embodiment environment, with a network entry requirement. The network access operation of the target device refers to an operation for controlling the target device to access the network, and may specifically be an operation for accessing the network of the target device sent by the user through the terminal, for example, the user may determine the target device that needs to access the network through the terminal, and perform a selection operation for the target device from the terminal. In another embodiment, the user may also initiate the network access operation by triggering a specific operation on the target device, for example, the user may trigger operations such as a specific option, a specific button, and the like on the target device to trigger the target device to enter a wireless access mode, so as to send a signal that the target device is to be networked to a nearby terminal. And after receiving the signal, the terminal responds to the network access operation of the target equipment so as to further perform network access processing on the target equipment.
In this embodiment, the target device can send an identification signal to the outside, and the signal generally carries the identity information of the target device. After acquiring the identification signal sent by the target device, the terminal can analyze and output the identity information of the target device, so that a user can conveniently execute selection operation aiming at the target device from the terminal based on the identity information output by the terminal.
It should be noted that, in the current network environment, there may be other intelligent devices that also have a function of sending an identification signal to the outside, and the terminal may acquire the identity information of the multiple devices, so that it is necessary for the user to determine the identity information corresponding to the target device from the identity information of the multiple devices, and to perform a selection operation for the target device from the terminal.
The time node for the target device to send the identification signal to the outside includes a node corresponding to the power-on of the starting signal or a node corresponding to the signal sending instruction. For example, if the time node at which the target device sends the identification signal to the outside is a corresponding node when the start signal is powered on, when the target device detects that the start signal is powered on, the identification signal can be sent to the outside; if the time node at which the target device sends the identification signal outwards is the corresponding node when the signal sending instruction is obtained, when the target device detects that the starting signal is powered on, the identification signal is not sent outwards, but the identification signal is sent outwards when the signal sending instruction is obtained.
The identity information refers to information capable of confirming the identity of the target device, so that a user can determine the identity information corresponding to the target device from all the identity information output by the terminal, and further perform a selection operation for the target device from the terminal. For example, the name of the identification signal may be set as the identity information of the target device, so that the terminal can quickly parse out the identity information from the identification signal and output the identity information. In addition, in the embodiment of the present application, specific content of the identity information is not limited, and the specific content may be a name of a product of the target device, a model specification of the target device, or a specific character string, so long as the user can determine the corresponding target device through the identity information.
The identification signal sent out by the target device is a signal which can be acquired and identified by the terminal. Illustratively, if the target device can enter a Wireless Access Point (AP) mode, an AP hotspot signal sent by the target device in the AP mode may be used as an identification signal, and on the premise that the terminal is configured with a Wi-Fi module, the terminal can acquire the AP hotspot signal by searching for a Wireless network; for another example, if the target device has a bluetooth module, the bluetooth function corresponding to the bluetooth module may be started, and the terminal may acquire the bluetooth signal by searching for the bluetooth signal on the premise that the terminal is configured with the bluetooth module as well, using the bluetooth signal as the identification signal. For example, the terminal of the present embodiment may be provided with a bluetooth module and a Wi-Fi module at the same time.
Further, the user determines identity information corresponding to the target device from the identity information of the multiple devices, after the selection operation for the target device is executed from the terminal, the terminal establishes connection with the target device, and based on the connection relationship between the terminal and the target device, the terminal can acquire network information scanned by the target device.
Illustratively, if the terminal and the target device are both provided with the Wi-Fi module, the terminal acquires an AP hotspot signal sent outwards by the target device in a wireless network searching manner, establishes AP hotspot connection with the target device, and can acquire network information scanned by the target device based on the AP hotspot connection between the terminal and the target device; if the terminal and the target device are both provided with the Bluetooth modules, the terminal acquires the Bluetooth signals sent outwards by the target device in a mode of searching for the Bluetooth signals, establishes Bluetooth connection with the target device, and can acquire network information obtained by scanning of the target device based on the Bluetooth connection between the terminal and the target device.
The network information refers to information of peripheral network devices obtained by scanning of the target device, and includes network names, encryption modes, channels and the like corresponding to different network devices. Generally, the target device may enter the AP mode after being started, and scan the peripheral network devices to obtain information of the peripheral network devices. For example, the network device may include a router, and correspondingly, a network name corresponding to the network device is a router name, an encryption manner corresponding to the network device is an encryption manner of the router, and channels corresponding to the network device are multiple channels currently used by the router.
In an embodiment of the application, after the terminal acquires the network information, the terminal outputs the network information, so that a user can determine a target network based on the output network information, and further control the target device to select the target network.
When outputting the network information, the embodiment does not limit the form of outputting the network information, and for example, the network information may be output in a list form, a thumbnail form, a voice form, or the like. In addition, the content of the output network information may only include a network name, so that a user can select a target network corresponding to the target network device from the network information, and the content of the encryption mode, the channel, and the like corresponding to the network device may be selectively output or not output according to the actual situation, which is not limited in this embodiment.
When the terminals with different operating systems output the network information, the control terminal in this embodiment outputs the same content in the network information in the same form, for example, all outputs the network name and the signal strength in the form of a list. Illustratively, as shown in fig. 4. And further, the display difference of terminals of different operating systems is reduced, and the use experience of a user is improved. In addition, in this embodiment, the network information that can be acquired by the terminal is information of peripheral network devices that can be scanned by the target device, so that the user can select a target network from the information, and a situation that the terminal can only scan a currently connected network and needs a user to manually switch the target network is avoided.
It should be noted that the network names and signal strengths shown in fig. 4 are merely output forms for illustrating network information, and do not have any limiting effect on the present application.
S302: and obtaining refreshed network information obtained by scanning the target equipment again after the last scanning, and controlling the target equipment to adjust the target network based on the refreshed network information.
After the target device sends the network information to the terminal each time, the target device scans the peripheral network devices again, updates the network information and stores the updated network information. For example, the network information may be stored in a flash memory (flash memory). In this embodiment, since the network information is scanned and refreshed in advance, when the terminal needs to acquire the network information from the target network again, the target device can quickly respond and feed back the refreshed network information, thereby reducing the waiting time of the user.
After the target device sends the network information to the terminal each time, the scanning frequency of the peripheral network devices includes that the peripheral network devices are scanned only once after the network information is sent to the terminal, or the peripheral network devices are scanned according to a preset time interval after the network information is sent to the terminal. The time interval may be set by a person skilled in the art according to actual situations, and is not limited in this embodiment.
When the devices of different operating systems perform network scanning, the waiting time of users is different. In this embodiment, the terminal does not perform network scanning, but acquires network information scanned in advance by the target device, so that the waiting time difference of terminals of different operating systems is reduced, and the use experience of a user is improved.
When the terminal acquires and outputs network information, due to reasons such as unstable network signals or the fact that target devices scan peripheral network devices and acquire the network information, target devices corresponding to the target networks are not powered on, and the like, the output network information may not have a target network to which a user needs to connect, the terminal needs to acquire the network information from the target devices again, and the terminal is controlled to acquire and output the network information from the target devices again, so that the user can select the target network based on the output network information. And the network information acquired again by the terminal from the target equipment is scanned by the target equipment in advance.
Illustratively, a refresh key may be displayed on a display screen of the terminal, and if the output network information does not include a target network to which the user needs to connect, the user triggers the refresh key on the display screen of the terminal to control the terminal to acquire and output network information scanned and refreshed in advance from the target device again, so that the user can select the target network based on the output network information. If the network information acquired by the terminal still does not have a target network to which the user needs to connect, the user can control the terminal to acquire the network information which is scanned and refreshed in advance from the target device again by triggering a refreshing key on a display screen of the terminal and output the network information until the target network to which the user needs to connect exists in the output network information or the user stops performing network access operation.
Further, after the target device is controlled to select the target network based on the network information, if the target network selected by the target device needs to be adjusted, for example, another network is replaced as the target network or a connection channel of the target network is determined, the refreshed network information obtained by scanning the target device again after the last scanning can be obtained from the target device, so that the target network can be adjusted by the control target device based on the refreshed network information.
Illustratively, a refresh key may be displayed on a display screen of the terminal, and if it is necessary to replace another network as the target network, the user triggers the refresh key on the display screen of the terminal to control the terminal to acquire and output network information from the target device again, so that the user can replace the other network as the target network.
If the connection channel of the target network needs to be determined, manual refreshing by a user is not needed, the terminal can automatically acquire network information from the target device, and based on the refreshed network information, a channel with a smaller interference degree in the target network is determined to be the connection channel of the target network, so that the target device can access the connection channel conveniently. Or, if the connection channel of the target network needs to be determined, the terminal may automatically acquire and display the scanned and refreshed network information from the target device, so that the user may manually select the connection channel in the target network based on the scanned and refreshed network information.
In the network access method of the target device in this embodiment, the terminal can acquire the network information from the target device according to the network access operation for the target device, so as to control the target device to select the target network according to the network information, and the terminal can also control the target device to adjust the target network according to the acquired refreshed network information, so that in the process of configuring the target device to access the network, the information of the peripheral router can be acquired without frequently switching the WiFi hotspot of the connection, and the method has the advantages of simple steps and convenient operation.
In an exemplary embodiment of this specification, the steps of the above embodiment control the target device to adjust the target network based on the refreshed network information, and specifically include the following steps:
and controlling the target device to select the re-determined target network in response to the operation of re-selecting the target network in the refreshed network information.
As described in the above embodiments, each time the target device transmits the network information to the terminal, the target device scans the peripheral network devices again, updates the network information, and stores the updated network information. In this embodiment, if another network needs to be replaced as a target network, a user may perform a network refreshing operation, and in response to the network refreshing operation, the terminal acquires, from the target device, refreshed network information obtained by rescanning the target device after the last scanning, and outputs the refreshed network information, so that the user can perform an operation of reselecting the target network from the refreshed network information, reselect the target network from the refreshed network information, and control the target device to select a currently re-determined target network.
Illustratively, a refresh key may be displayed on the display screen of the terminal, the user performs an operation of refreshing the network by triggering the refresh key on the display screen of the terminal, and the terminal re-acquires and outputs network information from the target device in response to the operation of refreshing the network, so as to re-select the target network from the refreshed network information and control the target device to select the currently re-determined target network.
In the embodiment of the application, the target network connected with the target equipment can be replaced based on actual requirements, and the flexibility of the target equipment in network access is improved.
In an exemplary embodiment of the present specification, the steps of the above embodiment control the target device to select the target network based on the network information, and specifically include the following steps:
responding to the selection operation aiming at the target network in the network information, and acquiring the network access information of the target network; and controlling the target equipment to select the target network according to the network access information of the target network.
The network access information is information necessary for connecting to the target network, and mainly includes information such as a connection password of the target network.
In the embodiment of the application, the network access information of the target network is obtained according to the selection operation aiming at the target network in the network list. The network access information of the target network is acquired, and the network access information input by a user is acquired. Illustratively, the target network is typically provided with a connection password. In the process of selecting the target network from the network information, the user is required to input a corresponding connection password based on the terminal, so that the terminal can send the selection information of the target network and the connection password of the target network to the target device and control the target device to select the target network.
The user inputs a corresponding connection password based on the terminal, including that the user inputs the corresponding connection password through a touch screen on the terminal, or inputs the corresponding connection password in a voice form, which is not limited in this embodiment.
After the target device obtains the network access information of the target network, the target device may select the target network and establish a connection based on the network access information.
In the embodiment, when the target device is controlled to access the target network, only the user needs to input the network access information of the target network, and the method has the advantages of simple steps and convenience in operation.
In an exemplary embodiment of this specification, as shown in fig. 5, the target network in the above embodiment includes multiple channels, and the steps in the above embodiment control the target device to adjust the target network based on the refreshed network information, which specifically includes the following steps:
s501, based on the refreshed network information, determining the interference degree of a plurality of channels.
In an embodiment of the application, controlling the target device to adjust the target network includes controlling the target device to access a channel that meets requirements in the target network. Specifically, in the embodiment of the present application, the target device selects the target network to indicate that the target device establishes a preliminary connection with the target network, and the target network includes a plurality of channels.
A satisfactory channel refers to a channel that has a low level of interference and meets the requirements of a connection.
The target network may correspond to a plurality of channels, and in order to determine a target channel that meets the requirement, the embodiments of the present application determine the interference levels of the plurality of channels of the target network. For example, each channel of the target network may be set as a potential target channel, the interference level of each channel may be determined, and a desired channel may be selected from the potential target channels. For another example, if some channels of the target network are not available for connecting to the target device, for example, some channels in the target network are too interfered to be suitable as target channels, or some channels are occupied by fixed devices, etc., then these channels cannot be set as potential target networks, and the remaining channels may be set as potential target networks, the interference level of each of the remaining channels may be determined, and a channel meeting the requirement may be selected from the potential target channels.
Factors that affect the degree of channel interference include:
one is the interference of the channel itself. If the frequency of occurrence of the channel is more, it indicates that the frequency of the channel being used is more, the number of signals transmitted in the channel is more, and the interference suffered by the signals during transmission in the channel is relatively more serious; conversely, if the frequency of occurrence of a channel is low, it means that the channel is used a small number of times, the number of signals transmitted in the channel is small, and the interference received when the signals are transmitted in the channel is relatively small.
The second is interference between channels. Channels may be divided into independent channels and non-independent channels based on the frequency band in which each channel operates in the network. Wherein the interference of the independent channel is minimal; and among the non-independent channels, the closer the channel is to the independent channel, the more serious the interference is.
The interference degree of a plurality of channels can be determined by considering the plurality of channels of the target network according to the interference of the channels; or according to the interference between the channels, considering a plurality of channels of the target network, and determining the interference degree of the plurality of channels; the interference level of the multiple channels may also be determined by considering the multiple channels of the target network according to the interference of the channels themselves and according to the interference between the channels, which is not limited in this embodiment.
S502, determining a target channel with the interference degree meeting a preset condition according to the interference degrees of the plurality of channels.
The target channel whose interference degree satisfies the preset condition refers to a channel with a low interference degree among a plurality of channels. Specifically, the interference degrees of multiple channels in the target network may be determined based on the above steps, and then a channel with an interference degree satisfying a preset condition is selected as the target channel, for example, a channel with the lowest interference degree is selected as the target channel.
For example, the interference degree of multiple channels may be determined by considering multiple channels of the target network according to the interference of the channels themselves, and then the channel with the lowest interference degree is selected as the target channel; or according to the interference between the channels, considering a plurality of channels of the target network, determining the interference degree of the plurality of channels, and then selecting the channel with the lowest interference degree as the target channel; the interference degree of the multiple channels may also be determined by considering the multiple channels of the target network according to the interference of the channels themselves and according to the interference between the channels, and then the channel with the lowest interference degree is selected as the target channel.
S503, controlling the target device to access a target channel of the target network.
After the target channel is determined, the terminal may send the selection information of the target channel to the target device, so as to control the target device to connect to the target channel of the target network.
In this embodiment, a channel with an interference degree meeting a preset requirement in the target network is selected as the target channel to control the target device to access, so that the network stability of the target device can be improved, and the data transmission stability of the target device can be further improved.
In an exemplary embodiment of this specification, the steps of the above embodiments determine the interference levels of the multiple channels based on the refreshed network information, and specifically include the following steps:
determining the occurrence frequency of each channel in the target network based on the refreshed network information; and determining the interference degree of the plurality of channels according to the occurrence frequency of the plurality of channels and/or the influence degree of the positions corresponding to the channels.
The frequency of occurrence of the channel refers to the frequency of occurrence of the channel used by the target network in the refreshed network information. The frequency of occurrence of the channel in the target network or the frequency of occurrence of the channel in the target network may be used as the frequency of occurrence of the channel, which is not limited in this embodiment.
Illustratively, in the embodiment shown in FIG. 4, the channels used in the network named "2022-5G" include channel 1 and channel 6; networks entitled "Bright House Networks," employ channels that include channel 1 and channel 6; a network named "123456" that employs channels including channel 1; the network named "BHN _ Office" uses channels including channel 6; a network named "1508," the channels employed including channel 1 and channel 6; a network named "MY-WIFI" that employs channels including channel 11; a network named "1509" using channels including channel 1 and channel 6; a network named "1507" using channels including channel 1 and channel 6; a network named "Out of Service" uses channels including channel 1 and channel 11, a target network is a network named "Out of Service", and the frequency of occurrence of the channels in the target network is taken as the frequency of occurrence of the channels in the target network, then it can be determined that:
channel 1 in the target network occurs at a frequency of 7 and channel 11 in the target network occurs at a frequency of 2. On the premise that only the interference caused by the occurrence frequency of the channel is considered, the interference degree of the channel 1 is greater than that of the channel 11.
The position influence degree of the channel refers to the influence degree of the position of the channel on the channel interference. The interference of the independent channel is minimum, and the position influence degree is minimum; in the non-independent channel, the closer the channel is to the independent channel, the greater the position influence degree is, and the more serious the interference is.
Exemplarily, a channel 1, a channel 6 and a channel 11 in the Wi-Fi signal are three independent channels, which do not interfere with each other, and the position influence degree is minimal; the interference of the channels 2, 5, 7, 10 and 12 adjacent to the independent channel is relatively serious, and the position influence degree is the largest; and the other channels, including channel 3, channel 4, channel 8, channel 9, channel 13, and channel 14, are far from the independent channel, have relatively small interference, and have a centered position influence.
Based on the method, the interference degree of the channels is determined according to the occurrence frequency of the channels and/or the position influence degree corresponding to each channel. The more the occurrence frequency of the channel is, the closer the non-independent channel is to the independent channel, the higher the interference degree of the channel is, the less the occurrence frequency of the channel is, the farther the non-independent channel is from the independent channel, or the channel is the independent channel, the lower the interference degree of the channel is.
For example, the interference degree of the channel may be determined separately according to the frequency of occurrence of the channel, may also be determined separately according to the position influence degree corresponding to each channel, and may also be determined simultaneously according to the frequency of occurrence of the channel and the position influence degree corresponding to each channel, which is not limited in this embodiment. In order to determine the interference degree of each channel more accurately, preferably, the embodiment determines the interference degree of the channel according to the occurrence frequency of the channel and the position influence degree corresponding to each channel.
In the embodiment of the application, the interference degree of the channel can be determined according to the occurrence frequency of the channel and/or the position influence degree corresponding to each channel, so that the channel with less interference is determined, the network stability of the target device is improved, and the data transmission stability of the target device is further improved.
In an exemplary embodiment of this specification, as shown in fig. 6, the target network of the above embodiment includes a plurality of channels, and the steps of the above embodiment control the target device to adjust the target network based on the refreshed network information, specifically including the following steps:
s601, determining appearance frequency weights corresponding to a plurality of channels according to appearance frequencies of the plurality of channels; and/or determining the channel position weight corresponding to each channel according to the position influence degree corresponding to each channel.
In the embodiment of the application, the interference degrees of the multiple channels can be determined according to the occurrence frequency of the channels and/or the influence degree of the positions corresponding to the channels.
Exemplarily, the frequency of occurrence weights corresponding to the multiple channels may be determined based on the frequency of occurrence of the multiple channels, and the frequency of occurrence of the channel and the frequency of occurrence weight corresponding to the channel may be in a positive correlation relationship, that is, the more the frequency of occurrence of the channel is, the greater the frequency of occurrence weight corresponding to the channel is set; the frequency of occurrence of the channel and the frequency weight corresponding to the channel may also be in a negative correlation relationship, that is, the smaller the frequency of occurrence of the channel is, the smaller the frequency weight corresponding to the channel is set to be, and the embodiment is not limited.
For another example, the corresponding channel position weight may be determined based on the position influence degree of the channel, and the position influence degree of the channel and the channel position weight corresponding to the channel may be in a positive correlation relationship, that is, the larger the setting position influence degree is, the larger the channel position weight corresponding to the channel is; the position influence degree of the channel and the channel position weight corresponding to the channel may also be in a negative correlation relationship, that is, the smaller the set position influence degree is, the smaller the channel position weight corresponding to the channel is, and the embodiment is not limited.
It should be noted that, in this embodiment, an object of determining a channel with a low frequency of occurrence and a low position influence degree of the channel is to determine, when the interference degree of the channel is determined according to the frequency of occurrence of the channel and the position influence degree corresponding to the channel at the same time, if the frequency of occurrence of the channel and the frequency of occurrence weight corresponding to the channel are in a positive correlation relationship, the position influence degree corresponding to the channel to be set and the channel position weight corresponding to the channel are in a positive correlation relationship, and if the frequency of occurrence of the channel and the frequency of occurrence weight corresponding to the channel are in a negative correlation relationship, the position influence degree corresponding to the channel to be set and the channel position weight corresponding to the channel are in a negative correlation relationship.
S602, determining the interference degree of a plurality of channels based on the frequency of occurrence weight and/or the channel position weight.
For example, the interference level of the plurality of channels may be determined based only on the frequency of occurrence weight. If the occurrence frequency of the channel and the occurrence frequency weight corresponding to the channel are set to be in a positive correlation relationship, the higher the occurrence frequency weight of the channel is, the higher the interference degree of the channel is; if the occurrence frequency of the channel and the occurrence frequency weight corresponding to the channel are set to be in a negative correlation relationship, the higher the occurrence frequency weight of the channel is, the lower the interference degree of the channel is.
As yet another example, the degree of interference for the plurality of channels may be determined based only on the channel location weights. If the position influence degree of the set channel and the channel position weight corresponding to the channel are in positive correlation, the higher the channel position weight of the plurality of channels is, the higher the interference degree of the channel is; if the position influence degree of the set channel and the channel position weight corresponding to the channel are in a negative correlation relationship, the higher the position weights of the plurality of channels are, the lower the interference degree of the channel is.
As yet another example, the interference level of the plurality of channels may be determined based on channel frequency of occurrence weights and channel location weights. The purpose of this embodiment is to determine a channel with a low frequency of occurrence and a low position influence degree of the channel, based on which this embodiment can calculate the product of the frequency of occurrence weight and the channel position weight as the interference degree of the channel.
If the frequency of occurrence of a channel and the frequency of occurrence weight corresponding to the channel are set to be in a positive correlation relationship, and the position influence degree of the channel and the channel position weight corresponding to the channel are also in a positive correlation relationship, the larger the value of the product of the frequency of occurrence weight and the channel position weight is, the higher the interference degree of the channel is, and in such a case, the channel corresponding to the minimum value of the product can be selected as the target channel. If the occurrence frequency of a channel and the occurrence frequency weight corresponding to the channel are set to be in a negative correlation relationship, and the position influence degree of the channel and the channel position weight corresponding to the channel are also in a negative correlation relationship, the smaller the value of the product of the occurrence frequency weight and the channel position weight is, the higher the interference degree of the channel is, and in such a case, the channel corresponding to the maximum value of the product can be selected as the target channel.
Further, in addition to calculating the product of the appearance frequency weight and the channel position weight as the interference degree of the channel, the sum of the appearance frequency weight and the channel position weight may be calculated as the interference degree of the channel, and the target channel may be selected from the target network based on the appearance frequency weight and the channel position weight. Furthermore, influences on different degrees of channel interference degrees in the channel occurrence frequency weight and the channel position weight can be determined according to the actual network environment, a higher weight is set for one item with a high channel interference degree, the weighted sum or weighted product of the occurrence frequency weight and the channel position weight is calculated to serve as the channel interference degree, and the target channel is selected from the target network based on the weighted sum or weighted product of the occurrence frequency weight and the channel position weight.
In the embodiment of the application, based on the frequency of occurrence weight of the channel and/or the channel position weight, the channel with less interference can be determined, and the network stability of the target device is improved.
In an exemplary embodiment of this specification, the steps of the above embodiment determine the frequency of occurrence weights corresponding to multiple channels according to the frequency of occurrence of multiple channels, and specifically include the following steps:
and determining the appearance frequency weights corresponding to the channels according to the relationship between the appearance frequency weights of the channels and the appearance frequency negative correlation.
Specifically, the frequency of occurrence weights corresponding to the multiple channels may be determined based on the frequency of occurrence of the multiple channels, and the frequency of occurrence of the channel and the frequency of occurrence weight corresponding to the channel may be set to be in a negative correlation relationship, that is, the smaller the frequency of occurrence of the channel is, the larger the frequency of occurrence weight corresponding to the channel is. If the channel interference degrees of the multiple channels are determined only according to the appearance frequency weights corresponding to the multiple channels, the less the appearance frequency of the channel is, the greater the appearance frequency weight corresponding to the channel is, the smaller the corresponding channel interference degree is.
Further, the channels of the target network include independent channels and dependent channels; the step of the above embodiment determines the channel position weight corresponding to each channel according to the position influence degree corresponding to each channel, and includes:
determining the channel position weight of the non-independent channel according to the position influence degree between the non-independent channel and the adjacent independent channel; the channel position weight of the non-independent channel and the position influence degree of the non-independent channel are in negative correlation; the channel location weight of the independent channel is greater than the channel location weight of the non-independent channel.
Specifically, in this embodiment, the channel position weight of the non-independent channel and the position influence degree of the non-independent channel are set to be in negative correlation, that is, the closer the position of the non-independent channel is to the independent channel, the greater the position influence degree is, the smaller the channel position weight is, and the position influence degree of the independent channel is the smallest, and according to the negative correlation relationship, the channel position weight of the independent channel is greater than the channel position weight of the non-independent channel. If the channel interference degrees of the multiple channels are determined only according to the channel position weights corresponding to the multiple channels, the channel position weights are significant, and the corresponding channel interference degrees are smaller.
And determining the interference degree of the plurality of channels based on the frequency of occurrence weight and the channel position weight. The product of the appearance frequency weight and the channel position weight can be calculated as the interference degree of the channel, and the smaller the value of the product of the appearance frequency weight and the channel position weight is, the higher the interference degree of the channel is, and in such a case, the channel corresponding to the maximum value of the product can be selected as the target channel.
Illustratively, the channel location weights may be assigned to the channels as follows:
the channel 1, the channel 6 and the channel 11 are three independent channels which do not interfere with each other, and the channel position weight is set to be 0.9; the interference of non-independent channels adjacent to the independent channels is relatively serious, and the channel position weight is set to be 0.5 for the channel 2, the channel 5, the channel 7, the channel 10 and the channel 12; the other channels, channel 3, channel 4, channel 8, channel 9, channel 13, and channel 14 are weighted to 0.6.
The channel may be assigned a frequency of occurrence weight as follows:
the frequency of occurrence of the channel is 1, and the weight of the frequency of occurrence is set to be 0.9; the frequency of occurrence of the channel is 2, and the weight of the frequency of occurrence is set to be 0.8; the frequency of occurrence of the channel is 3, and the weight of the frequency of occurrence is set to be 0.7; the frequency of occurrence of the channel is 4, and the weight of the frequency of occurrence is set to be 0.6; the frequency of occurrence of the channel is 5, and the weight of the frequency of occurrence is set to be 0.5; the frequency of occurrence of the channel is 6, and the weight of the frequency of occurrence is set to be 0.4; the frequency of occurrence of the channel is 7, and the weight of the frequency of occurrence is set to be 0.3; the frequency of occurrence of the channel is 8, and the weight of the frequency of occurrence is set to be 0.2; the channel frequency of occurrence is 9, and the frequency of occurrence weight is set to 0.1.
If there are channel 1, channel 3, channel 6, channel 7, channel 8, channel 10, and channel 11 in the current network information, if the frequency of occurrence of channel 1 is 9, the frequency of occurrence of channel 3 is 7, the frequency of occurrence of channel 6 is 6, the frequency of occurrence of channel 7 is 7, the frequency of occurrence of channel 8 is 8, the frequency of occurrence of channel 10 is 1, and the frequency of occurrence of channel 11 is 5, the interference level as a channel corresponding to each channel existing in the current network information is shown in table 1.
TABLE 1
Channel with a plurality of channels Channel weights Number of channel occurrences Degree weight Degree of interference
1 0.9 9 0.1 0.9*0.1=0.09
3 0.6 7 0.3 0.6*0.3=0.18
6 0.9 6 0.4 0.9*0.4=0.36
7 0.5 7 0.3 0.5*0.3=0.15
8 0.6 8 0.2 0.6*0.2=0.12
10 0.5 1 0.9 0.5*0.9=0.45
11 0.9 5 0.5 0.9*0.5=0.45
As shown in table 1, where the interference degree of the channel 8 is the minimum, the channel 8 may be selected as a target channel, and the target device is controlled to access the channel 8 in the target network.
In the embodiment of the application, based on the frequency of occurrence weight of the channel and/or the channel position weight, the channel with less interference can be determined, the network stability of the target device is improved, and the stability of data transmission is further realized.
Correspondingly, an embodiment of the present specification further provides a network access method for a target device, which is described by taking an example that the method is applied to an intelligent device in an exemplary implementation environment, and the method includes:
responding to the network access operation sent by the terminal, sending the network information in the target range to the terminal so as to select a target network determined by the terminal according to the network information;
and scanning the network information in the target range again after the last scanning to obtain and store the refreshed network information so as to adjust the target network based on the refreshed network information.
For specific limitations of the method, reference may be made to the above limitations of the control method of the target device, which are not described herein again.
The application also provides an application scenario, and the application scenario applies the network access method of the target device. Specifically, with reference to fig. 7, the application process of the network access method of the target device in the application scenario is as follows:
and after the target equipment is powered on, the target equipment sends an identification signal outwards, wherein the identification signal comprises an AP hot spot signal and/or a Bluetooth signal, and the target equipment searches for nearby network information in an AP mode. In the embodiment shown in fig. 7, the target device powers on to start the AP mode, sends out an AP hotspot signal as an identification signal, and searches for nearby network information in the AP mode. The network information includes information such as a network name, an encryption method of the network, a channel of the network, and the like, and is stored in the flash memory.
When a user uses a terminal to assist a target device to connect a target network, a control terminal scans AP hotspot signals, the user executes network access operation aiming at the target device based on the terminal, the terminal responds to the network access operation aiming at the target device to acquire network information obtained by scanning the target device so that the user can select the target network based on the network information output by the target device and input network access information corresponding to the target network, and the terminal sends the target network and the network access information of the target network to the target device so that the target device can select the target network.
After the target device sends the network information to the terminal each time, the target device scans the peripheral network devices again according to the preset scanning frequency, updates the network information, and stores the updated network information. The preset scanning frequency includes that the network information is sent to the terminal and then the peripheral network equipment is scanned only once, or the network information is sent to the terminal and then the peripheral network equipment is scanned according to a preset time interval. The time interval may be set by a person skilled in the art according to actual conditions, and the embodiment is not limited. In the embodiment shown in fig. 7, after the network information is sent to the terminal, the peripheral network devices are scanned only once, the network information is updated, and the updated network information is stored.
In this embodiment, after sending the target network and the network access information of the target network to the target device, the terminal obtains the network information refreshed by the target device, and controls the target device to adjust the target network based on the refreshed network information. The terminal can be a smart phone.
And controlling the target equipment to adjust the target network based on the refreshed network information, wherein the target equipment is controlled to be connected with the target channel by selecting the channel with low interference degree as the target channel. Specifically, a channel with a low degree of interference means that the number of times the channel appears is small, and the interference between the channels is small. In the embodiment, the occurrence frequency weights corresponding to a plurality of channels are determined according to the relationship between the occurrence frequency weights of the channels and the occurrence frequency negative correlation; and determining the channel position weight of the non-independent channel according to the position influence degree negative correlation relation between the non-independent channel and the adjacent independent channel. And calculating the product of the frequency weight and the channel position weight, and determining the channel corresponding to the maximum value of the product as the target channel.
And controlling the target equipment to adjust the target network based on the refreshed network information, and replacing the target network. Specifically, after the terminal sends the target network and the network access information of the target network to the target device, if the target network needs to be replaced, the terminal can obtain the network information refreshed by the target device, select a new network from the network information as the target network, and control the target device to select the target network. Therefore, in the process of configuring the target device to access the network, the information of the peripheral routers can be acquired without frequently switching the WiFi hotspots in connection, the steps are simple, the operation is convenient, and the network access efficiency of the device is greatly improved.
It should be understood that although the steps in the flowcharts of fig. 3, 5 and 6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 3, 5, and 6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least some of the sub-steps or stages of other steps.
Exemplary devices
An embodiment of the present specification further provides a network access apparatus of a target device, as shown in fig. 8, including:
the control module is used for responding to the network access operation aiming at the target equipment, acquiring the network information obtained by scanning the target equipment and controlling the target equipment to select a target network based on the network information;
and the adjusting module is used for acquiring refreshed network information obtained by scanning the target equipment again after the last scanning, and controlling the target equipment to adjust the target network based on the refreshed network information.
Optionally, the adjusting module of the above embodiment includes:
and the selecting unit is used for responding to the operation of reselecting the target network in the refreshed network information and controlling the target equipment to select the determined target network again.
Optionally, the control module of the above embodiment includes:
the network access control device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for responding to selection operation aiming at a target network in network information and acquiring network access information of the target network;
and the first control unit is used for controlling the target equipment to select the target network according to the network access information of the target network.
Optionally, the target network of the above embodiment comprises a plurality of channels;
the adjusting module of the above embodiment further includes:
a first determining unit, configured to determine interference levels of multiple channels based on the refreshed network information;
the second determining unit is used for determining a target channel with the interference degree meeting the preset condition according to the interference degrees of the plurality of channels;
and the second control unit is used for controlling the target equipment to access the target channel of the target network.
Optionally, in the network access apparatus of the target device, when the first determining unit determines the interference degrees of the multiple channels based on the refreshed network information, the first determining unit is specifically configured to:
determining the occurrence frequency of each channel in the target network based on the refreshed network information;
and determining the interference degree of the plurality of channels according to the occurrence frequency of the plurality of channels and/or the influence degree of the positions corresponding to the channels.
Optionally, in the network access apparatus of the target device, when the first determining unit determines the interference degrees of the multiple channels according to the occurrence frequency of the multiple channels and/or the position influence degree corresponding to each channel, the first determining unit is specifically configured to:
determining the occurrence frequency weights corresponding to the multiple channels according to the occurrence frequencies of the multiple channels; and/or determining the channel position weight corresponding to each channel according to the position influence degree corresponding to each channel;
the interference level of the plurality of channels is determined based on the frequency of occurrence weights, and/or the channel location weights.
Optionally, in the network access apparatus of the target device, when the first determining unit determines the occurrence frequency weights corresponding to the multiple channels according to the occurrence frequencies of the multiple channels, the first determining unit is specifically configured to:
determining the occurrence frequency weight corresponding to the plurality of channels according to the relationship between the occurrence frequency weight of the plurality of channels and the occurrence frequency negative correlation;
optionally, the channels of the target network of the above embodiments include independent channels and dependent channels;
when the first determining unit determines the channel position weight corresponding to each channel according to the position influence degree corresponding to each channel, the first determining unit is specifically configured to:
determining the channel position weight of the non-independent channel according to the position influence degree between the non-independent channel and the adjacent independent channel; the channel position weight of the non-independent channel and the position influence degree of the non-independent channel are in negative correlation; the channel position weight of the independent channel is greater than the channel position weight of the non-independent channel.
For specific limitations of the network access apparatus of the target device, reference may be made to the above limitations on the network access method of the target device, which are not described herein again. The modules in the network access device of the target device may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
An embodiment of the present specification further provides a network access apparatus for a target device, including:
the sending module is used for responding to the network access operation sent by the terminal, sending the network information in the target range to the terminal so as to select a target network determined by the terminal according to the network information;
and the second adjusting module is used for scanning the network information in the target range again after the last scanning to obtain and store the refreshed network information so as to adjust the target network based on the refreshed network information.
For specific limitations of the network access apparatus of the target device, reference may be made to the above limitations on the network access method of the target device, which are not described herein again. The modules in the network access device of the target device may be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Exemplary System
This specification embodiment still provides an intelligent household system, includes: intelligent equipment and a terminal; wherein the content of the first and second substances,
the terminal is used for responding to the network access operation aiming at the target equipment, acquiring the network information obtained by scanning the target equipment and controlling the target equipment to select a target network based on the network information; acquiring refreshed network information obtained by re-scanning the target equipment after the last scanning, and controlling the target equipment to adjust the target network based on the refreshed network information;
the intelligent equipment is used for responding to the network access operation sent by the terminal, sending the network information in the target range to the terminal so as to select a target network determined by the terminal according to the network information; and scanning the network information in the target range again after the last scanning to obtain and store the refreshed network information so as to adjust the target network based on the refreshed network information.
Exemplary electronic device
In one embodiment, an electronic device is provided, which may be a gateway or a cloud server, and its internal structure diagram may be as shown in fig. 9. The electronic device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the electronic device is used for storing data such as a positioning algorithm or a navigation algorithm. The network interface of the electronic device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a positioning method.
Those skilled in the art will appreciate that the configuration shown in fig. 9 is a block diagram of only a portion of the configuration relevant to the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or combine certain components, or have a different arrangement of components.
In an embodiment, an electronic device, which may be a gateway or a cloud server, is provided and includes a memory and a processor, where the memory stores a computer program, and the processor, when executing the computer program, implements the steps of the network entry method of the target device shown in the exemplary method embodiments.
Exemplary computer program product and computer-readable storage Medium
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps of the network access method of the target device in the above method embodiments.
The computer program product may include program code for carrying out operations for embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the device or as a stand-alone software package.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps of the network entry method of the target device illustrated in the exemplary method portion embodiments described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in the embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct Rambus Dynamic RAM (DRDRAM), and Rambus Dynamic RAM (RDRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present specification, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present description, which falls within the scope of protection of the present description. Therefore, the protection scope of the patent in the specification shall be subject to the appended claims.

Claims (13)

1. A network access method of a target device is characterized by comprising the following steps:
responding to network access operation aiming at target equipment, acquiring network information obtained by scanning of the target equipment, and controlling the target equipment to select a target network based on the network information;
and obtaining refreshed network information obtained by re-scanning the target equipment after the last scanning, and controlling the target equipment to adjust the target network based on the refreshed network information.
2. The method of claim 1, wherein the controlling the target device to adjust the target network based on the refreshed network information comprises:
and controlling the target equipment to select the re-determined target network in response to the operation of re-selecting the target network in the refreshed network information.
3. The method of claim 1, wherein the controlling the target device to select a target network based on the network information comprises:
responding to the selection operation aiming at the target network in the network information, and acquiring the network access information of the target network;
and controlling the target equipment to select the target network according to the network access information of the target network.
4. The method of claim 1, wherein the target network comprises a plurality of channels;
the controlling the target device to adjust the target network based on the refreshed network information includes:
determining interference levels of a plurality of channels based on the refreshed network information;
determining a target channel with the interference degree meeting a preset condition according to the interference degrees of the plurality of channels;
and controlling the target equipment to access a target channel of the target network.
5. The method of claim 4, wherein determining the interference level of the plurality of channels based on the refreshed network information comprises:
determining the occurrence frequency of each channel in the target network based on the refreshed network information;
and determining the interference degree of the channels according to the occurrence frequency of the channels and/or the position influence degree corresponding to each channel.
6. The method according to claim 5, wherein determining the interference level of the plurality of channels according to the frequency of occurrence of the plurality of channels and/or the position influence degree corresponding to each of the channels comprises:
determining the occurrence frequency weight corresponding to the plurality of channels according to the occurrence frequency of the plurality of channels; and/or determining the channel position weight corresponding to each channel according to the position influence degree corresponding to each channel;
determining interference levels of a plurality of the channels based on the frequency of occurrence weights and/or the channel location weights.
7. The method of claim 6, wherein determining the frequency of occurrence weights corresponding to the plurality of channels according to the frequency of occurrence of the plurality of channels comprises:
determining the occurrence frequency weights corresponding to a plurality of channels according to the relationship of the occurrence frequency weights of the channels and the occurrence frequency negative correlation;
the channels of the target network comprise independent channels and dependent channels; determining the channel position weight corresponding to each channel according to the position influence degree corresponding to each channel, including:
determining channel position weights of the dependent channels according to the position influence degree between the dependent channels and the adjacent independent channels; the channel position weight of the non-independent channel and the position influence degree of the non-independent channel are in negative correlation; the channel position weight of the independent channel is greater than the channel position weight of the non-independent channel.
8. A network access method of a target device is characterized by comprising the following steps:
responding to network access operation sent by a terminal, sending network information in a target range to the terminal so as to select a target network determined by the terminal according to the network information;
and after the last scanning, scanning the network information in the target range again to obtain and store refreshed network information so as to adjust the target network based on the refreshed network information.
9. A network access apparatus of a target device, comprising:
the acquisition module is used for responding to network access operation aiming at target equipment, acquiring network information obtained by scanning of the target equipment and controlling the target equipment to select a target network based on the network information;
and the first adjusting module is used for acquiring refreshed network information obtained by re-scanning the target equipment after the last scanning, and controlling the target equipment to adjust the target network based on the refreshed network information.
10. A network access apparatus of a target device, comprising:
the sending module is used for responding to the network access operation sent by the terminal, sending the network information in the target range to the terminal so as to select a target network determined by the terminal according to the network information;
and the second adjusting module is used for scanning the network information in the target range again after the last scanning to obtain and store the refreshed network information so as to adjust the target network based on the refreshed network information.
11. The utility model provides an intelligent home systems which characterized in that includes: intelligent equipment and a terminal; wherein the content of the first and second substances,
the terminal is used for responding to the network access operation aiming at the target equipment, acquiring the network information obtained by scanning the target equipment, and controlling the target equipment to select a target network based on the network information; obtaining refreshed network information obtained by re-scanning the target equipment after the last scanning, and controlling the target equipment to adjust the target network based on the refreshed network information;
the intelligent equipment is used for responding to network access operation sent by the terminal, sending network information in a target range to the terminal, and selecting a target network determined by the terminal according to the network information; and after the last scanning, scanning the network information in the target range again to obtain and store refreshed network information so as to adjust the target network based on the refreshed network information.
12. An electronic device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 8 when executing the computer program.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN202210808418.XA 2022-07-08 2022-07-08 Network access method and device of target equipment, electronic equipment and intelligent home system Pending CN115243339A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210808418.XA CN115243339A (en) 2022-07-08 2022-07-08 Network access method and device of target equipment, electronic equipment and intelligent home system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210808418.XA CN115243339A (en) 2022-07-08 2022-07-08 Network access method and device of target equipment, electronic equipment and intelligent home system

Publications (1)

Publication Number Publication Date
CN115243339A true CN115243339A (en) 2022-10-25

Family

ID=83670868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210808418.XA Pending CN115243339A (en) 2022-07-08 2022-07-08 Network access method and device of target equipment, electronic equipment and intelligent home system

Country Status (1)

Country Link
CN (1) CN115243339A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120230263A1 (en) * 2011-03-08 2012-09-13 Samsung Electronics Co., Ltd. Wireless network channel allocation method for interference avoidance
CN106658652A (en) * 2016-12-07 2017-05-10 广东欧珀移动通信有限公司 WiFi hotspot connecting method and device
CN109640377A (en) * 2018-12-19 2019-04-16 深圳市金刚蚁机器人技术有限公司 The method that smart machine carries out networking operation is controlled by mobile terminal
CN111132141A (en) * 2019-12-19 2020-05-08 深圳市鸿启富科技有限公司 Multi-band frequency hopping wireless WiFi automatic cascade device
CN111970750A (en) * 2020-08-18 2020-11-20 维沃移动通信有限公司 Multi-frequency WiFi identification method and device
CN113347645A (en) * 2021-05-28 2021-09-03 刘秀萍 802.11 wireless multi-hop communication and self-adaptive switching method
CN113552808A (en) * 2020-04-23 2021-10-26 海信集团有限公司 Network distribution method for electronic home equipment, electronic home equipment and mobile terminal
CN113873515A (en) * 2021-03-05 2021-12-31 天翼智慧家庭科技有限公司 Method for automatically switching wireless network of intelligent household equipment
US20220007366A1 (en) * 2020-07-06 2022-01-06 Arris Enterprises Llc Wi-fi access point for enhancing ssid availability with smart channel selection

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120230263A1 (en) * 2011-03-08 2012-09-13 Samsung Electronics Co., Ltd. Wireless network channel allocation method for interference avoidance
CN106658652A (en) * 2016-12-07 2017-05-10 广东欧珀移动通信有限公司 WiFi hotspot connecting method and device
CN109640377A (en) * 2018-12-19 2019-04-16 深圳市金刚蚁机器人技术有限公司 The method that smart machine carries out networking operation is controlled by mobile terminal
CN111132141A (en) * 2019-12-19 2020-05-08 深圳市鸿启富科技有限公司 Multi-band frequency hopping wireless WiFi automatic cascade device
CN113552808A (en) * 2020-04-23 2021-10-26 海信集团有限公司 Network distribution method for electronic home equipment, electronic home equipment and mobile terminal
US20220007366A1 (en) * 2020-07-06 2022-01-06 Arris Enterprises Llc Wi-fi access point for enhancing ssid availability with smart channel selection
CN111970750A (en) * 2020-08-18 2020-11-20 维沃移动通信有限公司 Multi-frequency WiFi identification method and device
CN113873515A (en) * 2021-03-05 2021-12-31 天翼智慧家庭科技有限公司 Method for automatically switching wireless network of intelligent household equipment
CN113347645A (en) * 2021-05-28 2021-09-03 刘秀萍 802.11 wireless multi-hop communication and self-adaptive switching method

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
ANATOLIJ ZUBOW: "Hy-Fi: Aggregation of LiFi and WiFi using MIMO in IEEE 802.11", 《2021 IEEE 22ND INTERNATIONAL SYMPOSIUM ON A WORLD OF WIRELESS, MOBILE AND MULTIMEDIA NETWORKS (WOWMOM)》 *
YAWEI ZHAO: "Dynamic channel selections and performance analysis for High-Speed Train WiFi network", 《2015 INTERNATIONAL WORKSHOP ON HIGH MOBILITY WIRELESS COMMUNICATIONS (HMWC)》 *
刘彤;潘梁;韩锐;王旭;: "WLAN中基于网络信息感知的漫游方案", 电子设计工程, no. 09 *
殷明;李富华;侯汇宇;: "基于2.4G及ZigBee的物联网智能家居控制系统设计", 自动化与仪表, no. 05 *

Similar Documents

Publication Publication Date Title
US8886230B2 (en) Systems and methods for service set identifier-based location detection
US10149241B2 (en) Device, method, and system for starting mobile hotspot
US8885565B2 (en) Mixed off-site/on-site prediction computation for reducing wireless reconnection time of a computing device
US9942839B2 (en) Reducing wireless reconnection time of a computing device
RU2617330C2 (en) Method and for scenario mode recommendation device for smart devices
KR101808771B1 (en) Method, device, program and recording medium for signal strength adjustment of router
CN107949040B (en) Wireless local area network scanning method and device, computer equipment and storage medium
US8897800B2 (en) Network acquisition for wireless clients
JP2016536950A (en) Signal transmission control method, apparatus, electronic device, program, and recording medium
CN111093105A (en) Remote control method and device
CN109600285A (en) Dynamic construction environment adjusts the method and device of list of rules in a kind of smart home
CN104486816A (en) Quick automatic scanning method of Wifi (Wireless Fidelity) terminal equipment in multiple access points
CN111161522B (en) Method for processing remote control data, storage medium, computer device and remote control system
CN108234562B (en) Equipment control method, control equipment and controlled equipment
CN108012304B (en) Wireless local area network scanning method and device, computer equipment and storage medium
CN106647295B (en) Smart home system and cooperative operation method thereof
CN114743239A (en) Control method, device and system of intelligent equipment and electronic equipment
CN112448845B (en) Internet of things network distribution method based on IGRS standard, intelligent terminal and storage medium
CN115243339A (en) Network access method and device of target equipment, electronic equipment and intelligent home system
WO2023207713A1 (en) Wireless access processing method, information transmission method, and device
US10419959B1 (en) Individual radio frequency configuration for user devices
CN113993081B (en) Network selection method and device, mobile terminal and computer readable storage medium
CN106793155B (en) Network channel selection method, device and terminal
CN113300919A (en) Intelligent household appliance control method based on social software group function and intelligent household appliance
WO2024088197A1 (en) Sensing processing method, information transmission method, core network device and terminal

Legal Events

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