Internet of things device with distance measurement function and method thereof
By combining Bluetooth modules and control modules in the Internet of Things device, using Bluetooth channel frequency hopping and filtering algorithms to optimize the received signal strength indication value, solving the problem of the existing ranging method being easily disturbed, and achieving high-precision and high-efficiency distance calculation.
Patent Information
- Application Number
- CN202510625693.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-15
- Publication Date
- 2025-06-24
AI Technical Summary
The existing ranging method based on the received signal strength indication (RSSI) is susceptible to interference and contamination by Bluetooth communication channels, resulting in inaccurate measurements.
The combination of Bluetooth module and control module is adopted to switch the communication channel through the Bluetooth channel frequency hopping mechanism, so that the Bluetooth module can receive multiple broadcast signals, and optimize the received signal strength indicator value through the filtering algorithm to improve the accuracy of distance calculation.
Through the optimized received signal strength indication computer system, the distance between the IoT device and another IoT device can be quickly and accurately calculated, reducing the impact on Bluetooth communication channel interference and improving computing accuracy and efficiency.
Smart Images

Figure CN120201395A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an Internet of Things device, in particular to an Internet of Things device with a ranging function. The present invention also relates to a ranging method for this Internet of Things device. Background Art
[0002] Existing ranging methods based on Received Signal Strength Indication (RSSI) mainly rely on Bluetooth devices to periodically send out broadcast signals containing device information of this Bluetooth device. During the propagation of these broadcast signals, the signal strength received by the receiving end will gradually attenuate. The receiving end can try to estimate the distance between it and the Bluetooth device by analyzing the change in signal strength.
[0003] However, there are still many problems to be improved in existing ranging methods: The Bluetooth communication channel is vulnerable to severe channel interference and pollution. When there are a large number of other Bluetooth devices or other interference sources in the same channel, the normal reception of broadcast signals may be affected, resulting in inaccurate measurement of the Received Signal Strength Indication value. The above-mentioned interference sources may come from electromagnetic waves of other electronic devices. Summary of the Invention
[0004] The present invention provides an Internet of Things device with a ranging function, which includes a Bluetooth module and a control module. The control module is connected to the Bluetooth module and switches the communication channel of the Bluetooth module based on the Bluetooth channel hopping mechanism, so that the Bluetooth module receives multiple broadcast signals of another Internet of Things device on multiple communication channels. The control module calculates the Received Signal Strength Indication value of each broadcast signal, and executes a filtering algorithm based on the Received Signal Strength Indication values of the above multiple broadcast signals to obtain an updated Received Signal Strength Indication value, and then calculates the distance between the control module and another Internet of Things device according to the updated Received Signal Strength Indication value.
[0005] As an improvement of the present invention, the filtering algorithm is a moving average filtering algorithm, a median filtering algorithm or a Kalman filtering algorithm.
[0006] As an improvement of the present invention, the control module executes a filtering algorithm to establish a filtering window and a sampling window larger than the filtering window, and processes the Received Signal Strength Indication values of the above multiple broadcast signals according to the filtering window and the sampling window to obtain an updated Received Signal Strength Indication value.
[0007] As an improvement of the present invention, when the Received Signal Strength Indication values of the above multiple broadcast signals do not fill the sampling window, the control module calculates the average value of the Received Signal Strength Indication values of the above multiple broadcast signals, and then calculates the distance between the control module and another Internet of Things device according to the average value.
[0008] As an improvement of the present invention, when the received signal strength indication values of the above-mentioned multiple broadcast signals fill the sampling window, the control module deletes the maximum and minimum values of the received signal strength indication values of the above-mentioned multiple broadcast signals to obtain updated data, calculates the average value of the updated data, and then calculates the distance between the control module and another Internet of Things device according to the average value.
[0009] The present invention also provides a ranging method for an Internet of Things device, which includes the following steps: the control module switches the communication channel of the Bluetooth module based on the Bluetooth channel hopping mechanism, so that the Bluetooth module receives multiple broadcast signals of another Internet of Things device on multiple communication channels; the control module calculates the received signal strength indication value of each broadcast signal; the control module executes a filtering algorithm according to the received signal strength indication values of the above-mentioned multiple broadcast signals to obtain an updated received signal strength indication value; and the control module calculates the distance between the control module and another Internet of Things device according to the updated received signal strength indication value.
[0010] As an improvement of the present invention, the filtering algorithm is a moving average filtering algorithm, a median filtering algorithm or a Kalman filtering algorithm.
[0011] As an improvement of the present invention, the step of the control module executing a filtering algorithm according to the received signal strength indication values of the above-mentioned multiple broadcast signals to obtain an updated received signal strength indication value includes: the control module establishes a filtering window and a sampling window larger than the filtering window; and the control module processes the received signal strength indication values of the above-mentioned multiple broadcast signals according to the filtering window and the sampling window to obtain an updated received signal strength indication value.
[0012] As an improvement of the present invention, the step of the control module processing the received signal strength indication values of the above-mentioned multiple broadcast signals according to the filtering window and the sampling window to obtain an updated received signal strength indication value includes: the control module calculates the average value of the received signal strength indication values of the above-mentioned multiple broadcast signals when the received signal strength indication values of the above-mentioned multiple broadcast signals do not fill the sampling window; and the control module calculates the distance between the control module and another Internet of Things device according to the average value.
[0013] As an improvement of the present invention, the step of the control module processing the received signal strength indication values of the above-mentioned multiple broadcast signals according to the filtering window and the sampling window to obtain an updated received signal strength indication value includes: the control module deletes the maximum and minimum values of the received signal strength indication values of the above-mentioned multiple broadcast signals to obtain updated data when the received signal strength indication values of the above-mentioned multiple broadcast signals fill the sampling window; the control module calculates the average value of the updated data; and the control module calculates the distance between the control module and another Internet of Things device according to the average value.
[0014] As described above, the Internet of Things device with a ranging function and its method according to an embodiment of the present invention may have one or more of the following advantages: (1) According to the content disclosed in the present invention, the Internet of Things device includes a Bluetooth module and a control module. The control module is connected to the Bluetooth module and switches the communication channel of the Bluetooth module based on the Bluetooth channel hopping mechanism, so that the Bluetooth module receives multiple broadcast signals of another Internet of Things device on multiple communication channels. The control module calculates the received signal strength indication value of each broadcast signal, and executes a filtering algorithm based on the received signal strength indication values of the multiple broadcast signals to obtain an updated received signal strength indication value, and then calculates the distance between the control module and another Internet of Things device according to the updated received signal strength indication value. Through the above optimized received signal strength indication calculation mechanism, the Internet of Things device can quickly calculate its distance from another Internet of Things device. Therefore, the Internet of Things device can meet the requirements of practical applications.
[0015] (2) According to the content disclosed in the present invention, the Internet of Things device has an optimized received signal strength indication calculation mechanism. Among them, the control module executes a filtering algorithm to establish a filtering window and a sampling window larger than the filtering window, and processes the received signal strength indication values of the multiple broadcast signals according to the filtering window and the sampling window to obtain an updated received signal strength indication value. When the received signal strength indication values of the multiple broadcast signals do not fill the sampling window, the control module calculates the average value of the received signal strength indication values of the multiple broadcast signals, and then calculates the distance between the control module and another Internet of Things device according to the average value. When the received signal strength indication values of the multiple broadcast signals fill the sampling window, the control module deletes the maximum and minimum values of the received signal strength indication values of the multiple broadcast signals to obtain updated data, calculates the average value of the updated data, and then calculates the distance between the control module and another Internet of Things device according to the average value. The above optimized received signal strength indication calculation mechanism can greatly improve the calculation accuracy, so that the Internet of Things device can accurately calculate its distance from another Internet of Things device, and will not be affected by interference or pollution of the Bluetooth communication channel to affect its calculation accuracy. Therefore, the performance of the Internet of Things device can be greatly improved to meet the requirements of different applications.
[0016] (3) According to the content disclosed in the present invention, the control module continuously receives new broadcast signals, and adds the received signal strength indication value of the new broadcast signal to the sampling window. At the same time, the control module removes the received signal strength indication value with the earliest time point in the sampling window and repeats the same calculation procedure. In this way, the control module can continuously optimize the calculation accuracy.
[0017] (4)According to the disclosure of the present invention, the Internet of Things device can not only be a lighting device, but also various other devices with different functions, such as sensing devices (microwave induction devices, infrared induction devices) or various household appliances. Therefore, the Internet of Things device can be applied to various different intelligent applications, such as smart homes, smart factories, smart parking lots, etc., to provide various different functions. Therefore, the Internet of Things device is not only more widely applied, but also more flexible in use.
[0018] (5)According to the disclosure of the present invention, the design of the Internet of Things device is simple, and the desired effect can be achieved without increasing the cost. In this way, the Internet of Things device can achieve high practicability to be applied to various different intelligent applications. Therefore, the Internet of Things device can conform to the future development trend. Description of the Drawings
[0019] Figure 1 Block diagram of the lighting system including this Internet of Things device according to the first embodiment of the present invention.
[0020] Figure 2 Block diagram of the Internet of Things device with ranging function according to the first embodiment of the present invention.
[0021] Figure 3 First schematic diagram of the filtering algorithm of the Internet of Things device with ranging function according to the first embodiment of the present invention.
[0022] Figure 4 Second schematic diagram of the filtering algorithm of the Internet of Things device with ranging function according to the first embodiment of the present invention.
[0023] Figure 5 Third schematic diagram of the filtering algorithm of the Internet of Things device with ranging function according to the first embodiment of the present invention.
[0024] Figure 6 Flowchart of the ranging method of the Internet of Things device according to the second embodiment of the present invention.
[0025] Figure 7 Flowchart of the ranging method of the Internet of Things device according to the third embodiment of the present invention.
[0026] Figure 8 Flowchart of the ranging method of the Internet of Things device according to the fourth embodiment of the present invention.
[0027] Description of the Reference Numerals: 1 - Lighting system; 11 - Internet of Things device; 111 - Bluetooth module; 112 - Control module; 113 - Light-emitting module; W1 - Filtering window; W2 - Sampling window; S61~S64, S71~S75, S81~S88 - Step flow numbers.
[0028] The following will detail the specific features and advantages of the present invention in the embodiments, the content of which is sufficient for any person skilled in the relevant art to understand the technical content of the present invention and implement it accordingly. And based on the content, claims and drawings disclosed in this specification, any person skilled in the relevant art can easily understand the related purposes and advantages of this creation. Specific Embodiments
[0029] The following will refer to the relevant drawings to illustrate embodiments of the Internet of Things device with a ranging function and its method according to the present invention. For the sake of clarity and convenience in drawing illustration, the components in the drawings may be presented in an exaggerated or reduced size and proportion. In the following description and / or claims, when referring to a component "connected" or "coupled" to another component, it may be directly connected or coupled to that other component or there may be intervening components; while when referring to a component "directly connected" or "directly coupled" to another component, there are no intervening components, and other words used to describe the relationship between components or layers should be interpreted in the same way. For ease of understanding, the same components in the following embodiments are denoted by the same symbols for illustration.
[0030] Please refer to Figure 1 , which is a block diagram of a lighting system including this Internet of Things device according to the first embodiment of the present invention. As shown in the figure, the lighting system 1 includes a plurality of Internet of Things devices 11, and these Internet of Things devices 11 can communicate with each other. In this embodiment, the Internet of Things device 11 can be a lighting device. In another embodiment, the Internet of Things device 11 can also be a sensing device (microwave sensing device, infrared sensing device) or various household appliances.
[0031] Of course, this embodiment is only used for illustration and not for limiting the scope of the present invention. Equivalent modifications or changes made according to the lighting system 1 of this embodiment should still be included within the patent scope of the present invention.
[0032] Please refer to Figure 2 , which is a block diagram of the Internet of Things device with a ranging function according to the first embodiment of the present invention. As shown in the figure, the Internet of Things device 11 includes a Bluetooth module 111, a control module 112 and a light emitting module 113. The control module 112 is connected to the Bluetooth module 111 and the light emitting module 113. In one embodiment, the control module 112 can be a microcontroller (MCU). In another embodiment, the control module 112 can be a central processing unit (CPU), an application specific integrated circuit chip (ASIC), a field programmable gate array (FPGA) or other similar components. In one embodiment, the light emitting module 113 can be a light emitting diode (LED). In another embodiment, the light emitting module 113 can also be a light bulb, a fluorescent lamp, etc.
[0033] The control module 112 can switch the communication channel of the Bluetooth module 111 based on the Bluetooth channel hopping mechanism, enabling the Bluetooth module 111 to receive multiple broadcast signals Bs1 to Bsn of another Internet of Things device 11 on multiple communication channels (any two Internet of Things devices 11 can execute the same mechanism). Then, the control module 112 calculates the received signal strength indication (RSSI) values of each of the broadcast signals Bs1 to Bsn, and executes a filtering algorithm based on the received signal strength indication values of the multiple broadcast signals Bs1 to Bsn to obtain updated received signal strength indication values, and then calculates the distance between the control module and another Internet of Things device based on the updated received signal strength indication values. The filtering algorithm is a moving average filtering algorithm, a median filtering algorithm, or a Kalman filtering algorithm.
[0034] Through the above-optimized received signal strength indication calculation mechanism, the Internet of Things device 11 can quickly calculate its distance from another Internet of Things device 11. Therefore, the Internet of Things device 11 can meet the requirements of practical applications.
[0035] Of course, this embodiment is only used for illustration and not for limiting the scope of the present invention. Equivalent modifications or changes made to the Internet of Things device 11 with ranging function according to this embodiment should still be included within the patent scope of the present invention.
[0036] Please refer to Figure 3 、 Figure 4 and Figure 5 . Figure 3 FIG. is a first schematic diagram of the filtering algorithm of the Internet of Things device with ranging function according to the first embodiment of the present invention. Figure 4 FIG. is a second schematic diagram of the filtering algorithm of the Internet of Things device with ranging function according to the first embodiment of the present invention. Figure 5 FIG. is a third schematic diagram of the filtering algorithm of the Internet of Things device with ranging function according to the first embodiment of the present invention. This embodiment is illustrated by taking the moving average filtering algorithm as an example. As Figure 3 shown, the control module 112 can execute a filtering algorithm (moving average filtering algorithm) to establish a filtering window W1 and a sampling window W2 larger than the filtering window W1, and process the received signal strength indication values of the multiple broadcast signals Bs1 to Bsn according to the filtering window W1 and the sampling window W2 to obtain updated received signal strength indication values. The sizes of the filtering window W1 and the sampling window W2 can be appropriately adjusted and are not limited to the content disclosed in this embodiment.
[0037] As Figure 4 shown, when the received signal strength indication values S1 to Sn of the multiple broadcast signals Bs1 to Bsn do not fill the sampling window W2, the control module 112 calculates the average value of the received signal strength indication values of the multiple broadcast signals Bs1 to Bsn, and then calculates the distance between the control module 112 and another Internet of Things device 11 based on the average value.
[0038] For example, if the number of the above-mentioned multiple broadcast signals Bs1 to Bs4 is 4, the above-mentioned multiple broadcast signals Bs1 to Bs4 cannot fill the sampling window W2. At this time, the control module 112 calculates the average value of the received signal strength indication values S1 to S4 of the above-mentioned multiple broadcast signals Bs1 to Bsn, and then calculates the distance between the control module 112 and another Internet of Things device 11 according to the average value.
[0039] As Figure 5 shown, if the number of the above-mentioned multiple broadcast signals Bs1 to Bs7 is 7, the above-mentioned multiple broadcast signals Bs1 to Bs7 can fill the sampling window W2. At this time, the control module 112 deletes the maximum value S1 and the minimum value S7 of the received signal strength indication values S1 to S7 of the above-mentioned multiple broadcast signals Bs1 to Bs7 to obtain updated data, calculates the average value of the updated data, and then calculates the distance between the control module 112 and another Internet of Things device 11 according to the average value.
[0040] The above-optimized received signal strength indication calculation mechanism can greatly improve the calculation accuracy, enabling the Internet of Things device 11 to accurately calculate its distance from another Internet of Things device 11, and will not affect the calculation accuracy due to interference or pollution of the Bluetooth communication channel. Therefore, the performance of the Internet of Things device 11 can be greatly improved to meet the requirements of different applications.
[0041] In addition, the control module 112 continuously receives new broadcast signals and adds the received signal strength indication value of the new broadcast signal to the sampling window S2. At the same time, the control module 112 removes the received signal strength indication value with the earliest time point in the sampling window W2 and repeats the same calculation procedure. In this way, the control module 112 can continuously optimize the calculation accuracy.
[0042] As described above, the Internet of Things device 11 can not only be a lighting device, but also various other devices with different functions, such as sensing devices (microwave sensing devices, infrared sensing devices) or various household appliances. Therefore, the Internet of Things device 11 can be applied to various different intelligent applications, such as smart homes, smart factories, smart parking lots, etc., to provide various different functions. Therefore, the Internet of Things device 11 is not only more widely applied, but also more flexible to use.
[0043] In addition, the Internet of Things device 11 is simply designed and can achieve the desired effect without increasing costs. In this way, the Internet of Things device 11 can achieve high practicability to be applied to various different intelligent applications. Therefore, the Internet of Things device 11 can conform to the future development trend.
[0044] It is worth mentioning that there are still many problems to be improved in the existing ranging methods: the Bluetooth communication channel is vulnerable to severe channel interference and contamination. When there are a large number of other Bluetooth devices or other interference sources in the same channel, the normal reception of the broadcast signal may be affected, resulting in inaccurate measurement of the received signal strength indication value. In contrast, according to the first embodiment of the present invention, the Internet of Things device includes a Bluetooth module and a control module. The control module is connected to the Bluetooth module and switches the communication channel of the Bluetooth module based on the Bluetooth channel hopping mechanism, so that the Bluetooth module receives multiple broadcast signals of another Internet of Things device on multiple communication channels. The control module calculates the received signal strength indication value of each broadcast signal, and executes a filtering algorithm based on the received signal strength indication values of the multiple broadcast signals to obtain an updated received signal strength indication value, and then calculates the distance between the control module and another Internet of Things device based on the updated received signal strength indication value. Through the above optimized received signal strength indication calculation mechanism, the Internet of Things device can quickly calculate its distance from another Internet of Things device. Therefore, the Internet of Things device can meet the requirements of practical applications.
[0045] Moreover, according to the first embodiment of the present invention, the Internet of Things device has an optimized received signal strength indication calculation mechanism. Among them, the control module executes a filtering algorithm to establish a filtering window and a sampling window larger than the filtering window, and processes the received signal strength indication values of the multiple broadcast signals according to the filtering window and the sampling window to obtain an updated received signal strength indication value. When the received signal strength indication values of the multiple broadcast signals do not fill the sampling window, the control module calculates the average value of the received signal strength indication values of the multiple broadcast signals, and then calculates the distance between the control module and another Internet of Things device based on the average value. When the received signal strength indication values of the multiple broadcast signals fill the sampling window, the control module deletes the maximum and minimum values of the received signal strength indication values of the multiple broadcast signals to obtain updated data, calculates the average value of the updated data, and then calculates the distance between the control module and another Internet of Things device based on the average value. The above optimized received signal strength indication calculation mechanism can greatly improve the calculation accuracy, so that the Internet of Things device can accurately calculate its distance from another Internet of Things device, and will not affect the calculation accuracy due to interference or contamination of the Bluetooth communication channel. Therefore, the performance of the Internet of Things device can be greatly improved to meet the requirements of different applications.
[0046] In addition, according to the first embodiment of the present invention, the control module continuously receives new broadcast signals, and adds the received signal strength indication value of the new broadcast signal to the sampling window. At the same time, the control module removes the received signal strength indication value with the earliest time point in the sampling window and repeats the same calculation procedure. In this way, the control module can continuously optimize the calculation accuracy.
[0047] In addition, according to the first embodiment of the present invention, the Internet of Things device can not only be a lighting device, but also various other devices with different functions, such as sensing devices (microwave sensing devices, infrared sensing devices) or various household appliances. Therefore, the Internet of Things device can be applied to various different intelligent applications, such as smart homes, smart factories, smart parking lots, etc., to provide various different functions. Therefore, the Internet of Things device is not only more widely applied, but also more flexible in use.
[0048] Furthermore, according to the first embodiment of the present invention, the design of the Internet of Things device is simple, and the desired effect can be achieved without increasing costs. In this way, the Internet of Things device can achieve high practicality to be applied to various different intelligent applications. Therefore, the Internet of Things device can conform to the future development trend. As can be seen from the above, the Internet of Things device with a ranging function according to the embodiment of the present invention can indeed achieve excellent technical effects.
[0049] Please refer to Figure 6 , which is a flowchart of the ranging method of the Internet of Things device according to the second embodiment of the present invention. As shown in the figure, the ranging method of the Internet of Things device in this embodiment includes the following steps: Step S61: The control module switches the communication channel of the Bluetooth module based on the Bluetooth channel hopping mechanism, so that the Bluetooth module receives multiple broadcast signals of another Internet of Things device on multiple communication channels.
[0050] Step S62: The control module calculates the received signal strength indication value of each broadcast signal.
[0051] Step S63: The control module executes a filtering algorithm according to the received signal strength indication values of the above multiple broadcast signals to obtain an updated received signal strength indication value.
[0052] Step S64: The control module calculates the distance between the control module and another Internet of Things device according to the updated received signal strength indication value.
[0053] Of course, this embodiment is only used for illustration and does not limit the scope of the present invention. Equivalent modifications or changes made according to the ranging method of the Internet of Things device in this embodiment should still be included in the patent scope of the present invention.
[0054] Although the steps of the method described in the present invention are shown and described in a specific order, the operation order of each method can be changed, some steps can be executed in the reverse order, or some steps can also be executed simultaneously with other steps. In another embodiment, different steps can be implemented in an intermittent and / or alternating manner.
[0055] Please refer to Figure 7, which is a flowchart of the ranging method of the Internet of Things device according to the third embodiment of the present invention. As shown in the figure, the ranging method of the Internet of Things device in this embodiment includes the following steps: Step S71: The control module switches the communication channel of the Bluetooth module based on the Bluetooth channel hopping mechanism, so that the Bluetooth module receives multiple broadcast signals of another Internet of Things device on multiple communication channels.
[0056] Step S72: The control module calculates the received signal strength indication value of each broadcast signal.
[0057] Step S73: The control module executes a filtering algorithm according to the received signal strength indication values of the multiple broadcast signals to establish a filtering window and a sampling window larger than the filtering window.
[0058] Step S74: The control module processes the received signal strength indication values of the multiple broadcast signals according to the filtering window and the sampling window to obtain updated received signal strength indication values.
[0059] Step S75: The control module calculates the distance between the control module and another Internet of Things device according to the updated received signal strength indication value.
[0060] Of course, this embodiment is only used for illustration and not for limiting the scope of the present invention. Equivalent modifications or changes made according to the ranging method of the Internet of Things device in this embodiment should still be included within the scope of the patent of the present invention.
[0061] Although the steps of the method described in the present invention are shown and described in a specific order, the operation order of each method can be changed, and some steps can be executed in the reverse order, or some steps can also be executed simultaneously with other steps. In another embodiment, different steps can be implemented in an intermittent and / or alternating manner.
[0062] Please refer to Figure 8 , which is a flowchart of the ranging method of the Internet of Things device according to the fourth embodiment of the present invention. As shown in the figure, the ranging method of the Internet of Things device in this embodiment includes the following steps: Step S81: The control module switches the communication channel of the Bluetooth module based on the Bluetooth channel hopping mechanism, so that the Bluetooth module receives multiple broadcast signals of another Internet of Things device on multiple communication channels.
[0063] Step S82: The control module calculates the received signal strength indication value of each broadcast signal.
[0064] Step S83: The control module executes a filtering algorithm according to the received signal strength indication values of the multiple broadcast signals to establish a filtering window and a sampling window larger than the filtering window.
[0065] Step S84: When the received signal strength indication values of the multiple broadcast signals do not fill the sampling window via the control module, calculate the average value of the received signal strength indication values of the multiple broadcast signals.
[0066] Step S85: Calculate the distance between the control module and another Internet of Things device by the control module according to the average value.
[0067] Step S86: When the received signal strength indication values of the multiple broadcast signals fill the sampling window via the control module, delete the maximum value and the minimum value of the received signal strength indication values of the multiple broadcast signals to obtain updated data.
[0068] Step S87: Calculate the average value of the updated data via the control module.
[0069] Step S88: Calculate the distance between the control module and another Internet of Things device by the control module according to the average value.
[0070] In summary, according to the first, second, third, and fourth embodiments of the present invention, the Internet of Things device includes a Bluetooth module and a control module. The control module is connected to the Bluetooth module and switches the communication channel of the Bluetooth module based on the Bluetooth channel hopping mechanism, so that the Bluetooth module receives multiple broadcast signals of another Internet of Things device on multiple communication channels. The control module calculates the received signal strength indication value of each broadcast signal, and executes a filtering algorithm according to the received signal strength indication values of the multiple broadcast signals to obtain an updated received signal strength indication value, and then calculates the distance between the control module and another Internet of Things device according to the updated received signal strength indication value. Through the above optimized received signal strength indication calculation mechanism, the Internet of Things device can quickly calculate its distance from another Internet of Things device. Therefore, the Internet of Things device can meet the requirements of practical applications.
[0071] Moreover, according to the first, second, third, and fourth embodiments of the present invention, the IoT device has an optimized received signal strength indication (RSSI) calculation mechanism. Among them, the control module executes a filtering algorithm to establish a filtering window and a sampling window larger than the filtering window, and processes the RSSI values of the above-mentioned multiple broadcast signals according to the filtering window and the sampling window to obtain updated RSSI values. When the RSSI values of the above-mentioned multiple broadcast signals do not fill the sampling window, the control module calculates the average value of the RSSI values of the above-mentioned multiple broadcast signals, and then calculates the distance between the control module and another IoT device according to the average value. When the RSSI values of the above-mentioned multiple broadcast signals fill the sampling window, the control module deletes the maximum and minimum values of the RSSI values of the above-mentioned multiple broadcast signals to obtain updated data, calculates the average value of the updated data, and then calculates the distance between the control module and another IoT device according to the average value. The above-mentioned optimized RSSI calculation mechanism can greatly improve the calculation accuracy, enabling the IoT device to accurately calculate its distance from another IoT device without being affected by interference or contamination of the Bluetooth communication channel on its calculation accuracy. Therefore, the performance of the IoT device can be greatly improved to meet the requirements of different applications.
[0072] In addition, according to the first, second, third, and fourth embodiments of the present invention, the control module continuously receives new broadcast signals and adds the RSSI values of the new broadcast signals to the sampling window. At the same time, the control module removes the RSSI value with the earliest time point in the sampling window and repeats the same calculation procedure. In this way, the control module can continuously optimize the calculation accuracy.
[0073] Furthermore, according to the first, second, third, and fourth embodiments of the present invention, the IoT device can not only be a lighting device, but also other various devices with different functions, such as sensing devices (microwave sensing devices, infrared sensing devices) or various household appliances. Therefore, the IoT device can be applied to various different intelligent applications, such as smart homes, smart factories, smart parking lots, etc., to provide various different functions. Therefore, the IoT device is not only more widely applied, but also more flexible to use.
[0074] Moreover, according to the first, second, third, and fourth embodiments of the present invention, the design of the IoT device is simple and can achieve the desired effect without increasing costs. In this way, the IoT device can achieve high practicality to be applied to various different intelligent applications. Therefore, the IoT device can meet the future development trend.
[0075] It should be noted that although the above embodiments have been described in this document, it does not limit the scope of patent protection of the present invention. Therefore, based on the innovative concept of the present invention, any changes and modifications made to the embodiments described herein, or equivalent structural or equivalent process transformations made using the content of the specification and drawings of the present invention, and directly or indirectly applying the above technical solutions to other related technical fields, are all included in the scope of protection of the present invention patent.
Claims
1. An Internet of Things device with a distance measurement function, characterized in that: include: Bluetooth module; as well as A control module connected to the Bluetooth module and used to switch the communication channel of the Bluetooth module based on a Bluetooth channel frequency hopping mechanism, so that the Bluetooth module receives multiple broadcast signals of another IoT device on multiple communication channels; The control module is used to calculate the received signal strength indication value of each of the broadcast signals, and execute a filtering algorithm according to the received signal strength indication values of the multiple broadcast signals to obtain an updated received signal strength indication value, and then calculate the distance between the control module and the other Internet of Things device according to the updated received signal strength indication value.
2. The Internet of Things device with a distance measurement function as claimed in claim 1, characterized in that: The filtering algorithm is a sliding average filtering algorithm, a median filtering algorithm or a Kalman filtering algorithm.
3. The Internet of Things device with a distance measurement function as claimed in claim 1, characterized in that: The control module is used to execute the filtering algorithm to establish a filtering window and a sampling window larger than the filtering window, and process the received signal strength indication values of the plurality of broadcast signals according to the filtering window and the sampling window to obtain the updated received signal strength indication value.
4. The Internet of Things device with a distance measurement function as claimed in claim 3, characterized in that: When the received signal strength indication values of the multiple broadcast signals do not fill the sampling window, the control module is used to calculate an average value of the received signal strength indication values of the multiple broadcast signals, and then calculate the distance between the control module and the other IoT device based on the average value.
5. The Internet of Things device with a distance measurement function as claimed in claim 3, characterized in that: When the received signal strength indication values of the multiple broadcast signals fill the sampling window, the control module is used to delete the maximum and minimum received signal strength indication values of the multiple broadcast signals to obtain updated data, calculate the average value of the updated data, and then calculate the distance between the control module and the other IoT device based on the average value.
6. A distance measurement method for an Internet of Things device, characterized in that: include: The control module switches the communication channel of the Bluetooth module based on the Bluetooth channel frequency hopping mechanism, so that the Bluetooth module receives multiple broadcast signals of another IoT device on multiple communication channels; Calculating, via the control module, a received signal strength indicator value of each of the broadcast signals; Executing a filtering algorithm according to the received signal strength indication values of the plurality of broadcast signals by the control module to obtain an updated received signal strength indication value; as well as The control module calculates the distance between the control module and the other Internet of Things device according to the updated received signal strength indicator value.
7. The distance measurement method of the Internet of Things device according to claim 6, characterized in that: The filtering algorithm is a sliding average filtering algorithm, a median filtering algorithm or a Kalman filtering algorithm.
8. The distance measurement method of the Internet of Things device according to claim 6, characterized in that: The step of executing the filtering algorithm according to the received signal strength indication values of the plurality of broadcast signals by the control module to obtain the updated received signal strength indication value comprises: The control module establishes a filtering window and a sampling window larger than the filtering window; and The control module processes the received signal strength indication values of the plurality of broadcast signals according to the filter window and the sampling window to obtain the updated received signal strength indication value.
9. The distance measurement method of the Internet of Things device as claimed in claim 8, characterized in that: The step of processing the received signal strength indication values of the plurality of broadcast signals according to the filtering window and the sampling window via the control module to obtain the updated received signal strength indication value comprises: calculating, by the control module, an average of the received signal strength indication values of the plurality of broadcast signals when the received signal strength indication values of the plurality of broadcast signals do not fill up the sampling window; and The control module calculates the distance between the control module and the other Internet of Things device according to the average value.
10. The distance measurement method of the Internet of Things device according to claim 8, characterized in that: The step of processing the received signal strength indication values of the plurality of broadcast signals according to the filtering window and the sampling window via the control module to obtain the updated received signal strength indication value comprises: When the received signal strength indicator values of the plurality of broadcast signals fill the sampling window, the maximum value and the minimum value of the received signal strength indicator values of the plurality of broadcast signals are deleted by the control module to obtain updated data; calculating, via the control module, an average value of the update data; and The control module calculates the distance between the control module and the other Internet of Things device according to the average value.
Citation Information
Patent Citations
Bluetooth adaptive frequency hopping positioning method
CN107425880A
Ranging method with dynamic parameter update based on signal intensity value hybrid filtering
CN109143157A
Bluetooth information monitoring method and Bluetooth information monitoring system
CN118659844A
Positioning method, device, equipment, medium and product
CN119584284A
Method and apparatus for detecting trends in received signal strength
US20080032628A1