Intelligent communication system based on network control
By designing an intelligent communication system based on network control, the problem of insufficient data processing capabilities after the increase in the number of IoT devices is solved, efficient and accurate data processing and concurrent processing capabilities are achieved, and the stability and reliability of the IoT system are significantly improved.
Patent Information
- Application Number
- CN202411763219.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-17
- Publication Date
- 2025-04-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing systems are difficult to meet the needs of efficient data processing after the increase in the number of IoT devices, especially in terms of reliability, stability and data concurrency processing.
An intelligent communication system based on network control is designed. Through the management control module, analysis management module and subscription storage module, the encoding optimization management, physical layer and link control, operation analysis control management and subscription storage processing of the network intelligent communication system are carried out. Specific measures include using a method of co-encoding of multicast address and data frame length to perform network access configuration processing of terminal devices, using Wi-Fi wireless signals for information communication, and designing a link layer data structure of a network intelligent communication system to improve the success rate of distribution network.
Through this system, the efficiency and accuracy of IoT devices are significantly improved, the ability to process data concurrency is enhanced, and the risk of unsuccessful information transmission caused by packet loss is reduced.
Smart Images

Figure CN119814814A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an intelligent communication system based on network management and control. Background Art
[0002] With the continuous development of information technology and the Internet, the Internet of Things has become a hot area of global concern and is considered to be the most significant technological innovation after the Internet. The Internet of Things refers to the classification, networking, and networking of physical entities through various network connection technologies and information transmission technologies, realizing the connection and interaction between objects and objects and people, completing extensive and large-scale data collection, transmission and application, and realizing automatic management and remote control. The Internet of Things connects physical entities to the network through the Internet, and performs data transmission, data storage, data control and management through the communication network, realizing the interconnection and interoperability of any object at any time and any place. As the scale of the Internet of Things continues to expand and the number of device access increases, the amount of data processing is also growing rapidly. The existing system reliability, stability, and data concurrency processing capabilities are difficult to meet the processing needs of the Internet of Things. Therefore, it is necessary to design an intelligent communication system based on network control with efficient management and control and strong stability. Summary of the invention
[0003] The purpose of the present invention is to provide an intelligent communication system based on network management and control to solve the problems raised in the above background technology.
[0004] In order to solve the above technical problems, the present invention provides the following technical solutions: an intelligent communication method based on network management and control, comprising: Carry out coding optimization management of network intelligent communication system; Perform physical layer and link control on network intelligent communication systems; Conduct operation analysis, control and management of network intelligent communication systems; Carry out subscription storage processing of network intelligent communication system; The coding optimization management of the network intelligent communication system includes: The network access configuration processing of the terminal device is carried out by means of a method of jointly encoding the multicast address and the data frame length. The upper 7 bits of the 23 low-order bits that can be encoded are used to identify the field to which the network configuration data belongs, the lower 16 bits are used to represent the encoded data, and the data frame length is used to represent the sequence number of each frame of data.
[0005] According to the above technical solution, the physical layer and link control of the network intelligent communication system includes: In the physical layer of the network intelligent communication system, Wi-Fi wireless signals are used for information communication transmission, and the destination MAC address field and data frame length of the controllable 802.11 data frame are used for encoding. The destination MAC address field carries the Wi-Fi configuration data, and the data frame length indicates the serial number of the configuration data. Each field serial number starts from 1, and each serial number carries 2Byte of user data. The device side parses the encoded data with the serial number of the data frame to obtain the SSID and password of the wireless network access point and the configuration data; Design the link layer data structure of the network intelligent communication system, which consists of two fields: magic code and data code. The data code field carries the SSID and password information of the wireless network access point. At the same time, to prevent the failure of network configuration information due to packet loss, the sender of the information is set to send 20 frames of magic code and send all data code field information in 15 cycles.
[0006] According to the above technical solution, the operation analysis, control and management of the network intelligent communication system includes: Before starting the network configuration of the network intelligent communication system, start the 100ms timer, switch the Wi-Fi channels in turn in the timer interrupt service function, set the Wi-Fi data filtering conditions according to the destination MAC address (because the Wi-Fi module will receive all data packets in monitoring mode, the data volume is very large, so when setting it to monitoring mode, you need to set the filtering conditions), set the Wi-Fi module to monitoring mode, receive 802.11 data frames, call the Config_Recv() function for data analysis every time a frame of data is received, and judge the return value of this interface function. If Config_Locked is returned, it means that the channel has been locked, and you need to turn off the timer to stop switching channels. If Config_Complete is returned, it means that the network configuration data analysis is completed, turn off the monitoring mode, cancel the filtering conditions, and obtain the SSID, password and other data configured by the user.
[0007] According to the above technical solution, the operation analysis, control and management of the network intelligent communication system further includes: Control and analyze the access information request of the terminal device cloud platform, use the DNS domain name resolution function to obtain the IP address of the HTTP server according to the domain name of the server, establish a TCP connection with the server according to the IP address and port number of the HTTP server obtained by the domain name resolution, and when the connection fails, try to re-establish the connection at a set time interval until the number of attempts reaches the set threshold, and it is considered that the connection cannot be established, and no connection is established with the server. After successfully establishing a TCP connection with the server, package the application data in HTTP format according to the request requirements of the application, and submit a request to the HTTP server; When the MQTT client establishes a CONNECT connection with the server, the keep-alive time is set in the variable header of the CONNECT message (the keep-alive time defines the maximum time interval for the server to receive client messages), so that the client sends at least one message to the server within each keep-alive time interval. If there are no business-related messages to be sent during this period, the client sends a PINGREQ heartbeat request message to the server to maintain a long connection with the server. Otherwise, if the server does not receive any message from the client within 1.5 keep-alive times, it is regarded as the client sending a DISCONNECT message and disconnects the client.
[0008] According to the above technical solution, the subscription storage processing of the network intelligent communication system includes: Each time, the client subscribes to one or more topics from the server to meet different message communication needs, so that each topic specifies its corresponding QoS; in this step, the client includes a wildcard when subscribing, which makes it subscribe to a specific topic mode. The MQTT proxy server needs to respond to each subscription request and record it in the topic subscription table. When receiving a message published by the client, it pushes the message according to the topic of the message to complete the communication between different clients; After the operation and processing information of the network intelligent communication system is collected, it is backed up and stored for subsequent reference, analysis and processing.
[0009] According to the above technical solution, an intelligent communication system based on network control includes: Management and control module, used for management and control of network intelligent communication system; Analysis and management module, used for operation analysis and management of network intelligent communication system; The subscription storage module is used to perform subscription storage processing of the network intelligent communication system.
[0010] According to the above technical solution, the management control module includes: Coding management module, used for coding control and management of network intelligent communication system; Physical layer module, used for optimizing control and management of the system physical layer; The link control module is used to perform link control of the network intelligent communication system.
[0011] According to the above technical solution, the analysis management module includes: Terminal network distribution module, used for terminal network distribution control of network intelligent communication system; Access analysis module, used for cloud platform access analysis and management of terminal devices; The connection request module is used to process client connection requests.
[0012] According to the above technical solution, the subscription storage module includes: Theme subscription module, used for theme subscription control and management; The backup storage module is used for backup storage of data information.
[0013] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: the present invention, by providing a management control module, an analysis management module and a subscription storage module, can not only enhance the ability of multicast data frames to express information as much as possible, but also reduce the risk of unsuccessful information transmission caused by packet loss during transmission, effectively improve the efficiency and accuracy of the operation of the Internet of Things, and greatly improve the ability to handle data concurrency BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings: Figure 1 is a flow chart of an intelligent communication method based on network control provided in Embodiment 1 of the present invention; Figure 2 It is a module structure diagram of an intelligent communication system based on network control provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0015] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0016] Embodiment 1: Figure 1 This is a flow chart of an intelligent communication method based on network control provided in Embodiment 1 of the present invention. This embodiment can be applied to a network intelligent communication system. The method can be executed by an intelligent communication system based on network control provided in an embodiment of the present invention. The system is composed of multiple software and hardware modules, such as Figure 1 As shown, the method specifically comprises the following steps: S101, performing coding optimization management of the network intelligent communication system; Exemplarily, in an embodiment of the present invention, the network access configuration processing of the terminal device is performed by a method of jointly encoding the multicast address and the data frame length, the upper 7 bits of the 23 low-order bits that can be encoded are used to identify the field to which the network configuration data belongs, the lower 16 bits are used to represent the encoded data, and the data frame length is used to represent the sequence number of each frame of data; in this step, UDP multicast communication is used to encode the SSID and password of the wireless network access point and other information in the destination IP multicast address and data packet length according to the set protocol format, and the multicast data packet is sent through a third-party tool such as a mobile phone and PAD installed with this configuration tool, and the Wi-Fi is set to be in detection mode, and the data information sent by the mobile phone to the AP and forwarded by the AP to the local area network is detected, the network data packet in the air is captured from the data link layer, and the destination MAC address and frame length are parsed according to the encoding protocol, the Wi-Fi configuration information is obtained and the wireless network access point is connected. Through this step, the ability of the multicast data frame to express information can be enhanced as much as possible, and the risk of unsuccessful information transmission due to packet loss during transmission can be reduced.
[0017] S102, performing physical layer and link control on the network intelligent communication system; Exemplarily, in an embodiment of the present invention, in the physical layer of the network intelligent communication system, Wi-Fi wireless signals are used for information communication transmission, and the destination MAC address field and data frame length of the controllable 802.11 data frame are used for encoding. The destination MAC address field carries Wi-Fi configuration data, and the data frame length indicates the sequence number of the configuration data. Each field sequence number starts from 1, and each sequence number carries 2Byte of user data. The device side parses the encoded data with the sequence number of the data frame to obtain the SSID and password and configuration data of the wireless network access point; in this step, before sending the link layer data, it is necessary to send 20 frames before The destination MAC address of the leading field is fixed at 0x01-00-5E-76-00-00, and the data frame length is fixed at 1. After receiving the leading field data packet, the receiver locks on the current channel to continue receiving other data sent by the sender, and subtracts the received data frame length from 1 to obtain the length difference value. For example, the receiver captures the leading field data packet in the 802.11 format at the MAC layer through monitoring, and its length is 43. The length difference value can be determined as 43-1=42. After receiving the data, the receiver subtracts 42 from the data frame length to obtain the accurate length of the sent data, that is, the actual encoded data sequence number.
[0018] Design the link layer data structure of the network intelligent communication system, which consists of two fields: magic code and data code. The datacode field carries the SSID and password information of the wireless network access point. At the same time, to prevent the failure of network configuration information due to packet loss, the information sender is set to send 20 frames of magic code and send all data code field information in 15 cycles.
[0019] S103, perform operation analysis, control and management of the network intelligent communication system; Exemplarily, in an embodiment of the present invention, a 100ms timer is started before starting the network configuration of the network intelligent communication system, and the Wi-Fi channels are switched in sequence in the timer interrupt service function, and Wi-Fi data filtering conditions are set according to the destination MAC address (since the Wi-Fi module will receive all data packets in the monitoring mode, and the data volume is very large, it is necessary to set the filtering conditions when setting it to the monitoring mode), and the Wi-Fi module is set to the monitoring mode, and 802.11 data frames are received. The Config_Recv() function is called for data parsing each time a frame of data is received, and the return value of this interface function is judged. If Config_Locked is returned, it means that the channel has been locked, and the timer needs to be turned off to stop switching channels. If Config_Complete is returned, it means that the network configuration data parsing is completed, the monitoring mode is turned off, the filtering conditions are canceled, and the SSID, password and other data configured by the user are obtained; through this step, the efficiency and accuracy of the system terminal network configuration are effectively improved.
[0020] The access information request of the terminal device cloud platform is controlled and analyzed, and the IP address of the HTTP server is obtained by using the DNS domain name resolution function according to the domain name of the server. A TCP connection is established with the server according to the IP address and port number of the HTTP server obtained by the domain name resolution. When the connection fails, an attempt is made to re-establish the connection at a set time interval until the number of attempts reaches the set threshold. It is considered that the connection cannot be established and no connection is established with the server. After a TCP connection is successfully established with the server, the application data is packaged in HTTP format according to the request requirements of the application and a request is submitted to the HTTP server. In this step, after submitting the request to the HTTP server, the server's response data is waited for, and the response data is parsed according to the HTTP protocol format. When the parsed status code is successful, the entity content in the response data is further parsed. When the parsed status code is wrong, the request fails, and corresponding processing is performed according to the error status code. After completing the parsing of the HTTP server response data, the TCP connection with the server is closed.
[0021] When the MQTT client establishes a CONNECT connection with the server, the keep-alive time is set in the variable header of the CONNECT message (the keep-alive time defines the maximum time interval for the server to receive client messages), so that the client sends at least one message to the server within each keep-alive time interval. If there are no business-related messages to be sent during this period, the client sends a PINGREQ heartbeat request message to the server to maintain a long connection with the server. Otherwise, if the server does not receive any message from the client within 1.5 keep-alive times, it is regarded as the client sending a DISCONNECT message and disconnects the client. Through this step, the connection processing efficiency of the network intelligent communication system is effectively improved to avoid waste of connection resources.
[0022] S104, performing subscription storage processing of the network intelligent communication system; Exemplarily, in an embodiment of the present invention, the client can subscribe to one or more topics from the server each time to meet different message communication requirements, so that each topic specifies its corresponding QoS; in this step, the client can include a wildcard when subscribing, which makes it possible to subscribe to a specific topic mode, and the MQTT proxy server needs to respond to each subscription request and record it in the topic subscription table. When receiving a message published by the client, it pushes the message according to the topic of the message to complete the communication between different clients; After the operation and processing information of the network intelligent communication system is collected, it is backed up and stored for subsequent reference, analysis and processing.
[0023] Embodiment 2: Embodiment 2 of the present invention provides an intelligent communication system based on network management and control. Figure 2 The module structure diagram of the intelligent communication system based on network control provided in the second embodiment is as follows: Figure 2 As shown, the system includes: Management and control module, used for management and control of network intelligent communication system; Analysis and management module, used for operation analysis and management of network intelligent communication system; The subscription storage module is used for subscription storage processing of the network intelligent communication system.
[0024] In some embodiments of the present invention, the management control module includes: Coding management module, used for coding control and management of network intelligent communication system; Physical layer module, used for optimizing control and management of the system physical layer; The link control module is used to perform link control of the network intelligent communication system.
[0025] In some embodiments of the present invention, the analysis management module includes: Terminal network distribution module, used for terminal network distribution control of network intelligent communication system; Access analysis module, used for cloud platform access analysis and management of terminal devices; The connection request module is used to process client connection requests.
[0026] In some embodiments of the present invention, the subscription storage module includes: Theme subscription module, used for theme subscription control and management; The backup storage module is used for backup storage of data information.
[0027] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0028] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An intelligent communication method based on network management and control, characterized in that: include: Carry out coding optimization management of network intelligent communication system; Perform physical layer and link control on network intelligent communication systems; Conduct operation analysis, control and management of network intelligent communication systems; Carry out subscription storage processing of network intelligent communication system; The coding optimization management of the network intelligent communication system includes: The network access configuration of the terminal device is processed by a method of jointly encoding the multicast address and the data frame length. The high 7 bits of the 23 low-order bits that can be encoded are used to identify the field to which the network configuration data belongs, the low 16 bits are used to represent the encoded data, and the data frame length is used to represent the sequence number of each frame of data. The physical layer and link control of the network intelligent communication system includes: In the physical layer of the network intelligent communication system, Wi-Fi wireless signals are used for information communication transmission, and the destination MAC address field and data frame length of the controllable 802.11 data frame are used for encoding. The destination MAC address field carries Wi-Fi configuration data, and the data frame length indicates the serial number of the configuration data. Each field serial number starts from 1, and each serial number carries 2Byte of user data. The device side parses the encoded data with the serial number of the data frame to obtain the SSID, password and configuration data of the wireless network access point; Design the link layer data structure of the network intelligent communication system, which consists of two fields: magic code and data code. The data code field carries the SSID and password information of the wireless network access point. At the same time, in order to prevent the failure of network configuration information caused by packet loss, the information sender is set to send 20 frames of magic code and send all data code field information in a loop 15 times; The operation analysis, control and management of the network intelligent communication system includes: Before starting the network configuration of the network intelligent communication system, start the 100ms timer, switch the Wi-Fi channels in turn in the timer interrupt service function, set the Wi-Fi data filtering conditions according to the destination MAC address, set the Wi-Fi module to monitoring mode, receive 802.11 data frames, call the Config_Recv() function for data analysis every time a frame of data is received, and judge the return value of this interface function. If Config_Locked is returned, it means that the channel has been locked, and the timer needs to be turned off to stop switching channels. If Config_Complete is returned, it means that the network configuration data analysis is completed, the monitoring mode is turned off, the filtering conditions are canceled, and the SSID, password and other data configured by the user are obtained; The operation analysis, control and management of the network intelligent communication system further includes: Control and analyze the access information request of the terminal device cloud platform, use the DNS domain name resolution function to obtain the IP address of the HTTP server according to the domain name of the server, establish a TCP connection with the server according to the IP address and port number of the HTTP server obtained by the domain name resolution, and when the connection fails, try to re-establish the connection at a set time interval until the number of attempts reaches the set threshold, and it is considered that the connection cannot be established, and no connection is established with the server. After successfully establishing a TCP connection with the server, package the application data in HTTP format according to the request requirements of the application, and submit a request to the HTTP server; When the MQTT client establishes a CONNECT connection with the server, the keep-alive time is set in the variable header of the CONNECT message. The keep-alive time defines the maximum time interval for the server to receive messages from the client, so that the client sends at least one message to the server within each keep-alive time interval. If there is no business-related message to be sent during this period, the client sends a PINGREQ heartbeat request message to the server to maintain a long connection with the server. Otherwise, if the server does not receive a message from the client within 1.5 keep-alive times, it is regarded as the client sending a DISCONNECT message and disconnects the client. The subscription storage processing of the network intelligent communication system includes: After the operation and processing information of the network intelligent communication system is collected, it is backed up and stored for subsequent reference, analysis and processing.