CN112492611A - Network configuration method, network configuration device, electronic equipment and readable storage medium - Google Patents

Network configuration method, network configuration device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112492611A
CN112492611A CN202011383512.2A CN202011383512A CN112492611A CN 112492611 A CN112492611 A CN 112492611A CN 202011383512 A CN202011383512 A CN 202011383512A CN 112492611 A CN112492611 A CN 112492611A
Authority
CN
China
Prior art keywords
equipment
network
determining
networked
network configuration
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
CN202011383512.2A
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.)
Midea Group Co Ltd
Midea Smart Home Technology Co Ltd
Original Assignee
Midea Group Co Ltd
Midea Smart Home 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 Midea Group Co Ltd, Midea Smart Home Technology Co Ltd filed Critical Midea Group Co Ltd
Priority to CN202011383512.2A priority Critical patent/CN112492611A/en
Publication of CN112492611A publication Critical patent/CN112492611A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Optical Communication System (AREA)

Abstract

The invention relates to the technical field of communication, and provides a network configuration method, a network configuration device, electronic equipment and a readable storage medium, wherein the network configuration method comprises the following steps: receiving a network distribution request of a device to be networked; determining the equipment identifier of the equipment to be networked based on the network distribution request; determining a check code based on the device identification; controlling the optical transmitter to flash at a target frequency based on the check code so as to be received by an optical receiver of the equipment to be networked; receiving a verification result fed back by the network access equipment; and determining that the verification is passed, and sending the distribution network information. According to the network configuration method provided by the embodiment of the invention, as the optical signal is used as a checking medium when the distribution network request is received, the light cannot penetrate through the wall, so that the safety of the distribution network can be ensured, and the potential safety hazard and risk existing in the later stage can be reduced.

Description

Network configuration method, network configuration device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a network configuration method, a network configuration apparatus, an electronic device, and a readable storage medium.
Background
The intelligent household appliances need to be accessed into a wireless network through a distribution network in order to realize networking control. The traditional distribution network mode is realized by a single WiFi module, and the distribution network success rate is very low.
In order to improve the success rate, in the related art, a combo chip scheme of WiFi + bluetooth is used to optimize the distribution network experience, specifically, a device with a bluetooth RSSI (received signal strength indication) value within a certain range is set as a home device, identity determination is automatically completed, and a distribution network is performed, but the RSSI value is easily affected by the surrounding environment, and particularly, a distribution network is easily mistakenly provided for a device in an adjacent home.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a network configuration method which can ensure the safety of a distribution network.
The invention also provides another network configuration method.
The invention provides a network configuration device.
The invention provides another network configuration device.
The invention further provides the electronic equipment.
The invention also provides a readable storage medium.
The network configuration method according to the embodiment of the first aspect of the invention comprises the following steps:
receiving a network distribution request of a device to be networked;
determining the equipment identifier of the equipment to be networked based on the network distribution request;
determining a check code based on the device identification;
controlling the optical transmitter to flash at a target frequency based on the check code so as to be received by an optical receiver of the equipment to be networked;
receiving a verification result fed back by the network access equipment;
and determining that the verification is passed, and sending the distribution network information.
According to the network configuration method provided by the embodiment of the invention, as the optical signal is used as a verification medium when the distribution network request is received, light cannot penetrate through the wall, so that the safety of the distribution network can be ensured, and potential safety hazards and risks existing in the later stage can be reduced.
According to an embodiment of the present invention, before determining the device identifier of the device to be networked based on the distribution network request, the method further includes: it is determined that the received signal strength indication value is greater than the target strength value.
According to an embodiment of the present invention, the determining the device identifier of the device to be networked based on the distribution network request includes: determining equipment identifications corresponding to the equipment to be networked based on the network distribution request; the determining a check code based on the device identifier includes: determining a corresponding check code based on each equipment identifier; the control light emitter flickers at a target frequency based on the check code, and the control light emitter flickers at the target frequency based on the check code and comprises the following steps: and controlling the light emitters to flash at the target frequency one by one based on the check code.
According to an embodiment of the present invention, after receiving the verification result fed back by the network access device, the network configuration method further includes: determining that the verification fails, and outputting prompt information; receiving a first input of a user; in response to the first input, controlling the optical transmitter to blink at a target frequency based on the check code again; and shielding the equipment to be accessed to the network when the number of times of failed verification is determined to reach the target number of times.
According to an embodiment of the present invention, after the determining the device identifier of the device to be networked based on the distribution network request and before the sending distribution network information, the network configuration method further includes: controlling a camera to scan an identification code of target equipment and determining an equipment identification of the target equipment; and determining that the equipment identifier of the target equipment is consistent with the equipment identifier of the equipment to be networked.
According to an embodiment of the present invention, the controlling the camera to scan the identification code of the target device includes: and controlling the camera to be switched to the telephoto lens.
According to an embodiment of the present invention, after receiving the distribution network request of the device to be networked, and before the control camera scans the identification code of the target device and determines the device identifier of the target device, the network configuration method further includes: determining the class of the equipment to be networked based on the network distribution request; controlling a camera to collect a target image; identifying the class of equipment in the target image; and determining that the class of the equipment in the target image is the same as the class of the equipment to be networked.
The network configuration method according to the embodiment of the second aspect of the invention comprises the following steps:
sending a distribution network request;
receiving an optical signal;
decoding the optical signal and determining an analytic identifier;
verifying the analysis identifier with the self equipment identifier to determine a verification result;
sending the checking result;
receiving distribution network information;
and distributing the network based on the distribution network information.
The network configuration device according to the third aspect of the present invention includes:
the first receiving module is used for receiving a distribution network request of the equipment to be networked;
the first determining module is used for determining the equipment identifier of the equipment to be networked based on the network distribution request;
the coding module is used for determining a check code based on the equipment identifier;
the control module is used for controlling the light emitter to flash at a target frequency based on the check code so as to be received by the light receiver of the equipment to be networked;
the second receiving module is used for receiving the verification result fed back by the network access equipment;
and the first sending module is used for determining that the verification is passed and sending the distribution network information.
The network configuration device according to the fourth aspect of the present invention includes:
the second sending module is used for sending the distribution network request;
the third receiving module is used for receiving optical signals;
the decoding module is used for decoding the optical signal and determining an analysis identifier;
the verification module is used for verifying the analysis identifier with the equipment identifier of the verification module and determining a verification result;
a third sending module, configured to send the verification result;
the fourth receiving module is used for receiving the distribution network information;
and the distribution network module is used for distributing the network based on the distribution network information.
An electronic device according to an embodiment of the fifth aspect of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the network configuration method as described in any one of the above when executing the computer program.
A non-transitory computer readable storage medium according to an embodiment of the sixth aspect of the invention, having stored thereon a computer program which, when executed by a processor, performs the steps of the network configuration method as any one of the above.
One or more technical solutions in the embodiments of the present invention have at least one of the following technical effects: because the optical signal is used as a checking medium when the distribution network request is received, the light cannot penetrate through the wall, so that the safety of the distribution network can be ensured, and potential safety hazards and risks existing in the later stage can be reduced.
Furthermore, through image identification verification and combination of check codes, double verification can be achieved, and safety is higher.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a network configuration method according to an embodiment of the present invention;
fig. 2 is a second flowchart of a network configuration method according to an embodiment of the present invention;
fig. 3 is a third schematic flowchart of a network configuration method according to an embodiment of the present invention;
fig. 4 is a fourth flowchart illustrating a network configuration method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a network configuration apparatus according to an embodiment of the present invention;
fig. 6 is a fifth flowchart illustrating a network configuration method according to an embodiment of the present invention;
fig. 7 is a second schematic structural diagram of a network configuration device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
In the description of the embodiments of the present invention, it should be noted that the terms "first", "second", and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of an embodiment of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
A network configuration method according to an embodiment of the present invention is described below with reference to fig. 1 to 4.
The network configuration method can be used for distributing a network for household appliances, and the network configuration method can be applied to a terminal and can be specifically executed by hardware or software in the terminal, but is not limited to the terminal.
Terminals include, but are not limited to, mobile phones or other portable communication devices such as tablet computers. The terminal has a light emitter, which may be a flash lamp. The terminal may include a touch-sensitive surface (e.g., a touch screen display and/or touch pad), or include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
As shown in fig. 1, a network configuration method provided in an embodiment of the present invention includes: step 110-step 150.
Step 110, receiving a network distribution request of a device to be networked;
the distribution network request may be a broadcast packet sent by a device to be networked, and the distribution network request may include various information of the device to be networked, including at least one of the following: mac Address (physical Address), ssid Number (Service Set Identifier), SN (Serial Number), and the like.
The terminal can receive the distribution network request.
Step 121, determining a device identifier of a device to be networked based on the network distribution request;
after the terminal receives the distribution network request, the device identifier of the device to be networked can be analyzed from the distribution network request, and the device identifier of the device to be networked is used for representing the identity of the device to be networked.
The device identifier of the device to be networked may take at least one of the following forms:
firstly, the device identification of the device to be networked can be a Mac address of the device to be networked;
and secondly, the equipment identifier of the equipment to be networked can be the identity code of the equipment to be networked.
It can be understood that, when there are multiple distribution network requests, step 121, determining the device identifier of the device to be networked based on the distribution network request, includes: and determining the equipment identifier corresponding to each equipment to be networked based on the network distribution request.
Step 122, determining a check code based on the equipment identifier;
the step is used for converting the equipment identifier into a check code, the check code can be a serial number formed by 0 and 1, and in actual execution, an encoder of the terminal encodes the equipment identifier to obtain the check code.
It is understood that, when there are a plurality of distribution network requests, step 122 determines a check code based on the device identifier, including: and determining a corresponding check code based on each equipment identifier.
Step 123, controlling the optical transmitter to flash according to the target frequency based on the check code so as to be received by an optical receiver of the equipment to be networked;
and after the check code is obtained, the light emitter of the control terminal outputs the check code in a mode that the light emitter flickers according to the target frequency.
For example, by setting the state (on or off) of the light emitter at each cycle, 0 or 1 is output. A light emitter is on indicating 1 and a light emitter is off indicating 0.
In practical use, the optical transmitter is required to face the optical receiver of the equipment to be networked.
In embodiments where the terminal is a mobile terminal, the light emitter may be a flash of the mobile terminal. The optical receiver of the device to be networked may be an infrared receiver.
It is understood that, when the distribution network request is multiple, the step 123 of controlling the optical transmitter to flash at the target frequency based on the check code includes: and controlling the light emitters to flash at the target frequency one by one based on the check code.
Step 124, receiving a verification result fed back by the network access equipment;
after the terminal sends the check code to the optical receiver of the device to be networked in front through the optical transmitter, the optical receiver of the device to be networked receives the optical signal, decodes the optical signal, determines the analysis identifier, then verifies the analysis identifier with the device identifier of the terminal, if the analysis identifier is consistent with the device identifier of the terminal, the verification passes, if the analysis identifier is inconsistent with the device identifier of the terminal, the verification fails, and the verification result is fed back to the terminal.
And the terminal receives the verification result fed back by the network access equipment.
And 150, determining that the verification is passed, and sending the distribution network information.
And under the condition that the verification is passed, the terminal sends the distribution network information to the equipment to be networked, wherein the distribution network information can comprise an account number and a password of the wireless network.
After the network access equipment receives the distribution network information, the network can be distributed based on the distribution network information.
It can be understood that, in the related art, the distance between the device to be networked and the terminal is often determined according to the strength of the RSSI value, and whether the device to be networked corresponding to the network distribution request is the preceding device is determined according to the distance. This network configuration method is prone to misconfiguration of similar devices of neighbors.
According to the network configuration method provided by the embodiment of the invention, as the optical signal is used as a verification medium when the distribution network request is received, light cannot penetrate through the wall, so that the safety of the distribution network can be ensured, and potential safety hazards and risks existing in the later stage can be reduced.
In some embodiments, before determining the device identifier of the device to be networked based on the network distribution request in step 121, the method further includes: it is determined that the received signal strength indication value (RSSI value) is greater than the target strength value.
In the actual execution process, the APP for the distribution network on the terminal can automatically find the equipment to be accessed to the network and remind the user of approaching the distribution network; and in the process of approaching the user, the APP for the distribution network detects whether the RSSI value of the equipment to be networked meets the target strength value in real time.
When the APP for the distribution network detects that the RSSI value of the equipment to be networked is greater than the target strength value, the MAC address of the corresponding equipment is read and a group of check codes are generated.
Therefore, preliminary screening can be realized through the RSSI value, the calculated amount in the distribution network process is reduced, and the accuracy of the distribution network is improved.
In some embodiments, after receiving the verification result fed back by the network access device in step 124, the network configuration method further includes:
determining that the verification fails, and outputting prompt information;
the prompt message can be a prompt box displayed on the terminal interface, or a vibration message, or a sound message.
Receiving a first input of a user;
in this step, the first input is used to control the light emitter to flash at a target frequency based on the verification code.
Wherein the first input may be expressed in at least one of the following ways:
first, the first input may be represented as a touch input, including but not limited to a click input, a slide input, a press input, and the like.
In this embodiment, receiving a first input by the user may be embodied as receiving a first input by the user at a display area of a display screen of the terminal.
In order to reduce the misoperation rate of the user, the action area of the first input can be limited to a specific area, such as the upper middle area of the display interface; or displaying the target control on the current interface, and touching the target control to realize the first input.
Second, the first input may be represented as a physical key input.
In this embodiment, the body of the terminal is provided with an entity key corresponding to the sharing, and the receiving of the first input of the user may be expressed as receiving the first input of the user pressing the corresponding entity key.
Third, the first input may be represented as a voice input.
In this embodiment, the terminal may trigger the control light emitter to flash at the target frequency based on the check code when receiving a voice such as "send check code".
Of course, in other embodiments, the first input may also be in other forms, including but not limited to character input, and the like, which may be determined according to actual needs, and this is not limited in this application.
In response to the first input, controlling the optical transmitter to flash at the target frequency again based on the check code; and shielding the equipment to be accessed to the network when the number of times of failed verification is determined to reach the target number of times.
For example, the target number of times may be 3, and if none of the 3 checks passes, the terminal reminds the user that the device is a neighbor device, and shields the device and does not display the device, so as to prevent the device from being continuously discovered to remind the distribution network.
An embodiment of the invention is described below with reference to fig. 2.
The network configuration method comprises the following steps:
the terminal automatically searches nearby equipment which is not connected to the network, and reminds a user of approaching the automatic distribution network after finding the equipment;
judging whether the RSSI value of the equipment to be networked meets the target strength value set by the APP;
if not, returning to the previous step;
if yes, reading the MAC address of the equipment to be networked, generating a check code according to the MAC address, and controlling the flash lamp to flash at a target frequency;
the equipment end infrared receiver checks after receiving the check code;
if the verification is passed, the terminal sends distribution network information to the equipment;
and if the verification fails, reminding the user and shielding the SSID according to the condition.
In an embodiment of the present invention, as shown in fig. 3, after determining, in step 121, a device identifier of a device to be networked based on a distribution network request, and before sending, in step 150, distribution network information, the network configuration method further includes:
step 141, controlling the camera to scan the identification code of the target device, and determining the device identification of the target device;
it can be understood that the target device is a device to be configured by the user on the network, the identification code may be a two-dimensional code or a bar code on a nameplate of the device, and the camera scans the identification code of the target device to obtain the device identification of the target device.
The device identification of the target device may take at least one of the following forms:
firstly, the device identification of the target device can be a Mac address of the target device;
and secondly, the device identifier of the target device can be the SN of the target device.
And 142, determining that the device identifier of the target device is consistent with the device identifier of the device to be networked.
And comparing the equipment identifier of the target equipment with the equipment identifier of the equipment to be networked, and if the equipment identifiers are consistent, carrying out network distribution.
It should be noted that the verification method and the verification method of the verification code in the above embodiment may be used in combination, and when both methods pass, the distribution network information is sent to the device.
In some embodiments, as shown in fig. 4, after receiving the distribution network request of the device to be networked in step 110, and before scanning the identification code of the target device by the control camera and determining the device identifier of the target device in step 141, the network configuration method further includes:
step 131, determining the class of the equipment to be networked based on the network distribution request;
in an actual implementation, the category of the device may be determined by parsing the ssid number in the distribution network request, such as determining whether the device is an air conditioner or a refrigerator.
Step 132, controlling the camera to collect a target image;
the target image is an image of a device which the user wants to perform network configuration.
Step 133, identifying the type of the device in the target image;
in this step, the class of devices in the target image may be determined by an image recognition algorithm.
And step 134, determining that the class of the equipment in the target image is the same as the class of the equipment to be networked.
When the class of the device in the target image is the same as that of the device to be networked, the device to be networked corresponding to the distribution network request can be determined as the target device preliminarily.
When the class of the device in the target image is different from the class of the device to be networked, it may be determined that the device to be networked corresponding to the distribution network request is not the target device.
The following describes a specific implementation manner of performing recognition through an image in the network configuration method provided by the embodiment of the present invention.
The terminal automatically searches nearby equipment which is not connected to the network, and reminds a user of approaching the automatic distribution network after finding the equipment;
judging whether the RSSI value of the equipment to be networked meets the target strength value set by the APP;
in the approaching process, the APP calls a camera and a gyroscope device of the terminal, the gyroscope calculates information such as the movement speed of a terminal holder, and the like, and simultaneously determines the distance between the terminal and the equipment to be networked through a depth algorithm in cooperation with a target image of the target equipment captured by the camera;
the camera uploads the captured target image to the cloud, determines the category of the target equipment, and confirms whether the equipment to be networked is consistent with the target equipment or not;
when unanimous, control camera scanning target device's identification code specifically includes: controlling a camera to switch to a telephoto lens, reading two-dimensional code information on target equipment, confirming more specific information (such as SN, MAC address and the like) of the equipment according to the two-dimensional code information, and further confirming whether the equipment to be networked and the target equipment are consistent or not
If the detection is completely passed, the distribution network information is sent to the equipment to be accessed, and the equipment to be accessed is successfully accessed; if the repeated detection fails, the user is reminded that the equipment is the neighbor equipment, and the terminal shields the equipment and does not display the equipment (so that the situation that the follow-up network is continuously reminded to be distributed is effectively prevented).
The network configuration device provided by the embodiment of the present invention is described below, and the network configuration device described below and the network configuration method described above may be referred to correspondingly.
As shown in fig. 5, a network configuration apparatus provided in an embodiment of the present invention includes: a first receiving module 510, a first determining module 521, an encoding module 522, a control module 523, a second receiving module 524, and a first transmitting module 550.
A first receiving module 510, configured to receive a network distribution request of a device to be networked;
the first determining module 521 is configured to determine, based on the distribution network request, a device identifier of a device to be networked;
an encoding module 522, configured to determine a check code based on the device identifier;
the control module 523, configured to control the optical transmitter to flash at a target frequency based on the check code, so that the optical receiver of the device to be networked receives the flash;
a second receiving module 524, configured to receive a verification result fed back by the network access device;
and a first sending module 550, configured to determine that the verification is passed and send the distribution network information.
According to the network configuration device provided by the embodiment of the invention, as the optical signal is used as a verification medium when the distribution network request is received, light cannot penetrate through the wall, so that the safety of the distribution network can be ensured, and potential safety hazards and risks existing in the later stage can be reduced.
The network configuration device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server or a Network Attached Storage (NAS), and embodiments of the present application are not limited in particular.
The network configuration device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
In some embodiments, the network configuration apparatus further comprises: a second determination module to determine that the received signal strength indication value is greater than the target strength value.
In some embodiments, the distribution network request is multiple, and the first determining module 521 is further configured to determine, based on the distribution network request, a device identifier corresponding to each device to be networked; the encoding module 522 is further configured to determine a corresponding check code based on each device identifier; the control module 523 is further configured to control the optical transmitters to blink at the target frequency one by one based on the check code.
In some embodiments, the network configuration apparatus further comprises: the first output module is used for determining that the verification fails and outputting prompt information; the fifth receiving module is used for receiving the first input of the user; the control module 523 is further configured to control the light emitter to flash at the target frequency based on the check code; and shielding the equipment to be accessed to the network when the number of times of failed verification is determined to reach the target number of times.
In some embodiments, the control module 523 is further configured to control the camera to scan the identification code of the target device, and determine the device identifier of the target device; the network configuration device further comprises: and the third determining module is used for determining that the equipment identifier of the target equipment is consistent with the equipment identifier of the equipment to be networked.
In some embodiments, the control module 523 is further configured to control the camera to switch to the telephoto lens.
In some embodiments, the network configuration apparatus further comprises:
the fourth determining module is used for determining the class of the equipment to be networked based on the network distribution request;
the control module 523 is further configured to control the camera to acquire a target image;
the identification module is used for identifying the types of the equipment in the target image;
and the fifth determining module is used for determining that the class of the equipment in the target image is the same as the class of the equipment to be networked.
As shown in fig. 6, the present invention further provides a network configuration method, which can be applied to the device side, and can be specifically, but not limited to, executed by hardware or software in the device side.
As shown in fig. 6, the network configuration method includes: step 610-step 670.
Step 610, sending a distribution network request;
after the equipment end for accessing the wireless network is powered on, the equipment end can automatically send a distribution network request, and the distribution network request is sent in a broadcasting mode.
Step 620, receiving the optical signal;
when the terminal control light emitter flickers according to the target frequency based on the check code, the equipment end receives the optical signal,
Step 630, decoding the optical signal, determining an analysis identifier;
and the analysis identifier is an equipment identifier corresponding to the check code.
Step 640, verifying the analysis identifier with the own equipment identifier to determine a verification result;
when the analysis identifier is consistent with the own equipment identifier, the verification is passed; otherwise, the check fails.
Step 650, sending the checking result;
the verification result is used for the terminal to determine whether to send the distribution network information, and when the verification is passed, the terminal sends the distribution network information; otherwise, it does not transmit.
Step 660, receiving distribution network information;
and step 670, distributing the network based on the distribution network information.
According to the network configuration method, the safety of the distribution network can be guaranteed through the verification of the optical signals, and therefore potential safety hazards and risks existing in the later stage can be reduced.
The network configuration device provided by the embodiment of the present invention is described below, and the network configuration device described below and the network configuration method described above may be referred to correspondingly.
As shown in fig. 7, the network configuration apparatus includes: a second sending module 710, a third receiving module 720, a decoding module 730, a checking module 740, a third sending module 750, a fourth receiving module 760 and a distribution network module 770.
A second sending module 710, configured to send a distribution network request;
a third receiving module 720, configured to receive an optical signal;
a decoding module 730, configured to decode the optical signal and determine an analysis identifier;
the checking module 740 is configured to check the analysis identifier with the device identifier of the user, and determine a checking result;
a third sending module 750, configured to send the verification result;
a fourth receiving module 760, configured to receive distribution network information;
and a distribution network module 770 for distributing a network based on the distribution network information.
According to the network configuration device provided by the embodiment of the invention, the safety of the distribution network can be ensured through the verification of the optical signals, so that potential safety hazards and risks existing in the later stage can be reduced.
Fig. 8 illustrates a physical structure diagram of an electronic device, and as shown in fig. 8, the electronic device may include: a processor (processor)810, a communication Interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication Interface 820 and the memory 830 communicate with each other via the communication bus 840. Processor 810 may invoke logic instructions in memory 830 to perform a network configuration method comprising: receiving a network distribution request of a device to be networked; determining the equipment identifier of the equipment to be networked based on the network distribution request; determining a check code based on the device identification; controlling the light emitter to flash at a target frequency based on the check code so as to be received by a light receiver of the equipment to be networked; receiving a verification result fed back by the network access equipment; and determining that the verification is passed, and sending the distribution network information. Alternatively, the method comprises: sending a distribution network request; receiving an optical signal; decoding the optical signal to determine an analysis identifier; verifying the analysis identifier with the self equipment identifier to determine a verification result; sending a checking result; receiving distribution network information; and (4) distributing the network based on the distribution network information.
In addition, the logic instructions in the memory 830 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Further, an embodiment of the present invention discloses a computer program product, the computer program product includes a computer program stored on a non-transitory computer readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer, the computer can execute the network configuration method provided by the above method embodiments, the method includes: receiving a network distribution request of a device to be networked; determining the equipment identifier of the equipment to be networked based on the network distribution request; determining a check code based on the device identification; controlling the light emitter to flash at a target frequency based on the check code so as to be received by a light receiver of the equipment to be networked; receiving a verification result fed back by the network access equipment; and determining that the verification is passed, and sending the distribution network information. Alternatively, the method comprises: sending a distribution network request; receiving an optical signal; decoding the optical signal to determine an analysis identifier; verifying the analysis identifier with the self equipment identifier to determine a verification result; sending a checking result; receiving distribution network information; and (4) distributing the network based on the distribution network information.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to perform the network configuration method provided in the foregoing embodiments, where the method includes: receiving a network distribution request of a device to be networked; determining the equipment identifier of the equipment to be networked based on the network distribution request; determining a check code based on the device identification; controlling the light emitter to flash at a target frequency based on the check code so as to be received by a light receiver of the equipment to be networked; receiving a verification result fed back by the network access equipment; and determining that the verification is passed, and sending the distribution network information. Alternatively, the method comprises: sending a distribution network request; receiving an optical signal; decoding the optical signal to determine an analysis identifier; verifying the analysis identifier with the self equipment identifier to determine a verification result; sending a checking result; receiving distribution network information; and (4) distributing the network based on the distribution network information.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
The above embodiments are merely illustrative of the present invention and are not to be construed as limiting the invention. Although the present invention has been described in detail with reference to the embodiments, it should be understood by those skilled in the art that various combinations, modifications or equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention, and the technical solution of the present invention is covered by the claims of the present invention.

Claims (12)

1. A method of network configuration, comprising:
receiving a network distribution request of a device to be networked;
determining the equipment identifier of the equipment to be networked based on the network distribution request;
determining a check code based on the device identification;
controlling the optical transmitter to flash at a target frequency based on the check code so as to be received by an optical receiver of the equipment to be networked;
receiving a verification result fed back by the network access equipment;
and determining that the verification is passed, and sending the distribution network information.
2. The network configuration method according to claim 1, wherein before the determining the device identifier of the device to be networked based on the network distribution request, further comprising:
it is determined that the received signal strength indication value is greater than the target strength value.
3. The network configuration method according to claim 1,
the method for determining the equipment identifier of the equipment to be networked based on the distribution network request comprises the following steps: determining equipment identifications corresponding to the equipment to be networked based on the network distribution request; the determining a check code based on the device identifier includes: determining a corresponding check code based on each equipment identifier; the control light emitter flickers at a target frequency based on the check code, and the control light emitter flickers at the target frequency based on the check code and comprises the following steps: and controlling the light emitters to flash at the target frequency one by one based on the check code.
4. The network configuration method according to claim 1, wherein after the receiving the verification result fed back by the network access device, the network configuration method further comprises:
determining that the verification fails, and outputting prompt information;
receiving a first input of a user;
in response to the first input, controlling the optical transmitter to blink at a target frequency based on the check code again; wherein,
and shielding the equipment to be accessed when the number of times of failed verification reaches the target number of times.
5. The network configuration method according to any one of claims 1 to 4, wherein after the determining the device identifier of the device to be networked based on the distribution network request and before the sending distribution network information, the network configuration method further comprises:
controlling a camera to scan an identification code of target equipment and determining an equipment identification of the target equipment;
and determining that the equipment identifier of the target equipment is consistent with the equipment identifier of the equipment to be networked.
6. The network configuration method of claim 5, wherein the controlling the camera to scan an identification code of the target device comprises: and controlling the camera to be switched to the telephoto lens.
7. The network configuration method according to claim 5, wherein after the receiving the network distribution request of the device to be networked, and before the controlling camera scans the identification code of the target device and determines the device identification of the target device, the network configuration method further comprises:
determining the class of the equipment to be networked based on the network distribution request;
controlling a camera to collect a target image;
identifying the class of equipment in the target image;
and determining that the class of the equipment in the target image is the same as the class of the equipment to be networked.
8. A method of network configuration, comprising:
sending a distribution network request;
receiving an optical signal;
decoding the optical signal and determining an analytic identifier;
verifying the analysis identifier with the self equipment identifier to determine a verification result;
sending the checking result;
receiving distribution network information;
and distributing the network based on the distribution network information.
9. A network configuration apparatus, comprising:
the first receiving module is used for receiving a distribution network request of the equipment to be networked;
the first determining module is used for determining the equipment identifier of the equipment to be networked based on the network distribution request;
the coding module is used for determining a check code based on the equipment identifier;
the control module is used for controlling the light emitter to flash at a target frequency based on the check code so as to be received by the light receiver of the equipment to be networked;
the second receiving module is used for receiving the verification result fed back by the network access equipment;
and the first sending module is used for determining that the verification is passed and sending the distribution network information.
10. A network configuration apparatus, comprising:
the second sending module is used for sending the distribution network request;
the third receiving module is used for receiving optical signals;
the decoding module is used for decoding the optical signal and determining an analysis identifier;
the verification module is used for verifying the analysis identifier with the equipment identifier of the verification module and determining a verification result;
a third sending module, configured to send the verification result;
the fourth receiving module is used for receiving the distribution network information;
and the distribution network module is used for distributing the network based on the distribution network information.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the network configuration method according to any of claims 1 to 8 are implemented when the program is executed by the processor.
12. A non-transitory computer readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the steps of the network configuration method according to any one of claims 1 to 8.
CN202011383512.2A 2020-11-30 2020-11-30 Network configuration method, network configuration device, electronic equipment and readable storage medium Pending CN112492611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011383512.2A CN112492611A (en) 2020-11-30 2020-11-30 Network configuration method, network configuration device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011383512.2A CN112492611A (en) 2020-11-30 2020-11-30 Network configuration method, network configuration device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112492611A true CN112492611A (en) 2021-03-12

Family

ID=74938381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011383512.2A Pending CN112492611A (en) 2020-11-30 2020-11-30 Network configuration method, network configuration device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112492611A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194455A (en) * 2021-04-29 2021-07-30 四川虹美智能科技有限公司 Intelligent device network distribution method and device
CN113489631A (en) * 2021-07-12 2021-10-08 珠海格力电器股份有限公司 Equipment network configuration method, intelligent equipment and storage medium
CN115174656A (en) * 2022-05-27 2022-10-11 青岛海尔科技有限公司 Device configuration method and apparatus, storage medium, and electronic apparatus
CN115580868A (en) * 2021-06-30 2023-01-06 青岛海尔科技有限公司 Network access method and device, storage medium and electronic device
CN116408575B (en) * 2021-12-31 2024-06-04 广东美的白色家电技术创新中心有限公司 Method, device and system for locally scanning and eliminating workpiece reflection interference

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131846A (en) * 2016-08-30 2016-11-16 广东美的制冷设备有限公司 Distribution method, system, smart machine and the handheld terminal of smart machine
CN107659470A (en) * 2017-09-19 2018-02-02 广东美的制冷设备有限公司 Anti-error distribution method and apparatus based on broadcast distribution
WO2018103676A1 (en) * 2016-12-07 2018-06-14 中兴通讯股份有限公司 Scanning method, device and terminal
CN110191008A (en) * 2019-07-03 2019-08-30 中国联合网络通信集团有限公司 The method of self-service Configuration network equipment, user terminal, server
CN110493267A (en) * 2019-09-20 2019-11-22 美茵滋成都品牌管理有限公司 A kind of anti-counterfeiting system and its method for anti-counterfeit of state encryption variable code
CN110650516A (en) * 2019-09-23 2020-01-03 芯海科技(深圳)股份有限公司 Network distribution method and device, Internet of things equipment, terminal equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131846A (en) * 2016-08-30 2016-11-16 广东美的制冷设备有限公司 Distribution method, system, smart machine and the handheld terminal of smart machine
WO2018103676A1 (en) * 2016-12-07 2018-06-14 中兴通讯股份有限公司 Scanning method, device and terminal
CN107659470A (en) * 2017-09-19 2018-02-02 广东美的制冷设备有限公司 Anti-error distribution method and apparatus based on broadcast distribution
CN110191008A (en) * 2019-07-03 2019-08-30 中国联合网络通信集团有限公司 The method of self-service Configuration network equipment, user terminal, server
CN110493267A (en) * 2019-09-20 2019-11-22 美茵滋成都品牌管理有限公司 A kind of anti-counterfeiting system and its method for anti-counterfeit of state encryption variable code
CN110650516A (en) * 2019-09-23 2020-01-03 芯海科技(深圳)股份有限公司 Network distribution method and device, Internet of things equipment, terminal equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194455A (en) * 2021-04-29 2021-07-30 四川虹美智能科技有限公司 Intelligent device network distribution method and device
CN115580868A (en) * 2021-06-30 2023-01-06 青岛海尔科技有限公司 Network access method and device, storage medium and electronic device
CN113489631A (en) * 2021-07-12 2021-10-08 珠海格力电器股份有限公司 Equipment network configuration method, intelligent equipment and storage medium
CN116408575B (en) * 2021-12-31 2024-06-04 广东美的白色家电技术创新中心有限公司 Method, device and system for locally scanning and eliminating workpiece reflection interference
CN115174656A (en) * 2022-05-27 2022-10-11 青岛海尔科技有限公司 Device configuration method and apparatus, storage medium, and electronic apparatus

Similar Documents

Publication Publication Date Title
CN112492611A (en) Network configuration method, network configuration device, electronic equipment and readable storage medium
US20200177599A1 (en) Network connection method, hotspot terminal and management terminal
CN105933904B (en) Network connection method and device
EP2838309B1 (en) Method, device and system for establishing data connection
US9860357B2 (en) Establishing an authenticated wireless connection between short-range wireless terminals more conveniently
KR101687521B1 (en) Multi-screen interaction method, devices, and system
CN112242980A (en) Screen projection method and device
CN112804697A (en) Network distribution method and device for equipment to be networked, electronic equipment and computer readable medium
CN108345422A (en) Application control method, apparatus, mobile terminal and computer-readable medium
CN114270781A (en) Device access method, device, system control method, electronic device and storage medium
CN110063052B (en) Method and system for confirming pairing
CN104348875A (en) Method, cloud server and system for performing pocket transmission of data
CN108270764B (en) Application login method, server and mobile terminal
CN111970676B (en) WiFi hot spot access method, device, equipment and storage medium
CN109600340B (en) Operation authorization method, device, terminal and server
CN104038900A (en) Locating method and equipment
CN112216081B (en) Wireless control equipment control method and related device
CN112888024B (en) Data processing method, data processing device, storage medium and electronic equipment
CN110035399B (en) Message transmission method and related equipment
CN107708183B (en) Decoding algorithm determination method, device, terminal and storage medium
CN107819761B (en) Data processing method and device and readable storage medium
CN108632822B (en) Wireless access point detection method and device and mobile terminal
CN112543493A (en) Wifi connection method, terminal and computer storage medium
CN103873682B (en) A kind of information processing method and electronic equipment
CN115098052A (en) Screen projection method, device, equipment and storage medium

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