An antenna detection based IoT module device communication function enablement method and system
By using an antenna-based detection method, the network communication function of IoT module devices is controlled in real time, solving the problem of communication instability when no antenna is installed, and realizing the effective utilization of resources and communication stability.
Patent Information
- Application Number
- CN202410310344.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-19
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2044-03-19
AI Technical Summary
Existing IoT module devices have unstable communication functions when no antenna is installed, resulting in ineffective communication and consuming operator resources. Current technologies cannot effectively solve this problem.
The power management module wakes up the network signal detection module, which then performs antenna detection. Based on the signal level, the network communication function of the IoT module device is controlled in real time to ensure that communication is enabled when the antenna is installed and disabled when it is not installed.
It enables real-time control of IoT module devices' communication functions based on antenna status, avoiding waste of public resources and improving communication stability and efficiency.
Smart Images

Figure CN118233941B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication function activation technology, and specifically to a method and system for activating the communication function of an IoT module device based on antenna detection. Background Technology
[0002] In the era of the Internet of Things (IoT), the number of IoT module devices is growing exponentially. The data generated by these devices is not only useful to individual users but also has a profound impact on businesses, governments, and society. However, connecting these devices and achieving effective data exchange remains a complex problem. To fully realize the potential of IoT, people have begun to build IoT device data interoperability systems to meet user needs and provide a superior user experience.
[0003] With the continuous development of the Internet of Things (IoT), an increasing number of smart devices and sensors are emerging. However, these devices come from different manufacturers, use different communication protocols, and have a wide variety of data formats. This heterogeneity leads to the following challenges:
[0004] (1) Device interconnectivity issues: IoT module devices usually come from different suppliers and use different connection standards, making it difficult for them to connect to each other and work together.
[0005] (2) Diversity of data formats: Data generated by IoT module devices exists in a variety of formats, including text, images, audio, and video. This diversity increases the complexity of data processing and interpretation.
[0006] (3) Real-time requirements: Many applications need to acquire and respond to data from IoT module devices in a timely manner. This requires ensuring that data transmission and processing are real-time.
[0007] (4) Security and privacy issues: IoT module devices often collect sensitive information, such as location data and health information. Therefore, ensuring data security and privacy protection is an important challenge.
[0008] However, regardless of which of the above issues arises, the communication capabilities of IoT module devices are crucial. Currently, without an antenna, the communication function of existing IoT module devices tends to be unstable, resulting in intermittent connection and disconnection. When the communication function of an IoT module device is unstable, effective communication becomes difficult. Furthermore, in practical applications, IoT module devices currently maintain their communication function regardless of whether an antenna is installed, thus consuming operator resources and wasting public resources even when no antenna is present. Summary of the Invention
[0009] To overcome the shortcomings of existing technologies, this invention provides a method and system for enabling the communication function of IoT module devices based on antenna detection. This method addresses the technical problem that existing IoT module devices, which always have their communication function enabled, cannot communicate effectively when no antenna is installed, and also consume operator resources. The invention allows for real-time control of the communication function of IoT module devices based on the antenna installation status, effectively avoiding the waste of public resources.
[0010] To solve the above problems, the technical solution adopted by the present invention is as follows:
[0011] A method for enabling communication functions of an IoT module device based on antenna detection includes the following steps:
[0012] The power management module supplies power to the network signal detection module, wakes up the network signal detection module, and uses the network signal detection module to detect the network signal of the IoT module device.
[0013] The network communication module of the IoT module device is activated, and the network communication module is connected to the network signal detection module.
[0014] The network communication module transmits network signal data to the network signal detection module in real time using a preset transmission method.
[0015] The network signal detection module obtains the corresponding network signal value based on the network signal data, determines the signal level corresponding to the network signal value in real time, and judges whether the IoT module device is equipped with an antenna in real time based on the signal level, and returns the judgment result to the IoT module device.
[0016] The IoT module device controls the communication function of the network communication module in real time based on the judgment result;
[0017] Among them, when controlling the communication function of the network communication module in real time, it includes: turning on the communication function of the network communication module in real time or turning off the communication function of the network communication module in real time.
[0018] In a preferred embodiment of the present invention, determining the signal level corresponding to the network signal value includes:
[0019] The received signals are classified into several levels according to their signal strength.
[0020] Determine the first signal level range and the second signal level range among the aforementioned network signal levels;
[0021] The signal level of the network signal is determined among the several levels of network signals based on the strength of the network signal value.
[0022] The first signal level range is greater than the second signal level range, and differs from the second signal level range by a preset level range.
[0023] In a preferred embodiment of the present invention, when determining the signal level corresponding to the network signal value, the method further includes:
[0024] The received signals are uniformly divided into 31 levels according to signal strength, resulting in 31 levels of network signals. The higher the level of the 31 levels of network signals, the stronger the signal.
[0025] The network signals of levels 28 to 31 out of the 31 levels are taken as the first signal level range;
[0026] The network signals of levels 22 to 26 out of the 31 levels are taken as the second signal level range;
[0027] The signal level of the network signal is determined in the 31 levels of network signals based on the strength of the network signal value.
[0028] The first signal level range differs from the second signal level range by 5 to 7 network signal levels.
[0029] In a preferred embodiment of the present invention, when determining in real time whether the IoT module device is equipped with an antenna based on the signal level, the method includes:
[0030] Determine whether the signal level is within the first signal level range. If so, record the antenna status as installed and enable the communication function of the network communication module.
[0031] In a preferred embodiment of the present invention, when determining in real time whether the IoT module device is equipped with an antenna based on the signal level, the method includes:
[0032] Determine whether the signal level is within the second signal level range. If so, record the antenna status as not installed and disable the communication function of the network communication module.
[0033] In a preferred embodiment of the present invention, when determining in real time whether the IoT module device is equipped with an antenna based on the signal level, the method includes:
[0034] Acquire several network signal values within a recent preset time period, obtain several signal levels based on the several network signal values, and perform antenna installation detection of the IoT module device under weak signal conditions based on the several signal levels.
[0035] In a preferred embodiment of the present invention, the antenna installation test of the IoT module device under weak signal conditions includes:
[0036] If the signal level drops below the preset level range within a certain time period of the most recent preset time period, it is considered that the IoT module device has removed the antenna, the antenna status is recorded as not installed, and the communication function of the network communication module is disabled.
[0037] If the signal level is 0 in another time period within the most recent preset time period, it is considered that the IoT module device has a specific behavior that cannot detect the antenna installation or removal action, and the antenna status is recorded as not installed.
[0038] The specific actions include: device shutdown, device reset, and network communication module shutdown.
[0039] In a preferred embodiment of the present invention, when transmitting network signal data to the network signal detection module in real time using a preset transmission method, the method includes:
[0040] The network signal data is transmitted to the network signal detection module using a script file transfer method.
[0041] In a preferred embodiment of the present invention, when transmitting data using a script file transfer method, the following is included:
[0042] A script file containing instructions for transmitting network signal data is pre-set, corresponding to the IoT module device;
[0043] After receiving the script file, the network signal detection module extracts the network signal data transmission instructions and sends the network signal data transmission instructions to the IoT module device through the serial communication interface.
[0044] After receiving the instruction to transmit network signal data, the IoT module device returns the network signal data to the network signal detection module.
[0045] When there are multiple IoT module devices that need to transmit network signal data, there are also multiple script files, each corresponding to one of the IoT module devices.
[0046] A communication function enabling system for IoT module devices based on antenna detection, comprising:
[0047] Network signal detection unit: used to power the network signal detection module through the power management module, wake up the network signal detection module, and use the network signal detection module to detect the network signal of the IoT module device;
[0048] Network signal data transmission unit: used to activate the network communication module of the IoT module device, and connect to the network signal detection module through the network communication module; and to transmit network signal data to the network signal detection module in real time through the network communication module in a preset transmission mode;
[0049] Antenna detection unit: used to obtain the corresponding network signal value based on the network signal data through the network signal detection module, determine the signal level corresponding to the network signal value in real time, determine whether the IoT module device is equipped with an antenna in real time based on the signal level, and return the determination result to the IoT module device;
[0050] Communication function control unit: used by the IoT module device to control the communication function of the network communication module in real time according to the judgment result;
[0051] Among them, when controlling the communication function of the network communication module in real time, it includes: turning on the communication function of the network communication module in real time or turning off the communication function of the network communication module in real time.
[0052] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0053] (1) This invention divides network signals into several levels according to network signal strength, detects the network signal value of IoT module devices in real time through a network signal detection module, and determines the current signal level range of IoT module devices based on the network signal value. Based on the signal level range, it determines whether IoT module devices are in the antenna installed state or the antenna not installed state. When the antenna is installed, the communication function of the network communication module is turned on, and when the antenna is not installed, the communication function of the network communication module of IoT module devices is turned off, thereby realizing real-time control of the communication function of the network communication module and effectively avoiding the waste of public resources.
[0054] (2) The present invention collects network signal values within the most recent preset time period and obtains several signal levels. Based on these signal levels, the IoT module device can control the network communication module communication function of the IoT module device even in a weak signal environment. This makes the present invention applicable to different signal environments and greatly reduces the probability of misjudgment.
[0055] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments. Attached Figure Description
[0056] Figure 1 This is a flowchart illustrating the steps of the method for enabling communication functions of an IoT module device based on antenna detection provided by the present invention.
[0057] Figure 2This is a comparison chart of network signal values of IoT module devices with and without antennas installed, according to an embodiment of the present invention. Detailed Implementation
[0058] The method for enabling communication functions of IoT module devices based on antenna detection provided by this invention, such as... Figure 1 As shown, it includes the following steps:
[0059] Step S1: Power the network signal detection module through the power management module to wake up the network signal detection module, and use the network signal detection module to detect the network signal of the IoT module device;
[0060] Step S2: Start the network communication module of the IoT module device and connect it to the network signal detection module through the network communication module;
[0061] Step S3: Transmit network signal data to the network signal detection module in real time via the network communication module using a preset transmission method;
[0062] Step S4: The network signal detection module obtains the corresponding network signal value based on the network signal data, determines the signal level corresponding to the network signal value in real time, and judges whether the IoT module device has an antenna installed based on the signal level in real time, and returns the judgment result to the IoT module device.
[0063] Step S5: The IoT module device controls the communication function of the network communication module in real time according to the judgment result;
[0064] Among them, when controlling the communication function of the network communication module in real time, it includes: turning on the communication function of the network communication module in real time or turning off the communication function of the network communication module in real time.
[0065] Specifically, the antenna in step S4 above includes a laser-engraved GSM antenna.
[0066] In step S4 above, determining the signal level corresponding to the network signal value includes:
[0067] The received signals are classified into several levels according to their signal strength.
[0068] Determine the range of the first signal level and the range of the second signal level among several levels of network signals;
[0069] The signal level of a network signal is determined based on the strength of its signal value within a range of network signal levels.
[0070] The first signal level range is larger than the second signal level range, and the first signal level range differs from the second signal level range by a preset level range.
[0071] Furthermore, determining the signal level corresponding to the network signal value also includes:
[0072] The received signals are uniformly divided into 31 levels according to signal strength, resulting in 31 levels of network signals. The higher the level of the 31 levels of network signals, the stronger the signal.
[0073] The network signals of levels 28 to 31 out of the 31 levels are defined as the first signal level range;
[0074] The network signals of levels 22 to 26 out of the 31 levels are defined as the second signal level range;
[0075] The signal level of a network signal is determined based on the strength of its signal value among 31 network signal levels.
[0076] Among them, the first signal level range differs from the second signal level range by 5 to 7 network signal levels.
[0077] In step S4 above, when determining in real time whether the IoT module device has an antenna installed based on the signal level, the following steps are included:
[0078] Determine if the signal level is within the first signal level range. If so, record the antenna status as installed and enable the communication function of the network communication module.
[0079] In step S4 above, when determining in real time whether the IoT module device has an antenna installed based on the signal level, the following steps are included:
[0080] Determine if the signal level is within the second signal level range. If so, record the antenna status as not installed and disable the communication function of the network communication module.
[0081] In step S4 above, when determining in real time whether the IoT module device has an antenna installed based on the signal level, the following steps are included:
[0082] Obtain several network signal values within the most recent preset time period, derive several signal levels based on these values, and then perform antenna installation testing on IoT module devices in weak signal environments based on these signal levels.
[0083] Furthermore, when performing antenna installation testing on IoT module devices in weak signal environments, the following steps are included:
[0084] If the signal level drops below a preset range within a recent preset time period, it is considered that the IoT module device has removed the antenna, the antenna status is recorded as not installed, and the communication function of the network communication module is disabled.
[0085] If the signal level is 0 in another time period within the most recent preset time period, it is considered that the IoT module device has a specific behavior that cannot detect the antenna installation or removal action, and the antenna status is recorded as not installed.
[0086] Specific actions include: device shutdown, device reset, and network communication module shutdown.
[0087] In step S3 above, when transmitting network signal data to the network signal detection module in real time using a preset transmission method, the following is included:
[0088] The network signal data is transmitted to the network signal detection module using a script file transfer method.
[0089] Furthermore, when using script file transfer for transmission, it includes:
[0090] A pre-set script file containing instructions for transmitting network signal data is provided, corresponding to the IoT module device.
[0091] After receiving the script file, the network signal detection module extracts the instructions for transmitting network signal data and sends them to the IoT module device through the serial communication interface.
[0092] After receiving the instruction to transmit network signal data, the IoT module device returns the network signal data to the network signal detection module.
[0093] When there are multiple IoT module devices that need to transmit network signal data, there are also multiple script files, each corresponding to one of the IoT module devices.
[0094] The method provided by this invention offers the following technical means to ensure the secure transmission and accuracy of network signal data during transmission:
[0095] The MD5 encryption algorithm is used to process network signal data, including:
[0096] Network signal data is processed in 512-bit packets, each of which is further divided into 16 32-bit sub-packets.
[0097] The 16 32-bit sub-groups are processed to obtain an output consisting of 4 32-bit sub-groups;
[0098] Concatenate the four 32-bit groups to generate four link variables S, N, V, and D;
[0099] Copy the four link variables S, N, V, and D to another four link variables s, n, v, and d, specifically: S to s, N to n, V to v, and D to d.
[0100] The process involves four rounds of iteration, each round consisting of 16 operations. During each operation, a nonlinear function operation is performed on three variables, s, n, v, and d, to obtain the first result.
[0101] Add the fourth variable, one subgroup of network signal data, and one constant to the first result to obtain the second result;
[0102] Circularly shift the second result to the left by a random number of positions, and add one of the variables s, n, v, and d to obtain the third result;
[0103] Store the third result into one of the variables s, n, v, and d;
[0104] After the operation is completed, add another 4 link variables s, n, v, and d to the 4 link variables S, N, V, and D respectively. Then, continue running the algorithm with the next group of data and finally output the cascade of the 4 link variables S, N, V, and D.
[0105] Among them, there are 4 link variables: S = 0x01234567, N = 0x89abcdef, V = 0xfedcba98, and D = 0x76543210.
[0106] Furthermore, in each of the 16 operations, the following four nonlinear functions are used, as shown in Equations 1 to 4:
[0107]
[0108]
[0109] J(X,Y,Z)=X & Y&Z (3);
[0110]
[0111] Wherein, if the corresponding bits of X, Y and Z are independent and uniform, then each l bit of G(X,Y,Z), H(X,Y,Z), J(X,Y,Z), and O(X,Y,Z) are also independent and uniform; the function G operates bit by bit: if X, then Y, otherwise Z; the function J is a bit-by-bit parity operator.
[0112] Let Z k This represents the k-th sub-packet of network signal data (0≤k≤15), <<<a indicates a circular left shift of a bits, and the constant ro is generally taken as 2. 32 The integer part of ×|sino|, 1≤o≤64, then the four operations corresponding to the four nonlinear functions are shown in Equations 5 to 8 respectively:
[0113] GG(s,n,v,d,Z k,a,ro) means s=n+(s+G(n,v,d)+Z k +ro<<<a) (5);
[0114] HH(s,n,v,d,Z k ,a,ro) means s=n+(s+H(n,v,d)+Z k +ro<<<a) (6);
[0115] JJ(s,n,v,d,Z k ,a,ro) means s=n+(s+J(n,v,d)+Z k +ro<<<a) (7);
[0116] OO(s,n,v,d,Z k ,a,ro) means s=n+(s+O(n,v,d)+Z k +ro<<<a) (8).
[0117] This invention utilizes the MD5 algorithm to verify network signal data. If the network signal data is tampered with, its encryption result will also change drastically. This invention saves each frame of transmitted data as an MD5 value, checking whether two byte arrays processed by the same algorithm yield the same result: if the source is the same, the result will definitely be the same; however, if any byte is inconsistent, the result will inevitably have a significant difference. During data transmission, the transmission key is calculated into a value and then compared with the value stored in the system. The data's own value is not transmitted during the transmission process, thus ensuring secure data transmission.
[0118] The IoT module device communication function activation system based on antenna detection provided by the present invention includes: a network signal detection unit, a network signal data transmission unit, an antenna detection unit, and a communication function control unit.
[0119] Network signal detection unit: Used to power the network signal detection module through the power management module, wake up the network signal detection module, and use the network signal detection module to detect the network signal of the IoT module device.
[0120] Network signal data transmission unit: used to activate the network communication module of the IoT module device and connect to the network signal detection module through the network communication module; and to transmit network signal data to the network signal detection module in real time through the network communication module in a preset transmission mode.
[0121] Antenna detection unit: It is used to obtain the corresponding network signal value based on the network signal data through the network signal detection module, determine the signal level corresponding to the network signal value in real time, determine whether the IoT module device is equipped with an antenna based on the signal level in real time, and return the determination result to the IoT module device.
[0122] Communication function control unit: Used by IoT module devices to control the communication function of network communication module in real time based on the judgment result.
[0123] Among them, when controlling the communication function of the network communication module in real time, it includes: turning on the communication function of the network communication module in real time or turning off the communication function of the network communication module in real time.
[0124] The following embodiments are further illustrations of the present invention, but the scope of the present invention is not limited thereto.
[0125] The received signal strength is uniformly divided into levels from 0 to 31, with higher levels indicating stronger signals. Network signal data is obtained from the network communication module of the IoT module device.
[0126] Actual measured data as follows Figure 2 As shown. By Figure 2 It can be seen that when no antenna is installed, the signal level of the network signal data is stable at 22-26, while when the antenna is installed, the signal level of the network signal data is stable at 28-31, with a signal difference of 5-7 levels.
[0127] The signal level is 28-31 when the antenna is installed, 22-26 when the antenna is not installed, and the difference in signal level with and without the antenna is 5-7 levels. This is only a specific setting in this embodiment, and different IoT module devices need to be determined according to actual testing.
[0128] This embodiment uses signal level for real-time judgment (Scheme 1), including:
[0129] (1) If the signal level is in the range of [28~31], the antenna is considered to be installed and the communication function of the network communication module is turned on;
[0130] (2) If the signal level is in the range of [22~26], the antenna is considered not installed, and the communication function of the network communication module is turned off.
[0131] Solution 1 has the following technical drawbacks: when the IoT module device is in a weak signal environment, the antenna installation status is likely to be misjudged, making it difficult to accurately control the communication function of the network communication module. Therefore, this embodiment also proposes the following solution (Solution 2):
[0132] After the IoT module device is running, the antenna is in the "not installed" state;
[0133] If the signal level is in the range of [28-31], record the antenna status as "installed" and enable the communication function of the network communication module;
[0134] IoT module devices without antennas cannot reach the [28-31] level;
[0135] The signal strength of IoT module devices is detected in real time, and the signal level in the last minute is recorded for subsequent analysis of signal level changes.
[0136] Since the antenna removal action is completed instantaneously, if the level drops by 5 to 7 within a short period of time (e.g., 3 seconds), it is considered that the IoT module device may have removed the antenna, the device antenna status is recorded as "not installed", and the communication function of the network communication module is disabled.
[0137] If the signal level is 0 for a period of time (e.g., more than 5 seconds) in the last minute, it is considered that the IoT module device is in a state of shutdown, device reset, or network communication module shutdown, and the antenna installation or removal action cannot be detected. The device antenna status is recorded as "not installed".
[0138] Compared to Option 1, Option 2 allows the IoT module device to more accurately control the communication function of the network communication module even in weak signal environments, greatly reducing the probability of misjudging the antenna installation status.
[0139] The above embodiments are merely preferred embodiments of the present invention and should not be construed as limiting the scope of protection of the present invention. Any non-substantial changes and substitutions made by those skilled in the art based on the present invention shall fall within the scope of protection claimed by the present invention.
Claims
1. A method for enabling communication function of an IoT module device based on antenna detection, characterized in that, Includes the following steps: The power management module supplies power to the network signal detection module, wakes up the network signal detection module, and uses the network signal detection module to detect the network signal of the IoT module device. The network communication module of the IoT module device is activated, and the network communication module is connected to the network signal detection module. The network communication module transmits network signal data to the network signal detection module in real time using a preset transmission method. The network signal detection module obtains the corresponding network signal value based on the network signal data, determines the signal level corresponding to the network signal value in real time, judges whether the IoT module device is equipped with an antenna based on the signal level in real time, and returns the judgment result to the IoT module device. The IoT module device controls the communication function of the network communication module in real time based on the judgment result; Among them, when controlling the communication function of the network communication module in real time, it includes: turning on the communication function of the network communication module in real time or turning off the communication function of the network communication module in real time; When transmitting network signal data to the network signal detection module in real time using a preset transmission method, the process includes: The method of transmitting network signal data to the network signal detection module using a script file includes: pre-setting a script file corresponding to the IoT module device and containing instructions for transmitting network signal data; after receiving the script file, the network signal detection module extracts the instructions for transmitting network signal data and sends the instructions for transmitting network signal data to the IoT module device through a serial communication interface; after receiving the instructions for transmitting network signal data, the network communication module returns the network signal data to the network signal detection module; wherein, when there are multiple IoT module devices that need to transmit network signal data, there are also multiple script files, each corresponding to one of the IoT module devices; When determining in real time whether the IoT module device has an antenna installed based on the signal level, the process includes: acquiring several network signal values within a recent preset time period, obtaining several signal levels based on the network signal values, and detecting the antenna installation of the IoT module device in a weak signal environment based on the several signal levels; if the signal level drops by a preset range within a certain time period of the recent preset time period, it is considered that the IoT module device has removed the antenna, the antenna status is recorded as not installed, and the communication function of the network communication module is disabled; if the signal level is 0 for another time period of the recent preset time period, it is considered that the IoT module device has a specific behavior that makes it impossible to detect the antenna installation or removal action, and the antenna status is recorded as not installed; the specific behavior includes: device shutdown, device reset, and network communication module shutdown. The MD5 encryption algorithm is used to process network signal data, including: Network signal data is processed in 512-bit packets, each of which is further divided into 16 32-bit sub-packets. The 16 32-bit sub-groups are processed to obtain an output consisting of 4 32-bit sub-groups; Concatenate the four 32-bit groups to generate four link variables S, N, V, and D; Copy the four link variables S, N, V, and D to another four link variables s, n, v, and d, specifically: S to s, N to n, V to v, and D to d. The process involves four rounds of iteration, each round consisting of 16 operations. During each operation, a nonlinear function operation is performed on three variables, s, n, v, and d, to obtain the first result. Add the fourth variable, one subgroup of network signal data, and one constant to the first result to obtain the second result; Circularly shift the second result to the left by a random number of positions, and add one of the variables s, n, v, and d to obtain the third result; Store the third result into one of the variables s, n, v, and d; After the operation is completed, add another 4 link variables s, n, v, and d to the 4 link variables S, N, V, and D respectively. Then, continue running the algorithm with the next group of data and finally output the cascade of the 4 link variables S, N, V, and D. Among them, there are 4 link variables: S = 0x01234567, N = 0x89abcdef, V = 0xfedcba98, and D = 0x76543210; In the 16 operations, each operation uses the following four nonlinear functions, as shown in Equations 1 to 4: J(X,Y,Z)=X^Y^Z (3); Wherein, if the corresponding bits of X, Y and Z are independent and uniform, then each l bit of G(X,Y,Z), H(X,Y,Z), J(X,Y,Z), and O(X,Y,Z) are also independent and uniform; the function G operates bit by bit: if X, then Y, otherwise Z; the function J is a bit-by-bit parity operator. Let Z k This represents the k-th sub-packet of network signal data (0≤k≤15), <<<a indicates a circular left shift of a bits, and the constant ro is generally taken as 2. 32 The integer part of ×|sino|, 1≤o≤64, then the four operations corresponding to the four nonlinear functions are shown in Equations 5 to 8 respectively: GG(s,n,v,d,Z k ,a,ro) means s = n+(s+G(n,v,d)+Z k +ro <<< a) (5); HH(s,n,v,d,Z k ,a,ro) means s = n+(s + H(n,v,d)+Z k +ro <<< a) (6); JJ(s,n,v,d,Z k ,a,ro) are shown as =n+(s+J(n,v,d)+Z k +ro<<<a) (7); OO(s,n,v,d,Z k ,a,ro) shown=n+(s+O(n,v,d)+Z k +ro<<<a) (8).
2. The method for enabling communication function of IoT module devices based on antenna detection according to claim 1, characterized in that, Determining the signal level corresponding to the network signal value includes: The received signals are classified into several levels according to their signal strength. Determine the first signal level range and the second signal level range among the aforementioned network signal levels; The signal level of the network signal is determined among the several levels of network signals based on the strength of the network signal value. The first signal level range is greater than the second signal level range, and differs from the second signal level range by a preset level range.
3. The method for enabling communication function of IoT module devices based on antenna detection according to claim 2, characterized in that, Determining the signal level corresponding to the network signal value also includes: The received signals are uniformly divided into 31 levels according to signal strength, resulting in 31 levels of network signals. The higher the level of the 31 levels of network signals, the stronger the signal. The network signals of levels 28 to 31 out of the 31 levels are taken as the first signal level range; The network signals of levels 22 to 26 out of the 31 levels are taken as the second signal level range; The signal level of the network signal is determined in the 31 levels of network signals based on the strength of the network signal value. The first signal level range differs from the second signal level range by 5 to 7 network signal levels.
4. The method for enabling communication function of IoT module devices based on antenna detection according to claim 2 or 3, characterized in that, When determining in real time whether the IoT module device has an antenna installed based on the signal level, the following steps are included: Determine whether the signal level is within the first signal level range. If so, record the antenna status as installed and enable the communication function of the network communication module.
5. The method for enabling communication function of IoT module devices based on antenna detection according to claim 2 or 3, characterized in that, When determining in real time whether the IoT module device has an antenna installed based on the signal level, the following steps are included: Determine whether the signal level is within the second signal level range. If so, record the antenna status as not installed and disable the communication function of the network communication module.
6. A communication function activation system for IoT module devices based on antenna detection, characterized in that, include: Network signal detection unit: used to power the network signal detection module through the power management module, wake up the network signal detection module, and use the network signal detection module to detect the network signal of the IoT module device; Network signal data transmission unit: used to activate the network communication module of the IoT module device, and connect to the network signal detection module through the network communication module; and to transmit network signal data to the network signal detection module in real time through the network communication module in a preset transmission mode; Antenna detection unit: used to obtain the corresponding network signal value based on the network signal data through the network signal detection module, determine the signal level corresponding to the network signal value in real time, determine whether the IoT module device is equipped with an antenna in real time based on the signal level, and return the determination result to the IoT module device; Communication function control unit: used by the IoT module device to control the communication function of the network communication module in real time according to the judgment result; Among them, when controlling the communication function of the network communication module in real time, it includes: turning on the communication function of the network communication module in real time or turning off the communication function of the network communication module in real time; When transmitting network signal data to the network signal detection module in real time using a preset transmission method, the process includes: The method of transmitting network signal data to the network signal detection module using a script file includes: pre-setting a script file corresponding to the IoT module device and containing instructions for transmitting network signal data; after receiving the script file, the network signal detection module extracts the instructions for transmitting network signal data and sends the instructions for transmitting network signal data to the IoT module device through a serial communication interface; after receiving the instructions for transmitting network signal data, the network communication module returns the network signal data to the network signal detection module; wherein, when there are multiple IoT module devices that need to transmit network signal data, there are also multiple script files, each corresponding to one of the IoT module devices; When determining in real time whether the IoT module device has an antenna installed based on the signal level, the process includes: acquiring several network signal values within a recent preset time period, obtaining several signal levels based on the network signal values, and detecting the antenna installation of the IoT module device in a weak signal environment based on the several signal levels; if the signal level drops by a preset range within a certain time period of the recent preset time period, it is considered that the IoT module device has removed the antenna, the antenna status is recorded as not installed, and the communication function of the network communication module is disabled; if the signal level is 0 for another time period of the recent preset time period, it is considered that the IoT module device has a specific behavior that makes it impossible to detect the antenna installation or removal action, and the antenna status is recorded as not installed; the specific behavior includes: device shutdown, device reset, and network communication module shutdown. The MD5 encryption algorithm is used to process network signal data, including: Network signal data is processed in 512-bit packets, each of which is further divided into 16 32-bit sub-packets. The 16 32-bit sub-groups are processed to obtain an output consisting of 4 32-bit sub-groups; Concatenate the four 32-bit groups to generate four link variables S, N, V, and D; Copy the four link variables S, N, V, and D to another four link variables s, n, v, and d, specifically: S to s, N to n, V to v, and D to d. The process involves four rounds of iteration, each round consisting of 16 operations. During each operation, a nonlinear function operation is performed on three variables, s, n, v, and d, to obtain the first result. Add the fourth variable, one subgroup of network signal data, and one constant to the first result to obtain the second result; Circularly shift the second result to the left by a random number of positions, and add one of the variables s, n, v, and d to obtain the third result; Store the third result into one of the variables s, n, v, and d; After the operation is completed, add another 4 link variables s, n, v, and d to the 4 link variables S, N, V, and D respectively. Then, continue running the algorithm with the next group of data and finally output the cascade of the 4 link variables S, N, V, and D. Among them, there are 4 link variables: S = 0x01234567, N = 0x89abcdef, V = 0xfedcba98, and D = 0x76543210; In the 16 operations, each operation uses the following four nonlinear functions, as shown in Equations 1 to 4: J(X,Y,Z)=X^Y^Z (3); Wherein, if the corresponding bits of X, Y and Z are independent and uniform, then each l bit of G(X,Y,Z), H(X,Y,Z), J(X,Y,Z), and O(X,Y,Z) are also independent and uniform; the function G operates bit by bit: if X, then Y, otherwise Z; the function J is a bit-by-bit parity operator. Let Z k This represents the k-th sub-packet of network signal data (0≤k≤15), <<<a indicates a circular left shift of a bits, and the constant ro is generally taken as 2. 32 The integer part of ×|sino|, 1≤o≤64, then the four operations corresponding to the four nonlinear functions are shown in Equations 5 to 8 respectively: GG(s,n,v,d,Z k ,a,ro) means s = n+(s+G(n,v,d)+Z k +ro <<< a) (5); HH(s,n,v,d,Z k ,a,ro) means s = n+(s + H(n,v,d)+Z k +ro <<< a) (6); JJ(s,n,v,d,Z k ,a,ro) are shown as =n+(s+J(n,v,d)+Z k +ro<<<a) (7); OO(s,n,v,d,Z k ,a,ro) shown=n+(s+O(n,v,d)+Z k +ro<<<a) (8).
Citation Information
Patent Citations
Method and device for detecting working state of antenna of vehicle communication equipment
CN116760490A