Embedded wireless network systems and methods for accessing wireless networks
Patent Information
- Application Number
- CN202411135574.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2026-09-01
- Estimated Expiration
- 2044-08-19
AI Technical Summary
[0005]在上述方案中,通过改变加载无线网卡驱动的消息响应机制以及使用LWIP协议栈取代传统TCP/IP协议栈的方法在嵌入式实时操作系统中实现了无线网络减少内存使用量的目的;但是并没有对无线网络热点进行筛选和监控的功能,因此无法筛选出最优的网络热点进行连接,并且不能够在遇到网络故障后及时切换网络热点,进而无法保证系统始终处于最佳的工作状态
[0069]本发明提供了一种嵌入式无线网络系统,具备以下有益效果:
Smart Images

Figure CN118870473B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wireless network technology, specifically to an embedded wireless network system and a method for accessing a wireless network. Background Technology
[0002] An embedded wireless network system is a system that integrates wireless network technology and embedded technology, allowing embedded devices to connect and exchange data wirelessly; however, existing embedded wireless network systems have high memory consumption.
[0003] Chinese invention application CN106060901B discloses a method for an embedded wireless network system to access a wireless network. The method includes the steps of: loading a wireless network card driver to drive the wireless network card; after the wireless network card driver is loaded, running a wireless network card management program to connect to a hotspot through the wireless network card; and loading an LWIP protocol stack to obtain an IP address from a router to access the wireless network. This invention achieves reduced memory usage in an embedded real-time operating system by changing the message response mechanism for loading the wireless network card driver and using an LWIP protocol stack instead of the traditional TCP / IP protocol stack. This reduces hardware size and cost, and lowers the requirements of the wireless network on embedded hardware.
[0004] Despite the above inventions, the existing technology still has the following shortcomings:
[0005] In the above scheme, the goal of reducing the memory usage of wireless networks in the embedded real-time operating system is achieved by changing the message response mechanism of loading the wireless network card driver and using the LWIP protocol stack to replace the traditional TCP / IP protocol stack. However, there is no function to filter and monitor wireless network hotspots, so it is impossible to select the optimal network hotspot for connection and to switch network hotspots in a timely manner after encountering network failures, thus failing to ensure that the system is always in the best working state. Summary of the Invention
[0006] (a) Technical problems to be solved
[0007] To address the shortcomings of existing technologies, this invention provides an embedded wireless network system. Through a wireless communication module, an intelligent network management module, and a security performance module, it can select and manage multiple available wireless network hotspots and choose the best wireless network hotspot to connect to according to needs. When the currently connected wireless network encounters a problem, it can automatically switch to other available wireless network hotspots, thus solving the limitations of traditional embedded wireless network systems in network management and switching.
[0008] (II) Technical Solution
[0009] To achieve the above objectives, the present invention provides the following technical solution: an embedded wireless network system, comprising:
[0010] The embedded main control module is used to process system tasks and store data;
[0011] The wireless communication module connects to the embedded main control module, supports multiple wireless communication protocols, can automatically switch communication protocols, and automatically adjust communication parameters based on the parameters of the target wireless network.
[0012] The intelligent network management module can select and manage multiple available wireless network hotspots, connect to a selected wireless network hotspot, and switch to other wireless network hotspots.
[0013] The resource optimization module dynamically loads and unloads the wireless network card driver based on system resources to optimize system resource usage;
[0014] The security module performs two-way security authentication and encrypts transmitted data when the system accesses the wireless network; when an abnormal situation is detected, it sends a recovery command to the intelligent network management module.
[0015] The data processing module tags the data packets and executes the corresponding compression strategies to compress and decompress the data sent by the application layer.
[0016] The power management module can adjust the power supply strategy based on system operating status data and external environment data.
[0017] In the preferred embodiment of the above embedded wireless network system, the wireless communication module includes:
[0018] The protocol adaptive module can scan the surrounding wireless network hotspots, receive and analyze the signals emitted by the wireless network hotspots, identify the protocol type of the target wireless network hotspot, and compare it with the device's supported protocol list. If the target protocol is in the protocol list, it will automatically select the corresponding communication protocol for communication; otherwise, it will switch to other wireless network hotspots to continue the comparison.
[0019] The parameter configuration module is used to collect parameters of the target wireless network hotspot and compare them with the device's current configuration. Based on the comparison results, the device's communication parameters are adjusted to establish a connection with the target wireless network hotspot. After the connection is established, a data transmission test is performed. If the data transmission test passes, the data is saved in its format and the next step is performed; otherwise, the communication parameters are readjusted.
[0020] In the preferred embodiment of the above embedded wireless network system, the intelligent network management module includes:
[0021] Hotspot information receiving module, used to receive information about wireless network hotspots;
[0022] The hotspot assessment module evaluates wireless network hotspots based on their information and selects the best hotspot for connection; specifically:
[0023] Based on the information of wireless network hotspots, obtain the signal strength XH, security AQ, and bandwidth DK for each wireless network hotspot; and calculate the evaluation index PG1 using the signal strength XH, security AQ, and bandwidth DK, based on the following formula:
[0024]
[0025] Where: β1, β2, and β3 are the weighting coefficients for signal strength XH, security AQ, and bandwidth DK, respectively, and β1 + β2 + β3 = 1, which can be β1 = 0.4, β2 = 0.3, and β3 = 0.3; DK max This is the expected maximum bandwidth value;
[0026] The evaluation index PG2 is calculated based on the connection success rate (LJ), disconnection rate (DX), and average connection duration (PJ) of each wireless network hotspot. The formula used is as follows:
[0027]
[0028] The evaluation index PG3 is calculated using the latency YC, jitter DS, and data throughput ST for each wireless network hotspot; the formula used is as follows:
[0029]
[0030] Where: γ1, γ2, and γ3 are the weighting coefficients for latency YC, jitter data DS, and data throughput ST, respectively, and γ1 + γ2 + γ3 = 1, with values of γ1 = 0.4, γ2 = 0.3, and γ3 = 0.3, respectively; DS max It is the maximum value of the jitter data DS; ST max It is the maximum value of the data throughput ST;
[0031] The evaluation coefficient value PG4 is calculated based on evaluation index PG1, evaluation index PG2, and evaluation index PG3, using the formula: PG4 = PG1 + PG2 + PG3; then, the wireless network hotspot that matches the maximum value of the evaluation coefficient value PG4 is selected for connection.
[0032] In the preferred embodiment of the above embedded wireless network system, the resource optimization module includes:
[0033] The driver management module is used to dynamically load or unload wireless network card drivers based on system resource status.
[0034] The resource monitoring module monitors the usage of system resources in real time; system resources include at least CPU, memory, and network bandwidth.
[0035] The resource scheduling module dynamically adjusts resource allocation based on current task requirements.
[0036] In the preferred embodiment of the above embedded wireless network system, the security module includes:
[0037] The two-way authentication module performs two-way identity authentication with the access point when the system accesses the wireless network to ensure access security;
[0038] The data encryption module is used to encrypt transmitted data.
[0039] Firewall module, which monitors the network environment in real time and defends against network attacks;
[0040] The fault recovery module automatically detects the fault type and triggers the corresponding recovery strategy when a wireless network connection failure occurs.
[0041] In the preferred embodiment of the above embedded wireless network system, the working steps of the fault recovery module are as follows:
[0042] Obtain historical network latency data for the wireless network hotspot and estimate the measured network state value (WT) for that hotspot; the formula used is:
[0043] WT t =δ1·AvgDelay t +δ2·VarDelay t +δ3·Trend t
[0044] Wherein: WT t This is the measured network state value at the current time point t; AvgDelay t VarDelay is the average network latency per unit time before the current time point t. t It is the variance of network latency per unit time before the current time point t, used to represent the volatility of latency; Trend t This is the trend prediction value of network latency; t represents the end point of a time window, and the network state value WT is calculated every t time interval; δ1, δ2, and δ3 are respectively the AvgDelay value. t VarDelay t and Trend t The weighting coefficients are δ1 = 0.3, δ2 = 0.3, and δ3 = 0.4, respectively.
[0045] Obtain real-time network traffic data WL, real-time latency data YC, and packet loss rate DB of the wireless network hotspot, and calculate the real-time network status index WZ;
[0046]
[0047] Among them, WL i This refers to the real-time traffic value of the i-th internet access port; μ1 is the average real-time network traffic data of all internet access ports; YC i This refers to the real-time latency data of the i-th internet access port; μ2 is the average real-time latency data of all internet access ports; DB i μ1 is the packet loss rate of the i-th Internet port; μ3 is the average packet loss rate of all Internet ports; i = 1, 2, 3...n; n is the number of Internet ports; α1 is the weight of the standard deviation of real-time network traffic data WL, α2 is the weight of the standard deviation of real-time latency data YC, and α3 is the weight of the standard deviation of packet loss rate DB, and α1 + α2 + α3 = 1, with values of α1 = 0.2, α2 = 0.4, and α3 = 0.4 respectively.
[0048] The measured network state index WD is calculated based on the measured network state value WT and the real-time network state index WZ. The formula is: WD = WT * WZ.
[0049] A preset network status index threshold WY is set; the calculated network status index WD is compared with the network status index threshold WY. If the condition is met (calculated network status index WD ≥ network status index threshold WY), a recovery command is sent to the intelligent network management module to reselect the wireless network hotspot and generate a fault history record.
[0050] In the preferred embodiment of the above embedded wireless network system, the data processing module includes:
[0051] Compression module: Tag the data packets sent by the application layer according to their content. The tags are urgency and importance. Urgency includes high urgency, medium urgency, and low urgency. Importance includes critical importance, medium importance, and normal importance.
[0052] Configure a multi-level compression strategy corresponding to the tag; data packets tagged with high urgency / critical importance and high urgency / medium importance use a level-one compression strategy; data packets tagged with medium urgency / critical importance and medium urgency / medium importance use a level-two compression strategy; data packets with other tags use a level-three compression strategy;
[0053] Decompression module: Decompresses the received compressed data for use by the application layer.
[0054] In the preferred embodiment of the above embedded wireless network system, the power management module includes:
[0055] The power monitoring module acquires real-time and historical datasets of system operating status data and external environment data, and preprocesses the data and filters out outliers. The system operating status data includes at least CPU utilization, memory usage, and hard disk temperature; the external environment data includes at least ambient temperature.
[0056] The power prediction module uses the LSTM machine learning algorithm to train historical datasets and establish system load prediction and temperature prediction models; it inputs real-time dataset data into the system load prediction and temperature prediction models to obtain load prediction and temperature prediction values.
[0057] The energy-saving strategy module is equipped with power supply strategies, including low-energy consumption strategy, high-performance strategy, and standard state strategy. The low-energy consumption strategy, high-performance strategy, and standard state strategy are each preset with corresponding load prediction thresholds and temperature prediction thresholds. The load prediction value and temperature prediction value are compared with the load prediction threshold and temperature prediction threshold of the different strategies. If the load prediction value and temperature prediction value are within the range of the load prediction threshold and temperature prediction threshold, the corresponding strategy is executed.
[0058] In the preferred embodiment of the above-mentioned embedded wireless network system, it also includes:
[0059] The user interface module is used to interact with the user and provides functions such as network configuration, management, and monitoring;
[0060] The logging module is used to record key information and events during system operation, facilitating subsequent analysis and troubleshooting.
[0061] This invention also discloses a method for accessing a wireless network, applicable to the aforementioned embedded wireless network system, comprising the following steps:
[0062] Use the wireless communication module in the embedded wireless network system to scan for multiple available wireless network hotspots;
[0063] The intelligent network management module allows you to select one or more target wireless network hotspots from the scanned wireless network hotspots and connect to them.
[0064] Under the control of the embedded main control module, the wireless communication module automatically adjusts the communication parameters based on the parameters of the target wireless network and connects to the selected wireless network hotspot;
[0065] When accessing a wireless network, the security module performs two-way security authentication and encrypts the transmitted data;
[0066] The system resource usage is monitored in real time, and the resource optimization module dynamically adjusts resource allocation based on current task requirements.
[0067] When a wireless network connection fails, the security module automatically detects the type of failure and triggers the corresponding recovery strategy to ensure that the system quickly returns to normal operation.
[0068] (III) Beneficial Effects
[0069] This invention provides an embedded wireless network system with the following advantages:
[0070] (1) Enhanced communication flexibility and reliability: The wireless communication module supports multiple wireless communication protocols and can automatically switch and adjust communication parameters, enabling the system to flexibly adapt to different network environments and improve the reliability and stability of communication.
[0071] (2) Intelligent network management: The intelligent network management module can select and manage multiple available wireless network hotspots and achieve automatic switching, ensuring the continuity and stability of the system in network connection and improving user experience;
[0072] (3) Optimize system resource usage: The resource optimization module can dynamically load and unload the wireless network card driver according to system resources, effectively reducing unnecessary system resource usage and improving the overall operating efficiency of the system;
[0073] (4) Enhanced security: The security module performs two-way security authentication when accessing the wireless network and encrypts the transmitted data, effectively preventing data leakage and malicious attacks and ensuring the security of the system; when an abnormal situation is detected, it can send a recovery command to the intelligent network management module and take timely measures to restore the normal operation of the system, further enhancing the stability and security of the system.
[0074] (5) Efficient data processing: The data processing module tags data packets and executes corresponding compression strategies, which effectively improves the efficiency of data transmission and the utilization of bandwidth, and reduces the cost and latency of data transmission;
[0075] (6) Intelligent power management: The power management module can adjust the power supply strategy according to the system operating status data and external environment data, realizing intelligent power management and improving the power utilization rate and system energy efficiency ratio.
[0076] (7) Enhance user experience: Through the coordinated work of the above functional modules, the entire embedded wireless network system can provide more stable, secure and efficient wireless connection services, thereby enhancing the overall user experience. Attached Figure Description
[0077] Figure 1 This is a schematic diagram of the embedded wireless network system of the present invention;
[0078] Figure 2 The evaluation process for the hotspot evaluation module in the embedded wireless network system of this invention;
[0079] Figure 3 This is a schematic diagram illustrating the working steps of the fault recovery module in the embedded wireless network system of the present invention. Detailed Implementation
[0080] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0081] Please see Figure 1-3 This invention provides an embedded wireless network system, comprising:
[0082] The embedded main control module is equipped with at least one high-performance processor and memory to handle the core tasks of the system and store necessary data. It includes an interface for communicating with external devices and supports multiple interface standards.
[0083] The wireless communication module connects to the embedded main control module, supports multiple wireless communication protocols, and can automatically switch communication protocols to adapt to different network environments; it is equipped with an adaptive network configuration module, which can automatically adjust communication parameters based on the parameters of the target wireless network, including channel selection, transmission rate, power control, etc., to optimize network connection performance.
[0084] The intelligent network management module can select and manage multiple available wireless network hotspots, select a wireless network hotspot for connection, and switch to other wireless network hotspots. It can automatically allocate data traffic and optimize network performance. It monitors the status of network hotspots in real time, automatically selects the best hotspot for connection based on factors such as signal strength and security, and automatically switches to other hotspots when necessary to ensure the stability and reliability of network connections.
[0085] The resource optimization module dynamically loads and unloads the wireless network card driver based on system resources to optimize system resource usage; it monitors system resource usage in real time and dynamically adjusts resource allocation according to current task requirements to ensure stable system operation.
[0086] The security module performs two-way security authentication when the system connects to the wireless network and encrypts transmitted data to prevent data leakage; it is equipped with advanced encryption and decryption algorithms and firewall functions to monitor and defend against network attacks in real time, ensuring the security of wireless communication; when an abnormal situation is detected in the wireless network hotspot, it sends a recovery command to the intelligent network management module.
[0087] The data processing module tags the data packets and executes the corresponding compression strategies to compress and decompress the data sent by the application layer.
[0088] The power management module can adjust the power supply strategy based on system operating status data and external environment data.
[0089] It should be noted that the operating principle of this invention is as follows:
[0090] When the system starts, the embedded main control module first performs a self-test and initializes the internal processor, memory, and external interfaces. Simultaneously, the power management module starts, adjusting the power supply according to preset initial conditions to ensure normal system power supply. The resource optimization module dynamically loads the appropriate wireless network card driver based on system resources and network traffic. After the wireless network card driver is loaded, the intelligent network management module starts running, preparing to manage available wireless network hotspots. The wireless communication module begins scanning for surrounding wireless network hotspots and transmits the scan results to the intelligent network management module, which selects the best hotspot for connection. During this process, the security module performs two-way security authentication and encrypts transmitted data. The wireless communication module automatically adjusts its communication parameters, such as channel selection, transmission rate, and power control, based on the target wireless network parameters. The resource optimization module monitors system resource usage and dynamically adjusts resource allocation according to current task requirements. Data generated at the application layer is compressed and decompressed to reduce memory usage and data transmission overhead. The security module continuously monitors network connection status, including connection stability, bandwidth, and latency. If a connection is detected to be broken or of degraded quality, the network connection status monitoring module notifies the intelligent network management module to attempt reconnection or switch to another available network.
[0091] In a preferred embodiment of the above-described embedded wireless network system, the wireless communication module includes:
[0092] The protocol adaptive module can scan the surrounding wireless network hotspots, receive and analyze the signals emitted by the wireless network hotspots, identify the protocol type of the target wireless network hotspot, and compare it with the device's supported protocol list. If the target protocol is in the protocol list, it will automatically select the corresponding communication protocol for communication; otherwise, it will switch to other wireless network hotspots to continue the comparison.
[0093] After determining the communication protocol, the parameter configuration module collects parameters of the target wireless network hotspot, such as channel, frequency, encryption method, and authentication requirements. It compares these parameters with the device's current configuration. If the parameters do not match, the module determines what adjustments are needed to adapt to the target network. Based on the comparison results, it adjusts the device's communication parameters and establishes a connection with the target wireless network hotspot. The parameter configuration module typically also has the function of saving and restoring configurations. When the device reconnects to a previously connected network, it can quickly load the previously saved configuration information without having to go through the entire configuration process again. After establishing a connection, a data transmission test is performed. If the data transmission test passes, the data is saved in its original format, and the next step is performed; otherwise, the communication parameters are readjusted.
[0094] Specifically, after determining the protocol type of the target wireless network, the protocol adaptation module will automatically select the corresponding communication protocol for communication. The protocol types of the target wireless network that the protocol adaptation module can identify include Wi-Fi, Zigbee, Bluetooth, etc., which is usually achieved by loading the driver, library or configuration related to the protocol.
[0095] Specifically, the following are examples of how wireless communication modules can be used:
[0096] Assume the target wireless network is a Wi-Fi network using WPA2-PSK encryption, with channel 6 and frequency 2.4GHz;
[0097] Connection Test: The parameter configuration module configures the device's Wi-Fi connection settings to match the target network (such as SSID, encryption method, and password). Attempt to connect to the target Wi-Fi network and check if the connection status is "Connected."
[0098] Data transmission test: Once the connection is established, the device can send a test data packet to the target server (such as the ping command); check whether the server's response can be successfully received, as well as the response time (latency) and the integrity of the data packet;
[0099] Security verification: Check whether the device is correctly using WPA2-PSK encryption for communication; professional tools or software can be used to detect any insecure behavior or signs of data leakage during the communication process;
[0100] Parameter comparison: Verify that the device's Wi-Fi settings show channel 6 and frequency 2.4GHz; also check that other relevant parameters (such as encryption method, password, etc.) are completely consistent with the target network.
[0101] The key to verifying the configuration steps is to ensure that the device has been correctly configured with all the necessary parameters and that the validity and stability of the configuration can be verified through actual connection and data transmission tests. In this way, the device can be guaranteed to achieve efficient and secure communication in different wireless network environments.
[0102] In the above scheme, the protocol adaptation module and the parameter configuration module work together to ensure that the device can seamlessly connect to different wireless network environments. The protocol adaptation module is responsible for identifying and selecting the correct communication protocol, while the parameter configuration module is responsible for automatically adjusting the device's communication parameters according to the parameters of the target network. The collaborative work between the modules enables the device to maintain efficient and stable communication in different wireless network environments.
[0103] In a preferred embodiment of the above-described embedded wireless network system, the intelligent network management module includes:
[0104] The hotspot information receiving module is used to receive information about wireless network hotspots. Specifically, through a built-in wireless communication interface, such as Wi-Fi or Bluetooth, the module can obtain information about wireless network hotspots. For example, in public places such as coffee shops and libraries, the intelligent network management module can scan for multiple available Wi-Fi hotspots and transmit this information to the hotspot evaluation module.
[0105] The hotspot assessment module evaluates wireless network hotspots based on their information and selects the best hotspot for connection; specifically:
[0106] Based on the information of wireless network hotspots, obtain the signal strength XH, security AQ, and bandwidth DK for each wireless network hotspot; and calculate the evaluation index PG1 using the signal strength XH, security AQ, and bandwidth DK, based on the following formula:
[0107]
[0108] Where β1, β2, and β3 are the weighting coefficients for signal strength XH, security AQ, and bandwidth DK, respectively, and β1 + β2 + β3 = 1. Possible values are β1 = 0.4, β2 = 0.3, and β3 = 0.3. Specific values can be adjusted according to actual conditions. This is to convert the signal strength from a negative value to a positive number, making calculations easier; This is to map the security range from 1 to 5 to 0 to 1, in order to be consistent with the normalization method of signal strength and bandwidth; To handle cases where bandwidth values can be very large, DK uses logarithmic compression. max This is the expected maximum bandwidth value, used for normalization.
[0109] It should be noted that signal strength XH refers to the signal strength emitted by the wireless network hotspot, usually expressed in dBm or RSSI. Depending on the actual equipment and environment, it generally ranges from -100dBm to 0dBm, where -100dBm represents a signal that is almost unreceiveable, and 0dBm represents the theoretical maximum signal strength. The impact on evaluation is positive; the stronger the signal strength, the more stable the network connection, and the faster the speed may be. The larger the evaluation index -PG1, the better.
[0110] Security AQ wireless network hotspot security level is usually assessed based on factors such as encryption method and password complexity; value range: can be set to an integer from 1 to 5, where 1 represents the lowest security level, such as open network, and 5 represents the highest security level, such as WPA3 encryption; the impact on the assessment is positive, the higher the security, the more secure the user data, and the larger the assessment index -PG1.
[0111] Bandwidth DK is the maximum data transfer rate provided by a wireless network hotspot. Its value range depends on the network technology and equipment. For example, 2.4GHz Wi-Fi may reach hundreds of Mbps, while 5GHz Wi-Fi or newer technologies may reach thousands of Mbps. The impact on evaluation is positive. The larger the bandwidth, the faster the network speed, the more concurrent users and data transfer it can support, and the larger the evaluation index - PG1.
[0112] The evaluation index PG2 is calculated based on the connection success rate (LJ), disconnection rate (DX), and average connection duration (PJ) of each wireless network hotspot. The formula used is as follows:
[0113]
[0114] In this formula, the three indicators have equal weight for network performance; the higher the connection success rate, the lower the disconnection rate, and the longer the average connection time, the larger the value of the evaluation index PG2, indicating that the network hotspot has better performance. This involves normalizing the average connection duration. By dividing PJ by a constant, such as 100, we can convert the value of PJ into a smaller range, making it more numerically similar to other ratio values, thus making it easier to perform weighted calculations and comparisons. It should be noted that this constant is not fixed and can be adjusted according to the actual situation.
[0115] It should be noted that the connection success rate (LJ) reflects the proportion of users who successfully establish a connection when trying to connect to a wireless network hotspot. The higher this proportion, the better the connection performance of the hotspot. It is obtained by dividing the number of times a user successfully connects to the hotspot within a specified time period by the total number of times the user attempts to connect to the hotspot within the specified time period. The value ranges from 0% to 100%.
[0116] The disconnection rate (DX) reflects the proportion of connections that are dropped for various reasons after a successful connection is established. The lower the disconnection rate, the more stable the hotspot. It is obtained by dividing the number of disconnections in successfully connected sessions within a specified time period by the number of successfully established connection sessions within the specified time period, with a value ranging from 0% to 100%. The average connection duration (PJ) reflects the average duration of each successfully connected session. The longer this duration, the stronger the hotspot's continuous connection capability. It is obtained by dividing the total duration of all successfully connected sessions within a specified time period by the number of successfully established connection sessions within the specified time period, with a value typically in seconds (s) or minutes (min) depending on the actual situation.
[0117] The evaluation index PG3 is calculated using the latency YC, jitter DS, and data throughput ST for each wireless network hotspot; the formula used is as follows:
[0118]
[0119] Where: γ1, γ2, and γ3 are the weighting coefficients for latency YC, jitter data DS, and data throughput ST, respectively, and γ1 + γ2 + γ3 = 1, with values of γ1 = 0.4, γ2 = 0.3, and γ3 = 0.3, respectively; DS max It is the maximum value of the jitter data DS; ST max It is the maximum value of the data throughput ST, in the formula. and This is to normalize the jitter data DS and data throughput ST to between 0 and 1 for easier calculation;
[0120] It should be noted that the latency rate YC represents the deviation between the average time required for a data packet to travel from the sending point to the receiving point and the expected time. It is usually between 0 and 1, where 0 represents no delay and 1 represents complete delay. The calculation formula is YC = (actual delay time - expected delay time) / expected delay time.
[0121] Jitter data (DS) represents the degree of fluctuation in the time interval between data packets arrival, i.e. the stability of the data stream. It depends on the specific network environment, but is usually a non-negative value. The larger the value, the more severe the jitter. It can be obtained by measuring the time interval between consecutive data packets arrival and calculating its variance or standard deviation.
[0122] Data throughput (ST) represents the amount of data successfully transmitted per unit of time. It depends on the network bandwidth and load, and the unit is usually bps (bits per second) or Mbps (megabits per second). The calculation formula is ST = actual amount of data transmitted / time interval.
[0123] The evaluation coefficient value PG4 is calculated based on evaluation index PG1, evaluation index PG2, and evaluation index PG3, using the formula: PG4 = PG1 + PG2 + PG3. The wireless network hotspot that matches the maximum value of evaluation coefficient PG4 is selected for connection. When a recovery command is received from the security module, the above steps are repeated to switch to another wireless network hotspot.
[0124] In a preferred embodiment of the above embedded wireless network system, the resource optimization module includes:
[0125] The driver management module is used to dynamically load or unload wireless network card drivers based on system resource status. Specifically, it uses the system's API interface to dynamically load and unload wireless network card drivers. When new wireless network card hardware is detected or resources need to be released, the driver management module will automatically load or unload the corresponding driver. If an exception occurs during the loading or unloading of the driver, the module will record the error information and attempt to restore the system state.
[0126] The resource monitoring module monitors the usage of system resources in real time. System resources include at least CPU, memory, and network bandwidth. Specifically, the resource monitoring module uses system APIs or specific hardware interfaces to collect the usage of CPU, memory, and network bandwidth in real time. The collected data will be aggregated and displayed as easy-to-understand charts or reports, making it convenient for users and system administrators to monitor the usage of system resources. When the usage rate of a certain resource exceeds a preset threshold, the module will trigger an alert to notify the user or system administrator to intervene.
[0127] The resource scheduling module dynamically adjusts resource allocation based on current task requirements. Specifically, the module analyzes the current task's needs, including required CPU, memory, and network bandwidth. Based on task requirements and system resource status, the module uses appropriate algorithms such as greedy algorithms and priority queues for resource allocation. During task execution, the module continuously monitors system resource usage and dynamically adjusts resource allocation as needed.
[0128] Here's an example scenario for the above solution: Suppose an embedded wireless network system is running a video streaming task that requires high network bandwidth and CPU resources; at the same time, the system is also running other low-priority background tasks.
[0129] When the system detects new wireless network card hardware, the driver management module automatically loads the corresponding driver. If system resources are scarce or the wireless network card needs to be disabled, the driver management module will uninstall the corresponding driver. During system operation, the resource monitoring module continuously collects CPU, memory, and network bandwidth usage. When it detects that network bandwidth usage is close to or exceeds a preset threshold, the resource monitoring module will trigger a warning. The resource scheduling module first analyzes the requirements of the video streaming task and finds that the task requires high network bandwidth and CPU resources. Then, the module uses an appropriate algorithm to allocate resources to ensure that the video streaming task can obtain sufficient resources. During task execution, the module will continuously monitor system resource usage and dynamically adjust resource allocation as needed. For example, if other background tasks consume too much CPU resources, affecting the video streaming task, the module will reduce the CPU allocation for background tasks to ensure the smooth operation of the video streaming task.
[0130] In a preferred embodiment of the above-described embedded wireless network system, the security module includes:
[0131] The two-way authentication module performs two-way identity authentication with the access point when the system connects to the wireless network to ensure access security. Specifically, it uses Public Key Infrastructure (PKI) for two-way authentication. The system stores its own private key and a public key certificate issued by a trusted Certificate Authority (CA), and the access point also needs to hold a corresponding public key certificate. For example, when the system connects to the wireless network, it sends a connection request to the access point along with its own public key certificate. The access point verifies the validity of the certificate and sends a random challenge code. The system uses its private key to sign the challenge code and returns it. The access point uses the system's public key to verify the signature, confirming the system's identity. At the same time, the system also verifies the access point's public key certificate, completing the two-way authentication.
[0132] The data encryption module is used to encrypt transmitted data. Specifically, it employs symmetric or asymmetric encryption algorithms such as AES or RSA to ensure the confidentiality of data transmission. It uses a secure key exchange protocol, such as Diffie-Hellman key exchange, to dynamically generate session keys, increasing the difficulty of cracking. Before data transmission, both parties can negotiate and determine the encryption algorithm and key, and then encrypt the data. The receiving party uses the same key to decrypt the data.
[0133] The firewall module monitors the network environment in real time and defends against network attacks. Specifically, it filters data packets entering and leaving the network according to preset security rules to block malicious traffic; it monitors network traffic and user behavior to promptly detect and respond to potential attacks; and it records all network activities for subsequent security audits and troubleshooting.
[0134] The fault recovery module automatically detects the fault type and triggers the corresponding recovery strategy when a wireless network connection failure occurs, ensuring that the system quickly returns to normal operation.
[0135] In a preferred embodiment of the above embedded wireless network system, the working steps of the fault recovery module are as follows:
[0136] Obtain historical network latency data for the wireless network hotspot and estimate the measured network state value (WT) for that hotspot; the formula used is:
[0137] WT t =δ1·AvgDelay t +δ2·VarDelay t +δ3·Trend t
[0138] Wherein: WT t This is the measured network state value at the current time point t; AvgDelay t VarDelay is the average network latency per unit time before the current time point t. t It is the variance of network latency per unit time before the current time point t, used to represent the volatility of latency; Trend t This is the predicted trend value of network latency; t represents the end point of a time window, and the network state value WT is calculated every t time interval, which can be 30 minutes, 60 minutes, etc.; δ1, δ2, and δ3 are respectively AvgDelay t VarDelay t and Trend t The weighting coefficients are δ1 = 0.3, δ2 = 0.3, δ3 = 0.4, and δ1 + δ2 + δ3 = 1, respectively.
[0139] It should be noted that AvgDelay t This is obtained by collecting historical network latency data from wireless network hotspots and calculating the average value over the most recent time window; the value range is a non-negative real number, and the specific range depends on the actual network latency; VarDelay t Based on historical network latency data, calculate the variance of network latency over a recent period. The variance is a non-negative real number; a larger variance indicates greater latency fluctuation. t Time series analysis methods can be used to predict future network latency trends. For example, ARIMA models or linear regression models can be used to fit historical data and predict future values; the larger the value of the network state value WT, the worse the network state.
[0140] Obtain real-time network traffic data WL, real-time latency data YC, and packet loss rate DB of the wireless network hotspot, and calculate the real-time network status index WZ;
[0141]
[0142] Among them, WL i This refers to the real-time traffic value of the i-th internet access port; μ1 is the average real-time network traffic data of all internet access ports; YC i This refers to the real-time latency data of the i-th internet access port; μ2 is the average real-time latency data of all internet access ports; DB i μ3 is the packet loss rate of the i-th internet access port; μ3 is the average packet loss rate of all internet access ports; i = 1, 2, 3...n; n is the number of internet access ports; α1 is the weight of the standard deviation of real-time network traffic data WL, α2 is the weight of the standard deviation of real-time latency data YC, and α3 is the weight of the standard deviation of packet loss rate DB, and α1 + α2 + α3 = 1, with values of α1 = 0.2, α2 = 0.4, and α3 = 0.4 respectively; the larger the value of the real-time network status index WZ, the worse the network status.
[0143] The measured network state index WD is calculated based on the measured network state value WT and the real-time network state index WZ. The formula is: WD = WT * WZ
[0144] A preset network status index threshold WY is set; the calculated network status index WD is compared with the network status index threshold WY. If the condition is met (calculated network status index WD ≥ network status index threshold WY), a recovery command is sent to the intelligent network management module to reselect the wireless network hotspot and generate a fault history record.
[0145] In a preferred embodiment of the above-described embedded wireless network system, the data processing module includes:
[0146] Compression module: Tag data packets sent by the application layer according to their content, with tags indicating urgency and importance. Specifically: based on the timeliness requirements of the data packets, the urgency level is divided into multiple levels, such as "high urgency," "medium urgency," and "low urgency"; based on the importance of the data packet content, the importance level is divided into multiple levels, such as "critical importance," "medium importance," and "moderate importance." Each data packet has both an urgency tag and an importance tag.
[0147] Configure a multi-level compression strategy corresponding to the tag; data packets tagged with high urgency / critical importance and high urgency / medium importance use a level-one compression strategy; data packets tagged with medium urgency / critical importance and medium urgency / medium importance use a level-two compression strategy; data packets with other tags use a level-three compression strategy;
[0148] Decompression module: Decompresses the received compressed data for use by the application layer. Specifically, after receiving the compressed data packet, it first reads the compression algorithm identifier in the data packet header, selects the corresponding decompression algorithm according to the compression algorithm identifier, and then passes the data to the application layer for use after decompression is completed.
[0149] It should be noted that the first-level compression strategy uses fast but low-compression-ratio algorithms, such as LZ77 or LZW, to ensure that data can be transmitted as quickly as possible; the second-level compression strategy uses algorithms with medium compression ratio and speed, such as DEFLATE or Zlib; and the third-level compression strategy uses algorithms with high compression ratio but slower speed, such as LZMA or 7z.
[0150] In a preferred embodiment of the above embedded wireless network system, the power management module includes:
[0151] The power monitoring module acquires real-time and historical datasets of system operating status data and external environment data, and preprocesses the data and filters out outliers. The system operating status data includes at least CPU utilization, memory usage, and hard disk temperature; the external environment data includes at least ambient temperature.
[0152] The power prediction module uses the LSTM machine learning algorithm to train historical datasets and establish system load prediction and temperature prediction models; it inputs real-time dataset data into the system load prediction and temperature prediction models to obtain load prediction and temperature prediction values.
[0153] The energy-saving strategy module is equipped with power supply strategies, including low-energy consumption strategy, high-performance strategy, and standard state strategy. The low-energy consumption strategy, high-performance strategy, and standard state strategy are each preset with corresponding load prediction thresholds and temperature prediction thresholds. The load prediction value and temperature prediction value are compared with the load prediction threshold and temperature prediction threshold of the different strategies. If the load prediction value and temperature prediction value are within the range of the load prediction threshold and temperature prediction threshold, the corresponding strategy is executed.
[0154] In the above scheme, the power management module periodically runs the power monitoring module to collect data. The power prediction module uses this data to make predictions and sends the prediction results to the energy-saving strategy module. The energy-saving strategy module compares the prediction results with preset thresholds and executes corresponding strategies. The entire process forms a closed-loop control system that can dynamically adjust the system's power supply strategy based on real-time prediction results, achieving a balance between energy saving and performance.
[0155] In a preferred embodiment of the above-described embedded wireless network system, it further includes:
[0156] The user interface module is used to interact with the user and provides functions such as network configuration, management, and monitoring;
[0157] The logging module is used to record key information and events during system operation, facilitating subsequent analysis and troubleshooting.
[0158] On the other hand, the present invention also discloses a method for accessing a wireless network, comprising the following steps:
[0159] Use the wireless communication module in the embedded wireless network system to scan for multiple available wireless network hotspots;
[0160] The intelligent network management module allows you to select one or more target wireless network hotspots from the scanned wireless network hotspots and connect to them.
[0161] Under the control of the embedded main control module, the wireless communication module automatically adjusts the communication parameters based on the parameters of the target wireless network and connects to the selected wireless network hotspot;
[0162] When accessing a wireless network, the security module performs two-way security authentication and encrypts the transmitted data;
[0163] The system resource usage is monitored in real time, and the resource optimization module dynamically adjusts resource allocation based on current task requirements.
[0164] When a wireless network connection fails, the security module automatically detects the type of failure and triggers the corresponding recovery strategy to ensure that the system quickly returns to normal operation.
[0165] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented in software, the above embodiments can be implemented, in whole or in part, as a computer program product. Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution.
[0166] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0167] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. An embedded wireless network system, characterized in that: include: The embedded main control module is used to process system tasks and store data; The wireless communication module connects to the embedded main control module, supports multiple wireless communication protocols, can automatically switch communication protocols, and automatically adjust communication parameters based on the parameters of the target wireless network. The intelligent network management module can select and manage multiple available wireless network hotspots, connect to a selected wireless network hotspot, and switch to other wireless network hotspots. The intelligent network management module includes: Hotspot information receiving module, used to receive information about wireless network hotspots; The hotspot assessment module evaluates wireless network hotspots based on their information and selects the best hotspot for connection; specifically: Based on the information of wireless network hotspots, obtain the signal strength XH, security AQ, and bandwidth DK for each wireless network hotspot; and calculate the evaluation index PG1 using the signal strength XH, security AQ, and bandwidth DK, based on the following formula: Where: β1, β2, and β3 are the weighting coefficients for signal strength XH, security AQ, and bandwidth DK, respectively, β1 + β2 + β3 = 1, and their values are β1 = 0.4, β2 = 0.3, and β3 = 0.3; DK max This is the expected maximum bandwidth value; The evaluation index PG2 is calculated based on the connection success rate (LJ), disconnection rate (DX), and average connection duration (PJ) of each wireless network hotspot. The formula used is as follows: The evaluation index PG3 is calculated using the latency YC, jitter DS, and data throughput ST for each wireless network hotspot; the formula used is as follows: Where: γ1, γ2, and γ3 are the weighting coefficients for latency YC, jitter data DS, and data throughput ST, respectively, and γ1 + γ2 + γ3 = 1, with values of γ1 = 0.4, γ2 = 0.3, and γ3 = 0.3, respectively; DS max It is the maximum value of the jitter data DS; ST max It is the maximum value of the data throughput ST; The evaluation coefficient value PG4 is calculated based on evaluation index PG1, evaluation index PG2, and evaluation index PG3, using the formula: PG4 = PG1 + PG2 + PG3; then, the wireless network hotspot that matches the maximum value of the evaluation coefficient value PG4 is selected for connection. The resource optimization module dynamically loads and unloads the wireless network card driver based on system resources to optimize system resource usage; The security module performs two-way security authentication and encrypts transmitted data when the system accesses the wireless network; when an anomaly is detected, it sends a recovery command to the intelligent network management module; the security module includes: The two-way authentication module performs two-way identity authentication with the access point when the system accesses the wireless network to ensure access security; The data encryption module is used to encrypt transmitted data. Firewall module, which monitors the network environment in real time and defends against network attacks; The fault recovery module automatically detects the fault type and triggers the corresponding recovery strategy when a wireless network connection failure occurs. The working steps of the fault recovery module are as follows: Obtain historical network latency data for the wireless network hotspot and estimate the measured network state value (WT) for that hotspot; the formula used is: WT t =δ1·AvgDelay t +δ2·VarDelay t +δ3·Trend t Wherein: WT t This is the measured network state value at the current time point t; AvgDelay t VarDelay is the average network latency per unit time before the current time point t. t It is the variance of network latency per unit time before the current time point t, used to represent the volatility of latency; Trend t This is the trend prediction value of network latency; t represents the end point of a time window, and the network state value WT is calculated every t time interval; δ1, δ2, and δ3 are respectively the AvgDelay value. t VarDelay t and Trend t The weighting coefficients are δ1 = 0.3, δ2 = 0.3, and δ3 = 0.4, respectively. Obtain real-time network traffic data WL, real-time latency data YC, and packet loss rate DB of the wireless network hotspot, and calculate the real-time network status index WZ; Among them, WL i This refers to the real-time traffic value of the i-th internet access port; μ1 is the average real-time network traffic data of all internet access ports; YC i This refers to the real-time latency data of the i-th internet access port; μ2 is the average real-time latency data of all internet access ports; DB i μ1 is the packet loss rate of the i-th Internet port; μ3 is the average packet loss rate of all Internet ports; i = 1, 2, 3...n; n is the number of Internet ports; α1 is the weight of the standard deviation of real-time network traffic data WL, α2 is the weight of the standard deviation of real-time latency data YC, and α3 is the weight of the standard deviation of packet loss rate DB, and α1 + α2 + α3 = 1, with values of α1 = 0.2, α2 = 0.4, and α3 = 0.4 respectively. The measured network state index WD is calculated based on the measured network state value WT and the real-time network state index WZ. The formula is: WD = WT * WZ. A preset network status index threshold WY is set; the calculated network status index WD is compared with the network status index threshold WY. If the condition is met (calculated network status index WD ≥ network status index threshold WY), a recovery command is sent to the intelligent network management module to reselect the wireless network hotspot and generate a fault history record. The data processing module tags the data packets and executes the corresponding compression strategies to compress and decompress the data sent by the application layer. The power management module can adjust the power supply strategy based on system operating status data and external environment data.
2. The embedded wireless network system according to claim 1, characterized in that: The wireless communication module includes: The protocol adaptive module can scan the surrounding wireless network hotspots, receive and analyze the signals emitted by the wireless network hotspots, identify the protocol type of the target wireless network hotspot, and compare it with the device's supported protocol list. If the target protocol is in the protocol list, it will automatically select the corresponding communication protocol for communication; otherwise, it will switch to other wireless network hotspots to continue the comparison. The parameter configuration module is used to collect parameters of the target wireless network hotspot and compare them with the device's current configuration. Based on the comparison results, the device's communication parameters are adjusted to establish a connection with the target wireless network hotspot. After the connection is established, a data transmission test is performed. If the data transmission test passes, the data is saved in its format and the next step is performed; otherwise, the communication parameters are readjusted.
3. The embedded wireless network system according to claim 2, characterized in that: The resource optimization module includes: The driver management module is used to dynamically load or unload wireless network card drivers based on system resource status. The resource monitoring module monitors the usage of system resources in real time; system resources include at least CPU, memory, and network bandwidth. The resource scheduling module dynamically adjusts resource allocation based on current task requirements.
4. The embedded wireless network system according to claim 3, characterized in that: The data processing module includes: Compression module: Tag the data packets sent by the application layer according to their content. The tags are urgency and importance. Urgency includes high urgency, medium urgency, and low urgency. Importance includes critical importance, medium importance, and normal importance. Configure a multi-level compression strategy corresponding to the tag; data packets tagged with high urgency / critical importance and high urgency / medium importance use a level-one compression strategy; data packets tagged with medium urgency / critical importance and medium urgency / medium importance use a level-two compression strategy; data packets with other tags use a level-three compression strategy; Decompression module: Decompresses the received compressed data for use by the application layer.
5. The embedded wireless network system according to claim 4, characterized in that: The power management module includes: The power monitoring module acquires real-time and historical datasets of system operating status data and external environment data, and preprocesses the data and filters out outliers. The system operating status data includes at least CPU utilization, memory usage, and hard disk temperature; the external environment data includes at least ambient temperature. The power prediction module uses the LSTM machine learning algorithm to train historical datasets and establish system load prediction and temperature prediction models; it inputs real-time dataset data into the system load prediction and temperature prediction models to obtain load prediction and temperature prediction values. The energy-saving strategy module is equipped with power supply strategies, including low-energy consumption strategy, high-performance strategy, and standard state strategy. The low-energy consumption strategy, high-performance strategy, and standard state strategy are each preset with corresponding load prediction thresholds and temperature prediction thresholds. The load prediction value and temperature prediction value are compared with the load prediction threshold and temperature prediction threshold of the different strategies. If the load prediction value and temperature prediction value are within the range of the load prediction threshold and temperature prediction threshold, the corresponding strategy is executed.
6. The embedded wireless network system according to claim 5, characterized in that: Also includes: The user interface module is used for interaction with the user; The logging module is used to record information and events during system operation.
7. A method for accessing a wireless network, applicable to the embedded wireless network system of any one of claims 1-6, characterized in that: Includes the following steps: Use the wireless communication module in the embedded wireless network system to scan for multiple available wireless network hotspots; The intelligent network management module allows you to select one or more target wireless network hotspots from the scanned wireless network hotspots and connect to them. Under the control of the embedded main control module, the wireless communication module automatically adjusts the communication parameters based on the parameters of the target wireless network and connects to the selected wireless network hotspot; When accessing a wireless network, the security module performs two-way security authentication and encrypts the transmitted data; The system resource usage is monitored in real time, and the resource optimization module dynamically adjusts resource allocation based on current task requirements. When a wireless network connection fails, the security module automatically detects the type of failure and triggers the corresponding recovery strategy to ensure that the system quickly returns to normal operation.
Citation Information
Patent Citations
Embedded wireless network systems and methods for accessing wireless networks
CN106060901B
Embedded wireless network system and method thereof for accessing wireless network
CN106060901A
Method and device for simultaneously accessing multiple networks, storage medium and electronic equipment
CN115396987A