CN114158110A - Network distribution method of intelligent device, intelligent terminal and system - Google Patents

Network distribution method of intelligent device, intelligent terminal and system Download PDF

Info

Publication number
CN114158110A
CN114158110A CN202111440747.5A CN202111440747A CN114158110A CN 114158110 A CN114158110 A CN 114158110A CN 202111440747 A CN202111440747 A CN 202111440747A CN 114158110 A CN114158110 A CN 114158110A
Authority
CN
China
Prior art keywords
target wifi
password
ssid
target
information
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
CN202111440747.5A
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.)
Sichuan Hongmei Intelligent Technology Co Ltd
Original Assignee
Sichuan Hongmei Intelligent 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 Sichuan Hongmei Intelligent Technology Co Ltd filed Critical Sichuan Hongmei Intelligent Technology Co Ltd
Priority to CN202111440747.5A priority Critical patent/CN114158110A/en
Publication of CN114158110A publication Critical patent/CN114158110A/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/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

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

Abstract

The application provides a network distribution method of an intelligent device, the intelligent device, an intelligent terminal and a system. According to the distribution network method, the intelligent terminal sends the target WIFI information obtained through coding to the intelligent device through the light-emitting element, the photosensitive element of the intelligent device receives the target WIFI information, decodes the target WIFI information and then is connected to the target WIFI according to a decoding result, the distribution network method with the optical signal as the carrier is provided, and the distribution network speed can be improved through the distribution network method. Because the target WIFI information is an optical signal coded by the intelligent terminal, the stability, correctness and anti-interference of information transmission can be ensured, the compatibility problem does not exist, and the success of a distribution network can be ensured.

Description

Network distribution method of intelligent device, intelligent terminal and system
Technical Field
The invention relates to the technical field of smart homes, in particular to a network distribution method of a smart device, the smart device, a smart terminal and a system.
Background
The intelligent home is rapidly developed under the support of the internet of things technology, and various intelligent devices are released by various manufacturers, including devices which are interconnected based on Bluetooth, WIFI and ZigBee. The WIFI device (smart device capable of connecting WIFI) occupies most of the ratio. In order to optimize the network configuration experience of the intelligent device during the first use, various manufacturers try to implement a fast network distribution scheme in many aspects.
At present, the main distribution mode is to configure the WIFI device into an AP mode, and connect the mobile phone to the WIFI device to form a local area network. The mobile phone sends the SSID (Service Set Identifier) and the password of the target WIFI to the WIFI equipment through the local area network, and the WIFI equipment is connected with the target WIFI again to complete the distribution network.
The distribution network mode has the advantages of complex flow and low speed. Moreover, due to the fact that a WIFI protocol is complex and multiple in version, compatibility problems may exist between mobile phone WIFI and device WIFI, and distribution network failure is caused.
Disclosure of Invention
The invention provides a network distribution method of intelligent equipment, the intelligent equipment, an intelligent terminal and a system. The technical scheme of the invention is as follows:
in a first aspect, a network distribution method for an intelligent device is provided, which includes:
receiving target WIFI information sent by an intelligent terminal of a distributed network through a photosensitive element, wherein the target WIFI information is an optical signal which is generated by the intelligent terminal after acquiring an SSID and a password of the target WIFI and is sent through a light-emitting element of the intelligent terminal;
decoding the target WIFI information to obtain an SSID and a password of the target WIFI;
and connecting to the target WIFI according to the SSID and the password of the target WIFI.
Optionally, after the connection to the target WIFI is performed according to the SSID and the password of the target WIFI, the method further includes:
and sending distribution network success notification information to the connected Internet of things server so as to send distribution network success notification to the intelligent terminal through the Internet of things server.
Optionally, the target WIFI information further includes a specified encryption algorithm, and the decoding the target WIFI information includes:
determining a designated encoding mode adopted by the target WIFI information;
decoding the target WIFI information through a decoding mode corresponding to the specified encoding mode to obtain an encrypted SSID and a password;
acquiring a target decryption algorithm corresponding to the specified encryption algorithm;
and decrypting the encrypted SSID and the encrypted password through the target decryption algorithm to obtain the SSID and the password of the target WIFI.
In a second aspect, a network distribution method for an intelligent device is provided, which includes:
acquiring an SSID and a password of a target WIFI;
coding the SSID and the password of the target WIFI to obtain target WIFI information;
and driving a light-emitting element to send the target WIFI information to the intelligent equipment to be distributed, so that the intelligent equipment receives the target WIFI information through a photosensitive element of the intelligent equipment, decodes the target WIFI information to obtain the SSID and the password of the target WIFI and then connects the target WIFI.
Optionally, the encoding the SSID and the password of the target WIFI includes:
encrypting the SSID and the password of the target WIFI through a specified encryption algorithm;
and encoding the encrypted SSID and the encrypted password by a specified encoding mode.
Optionally, the encrypting the SSID and the password of the target WIFI by specifying an encryption algorithm includes:
disturbing the password of the target WIFI, and encrypting the disturbed password by an MD5 algorithm;
encrypting the SSID of the target WIFI through an RSA algorithm;
and respectively calculating the hash values of the encrypted password and the encrypted SSID, and combining the hash value of the encrypted password and the hash value of the encrypted SSID to serve as the encryption result of the SSID and the password of the target WIFI.
Optionally, the disturbing processing of the password of the target WIFI includes:
randomly generating a splicing character string, wherein the sum of the length of the splicing character string and the length of the password of the target WIFI is a preset character length;
and splicing the password of the target WIFI with the spliced character string to obtain the password after the disturbance processing of the preset character length.
In a third aspect, a smart device is provided, comprising:
the receiving unit is configured to receive target WIFI information sent by the intelligent terminal of the distributed network through a photosensitive element, wherein the target WIFI information is an optical signal which is generated by the intelligent terminal after acquiring an SSID and a password of the target WIFI and is sent through a light-emitting element of the intelligent terminal;
the decoding unit is configured to decode the target WIFI information to obtain an SSID and a password of the target WIFI;
and the connection unit is configured to be connected to the target WIFI according to the SSID and the password of the target WIFI.
Optionally, the smart device further comprises:
the sending unit is configured to send distribution network success notification information to the connected Internet of things server so as to send a distribution network success notification to the intelligent terminal through the Internet of things server.
Optionally, the target WIFI information further includes a specified encryption algorithm, and the decoding unit includes:
the determining module is configured to determine a specified encoding mode adopted by the target WIFI information;
the decoding module is configured to decode the target WIFI information through a decoding mode corresponding to the specified encoding mode to obtain an encrypted SSID and a password;
the acquisition module is configured to acquire a target decryption algorithm corresponding to the specified encryption algorithm;
and the decryption module is configured to decrypt the encrypted SSID and the encrypted password through the target decryption algorithm to obtain the SSID and the password of the target WIFI.
In a fourth aspect, an intelligent terminal is provided, which includes:
an acquisition unit configured to acquire an SSID and a password of a target WIFI;
the encoding unit is configured to encode the SSID and the password of the target WIFI to obtain target WIFI information;
the sending unit is configured to drive the light-emitting element to send the target WIFI information to the intelligent equipment to be distributed, so that the intelligent equipment receives the target WIFI information through the light-sensitive element of the intelligent equipment, decodes the received target WIFI information to obtain the SSID and the password of the target WIFI and then connects the target WIFI.
Optionally, the encoding unit includes:
the encryption module is configured to encrypt the SSID and the password of the target WIFI through a specified encryption algorithm;
and the encoding module is configured to encode the encrypted SSID and the encrypted password by a specified encoding mode.
Optionally, the encryption module includes:
the disturbance processing submodule is configured to perform disturbance processing on the password of the target WIFI and encrypt the disturbed password through an MD5 algorithm;
the encryption sub-module is configured to encrypt the SSID of the target WIFI through an RSA algorithm;
and the computing submodule is configured to compute the encrypted password and the encrypted SSID hash value respectively, and combine the encrypted password hash value and the encrypted SSID hash value to serve as the encryption result of the SSID and the password of the target WIFI.
Optionally, the disturbance processing sub-module is configured to: randomly generating a splicing character string, wherein the sum of the length of the splicing character string and the length of the password of the target WIFI is a preset character length; and splicing the password of the target WIFI with the spliced character string to obtain the password after the disturbance processing of the preset character length.
In a fifth aspect, a network distribution system of intelligent devices is provided, which includes the intelligent devices to be distributed and the intelligent terminals already distributed; wherein,
the smart device is configured to perform the method of the first aspect;
the intelligent terminal is configured to perform the method of the second aspect.
According to the method, the intelligent device, the intelligent terminal and the system, the intelligent terminal sends the target WIFI information obtained through coding to the intelligent device through the light-emitting element, the photosensitive element of the intelligent device receives the target WIFI information, decodes the target WIFI information and then connects the target WIFI information to the target WIFI according to the decoding result, the network distribution method with the optical signal as the carrier is provided, and the network distribution speed can be improved by the method for distributing the network. Because the target WIFI information is an optical signal coded by the intelligent terminal, the stability, correctness and anti-interference of information transmission can be ensured, the compatibility problem does not exist, and the success of a distribution network can be ensured.
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 introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic implementation environment diagram of a network distribution method for an intelligent device according to an embodiment of the present invention.
Fig. 2 is a flowchart of a network distribution method for an intelligent device according to an embodiment of the present invention.
Fig. 3 is a flowchart of a network distribution method for an intelligent device according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a network distribution method of an intelligent device according to an embodiment of the present invention.
Fig. 5 is a flowchart of a network distribution method for an intelligent device according to an embodiment of the present invention.
Fig. 6 is a flowchart of a network distribution method for an intelligent device according to an embodiment of the present invention.
Fig. 7 is a schematic block diagram of an intelligent device provided by an embodiment of the invention.
Fig. 8 is a schematic block diagram of an intelligent terminal according to an embodiment of the present invention.
Fig. 9 is a schematic block diagram of a distribution network system of an intelligent device according to an embodiment of the present invention.
Fig. 10 is a schematic diagram of pulse width modulation provided by one embodiment of the present invention.
Detailed Description
As shown in fig. 1, the schematic diagram of an implementation environment of a network distribution method for an intelligent device according to an embodiment of the present invention is shown, where the implementation environment includes an intelligent device 10 to be distributed and an intelligent terminal 20 already distributed. The smart device 10 is provided with a light-sensitive element. The smart terminal 20 is provided with a light emitting element. The intelligent terminal 20 sends an optical signal to the intelligent device 10 through the light emitting element, and the optical signal carries target WIFI information required by the intelligent device 10 for the distribution network. The smart device 10 receives the light signal through its light sensing element. The smart device 10 may be any device configured with a light-sensing element and required to be connected to target WIFI, such as a smart television, a smart refrigerator, a smart washing machine, or a smart air conditioner. The smart terminal 20 may be any terminal configured with a light emitting device and connected to the target WIFI, such as a desktop computer, a tablet computer, a smart phone, or a smart television.
With reference to the implementation environment schematic diagram shown in fig. 1, the embodiment of the present invention provides a method for distributing a network for an intelligent device, and the embodiment of the present invention takes an example in which an intelligent device 10 to be distributed executes the method provided by the embodiment of the present invention, and details of the method provided by the embodiment of the present invention are described. As shown in fig. 2, the method may include the steps of:
step 201, receiving target WIFI information sent by the intelligent terminal of the distributed network through a photosensitive element, wherein the target WIFI information is an optical signal which is generated by the intelligent terminal after acquiring the SSID and the password of the target WIFI and is sent through a light-emitting element of the intelligent terminal.
The photosensitive element can be one or more of a camera, a photoresistor, an infrared receiving tube and a photosensitive diode. The target WIFI is the WIFI to which the intelligent device is connected.
And 203, decoding the target WIFI information to obtain the SSID and the password of the target WIFI.
Specifically, the encoding mode adopted for encoding the target WIFI information may be acquired, and then the target WIFI information is acquired and decoded in the decoding mode corresponding to the encoding mode. When the encoding mode adopted for encoding the target WIFI information is obtained, the target WIFI information encoding method can be achieved based on a protocol adopted for communication between the intelligent terminal and the intelligent device. When a decoding scheme corresponding to the encoding scheme is acquired, the decoding scheme may be searched for in a communication protocol between them.
And step 205, connecting to the target WIFI according to the SSID and the password of the target WIFI.
Optionally, the implementation environment shown in fig. 1 may further include an internet of things server 30, and after the smart device 10 is connected to the target WIFI, the smart device may communicate with the internet of things server 30 through the target WIFI. The intelligent terminal 20 is also connected to the internet of things server 30. On this basis, after the smart device 10 is connected to the target WIFI according to the SSID and the password of the target WIFI, the distribution network success notification information may also be sent to the connected internet of things server, so that the distribution network success notification is sent to the smart terminal through the internet of things server, and the smart terminal can timely acquire the distribution network result of the smart device. If the intelligent device fails to distribute the network, the intelligent terminal continues to execute step 201 to ensure that the intelligent device can complete the network distribution in time.
According to the method provided by the embodiment of the invention, the photosensitive element is used for receiving the target WIFI information sent by the intelligent terminal of the distributed network, and the target WIFI information is decoded to be connected to the target WIFI according to the decoding result, so that the distribution network method using the optical signal as the carrier is provided, and the distribution network speed can be improved by distributing the network through the method. Because the target WIFI information is an optical signal coded by the intelligent terminal, the stability, correctness and anti-interference of information transmission can be ensured, the compatibility problem does not exist, and the success of a distribution network can be ensured.
In another embodiment of the present invention, the target WIFI information may include a specific encryption algorithm in addition to the SSID and password of the target WIFI. And the specified encryption algorithm is an algorithm for encrypting the SSID and the password of the target WIFI. On this basis, when decoding the target WIFI information, step 203 may be implemented by the following steps:
step 2031, determining a designated encoding mode adopted by the target WIFI information.
Wherein, the appointed coding mode is a coding mode adopted for coding the encrypted SSID and the password. When the appointed encoding mode adopted by the target WIFI information is determined, the target WIFI information can be searched in a communication protocol between the intelligent terminal and the intelligent equipment.
And 2033, decoding the target WIFI information by a decoding mode corresponding to the specified encoding mode to obtain the encrypted SSID and the encrypted password.
In this step, a decoding manner corresponding to the specified encoding manner needs to be determined first, and specifically, the decoding manner corresponding to the specified encoding manner may also be searched in a communication protocol between the intelligent terminal and the intelligent device.
Step 2035, a target decryption algorithm corresponding to the specified encryption algorithm is obtained.
The target decryption algorithm is an algorithm that decrypts the specified encryption algorithm. Specifically, a target decryption algorithm corresponding to the specified encryption algorithm may be queried from a mapping relationship between the locally pre-stored encryption algorithm and decryption algorithm.
And 2037, decrypting the encrypted SSID and the encrypted password by using a target decryption algorithm to obtain the SSID and the password of the target WIFI.
According to the method provided by the embodiment of the invention, the SSID and the password of the target WIFI transmitted between the intelligent device and the intelligent terminal are encrypted by carrying the specified encryption algorithm in the target WIFI information, so that the SSID and the password of the target WIFI are prevented from being broken or tampered arbitrarily or illegally connected due to interception.
With reference to the implementation environment schematic diagram shown in fig. 1, the embodiment of the present invention provides a method for distributing a network to an intelligent device, and the embodiment of the present invention takes a distributed intelligent terminal 20 as an example to execute the method provided by the embodiment of the present invention, and details the method provided by the embodiment of the present invention are described. As shown in fig. 3, the method may include the steps of:
and 301, acquiring the SSID and the password of the target WIFI.
And the target WIFI is the WIFI which is connected with the intelligent terminal. Because the intelligent terminal finishes the network distribution, the SSID and the password of the target WIFI can be searched from local networking data, and the SSID and the password of the target WIFI can be requested from a router corresponding to the target WIFI.
And 303, coding the SSID and the password of the target WIFI to obtain target WIFI information.
When the SSID and the password of the target WIFI are coded, the SSID and the password of the target WIFI can be coded in a pulse width modulation mode; or, the SSID and the password of the target WIFI are coded in an amplitude keying mode; or, the SSID and the password of the target WIFI are coded in a frequency shift keying mode; or, the SSID and the password of the target WIFI are encoded in a phase shift keying mode.
Specifically, when the SSID and the password of the target WIFI are encoded in a pulse width modulation manner, the encoding can be realized by the following formula (1) and formula (2):
s(t)=∑nang(t-nTb) (1)
Figure BDA0003382749280000081
in the formulas (1) and (2), TbRepresenting the width of a code element, and n is an independent variable; a isnThe random variable represents two states in the digital information, and the value is '0' or '1'. s (t) may be expressed as a baseband signal; t is1High level width, T, representing logic "02The high level width of logic "1" is shown, and u (t) is the signal of modulation completion.
As shown in fig. 10, taking the pulse width modulation method as an example, the length of one symbol is 1us seconds, and the high levels respectively represent logic according to different durations of the high levels, wherein the high level of 200ns represents logic "0", and the high level of 800ns represents logic "1". One byte is constituted by 8 symbols, and as shown below, the corresponding modulation waveform represents a byte "0 x 72".
When the SSID and the password of the target WIFI are encoded by the amplitude keying method, the method can be implemented by the following formula (3) and formula (4):
Figure BDA0003382749280000091
u(t)=ejωtnang(t-nTb) (4)
in the formulas (3) and (4), TbRepresenting the width of a code element, and n is an independent variable; a isnThe random variable represents two states in the digital information, and the value is '0' or '1'. Sigmanang(t-nTb) Represented as a baseband signal. e.g. of the typejωtDenotes a carrier wave, and u (t) is a modulated signal.
When the SSID and the password of the target WIFI are coded by the frequency shift keying, the coding can be realized by the following formula (5) and formula (6):
s(t)=∑nang(t-nTb) (5)
Figure BDA0003382749280000092
in the formulas (5) and (6), TbRepresenting the width of a code element, and n is an independent variable; a isnThe random variable represents two states in the digital information, and the value is '0' or '1'. Sigmanang(t-nTb) Represented as a baseband signal. f. of1,f2Two frequencies representing the carrier wave, u (t), are the modulated signals.
When the SSID and the password of the target WIFI are encoded by the phase shift keying method, the method can be implemented by the following formula (7):
Figure BDA0003382749280000093
in the formula (7), TbRepresenting the width of a code element, and n is an independent variable; a isnThe random variable represents two states in the digital information, and the value is '0' or '1'. Sigmanang(t-nTb) Represented as a baseband signal. u (t) is a signal of completion of modulation.
And 305, driving the light-emitting element to send target WIFI information to the intelligent equipment to be distributed, so that the intelligent equipment receives the target WIFI information through the light-sensitive element, decodes the target WIFI information to obtain the SSID and the password of the target WIFI and then is connected to the target WIFI.
The light-emitting element can be one or more of a screen, a flash lamp, an infrared emission tube and an LED.
According to the method provided by the embodiment of the invention, the target WIFI information obtained by coding is sent to the intelligent equipment through the light-emitting element, so that the photosensitive element of the intelligent equipment receives and decodes the target WIFI information and then is connected to the target WIFI according to the decoding result, the network distribution method using the optical signal as the carrier is provided, and the network distribution speed can be improved by distributing the network through the method. Because the target WIFI information is an optical signal coded by the intelligent terminal, the stability, correctness and anti-interference of information transmission can be ensured, the compatibility problem does not exist, and the success of a distribution network can be ensured.
In another embodiment, in step 303, when the SSID and the password of the target WIFI are encoded, the SSID and the password of the target WIFI may be encrypted by a specified encryption algorithm; and then, the encrypted SSID and the encrypted password are encoded by a specified encoding mode. In this embodiment, the SSID and the password of the target WIFI are encrypted, so that the SSID and the password of the target WIFI transmitted between the intelligent device and the intelligent terminal are encrypted, and the SSID and the password of the target WIFI are prevented from being broken or tampered arbitrarily or illegally connected due to interception. The specified encryption algorithm may be a symmetric encryption algorithm or an asymmetric encryption algorithm as needed, which is not specifically limited in the embodiment of the present invention.
Further, when the SSID and the password of the target WIFI are encrypted by the specified encryption algorithm, the method can be implemented by the following steps:
step 3031, disturbing the password of the target WIFI, and encrypting the disturbed password through an MD5 algorithm.
The purpose of disturbance processing is to increase the difficulty of password deciphering of the target WIFI and avoid the password of the target WIFI from being easily deciphered and leaked.
And 3033, encrypting the SSID of the target WIFI through an RSA algorithm.
Step 3035, calculating the hash values of the encrypted password and the encrypted SSID respectively, and combining the hash value of the encrypted password and the hash value of the encrypted SSID to obtain the encryption result of the SSID and the password of the target WIFI.
Specifically, when the hash value of the encrypted password and the hash value of the encrypted SSID are combined, the combination may be implemented according to a preset rule. The preset rule can be simple splicing of the hash value of the encrypted password and the hash value of the encrypted SSID; alternatively, the hash value of the encrypted password and the hash value of the encrypted SSID may be combined at intervals, for example, the first bit of the combination result is the first bit of the hash value of the encrypted password, the second bit of the combination result is the first bit of the hash value of the encrypted SSID, the third bit of the combination result is the second bit … … of the hash value of the encrypted password, and so on.
The SSID and the password of the target WIFI are encrypted in steps 3031 to 3035, so that the transmission security of the SSID and the password of the target WIFI is further improved, and the SSID and the password of the target WIFI are prevented from being broken or tampered arbitrarily or illegally connected due to interception.
In another embodiment, step 3031 may be implemented by the following steps 30311 and 30313 when performing perturbation processing on the target WIFI password:
30311, randomly generating a splicing character string, wherein the sum of the length of the splicing character string and the length of the target WIFI password is a preset character length.
The predetermined character length may be 32 bits, 64 bits, etc.
And step 30313, splicing the password of the target WIFI with the spliced character string to obtain a password after disturbance processing of a preset character length.
Specifically, when the password of the target WIFI is spliced with the splicing character string, the splicing character string can be directly and integrally connected to the back of the password of the target WIFI; or the spliced character string is integrally arranged in front of the password of the target WIFI; or the spliced character string is integrally placed in the middle of the password of the target WIFI; the password and the splicing string of the target WIFI may also be arranged in a bitwise interval, for example, the first digit of the splicing result is the first digit of the password of the target WIFI, the second digit of the splicing result is the first digit of the splicing string, the third digit of the splicing result is the second digit … … of the password of the target WIFI, and so on.
Disturbance processing is carried out through the password of the target WIFI, the deciphering difficulty of the password of the target WIFI is further increased, and the target WIFI can be better prevented from being illegally connected.
With reference to the implementation environment schematic diagram shown in fig. 1, the embodiment of the present invention provides a network distribution method for an intelligent device, and the embodiment of the present invention takes an example in which an intelligent device 10 and an intelligent terminal 20 interactively execute the method provided by the embodiment of the present invention, and details the method provided by the embodiment of the present invention are described. As shown in fig. 4, it shows the principle of the intelligent device distribution method in this implementation. As shown in fig. 5, the method may include the steps of:
and step 501, the intelligent terminal acquires the SSID and the password of the target WIFI.
Step 503, the intelligent terminal encodes the SSID and the password of the target WIFI to obtain target WIFI information.
And 505, driving the light-emitting element to send target WIFI information to the intelligent equipment to be distributed.
And 507, the intelligent device receives target WIFI information sent by the intelligent terminal of the distributed network through the photosensitive element.
Step 509, the intelligent device decodes the target WIFI information to obtain an SSID and a password of the target WIFI.
And 511, connecting the intelligent equipment to the target WIFI according to the SSID and the password of the target WIFI.
According to the method provided by the embodiment of the invention, the intelligent terminal sends the target WIFI information obtained by coding to the intelligent equipment through the light-emitting element, and the photosensitive element of the intelligent equipment receives and decodes the target WIFI information and then is connected to the target WIFI according to the decoding result. Because the target WIFI information is an optical signal coded by the intelligent terminal, the stability, correctness and anti-interference of information transmission can be ensured, the compatibility problem does not exist, and the success of a distribution network can be ensured.
With reference to the implementation environment schematic diagram shown in fig. 1, the embodiment of the present invention provides a network distribution method for an intelligent device, and the embodiment of the present invention takes an example in which an intelligent device 10 and an intelligent terminal 20 interactively execute the method provided by the embodiment of the present invention, and details the method provided by the embodiment of the present invention are described. As shown in fig. 6, the method may include the steps of:
step 601, the intelligent terminal obtains the SSID and the password of the target WIFI.
Step 603, the intelligent terminal encrypts the SSID and the password of the target WIFI through an appointed encryption algorithm, and codes the encrypted SSID and the password through an appointed coding mode to obtain target WIFI information.
Step 605, the intelligent terminal drives the light emitting element to send target WIFI information to the intelligent device to be distributed.
Step 607, the intelligent device receives the target WIFI information sent by the intelligent terminal of the distributed network through the photosensitive element.
Step 609, the intelligent device determines an appointed encoding mode adopted by the target WIFI information, and decodes the target WIFI information through a decoding mode corresponding to the appointed encoding mode to obtain the encrypted SSID and the encrypted password.
Step 611, the intelligent device obtains a target decryption algorithm corresponding to the specified encryption algorithm, and decrypts the encrypted SSID and the encrypted password through the target decryption algorithm to obtain the SSID and the password of the target WIFI.
Step 613, the intelligent device is connected to the target WIFI according to the SSID and the password of the target WIFI.
According to the method provided by the embodiment of the invention, the intelligent terminal sends the target WIFI information obtained by coding to the intelligent equipment through the light-emitting element, and the photosensitive element of the intelligent equipment receives and decodes the target WIFI information and then is connected to the target WIFI according to the decoding result. Because the target WIFI information is an optical signal coded by the intelligent terminal, the stability, correctness and anti-interference of information transmission can be ensured, the compatibility problem does not exist, and the success of a distribution network can be ensured. The intelligent terminal encrypts the SSID and the password of the target WIFI during encoding, so that the transmission safety of the SSID and the password of the target WIFI is improved, and the SSID and the password of the target WIFI are prevented from being arbitrarily damaged or tampered due to interception or illegally connected.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
An embodiment of the present invention provides an intelligent device, and fig. 7 shows a schematic block diagram of the intelligent device according to an embodiment. The smart device is configured with a light sensing element. As shown in fig. 7, the smart device includes:
the receiving unit 701 is configured to receive, through a photosensitive element, target WIFI information sent by an intelligent terminal of a distributed network, where the target WIFI information is an optical signal generated by the intelligent terminal by acquiring an SSID and a password of a target WIFI and sent by a light emitting element of the intelligent terminal;
a decoding unit 703 configured to decode the target WIFI information to obtain an SSID and a password of the target WIFI;
a connection unit 705 configured to connect to the target WIFI according to the SSID and the password of the target WIFI.
Optionally, the smart device further comprises:
the sending unit is configured to send distribution network success notification information to the connected Internet of things server so as to send a distribution network success notification to the intelligent terminal through the Internet of things server.
Optionally, the target WIFI information further includes a specific encryption algorithm, and the decoding unit 703 includes:
the determining module is configured to determine a specified encoding mode adopted by the target WIFI information;
the decoding module is configured to decode the target WIFI information through a decoding mode corresponding to the specified encoding mode to obtain an encrypted SSID and a password;
the acquisition module is configured to acquire a target decryption algorithm corresponding to the specified encryption algorithm;
and the decryption module is configured to decrypt the encrypted SSID and the encrypted password through the target decryption algorithm to obtain the SSID and the password of the target WIFI.
According to the intelligent device provided by the embodiment of the invention, the target WIFI information obtained by coding is sent to the intelligent device through the light-emitting element, so that the photosensitive element of the intelligent device receives and decodes the target WIFI information and then is connected to the target WIFI according to the decoding result, the network distribution method using the optical signal as the carrier is provided, and the network distribution speed can be improved by the method for distributing the network. Because the target WIFI information is an optical signal coded by the intelligent terminal, the stability, correctness and anti-interference of information transmission can be ensured, the compatibility problem does not exist, and the success of a distribution network can be ensured.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the smart device. In other embodiments of the invention, the smart device may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Since the contents of information interaction, execution process, and the like between the units in the intelligent device are based on the same concept as the method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
An embodiment of the present invention provides an intelligent terminal, and fig. 8 shows a schematic block diagram of the intelligent terminal according to an embodiment. The intelligent terminal is provided with a light-emitting element. As shown in fig. 8, the intelligent terminal includes:
an acquisition unit 801 configured to acquire an SSID and a password of a target WIFI;
an encoding unit 803 configured to encode the SSID and the password of the target WIFI to obtain target WIFI information;
the sending unit 805 is configured to drive a light emitting element to send the target WIFI information to the smart device to be distributed, so that the smart device receives the target WIFI information through a light sensing element of the smart device, decodes the received target WIFI information to obtain an SSID and a password of the target WIFI, and then connects the target WIFI information to the target WIFI.
Optionally, the encoding unit 803 includes:
the encryption module is configured to encrypt the SSID and the password of the target WIFI through a specified encryption algorithm;
and the encoding module is configured to encode the encrypted SSID and the encrypted password by a specified encoding mode.
Optionally, the encryption module includes:
the disturbance processing submodule is configured to perform disturbance processing on the password of the target WIFI and encrypt the disturbed password through an MD5 algorithm;
the encryption sub-module is configured to encrypt the SSID of the target WIFI through an RSA algorithm;
and the computing submodule is configured to compute the encrypted password and the encrypted SSID hash value respectively, and combine the encrypted password hash value and the encrypted SSID hash value to serve as the encryption result of the SSID and the password of the target WIFI.
Optionally, the disturbance processing sub-module is configured to: randomly generating a splicing character string, wherein the sum of the length of the splicing character string and the length of the password of the target WIFI is a preset character length; and splicing the password of the target WIFI with the spliced character string to obtain the password after the disturbance processing of the preset character length.
According to the intelligent terminal provided by the embodiment of the invention, the target WIFI information obtained by coding is sent to the intelligent equipment through the light-emitting element, so that the photosensitive element of the intelligent equipment receives and decodes the target WIFI information and then is connected to the target WIFI according to the decoding result, the network distribution method using the optical signal as the carrier is provided, and the network distribution speed can be improved by the method for distributing the network. Because the target WIFI information is an optical signal coded by the intelligent terminal, the stability, correctness and anti-interference of information transmission can be ensured, the compatibility problem does not exist, and the success of a distribution network can be ensured.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the intelligent terminal. In other embodiments of the invention, the smart terminal may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The above information interaction, execution process and other contents between the units in the intelligent terminal are based on the same concept as the method embodiment of the present invention, and specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
As shown in fig. 9, an embodiment of the present invention further provides a network distribution system of an intelligent device, where the network distribution system includes an intelligent device 901 to be distributed and an intelligent terminal 903 already distributed; the smart device 901 is configured to execute the functions configured by the smart device in the above embodiments; the intelligent terminal 903 is configured to perform the functions of the intelligent terminal in the above embodiments. Specific implementation manners of the functions configured by the intelligent device 901 and the intelligent terminal 903 have been described in detail in the above embodiments, and are not described herein again.
According to the system provided by the embodiment of the invention, the intelligent terminal sends the target WIFI information obtained by coding to the intelligent equipment through the light-emitting element, and the photosensitive element of the intelligent equipment receives and decodes the target WIFI information and then is connected to the target WIFI according to the decoding result. Because the target WIFI information is an optical signal coded by the intelligent terminal, the stability, correctness and anti-interference of information transmission can be ensured, the compatibility problem does not exist, and the success of a distribution network can be ensured. The intelligent terminal encrypts the SSID and the password of the target WIFI during encoding, so that the transmission safety of the SSID and the password of the target WIFI is improved, and the SSID and the password of the target WIFI are prevented from being arbitrarily damaged or tampered due to interception or illegally connected.
It should be noted that not all steps and modules in the above flows and system structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The system structure described in the above embodiments may be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by a plurality of physical entities, or some components in a plurality of independent devices may be implemented together.
In the above embodiments, the hardware unit may be implemented mechanically or electrically. For example, a hardware element may comprise permanently dedicated circuitry or logic (such as a dedicated processor, FPGA or ASIC) to perform the corresponding operations. The hardware elements may also comprise programmable logic or circuitry, such as a general purpose processor or other programmable processor, that may be temporarily configured by software to perform the corresponding operations. The specific implementation (mechanical, or dedicated permanent, or temporarily set) may be determined based on cost and time considerations.
While the invention has been shown and described in detail in the drawings and in the preferred embodiments, it is not intended to limit the invention to the embodiments disclosed, and it will be apparent to those skilled in the art that various combinations of the code auditing means in the various embodiments described above may be used to obtain further embodiments of the invention, which are also within the scope of the invention.

Claims (10)

1. A network distribution method of intelligent equipment is characterized by comprising the following steps:
receiving target WIFI information sent by an intelligent terminal of a distributed network through a photosensitive element, wherein the target WIFI information is an optical signal which is generated by the intelligent terminal after acquiring an SSID and a password of the target WIFI and is sent through a light-emitting element of the intelligent terminal;
decoding the target WIFI information to obtain an SSID and a password of the target WIFI;
and connecting to the target WIFI according to the SSID and the password of the target WIFI.
2. The method of claim 1, wherein after connecting to the target WIFI according to the SSID and password of the target WIFI, further comprising:
and sending distribution network success notification information to the connected Internet of things server so as to send distribution network success notification to the intelligent terminal through the Internet of things server.
3. The method of claim 1 or 2, wherein the targeted WIFI information further includes a specified encryption algorithm, and wherein decoding the targeted WIFI information includes:
determining a designated encoding mode adopted by the target WIFI information;
decoding the target WIFI information through a decoding mode corresponding to the specified encoding mode to obtain an encrypted SSID and a password;
acquiring a target decryption algorithm corresponding to the specified encryption algorithm;
and decrypting the encrypted SSID and the encrypted password through the target decryption algorithm to obtain the SSID and the password of the target WIFI.
4. A network distribution method of intelligent equipment is characterized by comprising the following steps:
acquiring an SSID and a password of a target WIFI;
coding the SSID and the password of the target WIFI to obtain target WIFI information;
and driving a light-emitting element to send the target WIFI information to the intelligent equipment to be distributed, so that the intelligent equipment receives the target WIFI information through a photosensitive element of the intelligent equipment, decodes the target WIFI information to obtain the SSID and the password of the target WIFI and then connects the target WIFI.
5. The method of claim 4, wherein the encoding the SSID and password for the targeted WIFI comprises:
encrypting the SSID and the password of the target WIFI through a specified encryption algorithm;
and encoding the encrypted SSID and the encrypted password by a specified encoding mode.
6. The method of claim 5, wherein the encrypting the SSID and password of the target WIFI through a specified encryption algorithm comprises:
disturbing the password of the target WIFI, and encrypting the disturbed password by an MD5 algorithm;
encrypting the SSID of the target WIFI through an RSA algorithm;
and respectively calculating the hash values of the encrypted password and the encrypted SSID, and combining the hash value of the encrypted password and the hash value of the encrypted SSID to serve as the encryption result of the SSID and the password of the target WIFI.
7. The method of claim 6, wherein the disturbing the target WIFI password comprises:
randomly generating a splicing character string, wherein the sum of the length of the splicing character string and the length of the password of the target WIFI is a preset character length;
and splicing the password of the target WIFI with the spliced character string to obtain the password after the disturbance processing of the preset character length.
8. A smart device, comprising:
the receiving unit is configured to receive target WIFI information sent by the intelligent terminal of the distributed network through a photosensitive element, wherein the target WIFI information is an optical signal which is generated by the intelligent terminal after acquiring an SSID and a password of the target WIFI and is sent through a light-emitting element of the intelligent terminal;
the decoding unit is configured to decode the target WIFI information to obtain an SSID and a password of the target WIFI;
and the connection unit is configured to be connected to the target WIFI according to the SSID and the password of the target WIFI.
9. An intelligent terminal, comprising:
an acquisition unit configured to acquire an SSID and a password of a target WIFI;
the encoding unit is configured to encode the SSID and the password of the target WIFI to obtain target WIFI information;
the sending unit is configured to drive the light-emitting element to send the target WIFI information to the intelligent equipment to be distributed, so that the intelligent equipment receives the target WIFI information through the light-sensitive element of the intelligent equipment, decodes the received target WIFI information to obtain the SSID and the password of the target WIFI and then connects the target WIFI.
10. A network distribution system of intelligent equipment is characterized by comprising the intelligent equipment to be distributed and intelligent terminals already distributed; wherein,
the smart device is configured to perform the method of any of claims 1 to 3;
the intelligent terminal is configured to perform the method of any of claims 4 to 7.
CN202111440747.5A 2021-11-30 2021-11-30 Network distribution method of intelligent device, intelligent terminal and system Pending CN114158110A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111440747.5A CN114158110A (en) 2021-11-30 2021-11-30 Network distribution method of intelligent device, intelligent terminal and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111440747.5A CN114158110A (en) 2021-11-30 2021-11-30 Network distribution method of intelligent device, intelligent terminal and system

Publications (1)

Publication Number Publication Date
CN114158110A true CN114158110A (en) 2022-03-08

Family

ID=80455108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111440747.5A Pending CN114158110A (en) 2021-11-30 2021-11-30 Network distribution method of intelligent device, intelligent terminal and system

Country Status (1)

Country Link
CN (1) CN114158110A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243694A (en) * 2014-08-25 2014-12-24 深圳市景阳科技股份有限公司 Method for enabling webcam to have access to wireless network
CN104902583A (en) * 2015-05-25 2015-09-09 深圳创维-Rgb电子有限公司 Infrared transmission WIFI networking method and system
CN104980215A (en) * 2015-05-18 2015-10-14 北京京东尚科信息技术有限公司 System and method for achieving WiFi configuration of intelligent equipment based on optical signal transmission
CN207652468U (en) * 2017-12-19 2018-07-24 九阳股份有限公司 A kind of domestic intelligent router and intelligent domestic system
CN108962239A (en) * 2018-06-08 2018-12-07 四川斐讯信息技术有限公司 A kind of quick distribution method and system based on voice masking
CN110087281A (en) * 2018-01-26 2019-08-02 阿里巴巴集团控股有限公司 The method, apparatus and system of network insertion
CN110234149A (en) * 2019-06-14 2019-09-13 深圳志合天成科技有限公司 A kind of smart machine optical encoding matches network method
CN110505013A (en) * 2019-08-26 2019-11-26 宁波方太厨具有限公司 Control method, system, electronic equipment and storage medium without screen equipment distribution

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243694A (en) * 2014-08-25 2014-12-24 深圳市景阳科技股份有限公司 Method for enabling webcam to have access to wireless network
CN104980215A (en) * 2015-05-18 2015-10-14 北京京东尚科信息技术有限公司 System and method for achieving WiFi configuration of intelligent equipment based on optical signal transmission
CN104902583A (en) * 2015-05-25 2015-09-09 深圳创维-Rgb电子有限公司 Infrared transmission WIFI networking method and system
US20190158180A1 (en) * 2015-05-25 2019-05-23 Shenzhen Skyworth Rgb Electronic Co, Ltd Wifi networking method and system via infrared transmission
CN207652468U (en) * 2017-12-19 2018-07-24 九阳股份有限公司 A kind of domestic intelligent router and intelligent domestic system
CN110087281A (en) * 2018-01-26 2019-08-02 阿里巴巴集团控股有限公司 The method, apparatus and system of network insertion
CN108962239A (en) * 2018-06-08 2018-12-07 四川斐讯信息技术有限公司 A kind of quick distribution method and system based on voice masking
CN110234149A (en) * 2019-06-14 2019-09-13 深圳志合天成科技有限公司 A kind of smart machine optical encoding matches network method
CN110505013A (en) * 2019-08-26 2019-11-26 宁波方太厨具有限公司 Control method, system, electronic equipment and storage medium without screen equipment distribution

Similar Documents

Publication Publication Date Title
CN105162772B (en) A kind of internet of things equipment certifiede-mail protocol method and apparatus
US9768958B2 (en) Visible-light communication-based encryption, decryption and encryption/decryption method and system
US20140270799A1 (en) Method and system for camera enabled error detection
CN111600854B (en) Method for establishing security channel between intelligent terminal and server
CN114697122B (en) Data transmission method, device, electronic equipment and storage medium
US9240837B2 (en) Systems and methods using optical communication for commissioning of network nodes
CN106254072B (en) Quantum key distribution method
US9800335B2 (en) Visible light signal transmitting and receiving processing method, transmitting terminal, receiving terminal, and system
CN106412882B (en) Method and system for intelligent equipment to access wireless network
US10476664B2 (en) Methods and systems for data protection
CN105119891B (en) A kind of data interactive method, set-top box and server
CN113742709B (en) Information processing method and device, readable medium and electronic equipment
CN105848145A (en) WIFI intelligent configuration method and device
CN111372056A (en) Video data encryption and decryption processing method and device
CN111178874B (en) Transaction method and system based on blockchain cold wallet
CN114158110A (en) Network distribution method of intelligent device, intelligent terminal and system
CN102820922B (en) Asynchronous encryption visible light communication method and system
Daraban et al. Protocol over uart for real-time applications
WO2024045680A1 (en) Device authentication method and related device
CA3052849A1 (en) Payment control method and device, electronic device, and storage medium
CN112769783B (en) Data transmission method, cloud server, receiving end and sending end
CN115001871A (en) File encryption sharing method and system based on block chain technology
CN113573306A (en) 5G-fused heterogeneous networking gateway encryption method and system
CN103840891B (en) Loose decryption method in visible light communication system and device
CN101860406B (en) Central processor and mobile multimedia broadcasting device, system and method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220308

RJ01 Rejection of invention patent application after publication