CN114302425A - Equipment network distribution method and device, storage medium and electronic equipment - Google Patents

Equipment network distribution method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114302425A
CN114302425A CN202111570805.6A CN202111570805A CN114302425A CN 114302425 A CN114302425 A CN 114302425A CN 202111570805 A CN202111570805 A CN 202111570805A CN 114302425 A CN114302425 A CN 114302425A
Authority
CN
China
Prior art keywords
information
data
equipment
character string
distribution network
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
CN202111570805.6A
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111570805.6A priority Critical patent/CN114302425A/en
Publication of CN114302425A publication Critical patent/CN114302425A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method and a device for equipment network distribution, a storage medium and electronic equipment, and relates to the technical field of Internet of things, wherein the method comprises the following steps: acquiring equipment distribution network information, and converting the equipment distribution network information into a character string; coding the character string to generate binary data; carrying out segmentation processing on the binary data to generate segmented data; and sending the segmented data to target equipment through an infrared channel so that the target equipment performs distribution according to the segmented data. The method and the device can realize safe, low-power, low-cost and convenient equipment distribution network process, and effectively improve the equipment distribution network performance.

Description

Equipment network distribution method and device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of Internet of things, in particular to a method and a device for equipment network distribution, a storage medium and electronic equipment.
Background
In the scene of the internet of things, the network distribution operation of the equipment is generally required before the intelligent operation of the equipment is completed, network distribution information is required to be provided for the equipment to be distributed through a network distribution communication mode during network distribution, and the conventional network distribution communication mode is generally Wifi, Bluetooth, Zigbee, GPRS, NB-IoT and the like. In the existing distribution network modes, the problems of safety, power consumption, cost, convenience and the like in the distribution network process are difficult to comprehensively consider, so that the distribution network performance of the equipment is poor.
Disclosure of Invention
The embodiment of the application provides a scheme, so that the safe, low-power, low-cost and convenient equipment distribution network process can be realized, and the equipment distribution network performance is effectively improved.
The embodiment of the application provides the following technical scheme:
according to one embodiment of the application, an equipment network distribution method comprises the following steps: acquiring equipment distribution network information, and converting the equipment distribution network information into a character string; coding the character string to generate binary data; carrying out segmentation processing on the binary data to generate segmented data; and sending the segmented data to target equipment through an infrared channel so that the target equipment performs distribution according to the segmented data.
In some embodiments of the present application, the encoding the character string to generate binary data includes: and performing Huffman coding processing on the character string to generate the binary data.
In some embodiments of the present application, the encoding the character string to generate binary data includes: analyzing the character string by adopting a pre-trained code analysis model to obtain the coding mode information of the sub character string in the character string; and respectively coding the sub-character strings in the character string according to the coding mode information to generate the binary data.
In some embodiments of the present application, the segmenting the binary data to generate segmented data includes: determining a length of the binary data; and determining the number of segments according to the length, and performing segmentation processing on the binary data according to the number of segments to generate the segment data.
In some embodiments of the present application, the segmenting the binary data to generate segmented data includes: and taking the sub-binary data corresponding to each sub-character string in the binary data as a segment, and adding coding information to each segment to generate the segment data.
In some embodiments of the present application, the device distribution network information includes network connection information and account binding information; the acquiring of the equipment distribution network information includes: acquiring the locally configured network connection information, and applying for the account binding information from a cloud; the target device performs distribution according to the segmented data, and the distribution method comprises the following steps: the target device analyzes the network connection information and the account binding information based on the segment data, is connected to a target network based on the network connection information, and sends the account binding information and the target device information to the cloud terminal through the target network, and the cloud terminal binds the target device information with a target account number according to the account binding information.
According to one embodiment of the application, an equipment network distribution method comprises the following steps: receiving segment data sent by distribution network equipment through an infrared channel, wherein the segment data is obtained by carrying out segment processing on binary data, the binary data is generated by carrying out coding processing on a character string, and the character string is converted from equipment distribution network information; and carrying out distribution according to the segmented data.
In some embodiments of the present application, the device distribution network information includes network connection information and account binding information; the distribution network according to the segmented data comprises: splicing the received segment data into data to be analyzed, and analyzing the network connection information and the account binding information based on the data to be analyzed; connecting to a target network based on the network connection information; and sending the account binding information and the target equipment information to a cloud end through the target network, and binding the target equipment information and a target account number by the cloud end according to the account binding information.
According to an embodiment of the present application, an apparatus distribution network apparatus includes: the conversion module is used for acquiring equipment distribution network information and converting the equipment distribution network information into a character string; the coding module is used for coding the character string to generate binary data; the segmentation module is used for carrying out segmentation processing on the binary data to obtain segmented data; and the sending module is used for sending the segmented data to target equipment through an infrared channel so that the target equipment can carry out distribution according to the segmented data.
According to an embodiment of the present application, an apparatus distribution network apparatus includes: the receiving module is used for receiving segmented data sent by the distribution network equipment through an infrared channel, wherein the segmented data is obtained by segmenting and processing binary data, the binary data is generated by encoding and processing a character string, and the character string is converted by the equipment distribution network information; and the distribution network module is used for distributing the network according to the segmented data.
According to another embodiment of the present application, a storage medium has stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method of an embodiment of the present application.
According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and the processor reads the computer program stored in the memory to execute the method in the embodiment of the application.
In the embodiment of the application, equipment distribution network information is obtained and converted into a character string; coding the character string to generate binary data; carrying out segmentation processing on the binary data to generate segmented data; and sending the segmented data to target equipment through an infrared channel so that the target equipment performs distribution according to the segmented data.
In this way, the equipment distribution network information is converted into the segmented data through character string conversion, coding processing and segmentation processing, the binary segmented data can be safely, low in power consumption, low in cost and convenient to transmit to the target equipment through the infrared channel based on the infrared mode to be distributed, and the equipment distribution network performance is effectively improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 shows a schematic diagram of a system to which embodiments of the present application may be applied.
Fig. 2 shows a flowchart of a device network distribution method according to an embodiment of the present application.
Fig. 3 shows a flowchart of a device network distribution method according to another embodiment of the present application.
Fig. 4 shows a block diagram of a device-distribution network apparatus according to an embodiment of the present application.
Fig. 5 shows a block diagram of a device-distribution network apparatus according to another embodiment of the present application.
FIG. 6 shows a block diagram of an electronic device according to an embodiment of the application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, the principles of the present application are described in the foregoing text and are not meant to be limiting, as those of ordinary skill in the art will appreciate that various steps and operations described below may be implemented in hardware.
Fig. 1 shows a schematic diagram of a system 100 to which embodiments of the present application may be applied. As shown in fig. 1, the system 100 may include a first device 101 and a second device 102. The first device 101 may be any computer device, such as a computer, a mobile phone, a smart watch, and the like, and the second device 102 may be any computer device, such as an in-vehicle device, a home appliance, and the like.
In one implementation of this example, the first device 101 may: acquiring equipment distribution network information, and converting the equipment distribution network information into a character string; coding the character string to generate binary data; carrying out segmentation processing on the binary data to generate segmented data; and sending the segmented data to a target device (such as the second device 102) through an infrared channel, so that the target device performs distribution according to the segmented data.
In one implementation of this example, the second device 102 may: receiving segment data sent by distribution network equipment through an infrared channel, wherein the segment data is obtained by carrying out segment processing on binary data, the binary data is generated by carrying out coding processing on a character string, and the character string is converted from equipment distribution network information; and carrying out distribution according to the segmented data.
Fig. 2 schematically shows a flowchart of a device network distribution method according to an embodiment of the present application. The execution main body of the device network distribution method may be any device, such as the first device 101 shown in fig. 1.
As shown in fig. 2, the device network distribution method may include steps S210 to S240.
Step S210, obtaining equipment distribution network information, and converting the equipment distribution network information into a character string; step S220, the character string is coded to generate binary data; step S230, performing segmentation processing on the binary data to generate segmented data; step S240, sending the segment data to a target device through an infrared channel, so that the target device performs a distribution network according to the segment data.
The device distribution network information is information used for distribution of the target device, and the device distribution network information may include network connection information, account binding information, and the like. A character string is a string of characters consisting of numbers, letters, underlines, etc. The equipment distribution network information can be converted into character strings according to a preset mode (such as json formatting), the information size can be preliminarily reduced through the character strings, and the equipment distribution network information can be effectively represented.
The binary data, i.e. the data in binary form, further compresses the size of the equipment distribution network information by encoding the character string into the binary data. Then, dividing the binary data according to the target number of segments may generate at least one segment of segmented data, which further reduces the data transmission size.
In this way, based on steps S210 to S240, the device distribution network information is converted, encoded, and segmented into segment data, and the binary segment data can be safely, low-power, low-cost, and conveniently transmitted to the target device through the infrared channel in an infrared-based manner to distribute the network, so that the device distribution network performance is effectively improved.
The following describes a specific process of each step performed when the device is configured.
Step S210, obtaining equipment distribution network information, and converting the equipment distribution network information into a character string.
The device distribution network information is information used for distribution of the target device, and the device distribution network information may include network connection information, account binding information, and the like. A character string is a string of characters consisting of numbers, letters, underlines, etc. The equipment distribution network information can be converted into character strings according to a preset mode (such as json formatting), the information size can be preliminarily reduced through the character strings, and the equipment distribution network information can be effectively represented.
Step S220, performs encoding processing on the character string to generate binary data.
The binary data, i.e. the data in binary form, further compresses the size of the equipment distribution network information by encoding the character string into the binary data.
In one embodiment, step S220, performing an encoding process on the character string to generate binary data, includes: and performing Huffman coding processing on the character string to generate the binary data.
The Huffman coding is also called Huffman coding, the average length of the different character heads can be constructed by the Huffman coding according to the character occurrence probability in the character string to form binary data, and the applicant finds that the character string converted by most equipment distribution network information can be subjected to extreme compression coding effectively by the Huffman coding mode to form extremely small binary data, and the extremely small binary data can be reliably transmitted based on an infrared channel.
In one embodiment, the step S220 of encoding the character string to generate binary data includes: analyzing the character string by adopting a pre-trained code analysis model to obtain the coding mode information of the sub character string in the character string; and respectively coding the sub-character strings in the character string according to the coding mode information to generate the binary data.
The pre-trained code analysis model is a pre-trained machine learning-based code analysis model, and the code analysis model can analyze character strings in the character strings, determine a suitable coding mode of each sub-character string, so as to realize respective coding based on the corresponding coding mode, and further limit coding the compressed character strings to generate binary data.
The sub-character strings may be converted correspondingly for each distribution network information (such as router name, password, other information, and the like) in the equipment distribution network information, or the code analysis model itself may be divided into a plurality of sub-character strings. The encoding method information is information of an encoding method, such as a mark of a specified encoding method, such as huffman encoding and table lookup conversion.
The pre-trained code analysis model can take collected character string samples as input, and the coding mode information calibrated by the character string samples is expected to be output to train the pre-trained code analysis model, and the pre-trained code analysis model is the pre-trained code analysis model until the analysis effect is in accordance with expectation.
Step S230, segment the binary data to generate segmented data.
The segmentation of the binary data according to the target number of segments may generate at least one segment of segmented data, which further reduces the data transmission size.
In one embodiment, the segmenting the binary data to generate segmented data includes: determining a length of the binary data; and determining the number of segments according to the length, and performing segmentation processing on the binary data according to the number of segments to generate the segment data.
When the number of the segments is determined according to the length, the number of the segments can be a unified number of the segments set for all the lengths; the number of the segments can also be the number of the segments corresponding to the length range in which the length is located, and each length range can correspond to one segment number, so that the effect of segmenting the corresponding infrared transmission data can be further improved.
In one embodiment, the segmenting the binary data to generate segmented data includes: and taking the sub-binary data corresponding to each sub-character string in the binary data as a segment, and adding coding information to each segment to generate the segment data.
The encoding information can be information for indicating an encoding mode, so that after the target equipment of the network to be distributed receives the segmented data, the corresponding encoding mode is determined, and the original equipment distribution network information is quickly and accurately analyzed.
Step S240, sending the segment data to a target device through an infrared channel, so that the target device performs a distribution network according to the segment data.
Binary segmented data can be safely, conveniently and quickly transmitted to target equipment to be distributed in an infrared-based mode through an infrared channel, and the distribution network performance of the equipment is effectively improved.
In one embodiment, in step S210, the device distribution network information includes network connection information and account binding information; the acquiring of the equipment distribution network information includes: acquiring the locally configured network connection information, and applying for the account binding information from a cloud; in step S240, the target device performs a distribution network according to the segment data, including: the target device analyzes the network connection information and the account binding information based on the segment data, is connected to a target network based on the network connection information, and sends the account binding information and the target device information to the cloud terminal through the target network, and the cloud terminal binds the target device information with a target account number according to the account binding information.
The network connection information may include routing information such as router name, address, and password; the account binding information may include a binding code (bindCode), which may be generated by a cloud, and may be used to identify a single distribution network.
After receiving the segmented data, the target device can splice the segmented data into complete binary data to obtain data to be analyzed, and analyze network connection information and account binding information based on the data to be analyzed; connecting to the target network based on the network connection information; the account binding information and the target device information are sent to the cloud end through the target network, the cloud end can bind the target device information and the target account number according to the account binding information, then the target device and the target account number are bound, and the target device can be controlled based on the target account number.
Fig. 3 schematically shows a flowchart of a device network distribution method according to an embodiment of the present application. The execution subject of the device distribution network method may be any device, such as the second device 102 shown in fig. 1.
The equipment network distribution method can comprise the following steps: step S310, receiving segmented data sent by distribution network equipment through an infrared channel, wherein the segmented data is obtained by carrying out segmented processing on binary data, the binary data is generated by carrying out coding processing on a character string, and the character string is converted by equipment distribution network information; and step S320, carrying out distribution according to the segment data.
The device distribution network information is information used for distribution of the target device, and the device distribution network information may include network connection information, account binding information, and the like. A character string is a string of characters consisting of numbers, letters, underlines, etc. The equipment distribution network information can be converted into character strings according to a preset mode (such as json formatting), the information size can be preliminarily reduced through the character strings, and the equipment distribution network information can be effectively represented.
The binary data, i.e. the data in binary form, further compresses the size of the equipment distribution network information by encoding the character string into the binary data. Then, dividing the binary data according to the target number of segments may generate at least one segment of segmented data, which further reduces the data transmission size.
Through carrying out character string conversion, coding processing and segmentation processing on the equipment distribution network information into segmented data, the binary segmented data which is transmitted safely, with low power consumption, with low cost and conveniently and quickly can be received locally through an infrared channel, then the distribution network is carried out, and the equipment distribution network performance is effectively improved.
In one embodiment, the device distribution network information includes network connection information and account binding information; the distribution network according to the segmented data comprises: splicing the received segment data into data to be analyzed, and analyzing the network connection information and the account binding information based on the data to be analyzed; connecting to a target network based on the network connection information; and sending the account binding information and the target equipment information to a cloud end through the target network, and binding the target equipment information and a target account number by the cloud end according to the account binding information.
The network connection information may include routing information such as router name, address, and password; the account binding information may include a binding code (bindCode), which may be generated by a cloud, and may be used to identify a single distribution network.
After receiving the segmented data, the target device can splice the segmented data into complete binary data to obtain data to be analyzed, and analyze network connection information and account binding information based on the data to be analyzed; connecting to the target network based on the network connection information; the account binding information and the target device information are sent to the cloud end through the target network, the cloud end can bind the target device information and the target account number according to the account binding information, then the target device and the target account number are bound, and the target device can be controlled based on the target account number.
In order to better implement the device network distribution method provided by the embodiment of the application, the embodiment of the application also provides a device network distribution device based on the device network distribution method. The meaning of the term is the same as that in the above-mentioned device distribution network method, and specific implementation details may refer to the description in the method embodiment. Fig. 4 shows a block diagram of a device-distribution network apparatus according to an embodiment of the present application.
As shown in fig. 4, the device network deployment apparatus 400 may include a conversion module 401, an encoding module 402, a segmentation module 403, and a transmission module 404.
The conversion module 401 may be configured to obtain device distribution network information and convert the device distribution network information into a character string; the encoding module 402 may be configured to perform encoding processing on the character string to generate binary data; the segmenting module 403 may be configured to segment the binary data to obtain segmented data; the sending module 404 may be configured to send the segment data to a target device through an infrared channel, so that the target device performs a distribution network according to the segment data.
In some embodiments of the present application, the encoding module 402 comprises a first encoding unit configured to: and performing Huffman coding processing on the character string to generate the binary data.
In some embodiments of the present application, the encoding module 402 comprises a second encoding unit configured to: analyzing the character string by adopting a pre-trained code analysis model to obtain the coding mode information of the sub character string in the character string; and respectively coding the sub-character strings in the character string according to the coding mode information to generate the binary data.
In some embodiments of the present application, the segmentation module 403 comprises a first segmentation unit for: determining a length of the binary data; and determining the number of segments according to the length, and performing segmentation processing on the binary data according to the number of segments to generate the segment data.
In some embodiments of the present application, the segmentation module 403 comprises a second segmentation unit for: and taking the sub-binary data corresponding to each sub-character string in the binary data as a segment, and adding coding information to each segment to generate the segment data.
In some embodiments of the present application, the device distribution network information includes network connection information and account binding information; the conversion module 401 comprises an obtaining unit configured to: acquiring the locally configured network connection information, and applying for the account binding information from a cloud; the target device performs distribution according to the segmented data, and the distribution method comprises the following steps: the target device analyzes the network connection information and the account binding information based on the segment data, is connected to a target network based on the network connection information, and sends the account binding information and the target device information to the cloud terminal through the target network, and the cloud terminal binds the target device information with a target account number according to the account binding information.
In this way, based on the device distribution network apparatus 400, the device distribution network information is converted, encoded and segmented into segmented data, and the binary segmented data can be safely, low-power, low-cost and conveniently transmitted to the target device through the infrared channel in an infrared-based manner to be distributed, so that the device distribution network performance is effectively improved.
Fig. 5 shows a block diagram of a device-distribution network apparatus according to an embodiment of the application.
As shown in fig. 5, the device distribution network apparatus 500 may include a receiving module 501 and a distribution network module 502.
The receiving module 501 may be configured to receive segment data sent by the distribution network device through an infrared channel, where the segment data is obtained by performing segment processing on binary data, the binary data is generated by encoding a character string, and the character string is converted from the distribution network information of the device; the distribution network module 502 can be used for distributing a network according to the segment data.
In some embodiments of the present application, the device distribution network information includes network connection information and account binding information; the distribution network module 502 is configured to: splicing the received segment data into data to be analyzed, and analyzing the network connection information and the account binding information based on the data to be analyzed; connecting to a target network based on the network connection information; and sending the account binding information and the target equipment information to a cloud end through the target network, and binding the target equipment information and a target account number by the cloud end according to the account binding information.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In addition, an embodiment of the present application further provides an electronic device, where the electronic device may be a terminal or a server, as shown in fig. 6, which shows a schematic structural diagram of the electronic device according to the embodiment of the present application, and specifically:
the electronic device may include components such as a processor 601 of one or more processing cores, memory 602 of one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 601 is a control center of the electronic device, connects various parts of the whole computer device by using various interfaces and lines, and performs various functions of the computer device and processes data by operating or executing software programs and/or modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the electronic device. Optionally, processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating system, user pages, application programs, and the like, and the modem processor mainly handles wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 601.
The memory 602 may be used to store software programs and modules, and the processor 601 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.
The electronic device further comprises a power supply 603 for supplying power to the various components, and preferably, the power supply 603 is logically connected to the processor 601 through a power management system, so that functions of managing charging, discharging, power consumption, and the like are realized through the power management system. The power supply 603 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit 604, and the input unit 604 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 601 in the electronic device loads the executable file corresponding to the process of one or more computer programs into the memory 602 according to the following instructions, and the processor 601 runs the computer program stored in the memory 602, thereby implementing various functions in the foregoing embodiments of the present application.
As the processor 601 may perform the steps of: acquiring equipment distribution network information, and converting the equipment distribution network information into a character string; coding the character string to generate binary data; carrying out segmentation processing on the binary data to generate segmented data; and sending the segmented data to target equipment through an infrared channel so that the target equipment performs distribution according to the segmented data.
As the processor 601 may perform the steps of: receiving segment data sent by distribution network equipment through an infrared channel, wherein the segment data is obtained by carrying out segment processing on binary data, the binary data is generated by carrying out coding processing on a character string, and the character string is converted from equipment distribution network information; and carrying out distribution according to the segmented data.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.
To this end, the present application further provides a storage medium, in which a computer program is stored, where the computer program can be loaded by a processor to execute the steps in any one of the methods provided in the present application.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the methods provided in the embodiments of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the present application is not limited to the embodiments that have been described above and shown in the drawings, but that various modifications and changes can be made without departing from the scope thereof.

Claims (12)

1. A method for distributing a network by equipment is characterized by comprising the following steps:
acquiring equipment distribution network information, and converting the equipment distribution network information into a character string;
coding the character string to generate binary data;
carrying out segmentation processing on the binary data to generate segmented data;
and sending the segmented data to target equipment through an infrared channel so that the target equipment performs distribution according to the segmented data.
2. The method according to claim 1, wherein said encoding said character string to generate binary data comprises:
and performing Huffman coding processing on the character string to generate the binary data.
3. The method according to claim 1, wherein said encoding said character string to generate binary data comprises:
analyzing the character string by adopting a pre-trained code analysis model to obtain the coding mode information of the sub character string in the character string;
and respectively coding the sub-character strings in the character string according to the coding mode information to generate the binary data.
4. The method of claim 2, wherein the segmenting the binary data to generate segmented data comprises:
determining a length of the binary data;
and determining the number of segments according to the length, and performing segmentation processing on the binary data according to the number of segments to generate the segment data.
5. The method of claim 3, wherein the segmenting the binary data to generate segmented data comprises:
and taking the sub-binary data corresponding to each sub-character string in the binary data as a segment, and adding coding information to each segment to generate the segment data.
6. The method of claim 1, wherein the device distribution network information comprises network connection information and account binding information; the acquiring of the equipment distribution network information includes:
acquiring the locally configured network connection information, and applying for the account binding information from a cloud;
the target device performs distribution according to the segmented data, and the distribution method comprises the following steps:
the target device analyzes the network connection information and the account binding information based on the segment data, is connected to a target network based on the network connection information, and sends the account binding information and the target device information to the cloud terminal through the target network, and the cloud terminal binds the target device information with a target account number according to the account binding information.
7. A method for distributing a network by equipment is characterized by comprising the following steps:
receiving segment data sent by distribution network equipment through an infrared channel, wherein the segment data is obtained by carrying out segment processing on binary data, the binary data is generated by carrying out coding processing on a character string, and the character string is converted from equipment distribution network information;
and carrying out distribution according to the segmented data.
8. The method of claim 7, wherein the device distribution network information comprises network connection information and account binding information;
the distribution network according to the segmented data comprises:
splicing the received segment data into data to be analyzed, and analyzing the network connection information and the account binding information based on the data to be analyzed;
connecting to a target network based on the network connection information;
and sending the account binding information and the target equipment information to a cloud end through the target network, and binding the target equipment information and a target account number by the cloud end according to the account binding information.
9. An equipment distribution network apparatus, comprising:
the conversion module is used for acquiring equipment distribution network information and converting the equipment distribution network information into a character string;
the coding module is used for coding the character string to generate binary data;
the segmentation module is used for carrying out segmentation processing on the binary data to obtain segmented data;
and the sending module is used for sending the segmented data to target equipment through an infrared channel so that the target equipment can carry out distribution according to the segmented data.
10. An equipment distribution network apparatus, comprising:
the receiving module is used for receiving segmented data sent by the distribution network equipment through an infrared channel, wherein the segmented data is obtained by segmenting and processing binary data, the binary data is generated by encoding and processing a character string, and the character string is converted by the equipment distribution network information;
and the distribution network module is used for distributing the network according to the segmented data.
11. A storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to carry out the method of any one of claims 1 to 8.
12. An electronic device, comprising: a memory storing a computer program; a processor reading a computer program stored in the memory to perform the method of any of claims 1 to 8.
CN202111570805.6A 2021-12-21 2021-12-21 Equipment network distribution method and device, storage medium and electronic equipment Pending CN114302425A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111570805.6A CN114302425A (en) 2021-12-21 2021-12-21 Equipment network distribution method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111570805.6A CN114302425A (en) 2021-12-21 2021-12-21 Equipment network distribution method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114302425A true CN114302425A (en) 2022-04-08

Family

ID=80968171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111570805.6A Pending CN114302425A (en) 2021-12-21 2021-12-21 Equipment network distribution method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114302425A (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150026779A1 (en) * 2013-07-16 2015-01-22 Qualcomm Connected Experiences, Inc. Performing remote wi-fi network configuration when a network security protocol is unknown
US20150106887A1 (en) * 2013-10-16 2015-04-16 Spotify Ab Systems and methods for configuring an electronic device
CN105703829A (en) * 2016-01-21 2016-06-22 青岛海尔智能家电科技有限公司 WiFi network node information transmission method, and WiFi network node information access method and device
CN106792991A (en) * 2016-12-05 2017-05-31 美的智慧家居科技有限公司 Wi Fi devices, networked devices and networking method
CN108307477A (en) * 2017-09-13 2018-07-20 北京小米移动软件有限公司 Connect method for building up and device
CN108901056A (en) * 2018-06-21 2018-11-27 百度在线网络技术(北京)有限公司 Method and apparatus for interactive information
CN110769422A (en) * 2019-10-17 2020-02-07 上海纯米电子科技有限公司 Distribution network data transmission method and device
CN110870310A (en) * 2018-09-04 2020-03-06 深圳市大疆创新科技有限公司 Image encoding method and apparatus
CN111247797A (en) * 2019-01-23 2020-06-05 深圳市大疆创新科技有限公司 Method and apparatus for image encoding and decoding
WO2021017634A1 (en) * 2018-11-26 2021-02-04 阿里巴巴集团控股有限公司 Ssid acquisition method and apparatus for wi-fi access point, device and system
CN112448873A (en) * 2020-11-17 2021-03-05 深圳Tcl新技术有限公司 Equipment binding method and device and computer readable storage medium
CN113301568A (en) * 2021-04-29 2021-08-24 海尔(深圳)研发有限责任公司 Network distribution method and device and intelligent household equipment
CN113596742A (en) * 2021-09-27 2021-11-02 北京高德品创科技有限公司 Data transmission method and device
CN113670643A (en) * 2021-08-30 2021-11-19 四川虹美智能科技有限公司 Intelligent air conditioner testing method and system
CN113765714A (en) * 2021-08-31 2021-12-07 深圳Tcl新技术有限公司 Equipment network distribution method and device, storage medium and electronic equipment
CN113792816A (en) * 2021-09-27 2021-12-14 重庆紫光华山智安科技有限公司 Data encoding method, data encoding device, computer equipment and storage medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150026779A1 (en) * 2013-07-16 2015-01-22 Qualcomm Connected Experiences, Inc. Performing remote wi-fi network configuration when a network security protocol is unknown
US20150106887A1 (en) * 2013-10-16 2015-04-16 Spotify Ab Systems and methods for configuring an electronic device
CN105703829A (en) * 2016-01-21 2016-06-22 青岛海尔智能家电科技有限公司 WiFi network node information transmission method, and WiFi network node information access method and device
CN106792991A (en) * 2016-12-05 2017-05-31 美的智慧家居科技有限公司 Wi Fi devices, networked devices and networking method
CN108307477A (en) * 2017-09-13 2018-07-20 北京小米移动软件有限公司 Connect method for building up and device
CN108901056A (en) * 2018-06-21 2018-11-27 百度在线网络技术(北京)有限公司 Method and apparatus for interactive information
CN110870310A (en) * 2018-09-04 2020-03-06 深圳市大疆创新科技有限公司 Image encoding method and apparatus
WO2021017634A1 (en) * 2018-11-26 2021-02-04 阿里巴巴集团控股有限公司 Ssid acquisition method and apparatus for wi-fi access point, device and system
CN111247797A (en) * 2019-01-23 2020-06-05 深圳市大疆创新科技有限公司 Method and apparatus for image encoding and decoding
CN110769422A (en) * 2019-10-17 2020-02-07 上海纯米电子科技有限公司 Distribution network data transmission method and device
CN112448873A (en) * 2020-11-17 2021-03-05 深圳Tcl新技术有限公司 Equipment binding method and device and computer readable storage medium
CN113301568A (en) * 2021-04-29 2021-08-24 海尔(深圳)研发有限责任公司 Network distribution method and device and intelligent household equipment
CN113670643A (en) * 2021-08-30 2021-11-19 四川虹美智能科技有限公司 Intelligent air conditioner testing method and system
CN113765714A (en) * 2021-08-31 2021-12-07 深圳Tcl新技术有限公司 Equipment network distribution method and device, storage medium and electronic equipment
CN113596742A (en) * 2021-09-27 2021-11-02 北京高德品创科技有限公司 Data transmission method and device
CN113792816A (en) * 2021-09-27 2021-12-14 重庆紫光华山智安科技有限公司 Data encoding method, data encoding device, computer equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘志强编: "《多媒体技术及应用》", 西安交通大学出版社 *
王建明 等: "基于物联网技术的配网状态监测与预警***", 《电力信息与通信技术》 *
蔡玮: "面向光学特性数据分析的压缩方法研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 June 2019 (2019-06-15) *

Similar Documents

Publication Publication Date Title
CN111694617B (en) Processing method of network offline model, artificial intelligence processing device and related products
CN116107703A (en) Interface control document generation method and device
CN110826619A (en) File classification method and device of electronic files and electronic equipment
CN108153896B (en) Processing method and device for input data and output data
CN114302425A (en) Equipment network distribution method and device, storage medium and electronic equipment
CN108965295B (en) File compression and combination method and related device
CN112035401A (en) Model data processing method and device, electronic equipment and readable medium
CN112052916B (en) Data processing method and device based on neural network and readable storage medium
US11797277B2 (en) Neural network model conversion method server, and storage medium
CN112015726B (en) User activity prediction method, system and readable storage medium
CN111151008B (en) Verification method and device for game operation data, configuration background and medium
CN115965227A (en) Workflow data processing method, device, equipment, storage medium and product
CN113534691A (en) Control system and method of terminal equipment
CN110912741A (en) Intelligent label generation method and device based on reverse analysis
CN112114931A (en) Deep learning program configuration method and device, electronic equipment and storage medium
CN114189554B (en) Information interaction method, device and readable storage medium
CN110727457A (en) Component management method, device, storage medium and electronic equipment
CN114138509B (en) Data interaction method and device and computer readable storage medium
CN116820895B (en) Log grabbing method, device, equipment and medium based on artificial intelligence
CN114124992B (en) Method, device, equipment and system for monitoring running state of whole vehicle domain controller
CN111258629B (en) Mobile phone code transcoding method, storage medium, electronic equipment and system
CN113886401A (en) Data storage method, device, equipment and computer readable storage medium
CN117914890A (en) Vehicle log acquisition method, device and system
CN117111829A (en) File storage method and device, storage medium and electronic equipment
CN113744109A (en) Vehicle access management method and monitoring platform based on artificial intelligence

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