Intelligent wireless gateway and terminal communication connection method based on Star Flash

Through the intelligent wireless gateway based on star flash, efficient connection and data transmission of terminal devices are achieved, and the performance, compatibility and security of traditional wireless gateways are solved, and the stability, data transmission rate and security of wireless gateways are improved.

CN119603091BActive Publication Date: 2025-08-12GUANGZHOU HOPERUN YINENG SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411741153.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-08-12
Estimated Expiration
2044-11-29

AI Technical Summary

Technical Problem

Traditional wireless gateways have shortcomings in performance, compatibility and security, and are difficult to meet the growing demand for intelligent, diversified and high-performance network communications.

Method used

The intelligent wireless gateway based on star flash is adopted, including device authentication unit, gateway control unit, star flash communication unit, encrypted transmission unit and network adaptation unit. Through multiple authentication, star flash communication module, encrypted transmission and network adaptation, efficient connection and data transmission of terminal devices are realized.

Benefits of technology

It improves the stability, data transmission rate, compatibility and security of wireless gateways, and meets the needs of intelligent and high-performance network communications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119603091B_ABST
    Figure CN119603091B_ABST
Patent Text Reader

Abstract

The present invention provides a Starflash-based intelligent wireless gateway and a terminal communication connection method, wherein the intelligent wireless gateway includes a device authentication unit, a gateway control unit, a Starflash communication unit, an encryption transmission unit, and a network adapter unit; the gateway control unit is respectively connected to the device authentication unit and the Starflash communication unit, the Starflash communication unit is connected to the encryption transmission unit, and the encryption transmission unit is connected to the network adapter unit; the Starflash communication unit includes multiple Starflash communication modules with different communication frequency bands; the device authentication unit stores preset device information and preset permission information of the terminal device. The present invention improves the performance of the intelligent wireless gateway through the Starflash communication unit and the network adapter unit, simplifies the configuration and adaptation process through the communication frequency band information, encrypts the data to be transmitted, and performs multiple authentications on the terminal device, thereby improving the compatibility and security of the wireless gateway and meeting the growing demand for intelligent, diversified, and high-performance network communications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a StarFlash-based intelligent wireless gateway and a terminal communication connection method. Background Art

[0002] With the rapid development of IoT technology, wireless gateways play a crucial role in connecting and interacting with various smart devices. Traditional wireless gateways primarily rely on wireless communication technologies such as Wi-Fi, Bluetooth, and ZigBee. Wi-Fi gateway signals are susceptible to interference, and transmission rates drop significantly in complex environments (such as those with multiple walls blocking access or when multiple devices are connected simultaneously). Bluetooth gateways have a short transmission range and limited data transmission rates. ZigBee gateways have slow transmission speeds. Consequently, traditional wireless gateways suffer from poor performance. Furthermore, traditional wireless gateways often require complex configuration and adaptation processes when faced with a large number of heterogeneous terminals. Furthermore, traditional wireless gateways are susceptible to risks such as hacker attacks and data leaks during data transmission. Consequently, traditional wireless gateways lack compatibility and security.

[0003] In summary, existing wireless gateways have deficiencies in performance, compatibility, and security, making it difficult to meet the growing demand for intelligent, diversified, and high-performance network communications. Summary of the Invention

[0004] The present invention provides a Star Flash-based intelligent wireless gateway and a terminal communication connection method, aiming to improve the performance, compatibility and security of the wireless gateway and meet the growing demand for intelligent, diversified and high-performance network communications.

[0005] In a first aspect, the present invention provides a Star Flash-based intelligent wireless gateway, comprising a device authentication unit, a gateway control unit, a Star Flash communication unit, an encryption transmission unit, and a network adaptation unit; the gateway control unit is respectively connected to the device authentication unit and the Star Flash communication unit, the Star Flash communication unit is connected to the encryption transmission unit, and the encryption transmission unit is connected to the network adaptation unit; the Star Flash communication unit includes a plurality of Star Flash communication modules with different communication frequency bands; the device authentication unit stores preset device information and preset authority information of a terminal device;

[0006] The gateway control unit is configured to:

[0007] Responding to a connection request signal from a target terminal device, obtaining target device information in the connection request signal; performing multiple authentication on the target device information according to the preset device information and the preset permission information, and establishing a communication connection between the target terminal device and a target Starflash communication module according to the authentication result; the communication frequency band of the target Starflash communication module is the same as the communication frequency band of the target terminal device;

[0008] Responding to a data transmission request from the target terminal device, obtaining the data to be transmitted carried in the data transmission request, and forwarding the data to be transmitted to the target Star Flash communication module;

[0009] The target star flash communication module is used to determine the target communication channel according to the wireless environment information of the current environment and the channel information of each communication channel, and forward the data to be transmitted to the encrypted transmission unit through the target communication channel;

[0010] The encryption transmission unit is used to encrypt the data to be transmitted according to the communication protocol of the data to be transmitted to obtain target transmission data;

[0011] The network adaptation unit is used to determine the target communication network according to the bandwidth information, delay information and load information of each external network, and send the target transmission data to the target communication network.

[0012] According to the Star Flash-based smart wireless gateway provided by an embodiment of the present invention, the target device information includes device identification information, device type information, device feature information and communication frequency band information; the preset device information includes a device identification list and a device feature list corresponding to the device type; the preset permission information includes a permission list corresponding to the device type and the first permission level of the smart wireless gateway;

[0013] The gateway control unit is configured to:

[0014] Performing device identification matching in the device identification list according to the device identification information, and determining whether there is a target device identification identical to the device identification information in the device identification list;

[0015] If the target device identification exists, determining whether the target terminal device supports the Star Flash function according to the device identification information;

[0016] If the Star Flash function is supported, feature matching is performed in the device feature list based on the device type information to obtain target device features corresponding to the device type information;

[0017] If the device characteristic information is consistent with the target device characteristic, performing permission matching in the permission list based on the device type information to obtain a second permission level of the target terminal device;

[0018] If the second authority level is higher than the first authority level, a target Starflash communication module with the same communication frequency band information is obtained in the Starflash communication unit, and a communication connection is established between the target terminal device and the target Starflash communication module.

[0019] According to the Starflash-based intelligent wireless gateway provided by an embodiment of the present invention, each Starflash communication module includes multiple communication channels; the channel information includes signal strength, signal-to-interference ratio, noise level and channel characteristics, and the channel characteristics characterize the congestion level of the communication channel; the wireless environment information includes path loss, multipath fading and shadow fading;

[0020] The target star flash communication module is used to:

[0021] determining a channel congestion coefficient for each communication channel based on a channel characteristic of each communication channel;

[0022] determining a signal validity index for each communication channel based on the signal strength, signal-to-interference ratio, and noise level of each communication channel;

[0023] Determining a channel stability index for each communication channel in the current environment based on the channel congestion coefficient and the path loss, multipath fading, and shadow fading of the current environment;

[0024] Determining a channel quality index of each communication channel based on a signal validity index of each communication channel and a channel stability index of each communication channel under the current environment;

[0025] The communication channel corresponding to the maximum channel quality indicator is determined as the target communication channel.

[0026] According to the Starflash-based intelligent wireless gateway provided by an embodiment of the present invention, the calculation formula for the channel quality index of each communication channel is as follows:

[0027] CQI i =SEI i *CSI i ;

[0028]

[0029] Among them, CQI i Represents the channel quality index of the i-th communication channel, SEI i Indicates the signal validity index of the i-th communication channel, CSI i Indicates the channel stability index of the i-th communication channel in the current environment, S i represents the signal strength of the i-th communication channel, N i represents the noise level of the i-th communication channel, SIR i represents the signal-to-interference ratio of the i-th communication channel, B i represents the channel congestion coefficient of the i-th communication channel, exp() represents the exponential function, PL represents path loss, MF represents multipath fading, and SF represents shadow fading.

[0030] According to the Star Flash-based intelligent wireless gateway provided by an embodiment of the present invention, the protocol identification field of the communication protocol includes a protocol version number, a source port number, and a data format;

[0031] The encryption transmission unit is used to:

[0032] Generate a binary key sequence based on the protocol version number and the source port number;

[0033] Splitting the data to be transmitted into multiple data packets based on the data format; the data packets include a packet header and a packet body, the packet header includes a source address, a destination address and a packet sequence number, and the packet body includes data content;

[0034] Encrypting each bit of the header of each data packet based on the binary key sequence, and encrypting each byte of the body of each data packet based on the binary key sequence to obtain an encrypted data packet;

[0035] Each encrypted data packet is sequentially connected to obtain the target transmission data.

[0036] According to the Star Flash-based intelligent wireless gateway provided by the embodiment of the present invention, the encryption function for encrypting each bit of the header of each data packet is:

[0037]

[0038] Among them, E H (H,U) represents the encrypted header, H represents the header, U represents the binary key sequence, h i Indicates the i-th bit after the header H is split bit by bit. The total length of the header is r bits. u imod256 represents the ith mod 256 binary key in the binary key sequence U, where mod() represents the modulo operation;

[0039] The encryption function for encrypting each byte of the packet body in each data packet is:

[0040]

[0041] Among them, E B (B,U) represents the encrypted package body, B represents the package body, b i Indicates the i-th byte in the packet B, m indicates the byte length of the packet B, u (i*3)mod256 represents the (i*3) mod 256 binary key in the binary key sequence U, u (i*5)mod256 Represents the (i*5) mod 256 binary key in the binary key sequence U.

[0042] According to the Starflash-based intelligent wireless gateway provided by an embodiment of the present invention, the network adaptation unit is configured to:

[0043] determining an available bandwidth scaling factor for each external network based on the load information of each external network;

[0044] determining a network stability factor for each external network based on the delay information and the load information of each external network;

[0045] determining a weighted bandwidth for each external network based on the bandwidth information, the available bandwidth scaling factor, and the delay information of each external network;

[0046] Determine a comprehensive network performance score for each external network based on the network stability factor, weighted bandwidth, and latency information of each external network;

[0047] The external network corresponding to the largest network comprehensive performance score is determined as the target communication network.

[0048] According to the Starflash-based intelligent wireless gateway provided by an embodiment of the present invention, the calculation formula for the network comprehensive performance score of each external network is as follows:

[0049]

[0050] Among them, Score i represents the comprehensive performance score of the ith external network, WB i Denotes the weighted bandwidth of the i-th external network, BF i represents the network stability factor of the i-th external network, Lat i Indicates the delay information of the i-th external network, BW i Indicates the bandwidth information of the i-th external network, AF i Indicates the available bandwidth scaling factor of the i-th external network, Load i Represents the load information of the i-th external network.

[0051] In a second aspect, the present invention further provides a terminal communication connection method, which is implemented based on the Star Flash-based intelligent wireless gateway described in the first aspect, and the terminal communication connection method includes:

[0052] Responding to a connection request signal from a target terminal device, obtaining device identification information, device type information, device feature information, and communication frequency band information from the connection request signal;

[0053] Performing device identification matching in a device identification list according to the device identification information, and determining whether there is a target device identification identical to the device identification information in the device identification list;

[0054] If the target device identification exists, determining whether the target terminal device supports the Star Flash function according to the device identification information;

[0055] If the Star Flash function is supported, feature matching is performed in the device feature list based on the device type information to obtain the target device features corresponding to the device type information;

[0056] If the device characteristic information is consistent with the target device characteristic, performing permission matching in the permission list based on the device type information to obtain a second permission level of the target terminal device;

[0057] If the second authority level is higher than the first authority level of the smart wireless gateway, a target Star Flash communication module with the same communication frequency band information is obtained in the smart wireless gateway, and a communication connection is established between the target terminal device and the target Star Flash communication module.

[0058] According to the terminal communication connection method provided by an embodiment of the present invention, the terminal communication connection method further includes:

[0059] During the life cycle of the communication connection, a heartbeat detection signal is sent to the target terminal device at a preset interval, so that the target terminal device returns a response signal based on the heartbeat detection signal;

[0060] If the response signal returned by the target terminal device is not received for a preset number of consecutive times, the communication connection between the target terminal device and the target Star Flash communication module is disconnected. After monitoring the restart startup instruction of the target terminal device, the communication connection is restored according to the startup instruction.

[0061] In a third aspect, the present invention further provides an electronic device, comprising: a memory for storing a computer software program; a processor for reading and executing the computer software program, thereby implementing any of the above-mentioned terminal communication connection methods.

[0062] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium, wherein the storage medium stores a computer software program, and when the computer software program is executed by a processor, it implements any of the terminal communication connection methods described above.

[0063] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, which implements any of the above-described terminal communication connection methods when executed by a processor.

[0064] The Starflash-based smart wireless gateway provided by the embodiments of the present invention, firstly, connects terminal devices to the smart wireless gateway via Starflash communication. Because Starflash communication supports multi-hop transmission, it effectively expands the coverage range of the smart wireless gateway. Furthermore, Starflash communication has strong anti-interference capabilities, enabling stable data transmission even in complex electromagnetic environments, reducing signal loss and interruptions, and improving the stability of the smart wireless gateway. Secondly, Starflash communication enables high-speed data transmission, and, through a network adapter unit, sends target transmission data to a target communication network with the best communication quality, thereby increasing the data transmission rate of the smart wireless gateway. Therefore, the Starflash communication unit and the network adapter unit enhance the performance of the smart wireless gateway. Thirdly, when connecting a terminal device to the smart wireless gateway, a communication connection is established between the terminal device and the Starflash communication module in the same communication frequency band. Therefore, the shared communication frequency band information simplifies the configuration and adaptation process, improving the compatibility of the smart wireless gateway. Fourthly, during the data transmission process, the data to be transmitted is encrypted. Furthermore, when a terminal device connects to the smart wireless gateway, multiple authentications are required for the terminal device, preventing the wireless gateway from being intruded by malicious devices and improving the security of the smart wireless gateway. In summary, the StarFlash-based intelligent wireless gateway provided by the embodiments of the present invention can meet the growing demand for intelligent, diversified and high-performance network communications. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 This is a schematic diagram of the structure of the Star Flash-based intelligent wireless gateway provided by the present invention;

[0066] Figure 2 It is a flow chart of the terminal communication connection method provided by the present invention;

[0067] Figure 3 An embodiment diagram of an electronic device provided by an embodiment of the present invention;

[0068] Figure 4 An embodiment diagram of a computer-readable storage medium provided for an embodiment of the present invention. DETAILED DESCRIPTION

[0069] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. 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 those skilled in the art without making any creative efforts shall fall within the scope of protection of the present invention.

[0070] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature specified as "first" or "second" may explicitly or implicitly include one or more of the specified features. In the description of the present invention, "plurality" means two or more, unless otherwise specifically defined.

[0071] In the description of the present invention, the term "for example" is used to mean "used as an example, illustration or illustration". Any embodiment of the present invention described as "for example" is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any person skilled in the art to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the present invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed herein.

[0072] Optional, see Figure 1 As shown, Figure 1 This figure is a schematic diagram of the structure of the Starflash-based intelligent wireless gateway provided by the present invention. The Starflash-based intelligent wireless gateway includes a device authentication unit, a gateway control unit, a Starflash communication unit, an encryption transmission unit, and a network adapter unit. The gateway control unit is connected to the device authentication unit and the Starflash communication unit, respectively. The Starflash communication unit is connected to the encryption transmission unit, and the encryption transmission unit is connected to the network adapter unit.

[0073] In one embodiment, the star flash communication unit in the embodiment of the present invention includes a plurality of star flash communication modules with different communication frequency bands, such as Figure 1 The star flash communication unit can include a star flash communication module for communication frequency band 1, a star flash communication module for communication frequency band 2, ..., a star flash communication module for communication frequency band n.

[0074] In one embodiment, the device authentication unit stores preset device information and preset permission information of the terminal device, wherein the preset device information includes a device identification list of all device identifications and a device feature list corresponding to each device type, and the preset permission information includes a permission list corresponding to each device type and the first permission level of the smart wireless gateway.

[0075] Optionally, any target terminal device in the terminal device cluster needs to connect to the smart wireless gateway before transmitting data through the smart wireless gateway. The target terminal device initiates a connection request to the smart wireless gateway. Therefore, the gateway control unit responds to the connection request signal from the target terminal device and obtains the target device information in the connection request signal, wherein the target device information includes device identification information, device type information, device feature information, and communication frequency band information.

[0076] Furthermore, the gateway control unit performs multiple authentications on the target terminal device's target device information based on the preset device information and preset permission information stored in the device authentication unit, and obtains an authentication result. If the authentication result is determined to be authentication passed, the gateway control unit establishes a communication connection between the target terminal device and the target Starflash communication module, wherein the communication frequency band of the target Starflash communication module is the same as the communication frequency band of the target terminal device, as described in detail in steps 101 to 105. If the authentication result is determined to be authentication failed, the gateway control unit rejects the target terminal device's connection request.

[0077] Optionally, after establishing a communication connection between the target terminal device and the smart wireless gateway, the target terminal device can transmit data through the smart wireless gateway. Therefore, when data transmission is required, the target terminal device encapsulates the data according to the Star Flash communication protocol and initiates a data transmission request to the smart wireless gateway. The gateway control unit then responds to the data transmission request from the target terminal device, obtains the data to be transmitted contained in the data transmission request, and forwards the data to be transmitted to the target Star Flash communication module.

[0078] Optionally, each Starflash communication module includes multiple communication channels. After the target Starflash communication module receives the data to be transmitted, it obtains the wireless environment information of the current environment and the channel information of each communication channel in the target Starflash communication module, wherein the wireless environment information includes path loss, multipath fading and shadow fading, and the channel information includes signal strength, signal-to-interference ratio, noise level and channel characteristics.

[0079] Furthermore, the target star flash communication module determines the target communication channel with the best communication quality in the target star flash communication module based on the wireless environment information of the current environment and the channel information of each communication channel in the target star flash communication module, as described in steps 201 to 205, and forwards the data to be transmitted to the encrypted transmission unit through the target communication channel.

[0080] Optionally, after receiving the data to be transmitted, the encryption transmission unit parses the communication protocol of the data to be transmitted to obtain a protocol identification field in the communication protocol, wherein the protocol identification field includes, for example, a protocol version number, a source port number, and a data format.

[0081] Furthermore, the encryption transmission unit encrypts the data to be transmitted according to the protocol identification field in the communication protocol to obtain target transmission data, as specifically described in steps 301 to 304 .

[0082] Optionally, the network adaptation unit in the embodiment of the present invention can connect to various types of external networks, such as Ethernet, 5G cellular network, satellite network, etc. The communication quality of different external networks is different at different times and in different environments.

[0083] Therefore, the network adaptation unit obtains bandwidth information, delay information and load information of each external network, and determines the communication quality of each external network based on the bandwidth information, delay information and load information of each external network, as described in detail in steps 401 to 405.

[0084] Furthermore, the network adaptation unit determines the external network with the best communication quality as the target communication network, and sends the target transmission data to the target communication network, thereby achieving efficient transmission of data between the target terminal device and the external network.

[0085] Furthermore, the intelligent wireless gateway in this embodiment of the present invention also includes an intelligent power management unit, which is connected to the device authentication unit, gateway control unit, Star Flash communication unit, encryption transmission unit, and network adaptation unit. The intelligent power management unit dynamically adjusts the supply voltage and current based on the real-time workload and power requirements of each unit to achieve energy conservation and consumption reduction. At the same time, when the external power supply is disconnected, it can provide the corresponding operating voltage for each unit to ensure the stable operation of the intelligent wireless gateway.

[0086] The Starflash-based smart wireless gateway provided by the embodiments of the present invention, firstly, connects terminal devices to the smart wireless gateway via Starflash communication. Because Starflash communication supports multi-hop transmission, it effectively expands the coverage range of the smart wireless gateway. Furthermore, Starflash communication has strong anti-interference capabilities, enabling stable data transmission even in complex electromagnetic environments, reducing signal loss and interruptions, and improving the stability of the smart wireless gateway. Secondly, Starflash communication enables high-speed data transmission, and, through a network adapter unit, sends target transmission data to a target communication network with the best communication quality, thereby increasing the data transmission rate of the smart wireless gateway. Therefore, the Starflash communication unit and the network adapter unit enhance the performance of the smart wireless gateway. Thirdly, when connecting a terminal device to the smart wireless gateway, a communication connection is established between the terminal device and the Starflash communication module in the same communication frequency band. Therefore, the shared communication frequency band information simplifies the configuration and adaptation process, improving the compatibility of the smart wireless gateway. Fourthly, during the data transmission process, the data to be transmitted is encrypted. Furthermore, when a terminal device connects to the smart wireless gateway, multiple authentications are required for the terminal device, preventing the wireless gateway from being intruded by malicious devices and improving the security of the smart wireless gateway. In summary, the StarFlash-based intelligent wireless gateway provided by the embodiments of the present invention can meet the growing demand for intelligent, diversified and high-performance network communications.

[0087] In one embodiment, the target device information includes device identification information, device type information, device feature information, and communication frequency band information; the preset device information includes a device identification list and a device feature list corresponding to the device type; the preset permission information includes a permission list corresponding to the device type and the first permission level of the smart wireless gateway; and steps 101 to 105 are described as follows:

[0088] Step 101: Match the device identification information in the device identification list to determine whether there is a target device identification in the device identification list that is identical to the device identification information.

[0089] Step 102: If the target device identification exists, determine whether the target terminal device supports the Star Flash function according to the device identification information;

[0090] Step 103: If the Star Flash function is supported, feature matching is performed in the device feature list based on the device type information to obtain target device features corresponding to the device type information;

[0091] Step 104: If the device characteristic information is consistent with the target device characteristic, then a permission match is performed in the permission list based on the device type information to obtain the second permission level of the target terminal device;

[0092] Step 105: If the second authority level is higher than the first authority level, a target Starflash communication module with the same communication frequency band information is obtained in the Starflash communication unit, and a communication connection is established between the target terminal device and the target Starflash communication module.

[0093] Specifically, the gateway control unit performs device identification matching in the device identification list according to the device identification information, and determines whether there is a target device identification identical to the device identification information in the device identification list.

[0094] Furthermore, if it is determined that there is no target device identification that is identical to the device identification information, the gateway control unit determines that the target terminal device is an abnormal device and rejects the connection request of the target terminal device.

[0095] Furthermore, if it is determined that there is a target device identification that is identical to the device identification information, the gateway control unit matches the preset function list according to the device identification information, obtains the capabilities supported by the target terminal device, and determines whether the target terminal device supports the Star Flash function, wherein the preset function list is a mapping relationship list established in advance based on each device identification information and its corresponding function.

[0096] Furthermore, if it is determined that the target terminal device does not support the Star Flash function, the gateway control unit rejects the target terminal device's connection request. If it is determined that the target terminal device supports the Star Flash function, the gateway control unit performs feature matching in the device feature list based on the device type information, obtains the target device features corresponding to the device type information, and determines whether the device feature information is consistent with the target device features.

[0097] Furthermore, if it is determined that the device characteristic information is inconsistent with the target device characteristic, the gateway control unit rejects the target terminal device's connection request. If it is determined that the device characteristic information is consistent with the target device characteristic, the gateway control unit performs a permission match in the permission list based on the device type information, obtains the second permission level of the target terminal device, and determines whether the second permission level is higher than the first permission level.

[0098] In one embodiment, the device feature information is device feature A1, and the target device feature matched in the device feature list according to the device type information is A2. The device feature information does not match the target device feature, which may be because the target terminal device has been tampered with, and the gateway control unit rejects the target terminal device connection request.

[0099] Furthermore, if it is determined that the second permission level is lower than the first permission level, the gateway control unit rejects the connection request of the target terminal device. If it is determined that the second permission level is higher than the first permission level, the gateway control unit obtains a target Starflash communication module with the same communication frequency band information from the Starflash communication unit and establishes a communication connection between the target terminal device and the target Starflash communication module.

[0100] In one embodiment, the first authority level is 4, the second authority level of the target terminal device 1 is 5, the second authority level of the target terminal device 2 is 3, and the second authority level of the target terminal device 3 is 4. Since the authority levels of the target terminal device 1 and the target terminal device 3 are higher than the first authority level, and the authority level of the target terminal device 2 is lower than the first authority level, a communication connection is established between the target terminal device 1 and the target terminal device 3 and their corresponding target Star Flash communication modules.

[0101] The embodiment of the present invention performs multiple authentications on the target terminal device through device identification, device characteristics, and authority level, thereby preventing the wireless gateway from being invaded by malicious devices and improving the security of the intelligent wireless gateway.

[0102] In one embodiment, each Star Flash communication module includes multiple communication channels, and the channel information includes signal strength, signal-to-interference ratio, noise level, and channel characteristics, wherein the signal strength indicates the power of the signal received by the channel, the signal-to-interference ratio indicates the ratio of signal power to interference power, and the noise level reflects the background noise power of the channel. The wireless environment information includes path loss, multipath fading, and shadow fading, wherein the path loss reflects the power attenuation caused by distance and obstacles in the signal propagation process, multipath fading characterizes the signal amplitude fluctuation caused by multipath propagation, and shadow fading characterizes the slow change and fading of the signal caused by large obstacles. Therefore, the description of steps 201 to 205 is as follows:

[0103] Step 201: Determine the channel congestion coefficient of each communication channel based on the channel characteristics of each communication channel.

[0104] The channel characteristics of the embodiment of the present invention represent the congestion level of the communication channel. If the communication channel is severely congested, it means that there are many interference sources on the communication channel, affecting the signal transmission quality. Different channel characteristics correspond to different channel congestion coefficients.

[0105] The channel characteristics of each communication channel are determined based on its data transmission rate. For example, when the data transmission rate is less than a first preset rate threshold, the channel characteristic is high congestion. When the data transmission rate is greater than or equal to the first preset rate threshold and less than a second preset rate threshold, the channel characteristic is medium congestion. When the data transmission rate is greater than or equal to the second preset rate threshold, the channel characteristic is low congestion. Therefore, channel characteristics can be divided into low congestion, medium congestion, and high congestion. The congestion coefficient of a high congestion channel is greater than the congestion coefficient of a medium congestion channel, and the congestion coefficient of a medium congestion channel is greater than the congestion coefficient of a low congestion channel.

[0106] Therefore, the target star flash communication module matches the channel characteristics of each communication channel in the target star flash communication module in the coefficient list to obtain the channel congestion coefficient of each communication channel, wherein the coefficient list is a mapping relationship table constructed in advance according to the channel characteristics and their corresponding channel congestion coefficients.

[0107] Step 202: Determine the signal validity index of each communication channel based on the signal strength, signal-to-interference ratio, and noise level of each communication channel.

[0108] Furthermore, the target star flash communication module determines the signal effectiveness index of each communication channel based on the signal strength, signal-to-interference ratio and noise level of each communication channel. The specific calculation formula is as follows:

[0109]

[0110] SEI i Indicates the signal validity index of the i-th communication channel, S i represents the signal strength of the i-th communication channel, N i represents the noise level of the i-th communication channel, SIR i represents the signal-to-interference ratio of the i-th communication channel.

[0111] Step 203 : determining a channel stability index of each communication channel in the current environment based on the channel congestion coefficient and the path loss, multipath fading, and shadow fading of the current environment.

[0112] Furthermore, the target star flash communication module determines the channel stability index of each communication channel in the current environment based on the channel congestion coefficient of each communication channel, as well as the path loss, multipath fading, and shadow fading of the current environment. The specific formula is as follows:

[0113]

[0114] Among them, CSI i Indicates the channel stability index of the i-th communication channel in the current environment, B i represents the channel congestion coefficient of the i-th communication channel, exp() represents the exponential function, PL represents path loss, MF represents multipath fading, and SF represents shadow fading.

[0115] Step 204 : Determine a channel quality index of each communication channel based on the signal validity index of each communication channel and the channel stability index of each communication channel under the current environment.

[0116] Furthermore, the target star flash communication module determines the channel quality index of each communication channel according to the signal validity index of each communication channel and the channel stability index of each communication channel in the current environment. The specific calculation formula is as follows:

[0117] CQI i =SEI i *CSI i .

[0118] Among them, CQI i represents the channel quality indicator of the i-th communication channel.

[0119] Step 205: Determine the communication channel corresponding to the maximum channel quality indicator as the target communication channel.

[0120] Furthermore, the target star flash communication module traverses the channel quality index of each communication channel and determines the communication channel corresponding to the largest channel quality index as the target communication channel.

[0121] In one embodiment, the target star flash communication module has channels 1 and 2. Channel 1 has a signal strength of S1 = -70 dBm, a noise level of N1 = -90 dBm, a signal-to-interference ratio (SIR1) of 15 dBm, and a channel congestion coefficient (B1) of 0.6. Channel 2 has a signal strength of S2 = -65 dBm, a noise level of N2 = -88 dBm, a signal-to-interference ratio (SIR2) of 18 dB, and a channel congestion coefficient (B2) of 0.4. Path loss PL = 25 dB, multipath fading MF = 8 dB, and shadow fading SF = 5 dB.

[0122] Channel quality indicator of channel 1

[0123] Channel quality indicator of channel 2

[0124] Since CQI1 is greater than CQI2, channel 1 is the target communication channel.

[0125] The embodiment of the present invention accurately determines the target communication channel with the best channel quality in each target Star Flash communication module based on signal strength, signal-to-interference ratio, noise level and channel characteristics, as well as signal path loss, multipath fading and shadow fading. Therefore, the data transmission rate can be accelerated through the target communication channel, thereby improving the data transmission rate of the intelligent wireless gateway.

[0126] In one embodiment, the protocol identification field of the communication protocol includes a protocol version number, a source port number, and a data format. Steps 301 to 304 are described as follows:

[0127] Step 301: Generate a binary key sequence based on the protocol version number and the source port number.

[0128] Specifically, the encryption transmission unit determines the key seed according to the protocol version number and the source port number, wherein the protocol version number and the source port number are both integers. Therefore, the key seed K can be expressed as:

[0129] K=(V*P) 2 +(V+P) 3 .

[0130] Furthermore, the encryption transmission unit converts the key seed K into a corresponding binary number, and expands the binary number corresponding to the key seed K into a binary sequence of preset bits to generate a binary key sequence, wherein the preset number of bits is set according to actual conditions, such as the preset number of bits is 128, 256, etc. Therefore, the binary key sequence can be expressed as U = {u1, u2, ..., u n}, n represents the number of preset digits, u i represents the i-th binary key.

[0131] In an embodiment of the present invention, the encryption transmission unit obtains a digit difference based on the number of digits of the binary number corresponding to the key seed K and a preset number of digits, and expands the high-order bits of the binary number corresponding to the key seed K using a binary pair (0, 1), with the number of digits expanded being one-quarter of the digit difference. Similarly, the low-order bits of the binary number corresponding to the key seed K are expanded using a binary pair (1, 0), with the number of digits expanded being one-quarter of the digit difference. In one embodiment, the preset number of digits is 18, the protocol version number is 3, the source port number is 5, the key seed K = 737, and the binary number corresponding to the key seed K is 1011100001. Therefore, the digit difference between the number of digits of the binary number corresponding to the key seed K and the preset number of digits is 18-10=8. Therefore, the binary key sequence can be expressed as 010110111000011010.

[0132] Step 302: Split the data to be transmitted into multiple data packets based on the data format.

[0133] The data packet in the embodiment of the present invention includes a header and a body. The header includes the source address, destination address, and data packet sequence number, and the body includes the actual data content to be transmitted. Therefore, the encryption transmission unit splits the data to be transmitted into multiple data packets according to the data format, that is, the (header, body) data format.

[0134] Step 303: encrypt each bit of the header in each data packet based on the binary key sequence, and encrypt each byte of the body in each data packet based on the binary key sequence to obtain an encrypted data packet.

[0135] Furthermore, the preset number of bits in the embodiment of the present invention is 256, so the binary key sequence is U={u1,u2,...,u256}, for each packet header:

[0136] Optionally, the encryption transmission unit encrypts each bit of the header of each data packet according to the binary key sequence. The specific encryption function is:

[0137]

[0138] Among them, E H (H,U) represents the encrypted header, H represents the header, U represents the binary key sequence, h i Indicates the i-th bit after the header H is split bit by bit. The total length of the header is r bits. u imod256 It represents the ith mod 256 binary key in the binary key sequence U, and mod() represents the modulo operation.

[0139] For each data packet body:

[0140] Optionally, the encryption transmission unit encrypts each byte of the packet body in each data packet according to the binary key sequence. The specific encryption function is:

[0141]

[0142] Among them, E B (B,U) represents the encrypted package body, B represents the package body, b i Indicates the i-th byte in the packet B, m indicates the byte length of the packet B, u (i*3)mod256 represents the (i*3) mod 256 binary key in the binary key sequence U, u (i*5)mod256 Represents the (i*5) mod 256 binary key in the binary key sequence U.

[0143] Furthermore, the encryption transmission unit combines the encrypted header and the encrypted body of each data packet to obtain an encrypted data packet of each data packet.

[0144] Step 304: connect each encrypted data packet in sequence to obtain target transmission data.

[0145] Furthermore, the encryption transmission unit connects each encrypted data packet in sequence according to the order in which each data packet is split to obtain target transmission data.

[0146] It should be noted that after the subsequent server receives the target transmission data, the function for decrypting the target transmission data is as follows:

[0147]

[0148] The embodiment of the present invention encrypts the data to be transmitted during the data transmission process, thereby preventing the data from being cracked during the transmission process and causing data leakage, thereby improving the security of the intelligent wireless gateway.

[0149] In one embodiment, steps 401 to 405 are described as follows:

[0150] Step 401: Determine the available bandwidth proportional factor of each external network based on the load information of each external network.

[0151] Specifically, the network adaptation unit determines the available bandwidth proportional factor of each external network according to the load information of each external network. The specific calculation formula is as follows:

[0152] AF i =1-Load i ;

[0153] Among them, AF i Indicates the available bandwidth scaling factor of the i-th external network, Load i Indicates the load information of the ith external network. The load information in the embodiment of the present invention is expressed in decimal form, such as 0.3 represents a 30% load. Therefore, if the load information is 0.3, the available bandwidth proportional factor is 1-0.3=0.7.

[0154] Step 402: Determine a network stability factor of each external network based on the delay information and load information of each external network.

[0155] Furthermore, the network adaptation unit determines the network stability factor of each external network based on the delay information and load information of each external network. The specific calculation formula is as follows:

[0156]

[0157] Among them, BF i represents the network stability factor of the i-th external network, Lat i Represents the delay information of the i-th external network.

[0158] In the embodiment of the present invention, the delay information is the delay time, such as 30ms. If the load information is 0.5, the delay information is 30ms. Therefore,

[0159] Step 403: Determine the weighted bandwidth of each external network based on the bandwidth information, available bandwidth scaling factor, and delay information of each external network.

[0160] Furthermore, the network adaptation unit determines the weighted bandwidth of each external network based on the bandwidth information, available bandwidth scaling factor, and delay information of each external network. The specific calculation formula is as follows:

[0161]

[0162] WB i Represents the weighted bandwidth of the i-th external network, BW i Indicates the bandwidth information of the i-th external network.

[0163] Step 404 : Determine a comprehensive network performance score for each external network based on the network stability factor, weighted bandwidth, and delay information of each external network.

[0164] Furthermore, the network adaptation unit determines the comprehensive network performance score of each external network based on the network stability factor, weighted bandwidth, and delay information of each external network. The specific calculation formula is as follows:

[0165]

[0166] Among them, Score i represents the comprehensive network performance score of the i-th external network.

[0167] Step 405: Determine the external network with the largest network comprehensive performance score as the target communication network.

[0168] Furthermore, the network adaptation unit traverses the network comprehensive performance score of each external network and determines the external network with the largest network comprehensive performance score as the target communication network.

[0169] The embodiment of the present invention determines the target communication network with the best communication quality according to the bandwidth information, delay information and load information of each external network, sends the target transmission data to the target communication network with the best communication quality, and improves the data transmission rate of the intelligent wireless gateway.

[0170] Optional, see Figure 2 , Figure 2 This is a flow chart of the terminal communication connection method provided by the present invention. The execution subject of the terminal communication connection method in the embodiment of the present invention is a smart wireless gateway based on Xingshan. Therefore, the terminal communication connection method includes:

[0171] Step 10, responding to the connection request signal of the target terminal device, obtaining the device identification information, device type information, device feature information and communication frequency band information in the connection request signal;

[0172] Step 20: Match the device identification in the device identification list according to the device identification information to determine whether there is a target device identification in the device identification list that is identical to the device identification information;

[0173] Step 30: If the target device identification exists, determine whether the target terminal device supports the Star Flash function according to the device identification information;

[0174] Step 40: If the Star Flash function is supported, feature matching is performed in the device feature list based on the device type information to obtain target device features corresponding to the device type information;

[0175] Step 50: If the device feature information is consistent with the target device feature, then a permission match is performed in the permission list based on the device type information to obtain the second permission level of the target terminal device;

[0176] Step 60: If the second authority level is higher than the first authority level of the smart wireless gateway, a target Star Flash communication module with the same communication frequency band information is obtained in the smart wireless gateway, and a communication connection is established between the target terminal device and the target Star Flash communication module.

[0177] Specifically, before any target terminal device in the terminal device cluster can transmit data through the smart wireless gateway, it must connect to the smart wireless gateway. The target terminal device initiates a connection request to the smart wireless gateway. Therefore, the smart wireless gateway responds to the connection request signal from the target terminal device and obtains the target device information in the connection request signal, including device identification information, device type information, device feature information, and communication frequency band information.

[0178] Furthermore, the intelligent wireless gateway performs device identification matching in the device identification list according to the device identification information, and determines whether there is a target device identification identical to the device identification information in the device identification list.

[0179] Furthermore, if it is determined that there is no target device identification identical to the device identification information, the intelligent wireless gateway determines that the target terminal device is an abnormal device and rejects the connection request of the target terminal device.

[0180] Furthermore, if it is determined that there is a target device identification that is identical to the device identification information, the intelligent wireless gateway matches the preset function list according to the device identification information, obtains the capabilities supported by the target terminal device, and determines whether the target terminal device supports the Star Flash function, wherein the preset function list is a mapping relationship list established in advance based on each device identification information and its corresponding function.

[0181] Furthermore, if it is determined that the target terminal device does not support the Star Flash function, the smart wireless gateway rejects the target terminal device's connection request. If it is determined that the target terminal device supports the Star Flash function, the smart wireless gateway performs feature matching in the device feature list based on the device type information, obtains the target device feature corresponding to the device type information, and determines whether the device feature information is consistent with the target device feature.

[0182] Furthermore, if it is determined that the device characteristic information is inconsistent with the target device characteristic, the smart wireless gateway rejects the target terminal device's connection request. If it is determined that the device characteristic information is consistent with the target device characteristic, the smart wireless gateway performs a permission match in the permission list based on the device type information, obtains a second permission level of the target terminal device, and determines whether the second permission level is higher than the first permission level.

[0183] In one embodiment, the device feature information is device feature A1, and the target device feature matched in the device feature list according to the device type information is A2. The device feature information does not match the target device feature, which may be because the target terminal device has been tampered with, and the smart wireless gateway rejects the target terminal device connection request.

[0184] Furthermore, if it is determined that the second permission level is lower than the first permission level, the intelligent wireless gateway rejects the connection request of the target terminal device. If it is determined that the second permission level is higher than the first permission level, the intelligent wireless gateway obtains the target Star Flash communication module with the same communication frequency band information in the Star Flash communication unit and establishes a communication connection between the target terminal device and the target Star Flash communication module.

[0185] In one embodiment, the first authority level is 4, the second authority level of the target terminal device 1 is 5, the second authority level of the target terminal device 2 is 3, and the second authority level of the target terminal device 3 is 4. Since the authority levels of the target terminal device 1 and the target terminal device 3 are higher than the first authority level, and the authority level of the target terminal device 2 is lower than the first authority level, a communication connection is established between the target terminal device 1 and the target terminal device 3 and their corresponding target Star Flash communication modules.

[0186] In one embodiment, the terminal communication connection method further includes:

[0187] During the life cycle of the communication connection, a heartbeat detection signal is sent to the target terminal device at a preset interval, so that the target terminal device returns a response signal based on the heartbeat detection signal;

[0188] If the response signal returned by the target terminal device is not received for a preset number of consecutive times, the communication connection between the target terminal device and the target Star Flash communication module will be disconnected. After monitoring the restart startup instruction of the target terminal device, the communication connection will be restored according to the startup instruction.

[0189] Specifically, during the entire life cycle of the communication connection, the intelligent wireless gateway sends a heartbeat detection signal to the target terminal device at intervals of a preset time, wherein the preset time is set according to actual conditions.

[0190] After receiving the heartbeat detection signal, the target terminal device needs to return a response signal to the smart wireless gateway based on the heartbeat detection signal. If the response signal is not received from the target terminal device for a preset number of consecutive times, the smart wireless gateway disconnects the communication connection between the target terminal device and the target Star Flash communication module. After detecting the target terminal device's restart instruction, the communication connection is restored according to the startup instruction. The preset number of times is set according to actual conditions, such as 5, 10, 20, etc.

[0191] According to the first aspect of the embodiment of the present invention, the terminal device is connected to the intelligent wireless gateway through Star Flash Communication. Since Star Flash Communication supports multi-hop transmission, it effectively expands the coverage range of the intelligent wireless gateway. At the same time, Star Flash Communication has strong anti-interference ability and can transmit data stably even in complex electromagnetic environments, reducing signal packet loss and interruption. Star Flash Communication can transmit data at high speed, thereby improving the stability and data transmission rate of the intelligent wireless gateway and comprehensively improving the performance of the intelligent wireless gateway. According to the second aspect, in the process of connecting the terminal device to the intelligent wireless gateway, a communication connection is established between the terminal device and the Star Flash Communication module with the same communication frequency band. Therefore, the configuration and adaptation process is simplified through the same communication frequency band information, and the compatibility of the intelligent wireless gateway is improved. According to the third aspect, when the terminal device connects to the intelligent wireless gateway, multiple authentications are required for the terminal device to prevent the wireless gateway from being invaded by malicious devices, thereby improving the security of the intelligent wireless gateway. In summary, the embodiment of the present invention can meet the growing demand for intelligent, diversified and high-performance network communications.

[0192] See also Figure 3 , Figure 3 This is a diagram of an embodiment of an electronic device provided by an embodiment of the present invention. Figure 3 As shown, an embodiment of the present invention provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320. When the processor 320 executes the computer program 311, the following steps are implemented:

[0193] Responding to a connection request signal from a target terminal device, obtaining device identification information, device type information, device feature information, and communication frequency band information in the connection request signal;

[0194] Perform device identification matching in the device identification list according to the device identification information, and determine whether there is a target device identification in the device identification list that is identical to the device identification information;

[0195] If there is a target device identification, determine whether the target terminal device supports the Star Flash function based on the device identification information;

[0196] If the Star Flash function is supported, feature matching is performed in the device feature list based on the device type information to obtain the target device features corresponding to the device type information;

[0197] If the device feature information is consistent with the target device feature, then the permission is matched in the permission list based on the device type information to obtain the second permission level of the target terminal device;

[0198] If the second authority level is higher than the first authority level of the smart wireless gateway, a target Star Flash communication module with the same communication frequency band information is obtained in the smart wireless gateway, and a communication connection is established between the target terminal device and the target Star Flash communication module.

[0199] See also Figure 4 , Figure 4 Detailed description of an embodiment of a computer-readable storage medium provided by an embodiment of the present invention. Figure 4 As shown, this embodiment provides a computer-readable storage medium 400 on which a computer program 311 is stored. When the computer program 311 is executed by a processor, the following steps are implemented:

[0200] Responding to a connection request signal from a target terminal device, obtaining device identification information, device type information, device feature information, and communication frequency band information in the connection request signal;

[0201] Perform device identification matching in the device identification list according to the device identification information, and determine whether there is a target device identification in the device identification list that is identical to the device identification information;

[0202] If there is a target device identification, determine whether the target terminal device supports the Star Flash function based on the device identification information;

[0203] If the Star Flash function is supported, feature matching is performed in the device feature list based on the device type information to obtain the target device features corresponding to the device type information;

[0204] If the device feature information is consistent with the target device feature, then the permission is matched in the permission list based on the device type information to obtain the second permission level of the target terminal device;

[0205] If the second authority level is higher than the first authority level of the smart wireless gateway, a target Star Flash communication module with the same communication frequency band information is obtained in the smart wireless gateway, and a communication connection is established between the target terminal device and the target Star Flash communication module.

[0206] On the other hand, the present invention further provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can perform the terminal communication connection method provided by the above methods. The terminal communication connection method includes:

[0207] Responding to a connection request signal from a target terminal device, obtaining device identification information, device type information, device feature information, and communication frequency band information in the connection request signal;

[0208] Perform device identification matching in the device identification list according to the device identification information, and determine whether there is a target device identification in the device identification list that is identical to the device identification information;

[0209] If there is a target device identification, determine whether the target terminal device supports the Star Flash function based on the device identification information;

[0210] If the Star Flash function is supported, feature matching is performed in the device feature list based on the device type information to obtain the target device features corresponding to the device type information;

[0211] If the device feature information is consistent with the target device feature, then the permission is matched in the permission list based on the device type information to obtain the second permission level of the target terminal device;

[0212] If the second authority level is higher than the first authority level of the smart wireless gateway, a target Star Flash communication module with the same communication frequency band information is obtained in the smart wireless gateway, and a communication connection is established between the target terminal device and the target Star Flash communication module.

[0213] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0214] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.

[0215] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A smart wireless gateway based on Star Flash, characterized in that: It includes a device authentication unit, a gateway control unit, a star flash communication unit, an encryption transmission unit and a network adapter unit; the gateway control unit is connected to the device authentication unit and the star flash communication unit respectively, the star flash communication unit is connected to the encryption transmission unit, and the encryption transmission unit is connected to the network adapter unit; the star flash communication unit includes a plurality of star flash communication modules with different communication frequency bands; the device authentication unit stores preset device information and preset authority information of the terminal device; The gateway control unit is configured to: Responding to a connection request signal from a target terminal device, obtaining target device information in the connection request signal; performing multiple authentication on the target device information according to the preset device information and the preset authority information, and establishing a communication connection between the target terminal device and the target Star Flash communication module according to the authentication result; The communication frequency band of the target star flash communication module is the same as the communication frequency band of the target terminal device; Responding to a data transmission request from the target terminal device, obtaining the data to be transmitted carried in the data transmission request, and forwarding the data to be transmitted to the target Star Flash communication module; The target star flash communication module is used to determine the target communication channel according to the wireless environment information of the current environment and the channel information of each communication channel, and forward the data to be transmitted to the encrypted transmission unit through the target communication channel; The encryption transmission unit is used to encrypt the data to be transmitted according to the communication protocol of the data to be transmitted to obtain target transmission data; The network adaptation unit is configured to determine a target communication network based on bandwidth information, delay information, and load information of each external network, and send the target transmission data to the target communication network; Each Star Flash communication module includes multiple communication channels; the channel information includes signal strength, signal-to-interference ratio, noise level and channel characteristics, and the channel characteristics characterize the congestion level of the communication channel; the wireless environment information includes path loss, multipath fading and shadow fading; The target star flash communication module is used to: determining a channel congestion coefficient for each communication channel based on a channel characteristic of each communication channel; determining a signal validity index for each communication channel based on the signal strength, signal-to-interference ratio, and noise level of each communication channel; Determining a channel stability index for each communication channel in the current environment based on the channel congestion coefficient and the path loss, multipath fading, and shadow fading of the current environment; Determining a channel quality index of each communication channel based on a signal validity index of each communication channel and a channel stability index of each communication channel under the current environment; The communication channel corresponding to the maximum channel quality indicator is determined as the target communication channel.

2. The intelligent wireless gateway based on Star Flash according to claim 1, characterized in that: The target device information includes device identification information, device type information, device feature information and communication frequency band information; the preset device information includes a device identification list and a device feature list corresponding to the device type; the preset permission information includes a permission list corresponding to the device type and the first permission level of the smart wireless gateway; The gateway control unit is configured to: Performing device identification matching in the device identification list according to the device identification information, and determining whether there is a target device identification identical to the device identification information in the device identification list; If the target device identification exists, determining whether the target terminal device supports the Star Flash function according to the device identification information; If the Star Flash function is supported, feature matching is performed in the device feature list based on the device type information to obtain target device features corresponding to the device type information; If the device characteristic information is consistent with the target device characteristic, performing permission matching in the permission list based on the device type information to obtain a second permission level of the target terminal device; If the second authority level is higher than the first authority level, a target Starflash communication module with the same communication frequency band information is obtained in the Starflash communication unit, and a communication connection is established between the target terminal device and the target Starflash communication module.

3. The intelligent wireless gateway based on Star Flash according to claim 1, characterized in that: The calculation formula of the channel quality index of each communication channel is as follows: CQI i =SIX i *CSI i ; Among them, CQI i Represents the channel quality index of the i-th communication channel, SEI i Indicates the signal validity index of the i-th communication channel, CSI i Indicates the channel stability index of the i-th communication channel in the current environment, S i represents the signal strength of the i-th communication channel, N i represents the noise level of the i-th communication channel, SIR i represents the signal-to-interference ratio of the i-th communication channel, B i represents the channel congestion coefficient of the i-th communication channel, exp() represents the exponential function, PL represents path loss, MF represents multipath fading, and SF represents shadow fading.

4. The intelligent wireless gateway based on Star Flash according to claim 1, characterized in that: The protocol identification field of the communication protocol includes a protocol version number, a source port number and a data format; The encryption transmission unit is used to: Generate a binary key sequence based on the protocol version number and the source port number; Splitting the data to be transmitted into multiple data packets based on the data format; the data packets include a packet header and a packet body, the packet header includes a source address, a destination address and a packet sequence number, and the packet body includes data content; Encrypting each bit of the header of each data packet based on the binary key sequence, and encrypting each byte of the body of each data packet based on the binary key sequence to obtain an encrypted data packet; Each encrypted data packet is sequentially connected to obtain the target transmission data.

5. The intelligent wireless gateway based on Star Flash according to claim 1, characterized in that: The encryption function for encrypting each bit of the header in each data packet is: Among them, E H (H,U) represents the encrypted header, H represents the header, U represents the binary key sequence, h i Indicates the i-th bit after the header H is split bit by bit. The total length of the header is r bits. u imod256 represents the imod256th binary key in the binary key sequence U, where mod() represents the modulo operation; The encryption function for encrypting each byte of the packet body in each data packet is: Among them, E B (B,U) represents the encrypted package body, B represents the package body, b i Indicates the i-th byte in the packet B, m indicates the byte length of the packet B, u (i*3)mod256 represents the (i*3) mod 256 binary key in the binary key sequence U, u (i*5)mod256 Represents the (i*5) mod 256 binary key in the binary key sequence U.

6. The intelligent wireless gateway based on Star Flash according to claim 1, characterized in that: The network adaptation unit is configured to: determining an available bandwidth scaling factor for each external network based on the load information of each external network; determining a network stability factor for each external network based on the delay information and the load information of each external network; determining a weighted bandwidth for each external network based on the bandwidth information, the available bandwidth scaling factor, and the delay information of each external network; Determine a comprehensive network performance score for each external network based on the network stability factor, weighted bandwidth, and latency information of each external network; The external network corresponding to the largest network comprehensive performance score is determined as the target communication network.

7. The intelligent wireless gateway based on Star Flash according to claim 6, characterized in that: The calculation formula for the comprehensive network performance score of each external network is as follows: Among them, Score i represents the comprehensive performance score of the ith external network, WB i Denotes the weighted bandwidth of the i-th external network, BF i represents the network stability factor of the i-th external network, Lat i Indicates the delay information of the i-th external network, BW i Indicates the bandwidth information of the i-th external network, AF i Indicates the available bandwidth scaling factor of the i-th external network, Load i Represents the load information of the i-th external network.

8. A terminal communication connection method, implemented based on the Starflash-based intelligent wireless gateway according to any one of claims 1 to 7, characterized in that: The terminal communication connection method includes: Responding to a connection request signal from a target terminal device, obtaining device identification information, device type information, device feature information, and communication frequency band information from the connection request signal; Performing device identification matching in a device identification list according to the device identification information, and determining whether there is a target device identification identical to the device identification information in the device identification list; If the target device identification exists, determining whether the target terminal device supports the Star Flash function according to the device identification information; If the Star Flash function is supported, feature matching is performed in the device feature list based on the device type information to obtain the target device features corresponding to the device type information; If the device characteristic information is consistent with the target device characteristic, performing permission matching in the permission list based on the device type information to obtain a second permission level of the target terminal device; If the second authority level is higher than the first authority level of the smart wireless gateway, a target Star Flash communication module with the same communication frequency band information is obtained in the smart wireless gateway, and a communication connection is established between the target terminal device and the target Star Flash communication module.

9. The terminal communication connection method according to claim 8, characterized in that: The terminal communication connection method further includes: During the life cycle of the communication connection, a heartbeat detection signal is sent to the target terminal device at a preset interval, so that the target terminal device returns a response signal based on the heartbeat detection signal; If the response signal returned by the target terminal device is not received for a preset number of consecutive times, the communication connection between the target terminal device and the target Star Flash communication module is disconnected. After monitoring the restart startup instruction of the target terminal device, the communication connection is restored according to the startup instruction.

Citation Information

Patent Citations

  • Wireless communication method, storage medium, and wireless communication apparatus

    CN116260888A

  • Star flash 5G fusion QoS control method and device, and storage medium

    CN118317376A