CN-121985320-A - Intelligent guest room intelligent control method and system based on Bluetooth mesh
Abstract
The invention relates to the technical field of intelligent control, in particular to an intelligent guest room intelligent control method and system based on Bluetooth mesh. The method comprises the steps of executing Bluetooth Mesh distribution network processing on all intelligent terminal devices in an intelligent guest room, constructing a Mesh network topology diagram in the guest room, establishing a mapping relation between device functions and logic actions based on the Mesh network topology diagram to form a local logic policy table, acquiring device control messages of target intelligent terminal devices in user request instructions based on the local logic policy table, and distributing the device control messages to the target intelligent terminal devices through a multi-hop routing mechanism to execute guest room intelligent device control tasks. According to the intelligent guest room system, the local logic policy table is built in, and the Bluetooth Mesh decentralization ad hoc network technology is combined, so that local control logic in a network disconnection environment is used for taking over and transmitting multi-hop routes, and the problem that equipment does not respond under the condition of network fluctuation in the traditional intelligent guest room system is solved.
Inventors
- WANG YANZHUO
- LIANG YANBO
- YAO ZHOUJUN
- ZHANG XIANFENG
- ZHANG JIFEI
- ZHAO ZHONGMIN
- MENG DEZHAN
Assignees
- 山东比特智能科技股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260317
Claims (10)
- 1. The intelligent guest room intelligent control method based on the Bluetooth mesh is characterized by comprising the following steps of: Step S1, executing Bluetooth Mesh distribution network processing on all intelligent terminal devices in an intelligent guest room through a master control gateway, acquiring a physical address and a device type of each device, and constructing a Mesh network topology diagram in the guest room; step S2, periodically sending a network detection data packet to an external wide area network server, and updating a network mode status word in real time; Step S3, when a user input request control instruction is detected, if the network mode status word indicates an offline mode, the main control gateway intercepts the user request instruction to be sent to an external wide area network server, and analyzes the request control instruction into a target Mesh network address and an operation code by utilizing a local logic policy table to acquire a device control message of target intelligent terminal device in the user request instruction; step S4, the master control gateway is used as a root node of the Bluetooth mesh network, and distributes the equipment control message to target intelligent terminal equipment through a multi-hop routing mechanism so as to execute a guest room intelligent equipment control task; and S5, monitoring and acquiring state feedback data of the target intelligent terminal equipment, performing consistency check on the state feedback data and the request control instruction, and outputting a control execution result.
- 2. The intelligent control method for intelligent guest rooms based on bluetooth Mesh according to claim 1, wherein in step S1, the mapping relationship between the device function and the logic action is established based on the Mesh network topology map, and forming the local logic policy table includes: Predefining a plurality of guest room scene modes, wherein each scene mode is allocated with a unique scene control instruction code and corresponds to a group of execution action sequences; Converting each action in the execution action sequence into a corresponding device Mesh network address and a function parameter code; and establishing a mapping relation table of the scene control instruction codes and a group of equipment Mesh network addresses, physical space coordinates and functional parameter codes, and storing the mapping relation table into a nonvolatile memory of a master control gateway to form a local logic strategy table.
- 3. The intelligent control method for a smart guest room based on bluetooth mesh according to claim 1, wherein step S2 comprises: Step S21, setting detection periods, and continuously transmitting a plurality of network detection data packets to an external wide area network server in each detection period; Step S22, counting the number of data packets which do not receive the response, dividing the number of the total data packets which are transmitted, and obtaining the packet loss rate of the current period; S23, recording response time of each successfully responded data packet, and calculating an average value of the response time to obtain average communication time delay; s24, calculating an integrity score according to the packet loss rate of the current period; Step S25, multiplying the integrity score by a preset stability weight, and multiplying the integrity score by a preset speed weight to obtain an external network connectivity index; And S26, comparing the external network connectivity index with a preset offline judgment threshold value to generate a network mode status word.
- 4. The intelligent control method for a smart guest room based on bluetooth Mesh according to claim 1, wherein in step S3, the request control command is resolved into a target Mesh network address and an operation code by using a local logic policy table, and the obtaining the device control message of the target intelligent terminal device in the user request command includes: based on the local logic policy table, identifying a scene control instruction code corresponding to the request control instruction, and generating a composite instruction sequence to be sent when the scene control instruction code is related to a plurality of target Mesh network addresses; In the Mesh network topology diagram, searching the minimum hop count of each target Mesh network address relative to a master control gateway, and defining the minimum hop count as network level depth; Performing topological hierarchical clustering on each sub-instruction in the compound instruction sequence according to the network level depth, and classifying target Mesh network addresses with the same network level depth into the same transmission level cluster; Calculating the average value of all coordinate points in each transmission level cluster as a virtual center point, and selecting target intelligent terminal equipment closest to the Euclidean distance of the virtual center point as a geometric center node of the transmission level cluster; The method comprises the steps of taking a master control gateway as a root node, taking a geometric center node of each transmission level cluster as a first-level leaf node, and taking other target intelligent terminal devices in the transmission level cluster as second-level leaf nodes to construct a multicast distribution tree; And extracting the network level depth of each first-level leaf node in the multicast distribution tree as a sequencing weight, carrying out descending rearrangement on the composite instruction sequence, and placing the sub-instruction of the first-level leaf node with the largest corresponding network level depth at the starting position of the sending queue to generate the equipment control message with optimized time sequence.
- 5. The intelligent guest room control method based on bluetooth Mesh as claimed in claim 4, wherein in step S3, the request control command is resolved into a target Mesh network address and an operation code by using a local logic policy table, and after obtaining the device control message of the target intelligent terminal device in the user request command, the method further comprises: the master control gateway sets a sliding time window, and caches all generated original equipment control messages in a local transmission queue of the master control gateway; Classifying original equipment control messages in a cache according to a target Mesh network address and an operation code, extracting a message sequence of the same target Mesh network address and the same operation code, and acquiring control parameter values carried by each message in the sequence; Judging the change trend of the control parameter value in the sliding time window, if the control parameter value shows non-monotonic repeated oscillation change, judging that the user operates the jitter, only reserving the equipment control message corresponding to the last control parameter value at the end time of the sliding time window, and discarding the rest messages in the sequence; If the control parameter values show monotonously increasing or monotonously decreasing changes, calculating the change slope between adjacent control parameter values, and reserving the control parameter value with the largest change slope and the equipment control message corresponding to the control parameter value at the end time of the sliding time window; And recombining the reserved control parameter values into a final equipment control message.
- 6. The intelligent control method for a smart guest room based on bluetooth mesh according to claim 1, wherein the step S4 comprises the steps of: Step S41, extracting a target Mesh network address of target intelligent terminal equipment, so as to search all feasible paths from a main control gateway to the target intelligent equipment in a Mesh network topological graph, and decomposing each feasible path into a plurality of link hops connected in series; Step S42, evaluating the single-hop comprehensive cost corresponding to each link hop; step S43, accumulating the single-hop comprehensive cost of all link hop segments on each feasible path to obtain the path total cost value of each feasible path; And S44, comparing the total cost values of all the feasible paths, selecting the path with the smallest value as an optimal transmission path, and transmitting the equipment control message hop by hop along the optimal transmission path to the target intelligent terminal equipment.
- 7. The intelligent control method for a smart guest room based on bluetooth mesh according to claim 6, wherein evaluating the single-hop composite cost corresponding to each link hop comprises: Acquiring a current received signal strength value of each link hop, and dividing a preset signal reference value by the received signal strength value to obtain a link impedance value of the link hop; acquiring a historical load busy coefficient of a receiving end node corresponding to a link hop, and multiplying the historical load busy coefficient by a preset processing delay coefficient to obtain a node congestion delay amount; and adding the link impedance value and the node congestion delay amount to obtain the single-hop comprehensive cost of the link hop.
- 8. The intelligent control method for intelligent guest room based on bluetooth mesh according to claim 7, wherein before adding the link impedance value and the node congestion delay amount to obtain the single-hop comprehensive cost of the link hop, further comprising: periodically collecting historical received signal strength values of each link hop in the Mesh network topological graph by the master control gateway to form a signal strength sample set; calculating a variance value of the signal strength sample set as a link fluctuation value; After link fluctuation value normalization processing, multiplying the link fluctuation value normalization processing with a preset fluctuation penalty factor to obtain an instability additional impedance; and when the single-hop comprehensive cost is calculated, adding the instability additional impedance to the sum of the link impedance value and the node congestion delay amount, and updating the single-hop comprehensive cost.
- 9. The intelligent control method for a smart guest room based on bluetooth mesh according to claim 6, wherein a path with the smallest value is selected as an optimal transmission path, and a device control message is sent hop by hop along the optimal transmission path, and the method further comprises: acquiring a Bluetooth channel congestion index corresponding to each link hop in an optimal transmission path; screening out the maximum Bluetooth channel congestion index as a path bottleneck congestion value; Comparing the path bottleneck congestion value with a preset contention tolerance threshold, and if the path bottleneck congestion value is higher than the contention tolerance threshold, controlling the redundant sending times of the message by the computing equipment; The master control gateway continuously transmits the same equipment control message for multiple times according to the redundant transmission times, and inserts a random back-off time between each transmission to reduce the collision probability under the congestion channel.
- 10. The intelligent control system for a smart guest room based on bluetooth mesh, which is used for executing the intelligent control method for a smart guest room based on bluetooth mesh as claimed in claim 1, comprises: The system comprises a network building module, a local logic policy table, a network management module and a network management module, wherein the network building module is used for executing Bluetooth Mesh distribution network processing for all intelligent terminal devices in an intelligent guest room, acquiring a physical address and a device type of each device, and constructing a Mesh network topology diagram in the guest room; the network state monitoring module is used for periodically sending network detection data packets to an external wide area network server and updating network mode state words in real time; The message generation module is used for intercepting a user request instruction to be sent to an external wide area network server by the main control gateway and analyzing the request control instruction into a target Mesh network address and an operation code by utilizing a local logic policy table to acquire a device control message of target intelligent terminal device in the user request instruction if the network mode status word indicates an offline mode when the user input request control instruction is detected; the multi-hop route distribution module is used for using the main control gateway as a root node of the Bluetooth mesh network, and distributing the equipment control message to the target intelligent terminal equipment through a multi-hop route mechanism so as to execute a guest room intelligent equipment control task; And the control feedback module is used for monitoring and acquiring the state feedback data of the target intelligent terminal equipment, carrying out consistency check on the state feedback data and the request control instruction, and outputting a control execution result.
Description
Intelligent guest room intelligent control method and system based on Bluetooth mesh Technical Field The invention relates to the technical field of intelligent control, in particular to an intelligent guest room intelligent control method and system based on Bluetooth mesh. Background The intelligent guest room intelligent control is mainly characterized by system stability and response timeliness under the variable conditions of concurrency of high-density equipment, complex logic linkage, network environment fluctuation and the like. Specifically, in the actual operation process of the hotel, a large number of intelligent terminal devices such as lights, curtains, air-conditioning panels and the like are densely distributed in the guest room, and the devices can generate high-frequency interaction operation and scene switching requirements during the check-in period of users, and also face uncertain network conditions such as external Wide Area Network (WAN) fluctuation, cloud server response delay, service interruption and the like. These factors act together, which is very likely to cause communication link blocking and logic judgment failure of the guest room control system, and finally seriously affect living experience of users. However, the conventional guest room control method lacks independent execution capability of local control logic in a network disconnection or weak network environment, so that the system excessively depends on a cloud server to analyze and distribute instructions, once an external network is interrupted, a physical switch and a mobile phone APP cannot effectively control guest room equipment, meanwhile, an effective channel congestion avoidance mechanism is lacking when high-density concurrent communication is handled, obvious control delay is easily generated when the network is congested, the phenomenon that the equipment does not respond after user operation is caused, and high availability and stable operation of guest room intelligent equipment under the sudden network condition cannot be ensured. Disclosure of Invention Based on the above, the invention provides a smart guest room intelligent control method and system based on Bluetooth mesh to solve at least one of the above technical problems. In order to achieve the purpose, the intelligent guest room control method based on the Bluetooth mesh comprises the following steps: Step S1, executing Bluetooth Mesh distribution network processing on all intelligent terminal devices in an intelligent guest room through a master control gateway, acquiring a physical address and a device type of each device, and constructing a Mesh network topology diagram in the guest room; step S2, periodically sending a network detection data packet to an external wide area network server, and updating a network mode status word in real time; Step S3, when a user input request control instruction is detected, if the network mode status word indicates an offline mode, the main control gateway intercepts the user request instruction to be sent to an external wide area network server, and analyzes the request control instruction into a target Mesh network address and an operation code by utilizing a local logic policy table to acquire a device control message of target intelligent terminal device in the user request instruction; step S4, the master control gateway is used as a root node of the Bluetooth mesh network, and distributes the equipment control message to target intelligent terminal equipment through a multi-hop routing mechanism so as to execute a guest room intelligent equipment control task; and S5, monitoring and acquiring state feedback data of the target intelligent terminal equipment, performing consistency check on the state feedback data and the request control instruction, and outputting a control execution result. The invention also provides a smart guest room intelligent control system based on the Bluetooth mesh, which executes the smart guest room intelligent control method based on the Bluetooth mesh, and comprises the following steps: The system comprises a network building module, a local logic policy table, a network management module and a network management module, wherein the network building module is used for executing Bluetooth Mesh distribution network processing for all intelligent terminal devices in an intelligent guest room, acquiring a physical address and a device type of each device, and constructing a Mesh network topology diagram in the guest room; the network state monitoring module is used for periodically sending network detection data packets to an external wide area network server and updating network mode state words in real time; The message generation module is used for intercepting a user request instruction to be sent to an external wide area network server by the main control gateway and analyzing the request control instruction into a target Mesh network address and an operation code by