Dual-mode wireless distance information transmission test method for smart street lights
Through the dual-mode wireless distance information transmission test method, the optimal configuration of the installation location and number of wireless communication equipment in the intelligent street light system is solved, the communication quality is improved and the cost is reduced, and the wireless communication of the intelligent street light system is smooth.
Patent Information
- Application Number
- CN202411514615.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2044-10-29
AI Technical Summary
In intelligent street light systems, it is difficult for the prior art to effectively determine the optimal installation location and number of wireless communication devices, which affects the accuracy and cost control of wireless communication distance information transmission between multiple intelligent street lights on long-distance routes.
The dual-mode wireless distance information transmission test method is adopted to obtain the coordinate points of the smart street light, test the effective transmission distance of the BT module and the Wi-SUN module, and combine the GPS and signal strength indicator to calculate and allocate the number of modules, and use the numerical sorting algorithm. Optimize the cost and location of the module to ensure the satisfaction and cost of wireless communication conditions.
The wireless communication quality of the intelligent street light system is improved, the optimal installation location and number of modules is determined, the installation cost is reduced, and the wireless communication between multiple intelligent street lights is smooth.
Smart Images

Figure CN119030884B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of signal transmission, and in particular to a dual-mode wireless distance information transmission test method for intelligent street lamps. Background Art
[0002] Smart street lights, also known as intelligent street lights, or smart street lights, smart lighting, use the Internet of Things and cloud computing technologies to comprehensively upgrade the urban public lighting management system, realize centralized control of street lights, information-based operation and maintenance, and intelligent lighting. Currently, smart street lights use various terminal devices to control street light circuits or single lights in real time on the system operation interface, and execute scheduled tasks according to clear strategies;
[0003] Current wireless communication technologies include BT modules and Wi-SUN modules, among which:
[0004] BT module usually refers to Bluetooth module, which is a short-range wireless communication technology module used for data transmission and connection between devices. In some application scenarios, the power consumption of BT module is relatively low, which helps to extend the battery life of the device and has good device compatibility, but the transmission distance is limited: it is generally suitable for shorter-distance communication and is not suitable for long-distance transmission;
[0005] Wi-SUN module is a wireless communication technology suitable for large-scale IoT networks. It has the characteristics of long-distance transmission, low power consumption, high security and self-organizing network. However, compared with some other wireless communication technologies (BT modules), the cost of Wi-SUN modules may be higher.
[0006] In order to ensure that multiple smart street lights can communicate wirelessly on a long route, the existing technology uses BT modules and Wi-SUN modules as gateways to control the smart street lights. However, when installing multiple wireless communication devices on different road sections, it is unclear what the optimal location, spacing and optimal number of wireless communication devices should be, and the cost and compatibility should be taken into consideration, which affects the accuracy of the distance information transmission test in the scenario of multiple smart street lights. In view of this, we propose a dual-mode wireless distance information transmission test method for smart street lights. Summary of the invention
[0007] The purpose of the present invention is to provide a dual-mode wireless distance information transmission test method for smart street lamps to solve the problems raised in the above background technology.
[0008] To achieve the above object, the present invention provides a dual-mode wireless distance information transmission test method for a smart street lamp, comprising the following steps:
[0009] S1. Preparation stage: Get the coordinates of multiple smart street lights and test the effective transmission distance of the BT module Effective transmission distance with Wi-SUN module , and get the unit price of BT module and the unit price of Wi-SUN module ;
[0010] S2, testing phase: The length L of the entire route is calculated through the coordinate points of two adjacent smart street lamps, and the number of Wi-SUN modules traversed is , so that the number of BT modules is , and meet multiple smart street light wireless communication conditions;
[0011] Specifically, the number of Wi-SUN modules is initialized to increase from 0, the number of BT modules is calculated in sequence, and the sum of the effective transmission distance of the number of BT modules and the effective transmission distance of the number of Wi-SUN modules is made consistent with the length of the entire route, and multiple groups of test data are output;
[0012] The unit price calculations of Wi-SUN modules and BT modules are integrated according to multiple groups of test data, and multiple groups of cost data are output. The cost data sorting weights are output using a numerical sorting algorithm. The corresponding quantities of Wi-SUN modules and BT modules are called out according to the cost data sorting weights, and the positions of Wi-SUN modules and BT modules on the entire route are allocated. The controller verifies whether the Wi-SUN modules and BT modules meet the wireless communication conditions of multiple smart street lights. Until the wireless communication conditions of multiple smart street lights are met, the required quantities of Wi-SUN modules and BT modules are collaboratively analyzed for multiple smart street lights on the entire route.
[0013] As a further improvement of the technical solution, the step of obtaining the coordinate points of multiple smart street lamps in S1 includes the following steps:
[0014] The GPS receiver on each smart street light receives signals from multiple satellites and processes the received signals to obtain accurate satellite data. The distance between the receiver and the satellite is calculated based on the propagation time of the satellite signal. The position coordinates of the receiver are determined by measuring the distance to multiple satellites using the principle of triangulation.
[0015] In S2, the length of the entire route is calculated. The distance between two adjacent smart street lamps is calculated by using a two-point distance formula, and the distances between multiple adjacent street lamps are summarized as the length of the entire route.
[0016] As a further improvement of the technical solution, the effective transmission distance of the BT module and the effective transmission distance of the Wi-SUN module are tested in S1, including the following steps:
[0017] The signal strength RSSI values of the BT module and Wi-SUN module in the current controller and smart street light are obtained through the signal strength indicator. The sending end device of the BT module and Wi-SUN module is installed on the controller, and the receiving end device of the BT module and Wi-SUN module is installed on the smart street light. The distance between the sending end and the receiving end is gradually increased, and the signal strength received by the receiving end device is recorded. When the signal strength of the receiving end device is detected to be lower than the signal threshold, the distance at this time is recorded as the maximum transmission distance of the BT module and Wi-SUN module.
[0018] Therefore, the transmission loss of the radio signal in free space is estimated, and the maximum transmission distance of the BT module and the Wi-SUN module is corrected according to the transmission loss to obtain the effective transmission distance of the BT module and the Wi-SUN module.
[0019] As a further improvement of the technical solution, the principle steps of calculating the number of BT modules in S2 are as follows:
[0020]
[0021] in, is the number of BT modules, Indicates rounding up.
[0022] As a further improvement of the technical solution, the cost calculation of the Wi-SUN module and the BT module is integrated according to multiple groups of test data in S2, including the following steps:
[0023] Get the unit price of Wi-SUN modules and BT modules from dealers;
[0024] Calculate the cost: multiply the number of Wi-SUN modules by the cost of Wi-SUN modules to get the cost of Wi-SUN modules for the current test data. Multiply the number of BT modules by the unit price of BT modules to get the cost of BT modules for the current test data. Sum up the two costs and output the cost data for the current test data.
[0025] Traverse multiple groups of test data, use the above cost calculation steps respectively, and output multiple groups of cost data.
[0026] As a further improvement of the technical solution, the numerical sorting algorithm is used in S2 to summarize multiple sets of cost data, including the following steps:
[0027] According to the values in multiple groups of cost data, the data is divided and sorted, and each value of the sequence to be sorted is split into m digits. Then, the sequence to be sorted is divided into multiple subsequences according to the order of the digits of the data from high to low. The data with the same high digits are arranged in the same subsequence. The data of each subsequence follows the rule of orderly between segments and disorder within segments.
[0028] Then judge the data of each subsequence separately. If the sorting result has duplication and has not reached the lowest digit, sort the subsequence composed of the next highest digit. Continue the above sorting and sorting work until the sorting result is complete without duplication. The sorting work is completed and the multiple sets of cost data are stored in the database according to the sorting weight from high to low.
[0029] As a further improvement of the technical solution, the positions of Wi-SUN modules and BT modules on the entire route are allocated in S2, and the number of Wi-SUN modules and BT modules is output by calling a group of test data with the highest sorting weight in the database. The allocation method includes the following gestures:
[0030] Position 1: The Wi-SUN module and the BT module are allocated adjacently, and the adjacent distance is the sum of the effective transmission distance of the Wi-SUN module and the effective transmission distance of the BT module;
[0031] Posture 2: Wi-SUN modules are allocated adjacently, and the adjacent distance is the sum of the effective transmission distances of the two Wi-SUN modules;
[0032] Attitude 3: BT modules are allocated adjacently, then the adjacent distance is the sum of the effective transmission distances of the two BT modules;
[0033] When the smart street light at the starting position is close to the Wi-SUN module, the distance between the initially allocated Wi-SUN module and the smart street light at the starting position is the effective transmission distance of the Wi-SUN module, and the coordinates of multiple Wi-SUN modules and BT modules under the allocation mode are output through the coordinates of the smart street light at the starting position;
[0034] When the smart street lamp at the starting position is close to the BT module, the distance between the initially allocated BT module and the smart street lamp at the starting position is the effective transmission distance of the BT module, and the coordinates of multiple Wi-SUN modules and BT modules under the allocation mode are output through the coordinates of the smart street lamp at the starting position.
[0035] As a further improvement of the technical solution, when allocating the positions of the Wi-SUN module and the BT module on the entire route, a bending point detection algorithm is also included, including the following steps:
[0036] Calculate the slope of the line segment between the coordinate points of adjacent smart street lamps, set a threshold for the slope change, and when the slope difference between two adjacent line segments exceeds the threshold, output that there is a bending point between the two smart street lamps;
[0037] Detect whether there are coordinates of Wi-SUN module and BT module between two smart street lights;
[0038] If they exist, the Wi-SUN module and BT module are deleted, and the controller is used to re-verify whether the Wi-SUN module and BT module meet the wireless communication conditions of multiple smart street lights. If they meet the conditions, the signal of reducing one module is transmitted, and the number of Wi-SUN modules and BT modules is re-output. If they do not meet the conditions, the deleted modules are reallocated to the previous positions.
[0039] If it does not exist, the Wi-SUN module and BT module at the current bending point will not be deleted.
[0040] Compared with the prior art, the present invention has the following beneficial effects:
[0041] In the dual-mode wireless distance information transmission test method for smart street lamps, the number of Wi-SUN modules is initialized to increase from 0 in sequence, the number of BT modules is calculated in sequence, and the sum of the effective transmission distance of the number of BT modules and the effective transmission distance of the number of Wi-SUN modules is consistent with the length of the entire route, multiple groups of test data are output to respectively integrate the unit price calculation of Wi-SUN modules and BT modules, multiple groups of cost data are output, and the multiple groups of cost data are summarized by a numerical sorting algorithm; the corresponding numbers of Wi-SUN modules and BT modules are called out according to the sorting weight of the cost data, the positions of the Wi-SUN modules and BT modules on the entire route are allocated, and the controller is used to verify whether the Wi-SUN modules and BT modules meet the wireless communication conditions of multiple smart street lamps until the wireless communication conditions of multiple smart street lamps are met, and the required numbers of Wi-SUN modules and BT modules are collaboratively analyzed for multiple smart street lamps on the entire route, so that on the one hand, multiple smart street lamps can perform wireless communication, and the best installation positions of Wi-SUN modules and BT modules are tested to improve the communication quality of smart street lamps, and on the other hand, the cost is reduced as much as possible when the wireless communication conditions are met, so that the testing and planning of smart street lamps are more practical. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is the overall flow chart of the present invention;
[0043] Figure 2 It is a flowchart of the bending point detection algorithm of the present invention. DETAILED DESCRIPTION
[0044] The following will be combined with the accompanying drawings in the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] Example 1
[0046] See also Figure 1-Figure 2 As shown, this embodiment provides a dual-mode wireless distance information transmission test method for a smart street lamp, comprising the following steps:
[0047] S1. Preparation stage: Get the coordinates of multiple smart street lights and test the effective transmission distance of the BT module Effective transmission distance with Wi-SUN module , and get the unit price of BT module and the unit price of Wi-SUN module ;
[0048] S2, testing phase: The length L of the entire route is calculated through the coordinate points of two adjacent smart street lamps, and the number of Wi-SUN modules traversed is , so that the number of BT modules is , and meet multiple intelligent street lamp wireless communication conditions, the expression is:
[0049] ;
[0050] Specifically, the number of Wi-SUN modules is initialized to increase from 0, the number of BT modules is calculated in sequence, and the sum of the effective transmission distance of the number of BT modules and the effective transmission distance of the number of Wi-SUN modules is made consistent with the length of the entire route, and multiple groups of test data are output (indicating the number of Wi-SUN modules and BT modules that meet the wireless communication conditions);
[0051] The unit price calculation of Wi-SUN modules and BT modules is integrated according to multiple groups of test data, multiple groups of cost data are output, and the cost data sorting weight is output by using a numerical sorting algorithm; the corresponding quantity of Wi-SUN modules and BT modules is called out according to the cost data sorting weight, the positions of Wi-SUN modules and BT modules on the entire route are allocated, and the controller is used to verify whether the Wi-SUN modules and BT modules meet the wireless communication conditions of multiple smart street lights, until the wireless communication conditions of multiple smart street lights are met, and the required quantity of Wi-SUN modules and BT modules is collaboratively analyzed for multiple smart street lights on the entire route. On the one hand, multiple smart street lights can communicate wirelessly, and the best installation positions of Wi-SUN modules and BT modules are tested to improve the communication quality of smart street lights. On the other hand, the cost is reduced as much as possible while meeting the wireless communication conditions, so that the testing and planning of smart street lights are more practical.
[0052] Specifically, obtaining the coordinate points of multiple smart street lamps in S1 includes the following steps:
[0053] The GPS receiver on each smart street light receives signals from multiple satellites. The signals contain information such as the satellite number, location, and transmission time. The received signals are processed, including noise removal and information decoding, to obtain accurate satellite data. The distance between the receiver and the satellite is calculated based on the propagation time of the satellite signal. The distance refers to the time it takes for the signal to propagate from the satellite to the receiver multiplied by the speed of light. However, due to factors such as clock errors, this distance is not the real distance, but an estimated value containing errors. Since the position of the satellite is known, the position coordinates of the receiver are determined by measuring the distance to multiple satellites using the principle of triangulation. Specifically, assuming that the coordinates of the receiver are (x, y, z), there are three satellites with coordinates of (x1, y1, z1), (x2, y2, z2), and (x3, y3, z3), and the distances are P1, P2, and P3, respectively. Therefore, the coordinate solution formula is:
[0054]
[0055] in, is the clock error of the receiver. As the number of satellites increases, the receiver coordinates and clock error can be solved according to the above formula;
[0056] In S2, the length of the entire route is calculated. The distance between two adjacent smart street lamps is calculated by using the distance formula between two points. The distances between multiple adjacent street lamps are summarized as the length of the entire route. For example, if the distance between two adjacent street lamps is d1, d2, d3, ..., dk, then L=d1+d2+d3+...+dk, which is conducive to the subsequent judgment of the required wireless communication distance based on the distance.
[0057] Furthermore, the testing of the effective transmission distance of the BT module and the effective transmission distance of the Wi-SUN module in S1 includes the following steps:
[0058] The signal strength RSSI values of the BT module and Wi-SUN module in the current controller and smart street light are obtained through the signal strength indicator. The sending end device of the BT module and Wi-SUN module is installed on the controller, and the receiving end device of the BT module and Wi-SUN module is installed on the smart street light. The distance between the sending end and the receiving end is gradually increased, and the signal strength received by the receiving end device is recorded. When the signal strength of the receiving end device is detected to be lower than the signal threshold, the distance at this time is recorded as the maximum transmission distance of the BT module and Wi-SUN module.
[0059] The greater the transmission power of the BT module, the longer the transmission distance in theory, but it will also increase power consumption. Obstacles (such as buildings, walls, trees, etc.) and electromagnetic interference will weaken the signal strength, thereby reducing the transmission distance. The frequency band and channel selection used by the Wi-SUN module will affect signal propagation and interference. The antenna performance of the transmitter and receiver has an important impact on the transmission distance, including antenna gain and directivity. At the same time, similar to the BT module, environmental factors such as obstacles, terrain, and climate will affect the propagation of Wi-SUN signals.
[0060] Therefore, the transmission loss of the radio signal in free space is estimated, and the maximum transmission distance of the BT module and the Wi-SUN module is corrected according to the transmission loss to obtain the effective transmission distance of the BT module and the Wi-SUN module, so as to achieve a more accurate transmission distance of the BT module and the Wi-SUN module. Specifically, for the BT module: the transmission loss of the radio signal in free space is estimated by the Friis transmission equation, and considering the existence of obstacles and interference in the actual environment, the equation needs to be corrected as follows: , where Q is the transmission loss, D is the distance between the transmitter and the receiver, is the wavelength of the signal, and K is the environmental factor, which needs to be determined through actual testing and experience. It reflects the impact of obstacles, electromagnetic interference, etc. on signal transmission.
[0061] Furthermore, the principle steps for calculating the number of BT modules in S2 are as follows:
[0062]
[0063] in, is the number of BT modules, It means rounding up. By rounding up, the sum of the effective transmission distance of the BT modules and the effective transmission distance of the Wi-SUN modules is consistent with the length of the entire route, ensuring that the multiple test data can meet the wireless communication needs of multiple smart street lights. After rounding up, the number of BT modules is just enough to ensure transmission, avoiding further increasing the number, which will increase the cost and help reduce the cost.
[0064] Then, the cost calculation of the Wi-SUN module and the BT module is integrated according to the multiple test data in S2, including the following steps:
[0065] Get the unit price of Wi-SUN modules and BT modules from dealers. Since market prices may fluctuate, it is recommended to compare and consult multiple channels or determine the unit price based on the supplier with which the enterprise currently signs a contract, so as to obtain the most reasonable cost information.
[0066] Calculate the cost: multiply the number of Wi-SUN modules by the cost of Wi-SUN modules to get the cost of Wi-SUN modules for the current test data. Multiply the number of BT modules by the unit price of BT modules to get the cost of BT modules for the current test data. Sum up the two costs and output the cost data for the current test data.
[0067] Traverse multiple groups of test data, use the above cost calculation steps respectively, and output multiple groups of cost data.
[0068] Furthermore, the S2 uses a numerical sorting algorithm to summarize multiple sets of cost data, including the following steps:
[0069] According to the values in multiple groups of cost data, the data is divided and sorted, and each value of the sequence to be sorted is split into m digits. Then, the sequence to be sorted is divided into multiple subsequences according to the order of the digits of the data from high to low. The data with the same high digits are arranged in the same subsequence. The data of each subsequence follows the rule of orderly between segments and disorder within segments.
[0070] Then judge the data of each subsequence separately. If the sorting result has duplication and has not reached the lowest digit, sort the subsequence composed of the next highest digit. Continue the above sorting and arranging work until the sorting result has no duplication. The sorting work is finished and the multiple cost data sets are stored in the database according to the sorting weight from high to low.
[0071] A value is composed of multiple digits: for example, the values 213, 285, 351, and 215 include units, tens, and hundreds, three digits, with the hundreds being the highest digit and the tens being the second highest digit. When sorting the high digits, 3 is used as a subsequence and 2 is used as a subsequence, 3 (351) → 2 (213, 285, and 215). If the sorting result has duplicates and has not yet reached the lowest digit, it means that there are multiple duplicate high digits in the subsequence of 2, and the lowest digit (units) is not sorted at this time, then the sorting continues in the subsequence of 2 until all digits are sorted to form the final sorting result;
[0072] Specifically, the calculation formula is as follows:
[0073]
[0074]
[0075]
[0076] F is the result of numerical comparison output, A is one of the cost data, B is the other cost data, A 1 is one of the high-order values of the cost data, B 1 is another high value of cost data, A 0is a low value of one of the cost data, B 0 It is the lower value of another cost data. Multiple data are compared in sequence. + indicates parallel and * indicates simultaneous satisfaction.
[0077] Specifically, the above calculation formula is interpreted by comparing the values when splitting by bit:
[0078] Situation 1: :One of the cost data is greater than the other cost data, so the logic indicates that there are two situations: ①, It means that the high value of one cost data is greater than the high value of the other cost data (for example, when comparing the values of 65 and 45, the high value of the former is greater than the high value of the latter, 6>4, in this case, it can be directly determined that 65>45 without comparing the low value); ②, It means that the high value of one cost data is equal to the high value of another cost data, and at the same time, the low value of one cost data is greater than the low value of the other cost data (for example, if the high value 4 of 45 and 42 are the same, then the low value of the former is greater than the low value of the latter, and 5>2, it means 45>42);
[0079] Situation 2: :One of the cost data is less than the other cost data, so the logic indicates that there are two situations: ①, It means that the high value of one cost data is less than the high value of the other cost data (for example, when comparing the values of 45 and 65, the high value of the former is less than the high value of the latter, and 6<4. In this case, it can be directly determined that 45 is less than 65 without comparing the low value); ②, It means that the high value of one cost data is equal to the high value of another cost data, and at the same time, the low value of one cost data is less than the low value of another cost data (for example, if the high value 4 of 42 and 45 are the same, then the low value of the former is greater than the low value of the latter, and 2<5, which means 42<45);
[0080] Situation 3: :One of the cost data is equal to the other cost data, so the logic indicates that there is a situation, ①, It means that the high value of one cost data is equal to the high value of another cost data, and at the same time, the low value of one cost data is equal to the low value of another cost data (for example, if the values of 45 and 45 are compared, the high value 4 and the low value are the same, then 45=45).
[0081] In addition, the positions of Wi-SUN modules and BT modules on the entire route are allocated in S2, and the number of Wi-SUN modules and BT modules is output by calling a group of test data with the highest sorting weight in the database. The allocation method includes the following postures:
[0082] Position 1: The Wi-SUN module and the BT module are allocated adjacently, and the adjacent distance is the sum of the effective transmission distance of the Wi-SUN module and the effective transmission distance of the BT module;
[0083] Posture 2: Wi-SUN modules are allocated adjacently, and the adjacent distance is the sum of the effective transmission distances of the two Wi-SUN modules;
[0084] Attitude 3: BT modules are allocated adjacently, then the adjacent distance is the sum of the effective transmission distances of the two BT modules;
[0085] When the smart street light at the starting position is close to the Wi-SUN module, the distance between the initially allocated Wi-SUN module and the smart street light at the starting position is the effective transmission distance of the Wi-SUN module, and the coordinates of multiple Wi-SUN modules and BT modules under the allocation method are output through the coordinates of the smart street light at the starting position. Assuming that the coordinates of the starting position are (x0, y0, z0), the coordinates of the initially allocated Wi-SUN module are ,Similarly, the subsequent modules add the distance in the X coordinate system once to obtain the coordinates of all modules;
[0086] When the smart street light at the starting position is close to the BT module, the distance between the initially allocated BT module and the smart street light at the starting position is the effective transmission distance of the BT module, and the coordinates of multiple Wi-SUN modules and BT modules under the allocation method are output through the coordinates of the smart street light at the starting position. Assuming that the coordinates of the starting position are (x0, y0, z0), the coordinates of the initially allocated BT module are ,Similarly, the subsequent modules add the distance in the X coordinate system once to obtain the ,coordinates of all modules.
[0087] Embodiment 2:
[0088] Considering that the entire route is not necessarily a straight line, the smart street lights that are close to each other at the bends are close. If the Wi-SUN module and the BT module are installed at the bends, when the smart street lights are controlled by the controller, wireless communication can control relatively more smart street lights. Therefore, when allocating the positions of the Wi-SUN module and the BT module on the entire route, a bend point detection algorithm is also included, including the following steps:
[0089] Calculate the slope of the line segment between the coordinate points of adjacent smart street lamps, set a threshold for the slope change, and when the slope difference between two adjacent line segments exceeds the threshold, output that there is a bending point between the two smart street lamps;
[0090] Detect whether there are coordinates of Wi-SUN module and BT module between two smart street lights;
[0091] If they exist, the Wi-SUN module and BT module are deleted, and the controller is used to re-verify whether the Wi-SUN module and BT module meet the wireless communication conditions of multiple smart street lights. If they meet the conditions, the signal of reducing one module is transmitted, and the number of Wi-SUN modules and BT modules is re-output. If they do not meet the conditions, the deleted modules are reallocated to the previous positions.
[0092] If it does not exist, the Wi-SUN module and BT module at the current bending point will not be deleted;
[0093] Specifically, when calculating the slope of a line segment, assuming that the coordinate points of two adjacent smart street lamps are (x1, y1) and (x2, y2), the following formula is used to calculate the slope of the line segment between them: :
[0094] ,like , then the output has a bending point, if , then the output shows that there is no bending point. If the Wi-SUN module and BT module are found at the bending point, remove the modules as needed, use the controller to control the smart street lights on the entire route, and check whether all smart street lights can respond to the control signal normally. If all smart street lights can be successfully controlled, the output result shows that the solution is feasible; if some smart street lights cannot be controlled, it means that there is a problem with communication coverage after removing or replacing the module. At this time, the disassembly operation should not be performed, or other solutions should be considered, such as adjusting the module position or adding signal enhancement equipment.
[0095] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the present invention and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A dual-mode wireless distance information transmission test method for smart street lamps, characterized in that: The following steps are involved: S1. Preparation stage: Obtain the coordinate points of multiple smart street lights and test the effective transmission distance of the BT module Effective transmission distance with Wi-SUN module , and get the unit price of BT module and the unit price of Wi-SUN module ; S2, testing phase: The length L of the entire route is calculated through the coordinate points of two adjacent smart street lamps, and the number of Wi-SUN modules traversed is , so that the number of BT modules is , and meet multiple smart street light wireless communication conditions; Specifically, the number of Wi-SUN modules is initialized to increase from 0, the number of BT modules is calculated in sequence, and the sum of the effective transmission distance of the number of BT modules and the effective transmission distance of the number of Wi-SUN modules is made consistent with the length of the entire route, and multiple groups of test data are output; According to multiple groups of test data, the unit price calculation of Wi-SUN modules and BT modules is integrated respectively, and multiple groups of cost data are output, and the cost data sorting weight is output using a numerical sorting algorithm; the corresponding quantity of Wi-SUN modules and BT modules is called out according to the cost data sorting weight, and the positions of Wi-SUN modules and BT modules on the entire route are allocated, and the controller is used to verify whether the Wi-SUN modules and BT modules meet the wireless communication conditions of multiple smart street lights, until the wireless communication conditions of multiple smart street lights are met, and the required quantity of Wi-SUN modules and BT modules is collaboratively analyzed for multiple smart street lights on the entire route; When allocating the positions of Wi-SUN modules and BT modules along the entire route, a bending point detection algorithm is also used, including the following steps: Calculate the slope of the line segment between the coordinate points of adjacent smart street lamps, set a threshold for the slope change, and when the slope difference between two adjacent line segments exceeds the threshold, output that there is a bending point between the two smart street lamps; Detect whether there are coordinates of Wi-SUN module and BT module between two smart street lights; If so, delete the Wi-SUN module and BT module at the current bending point, and re-verify the Wi-SUN module and BT module through the controller to see if they meet the wireless communication conditions of multiple smart street lights. If so, transmit a signal to reduce one module and re-output the number of Wi-SUN modules and BT modules. If not, reallocate the deleted module to the previous position. If it does not exist, the Wi-SUN module and BT module at the current bending point will not be deleted.
2. The dual-mode wireless distance information transmission test method for smart street lamps according to claim 1 is characterized in that: The step of obtaining the coordinate points of a plurality of smart street lamps in S1 includes the following steps: The GPS receiver on each smart street light receives signals from multiple satellites and processes the received signals to obtain accurate satellite data. The distance between the receiver and the satellite is calculated based on the propagation time of the satellite signal. The position coordinates of the receiver are determined by measuring the distance to multiple satellites using the principle of triangulation. In S2, the length of the entire route is calculated. The distance between two adjacent smart street lamps is calculated by using a two-point distance formula, and the distances between multiple adjacent street lamps are summarized as the length of the entire route.
3. The dual-mode wireless distance information transmission test method for smart street lamps according to claim 2 is characterized in that: The effective transmission distance of the BT module and the effective transmission distance of the Wi-SUN module are tested in S1, including the following steps: The signal strength RSSI values of the BT module and Wi-SUN module in the current controller and smart street light are obtained through the signal strength indicator. The sending end device of the BT module and Wi-SUN module is installed on the controller, and the receiving end device of the BT module and Wi-SUN module is installed on the smart street light. The distance between the sending end and the receiving end is gradually increased, and the signal strength received by the receiving end device is recorded. When the signal strength of the receiving end device is detected to be lower than the signal threshold, the distance at this time is recorded as the maximum transmission distance of the BT module and Wi-SUN module. Therefore, the transmission loss of the radio signal in free space is estimated, and the maximum transmission distance of the BT module and the Wi-SUN module is corrected according to the transmission loss to obtain the effective transmission distance of the BT module and the Wi-SUN module.
4. The dual-mode wireless distance information transmission test method for smart street lamps according to claim 3 is characterized in that: The principle steps for calculating the number of BT modules in S2 are as follows: in, is the number of BT modules, Indicates rounding up.
5. The dual-mode wireless distance information transmission test method for smart street lamps according to claim 4 is characterized in that: In S2, the cost calculation of the Wi-SUN module and the BT module are integrated according to the multiple groups of test data, including the following steps: Get the unit price of Wi-SUN module and BT module; Calculate the cost: multiply the number of Wi-SUN modules by the unit price of Wi-SUN modules to get the cost of Wi-SUN modules for the current test data. Multiply the number of BT modules by the unit price of BT modules to get the cost of BT modules for the current test data. Sum up the costs of the two and output the cost data for the current test data. Traverse multiple groups of test data, use the above cost calculation steps respectively, and output multiple groups of cost data.
6. The dual-mode wireless distance information transmission test method for smart street lamps according to claim 5, characterized in that: In S2, a numerical sorting algorithm is used to summarize multiple sets of cost data, including the following steps: According to the values in multiple groups of cost data, the data is divided and sorted, and each value of the sequence to be sorted is split into m digits. Then, the sequence to be sorted is divided into multiple subsequences according to the order of the digits of the data from high to low. The data with the same high digits are arranged in the same subsequence. The data of each subsequence follows the rule of orderly between segments and disorder within segments. Then judge the data of each subsequence separately. If the sorting result has duplication and has not reached the lowest digit, sort the subsequence composed of the next highest digit. Continue the above sorting and sorting work until the sorting result is complete without duplication. The sorting work is completed and the multiple sets of cost data are stored in the database according to the sorting weight from high to low.
7. The dual-mode wireless distance information transmission test method for smart street lamps according to claim 6, characterized in that: In S2, the positions of Wi-SUN modules and BT modules on the entire route are allocated. By calling a group of test data with the highest sorting weight in the database, the number of Wi-SUN modules and BT modules is output. The allocation method includes the following postures: Position 1: The Wi-SUN module and the BT module are allocated adjacently, and the adjacent distance is the sum of the effective transmission distance of the Wi-SUN module and the effective transmission distance of the BT module; Posture 2: Wi-SUN modules are allocated adjacently, and the adjacent distance is the sum of the effective transmission distances of the two Wi-SUN modules; Attitude 3: BT modules are allocated adjacently, then the adjacent distance is the sum of the effective transmission distances of the two BT modules; When the smart street light at the starting position is close to the Wi-SUN module, the distance between the initially allocated Wi-SUN module and the smart street light at the starting position is the effective transmission distance of the Wi-SUN module, and the coordinates of the multiple Wi-SUN modules and BT modules under the allocation method are output through the coordinates of the smart street light at the starting position; When the smart street lamp at the starting position is close to the BT module, the distance between the initially allocated BT module and the smart street lamp at the starting position is the effective transmission distance of the BT module, and the coordinates of multiple Wi-SUN modules and BT modules under the allocation method are output through the coordinates of the smart street lamp at the starting position.