A method for automatically configuring Bluetooth networking of devices according to electronic maps
By adding master and slave devices to the parking lot electronic map and adopting multi-link redundancy mechanism, Bluetooth ad hoc network of parking lot equipment is realized, the problem of unstable wireless connection signals is solved, and the parking lot system is improved Reliability and communication quality.
Patent Information
- Application Number
- CN202410924957.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-07-11
AI Technical Summary
Existing parking lot equipment has problems such as large signal strength and unstable connection in wireless connections. The traditional point-to-point connection configuration scheme cannot adapt to wireless connection scenarios, resulting in equipment being out of control and affecting the normal operation of the parking lot system.
By pre-drawing electronic maps and adding master and slave devices, a multi-link redundancy mechanism is used to realize Bluetooth ad hoc networking, automatically configure communication between devices, and provide signal guarantees.
It realizes stable Bluetooth networking between devices, reduces network configuration workload, improves communication quality and system reliability, and reduces debuggers' workload and parameter configuration errors.
Smart Images

Figure CN118488476B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of parking lots, and in particular to a method for automatically configuring Bluetooth networking of equipment according to an electronic map. Background Art
[0002] For large parking lots, there will be a lot of supporting parking equipment, such as guide screens, parking locks and cameras, etc.
[0003] Most of the existing parking lots still use the traditional wired connection method, that is, the parking lot equipment is connected to the control center through wiring. This traditional connection method has the problems of high wiring cost and difficult construction. Some parking lots have begun to develop from wired connection to wireless connection, but in the configuration of equipment wireless connection parameters, they still use the wired connection configuration scheme, that is, the equipment configures the communication link point to point; but since wireless connection is naturally affected by signal strength and unstable connection compared with wired connection, the traditional point-to-point connection configuration scheme cannot be well adapted to the wireless connection scenario, because when the point-to-point wireless link fails, the parking lot equipment is out of control, which will affect the normal operation of the parking lot system business and the normal interaction between the parking lot system and the car owner. At present, Bluetooth Mesh networking technology can also be used to realize the networking of parking lot equipment. Bluetooth Mesh networking technology adopts a multi-center networking idea, that is, each node on the network can be used as a center point and has broadcast forwarding capabilities. Therefore, Bluetooth Mesh can form a large-scale network and solve the problem of communication distance. However, since Bluetooth Mesh uses a lot of broadcast forwarding, in a Bluetooth Mesh network, if a node finds that the data is not its own, it will broadcast and forward it directly to the destination. In the case of a large network scale, the entire wireless link will be very congested, which will seriously affect the overall communication quality. In addition, the existing Bluetooth Mesh networking requires each node to be configured separately, resulting in a very large workload for network configuration.
[0004] Therefore, in view of the above situation, how to improve the existing parking lot so as to solve the above problems has become an important technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0005] The present invention discloses a method for automatically configuring Bluetooth networking of devices according to an electronic map. By pre-drawing an electronic map and adding a master device and a slave device for Bluetooth networking on the electronic map, a Bluetooth self-organizing network between the master device and the slave device can be realized. In addition, a multi-link redundancy mechanism can be adopted to provide guarantee for the communication between the master device and the slave device, thereby solving the problems existing in the prior art.
[0006] The method for automatically configuring Bluetooth networking of devices according to an electronic map provided by the present invention comprises:
[0007] Step S1: drawing an electronic map of the parking lot;
[0008] Step S2: adding a master device and a slave device for Bluetooth networking on the electronic map;
[0009] Step S3: Search whether there is a master device within the radius m meters of the slave device. If so, automatically establish Bluetooth network according to the first setting rule. Otherwise, execute step S4;
[0010] Step S4: Execute the exception handling solution.
[0011] Preferably,
[0012] The radius m is in the range of 18-22 meters.
[0013] Preferably,
[0014] The step S4 is to notify manual processing.
[0015] Preferably,
[0016] The step S4 is to display the location of the slave device on the electronic map and notify the location information and abnormal situation.
[0017] Preferably,
[0018] The notifying of the location information and abnormal situation includes:
[0019] Sending the location information and abnormal situation to a set location;
[0020] The set location includes at least one of an email address, a WeChat ID, a QQ ID, or a mobile phone number.
[0021] Preferably,
[0022] The step S3 comprises:
[0023] Step S31: Search whether there is a master device within the radius m meters of the slave device, if yes, execute step S32, otherwise execute step S4;
[0024] Step S32: Check whether the number of the master device is greater than 1, if yes, execute step S33, otherwise automatically associate the slave device with the master device and realize automatic Bluetooth networking;
[0025] Step S33: Associating the slave device with the master device according to a second setting rule.
[0026] Preferably,
[0027] The step S33 comprises:
[0028] Step S331: According to the third setting rule, the load status of the master device is detected one by one, and if the load status of the master device is lower than the set threshold, step S332 is executed;
[0029] Step S332: Query whether the slave device has been associated with the master device. If so, execute step S333. Otherwise, associate the slave device with the master device, increase the number of master links m corresponding to the slave device by 1, and realize Bluetooth automatic networking.
[0030] Step S333: automatically associating the slave device with the master device, increasing the number of slave links n corresponding to the slave device by 1, and issuing slave link networking information;
[0031] Step S334: If the number of slave links n reaches the slave link setting value, the networking process ends, otherwise, execute step S331.
[0032] Preferably,
[0033] The third setting rule includes:
[0034] The principle of from near to far.
[0035] Preferably,
[0036] The slave link setting value is 2.
[0037] Preferably,
[0038] If there is a slave link between the slave device and the master device, the following method is used for communication:
[0039] If the main link between the slave device and the master device is in normal working state, the slave device and the master device communicate through the main link; otherwise, the slave link between the slave device and the master device is started, and the device and the master device communicate through the slave link;
[0040] When it is detected that the main link is restored to a normal working state, the communication link between the slave device and the master device is switched to the main link.
[0041] The method for automatically configuring Bluetooth networking of devices according to an electronic map of the present invention comprises: step S1: drawing an electronic map of a parking lot; step S2: adding a master device and a slave device for Bluetooth networking on the electronic map; step S3: searching for a master device within a radius of m meters of the slave device, if so, automatically networking the Bluetooth device according to a first setting rule, otherwise executing step S4; step S4: executing an exception handling scheme. By pre-drawing an electronic map and adding a master device and a slave device for Bluetooth networking on the electronic map, the method for automatically configuring Bluetooth networking of devices according to an electronic map of the present invention can realize Bluetooth self-organizing networking between the master device and the slave device, and can also adopt a multi-link redundant mechanism to provide a guarantee for communication between the master device and the slave device, which can solve the problems existing in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 A flowchart of a first embodiment of a method for automatically configuring Bluetooth networking of devices according to an electronic map according to the present invention;
[0044] Figure 2 A flowchart of a second embodiment of a method for automatically configuring Bluetooth networking of devices according to an electronic map according to the present invention;
[0045] Figure 3 This is a flow chart of a third embodiment of a method for automatically configuring Bluetooth networking of devices according to an electronic map according to the present invention. DETAILED DESCRIPTION
[0046] The present invention discloses a method for automatically configuring Bluetooth networking of devices according to an electronic map. By pre-drawing an electronic map and adding a master device and a slave device for Bluetooth networking on the electronic map, a Bluetooth self-organizing network between the master device and the slave device can be realized. In addition, a multi-link redundancy mechanism can be adopted to provide guarantee for the communication between the master device and the slave device, thereby solving the problems existing in the prior art.
[0047] The following is a clear and detailed description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. 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. Please refer to Figure 1, the method for automatically configuring Bluetooth networking of devices according to an electronic map provided by the present invention comprises:
[0048] Step S1: drawing an electronic map of the parking lot;
[0049] Before performing the device Bluetooth networking method of the present invention, it is first necessary to draw an electronic map of the parking lot. According to the number of floors of the parking lot, a three-dimensional map consisting of multiple layers can be drawn, or a collection of separate electronic maps for each layer can be drawn, which is not limited here. It should be pointed out that, generally speaking, the master device and slave device of each layer of the electronic map are relatively independent, so the master device and slave device of each layer of the electronic map only realize Bluetooth self-organizing network within the range of this layer.
[0050] Step S2: adding a master device and a slave device for Bluetooth networking on the electronic map;
[0051] After obtaining the electronic map, you can add the master device and slave device for Bluetooth networking on the electronic map. It should be noted that the positions of the master device and the slave device in the electronic map correspond one-to-one to the positions of the actual devices in the parking lot, including the distances between different devices, which also correspond one-to-one to the distances on the electronic map. When adding the master device and the slave device to the electronic map, the device information or networking information of the master device and the slave device will also be added at the same time, such as the name of the master device, the network IP, etc., which are not limited here.
[0052] Step S3: Search whether there is a master device within the radius m meters of the slave device. If so, automatically establish Bluetooth network according to the first setting rule. Otherwise, execute step S4;
[0053] When the master device and the slave device for Bluetooth networking are added on the electronic map and the actual parking lot is set, the slave device can automatically perform Bluetooth networking according to the first setting rule.
[0054] It should be noted that, generally speaking, there must be a master device within the radius m meters of the slave device, because each slave device will be associated with the master device for networking. Therefore, if there is no master device within the radius m meters of the slave device, there may be a setting error, or the master device within the radius m meters of the slave device has a fault, etc. At this time, step S4 needs to be executed for processing. The above radius m can be within the range of 18-22 meters, specifically 20 meters.
[0055] Step S4: Execute the exception handling solution.
[0056] When there is no master device within a radius of m meters from the slave device, it can be determined that an abnormal situation has occurred, and the exception handling plan set in advance should be executed.
[0057] For example, manual processing can be directly notified, and a processing text message or voice call can be sent to the corresponding manager of the parking lot based on the retained mobile phone number; the location of the slave device on an electronic map can also be displayed, and the location information and abnormal situation can be notified. The above steps can specifically include: sending the location information and abnormal situation to a set location, and the set location can include at least one of an email address, WeChat account, QQ number or mobile phone number.
[0058] The method for automatically configuring Bluetooth networking of devices according to an electronic map of the present invention comprises: step S1: drawing an electronic map of a parking lot; step S2: adding a master device and a slave device for Bluetooth networking on the electronic map; step S3: searching for a master device within a radius m meters of the slave device to see if there is one, if so, automatically networking the Bluetooth device according to a first setting rule, otherwise executing step S4; step S4: executing an exception handling scheme. By pre-drawing an electronic map and adding a master device and a slave device for Bluetooth networking on the electronic map, the method for automatically configuring Bluetooth networking of devices according to an electronic map of the present invention can realize Bluetooth self-organizing networking between the master device and the slave device, and can also adopt a multi-link redundant mechanism to provide a guarantee for communication between the master device and the slave device, and can solve the problems existing in the prior art. Moreover, the method of the present invention only requires manual operation for drawing the electronic map and placing the parking lot equipment, and the operation of associating and binding the parking lot equipment is completely automatically completed by the system. It can not only greatly reduce the debugging workload and networking workload of the project debugging personnel, but also greatly reduce the situation of the debugging personnel mismatching parameters.
[0059] The first embodiment of the method for automatically configuring Bluetooth networking of devices according to an electronic map of the present invention is described above. The second embodiment of the method for automatically configuring Bluetooth networking of devices according to an electronic map of the present invention is described below. Figure 2 The second embodiment of the method for automatically configuring Bluetooth networking of devices according to an electronic map of the present invention includes:
[0060] First, it should be noted that the second embodiment of the present invention focuses on a detailed description of step S3 in the first embodiment, and other steps are similar to those in the first embodiment, so they are not described again in this embodiment.
[0061] Step A1: Draw an electronic map of the parking lot;
[0062] Step A2: adding a master device and a slave device for Bluetooth networking on the electronic map;
[0063] Step A3: Search whether there is a master device within the radius m meters of the slave device. If yes, execute step A4; otherwise, execute step A6;
[0064] Step A4: Query whether the number of the master device is greater than 1, if so, execute step A5, otherwise automatically associate the slave device with the master device and realize Bluetooth automatic networking;
[0065] When the slave device searches for the master device, first determine the number of master devices found. If the number of master devices is 1, the slave device can only associate with the only master device and realize Bluetooth automatic networking. Otherwise, step A5 needs to be executed.
[0066] Step A5: Associating the slave device with the master device according to a second setting rule.
[0067] If the number of master devices searched by the slave device is not less than 1, the slave device needs to be associated with the master device according to a certain strategy, for example, the slave device and the master device are associated according to the second setting rule, so as to ensure that the slave device can be associated with a more suitable master device.
[0068] Step A6: Execute the exception handling solution.
[0069] By pre-drawing an electronic map and adding a master device and a slave device for Bluetooth networking on the electronic map, the method of automatically configuring Bluetooth networking of devices according to the electronic map can realize Bluetooth self-organizing networking between the master device and the slave device, and can also adopt a multi-link redundancy mechanism to provide guarantee for communication between the master device and the slave device, which can solve the problems existing in the prior art.
[0070] The second embodiment of the method for automatically configuring Bluetooth networking of devices according to an electronic map of the present invention is described above. The third embodiment of the method for automatically configuring Bluetooth networking of devices according to an electronic map of the present invention is described below. Figure 3 The third embodiment of the method for automatically configuring Bluetooth networking of devices according to an electronic map of the present invention includes:
[0071] First, it should be noted that the third embodiment of the present invention focuses on the detailed description of step A5 in the second embodiment, and other steps are similar to those in the second embodiment, so they are not repeated in this embodiment.
[0072] Step B1: draw an electronic map of the parking lot;
[0073] Step B2: adding a master device and a slave device for Bluetooth networking on the electronic map;
[0074] Step B3: Search whether there is a master device within the radius m meters of the slave device. If yes, execute step B4; otherwise, execute step B9;
[0075] Step B4: Check whether the number of the master device is greater than 1, if so, execute step B5, otherwise automatically associate the slave device with the master device and realize Bluetooth automatic networking;
[0076] Step B5: According to the third setting rule, the load status of the master device is detected one by one, and if the load status of the master device is lower than the set threshold, step B6 is executed;
[0077] When there are multiple master devices, the load status of the master devices can be detected one by one according to the third setting rule, and step B6 is executed when the load status of the master device is lower than the set threshold.
[0078] It should be noted that the load of each master device is limited. A high load will affect the communication between devices. Therefore, it is necessary to detect the load of the master device and perform Bluetooth ad hoc networking when the load of the master device meets the set threshold requirement.
[0079] The third setting rule may be a rule from near to far.
[0080] Step B6: Query whether the slave device has been associated with the master device. If so, execute step B7. Otherwise, associate the slave device with the master device, increase the number of master links m corresponding to the slave device by 1, and realize Bluetooth automatic networking.
[0081] First, query whether the slave device is already associated with the master device. It should be pointed out here that querying whether the slave device is already associated with the master device means: do not query any information of the master device associated with the slave device, just to determine whether the slave device already has a master device associated with it. Because the present invention adopts a mechanism of 1 main link + n slave links, generally speaking, the number of slave links is 2, so if the slave device already has a master device associated with it, then the slave device can only form a slave link with the master device searched later. If it is queried that the slave device is not associated with any master device, then the slave device does not have a master link. At this time, the slave device and the master device can be associated, and the number of main links m corresponding to the slave device is increased by 1, and Bluetooth automatic networking is realized.
[0082] Step B7: automatically associating the slave device with the master device, increasing the number of slave links n corresponding to the slave device by 1, and issuing slave link networking information;
[0083] In this case, the slave device already has a master link, so it can only form a slave link with the master device. The slave link number n corresponding to the slave device increases by 1, and the slave link networking information is sent down.
[0084] Step B8: If the number of slave links n reaches the slave link setting value, the networking process ends, otherwise execute step B5.
[0085] It should be noted that the number of slave links needs to reach a balanced value, because too many slave links will affect the communication between the master device and the slave device, and even affect the working efficiency of the entire system; but if the number of slave links is too low, there will be a lack of support for the communication between the master device and the slave device.
[0086] After many tests, this application has determined that when the number of links n is 2, it can take into account both efficiency and communication guarantee, and no limitation is made here.
[0087] Step B9: Execute the exception handling solution.
[0088] The following is an example to illustrate the working process of the method for automatically configuring Bluetooth networking of devices according to an electronic map of the present invention:
[0089] After drawing the electronic map, adding the master device and slave device for Bluetooth networking, and installing all the equipment in the parking lot, just wait for the master device and the slave device to realize the Bluetooth self-organizing network. When the slave device communicates with the master device, if there is a slave link between the slave device and the master device, the following method is used for communication: if the main link between the slave device and the master device is in normal working state, the slave device and the master device communicate through the main link, otherwise the slave link between the slave device and the master device is started, and the device and the master device communicate through the slave link; when it is detected that the main link has recovered to normal working state, the communication link between the slave device and the master device is switched to the main link. It should be pointed out that when there are multiple slave links between the slave device and the master device, a slave link with a stronger signal or a slave link with a shorter distance can be selected for priority communication, which is not limited here.
[0090] By pre-drawing an electronic map and adding a master device and a slave device for Bluetooth networking on the electronic map, the method of automatically configuring Bluetooth networking of devices according to the electronic map can realize Bluetooth self-organizing networking between the master device and the slave device, and can also adopt a multi-link redundancy mechanism to provide guarantee for communication between the master device and the slave device, which can solve the problems existing in the prior art.
[0091] A person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc.
Claims
1. A method for automatically configuring Bluetooth networking of devices according to an electronic map, characterized in that: include: Step S1: drawing an electronic map of the parking lot; Step S2: adding a master device and a slave device for Bluetooth networking on the electronic map; Step S3: Search whether there is a master device within the radius m meters of the slave device. If so, automatically establish Bluetooth network according to the first setting rule. Otherwise, execute step S4; Step S4: Execute the exception handling solution; The step S3 comprises: Step S31: Search whether there is a master device within the radius m meters of the slave device, if yes, execute step S32, otherwise execute step S4; Step S32: Check whether the number of the master device is greater than 1, if yes, execute step S33, otherwise automatically associate the slave device with the master device and realize automatic Bluetooth networking; Step S33: Associating the slave device with the master device according to the second setting rule The step S33 comprises: Step S331: According to the third setting rule, the load status of the master device is detected one by one, and if the load status of the master device is lower than the set threshold, step S332 is executed; Step S332: Query whether the slave device has been associated with the master device. If so, execute step S333. Otherwise, associate the slave device with the master device, increase the number of master links m corresponding to the slave device by 1, and realize Bluetooth automatic networking. Step S333: automatically associating the slave device with the master device, increasing the number of slave links n corresponding to the slave device by 1, and issuing slave link networking information; Step S334: If the number of slave links n reaches the slave link setting value, the networking process ends, otherwise, execute step S331.
2. The method for automatically configuring Bluetooth networking of devices according to an electronic map according to claim 1, characterized in that: The radius m is in the range of 18-22 meters.
3. The method for automatically configuring Bluetooth networking of devices according to an electronic map according to claim 1, characterized in that: The step S4 is to notify manual processing.
4. The method for automatically configuring Bluetooth networking of devices according to an electronic map according to claim 1, characterized in that: The step S4 is to display the location information of the slave device on the electronic map and notify the location information and abnormal situation.
5. The method for automatically configuring Bluetooth networking of devices according to an electronic map according to claim 4, characterized in that: The notifying of the location information and abnormal situation includes: Sending the location information and abnormal situation to a set location; The set location includes at least one of an email address, a WeChat ID, a QQ ID, or a mobile phone number.
6. The method for automatically configuring Bluetooth networking of devices according to an electronic map according to claim 1, characterized in that: The third setting rule includes: The principle of from near to far.
7. The method for automatically configuring Bluetooth networking of devices according to an electronic map according to claim 1, characterized in that: The slave link setting value is 2.
8. The method for automatically configuring Bluetooth networking of devices according to an electronic map according to claim 1, characterized in that: If there is a slave link between the slave device and the master device, the following method is used for communication: If the main link between the slave device and the master device is in normal working state, the slave device and the master device communicate through the main link; otherwise, the slave link between the slave device and the master device is started, and the device and the master device communicate through the slave link; When it is detected that the main link is restored to a normal working state, the communication link between the slave device and the master device is switched to the main link.
