Visitor navigation method, device and equipment based on state machine and storage medium
By introducing state machines and near-field communication technology into the visitor navigation system, dynamic planning and real-time update of navigation paths is solved, and the existing system cannot update paths in a timely manner under temporary construction and other conditions is improved, and the reliability of navigation and guest experience are improved.
Patent Information
- Application Number
- CN202510584106.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-07
- Publication Date
- 2025-06-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing visitor navigation system cannot update the path in time under temporary construction and other conditions, resulting in visitors continuing the wrong old path and affecting the experience.
The state machine-based navigation method is adopted to dynamically plan the path through the state machine of the node device, use near-field communication to prompt the visitor to move the path next, and allow the visitor to trigger the button to modify the node state, and update the path in real time.
It improves the reliability of navigation paths and responds to traffic obstacles in real time, reduces the difficulty of visitors finding the correct path in unfamiliar community environments, and improves the visitor experience.
Smart Images

Figure CN120101807A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of path navigation, and in particular to a state machine-based visitor navigation method, device, equipment and storage medium. Background Art
[0002] At present, visitor navigation is an important function to improve user experience. After the owner registers the visitor information in the property management system, the visitor can start the visitor navigation through the mini program or APP when arriving at the community. The property management system automatically generates a navigation path based on the owner's residence location to guide the visitor from the community entrance to the owner's residence. Since the location of each owner is fixed, and the visitor navigation only needs to guide the visitor to the downstairs of the building where the owner is located, the existing navigation path usually uses hard-coded path rules in the code, and the path from the community entrance to each building is pre-written in the code.
[0003] However, in the process of property management, temporary construction is often carried out in some areas, resulting in some routes being impassable. If a hard-coded path solution is adopted, the code can only be modified through version updates to achieve path obstacle avoidance. If the developer cannot release a new version of the software in a timely manner, or the visitor end does not update the version in a timely manner, the visitor may use the wrong old path when navigating. When the visitor comes to the obstacle point, even if the navigation request is re-initiated, the same path will be planned. If the visitor is not familiar with the community environment, the correct path cannot be found, which seriously affects the visitor experience. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a state machine-based visitor navigation method, device, equipment and storage medium, which can improve the reliability of the navigation path, prompt visitors at different passage nodes, and improve the visitor experience.
[0005] In a first aspect, an embodiment of the present invention provides a visitor navigation method based on a state machine. A property system applied to a target cell, wherein the target cell is distributed with a plurality of node devices, the property system is in communication connection with a first visitor device and the node devices, the property system is provided with a state machine, and the method comprises: In response to a navigation request of the first guest device, determining a first state path based on each node state in the state machine, sending the first state path to the first guest device, and generating a first button in the first guest device, wherein each node state corresponds to one node device; Determine a first device connected to the first guest device based on near field communication as a target device, and play first information through the target device, wherein the first device is the node device corresponding to the node state of the first state path, and the first information is used to indicate a moving path to the next first device; When a trigger signal of the first button is obtained, setting the node state corresponding to the target device to unavailable; A second state path is determined based on each of the node states in the state machine, and second information is played through the target device, wherein the second information is used to indicate a moving path to a next second device, and the second device is the node device corresponding to the node state of the second state path.
[0006] According to some embodiments of the present invention, determining a first state path based on states of each node in the state machine includes: Determining a first initial state and a target state based on the navigation request, wherein the first initial state is used to represent a starting position of the first visitor device, and the target state is used to represent a target position of the navigation request; The first state path is determined based on the first initial state, the target state, and the node states available in the state machine.
[0007] According to some embodiments of the present invention, after sending the first state path to the first guest device, the method further includes: After the first visitor device starts navigation, determining a third device and a fourth device in real time, wherein the third device is the first device that has been determined as the target device, and the fourth device is the first device that has not been determined as the target device; In response to the node state of any of the fourth devices being configured as unavailable, determining a second initial state based on the current target device; Determine a third state path based on the second initial state, the target state, and each available node state, and send the third state path to the first guest device; The third information and the fourth information are played through the target device and the first guest device, wherein the third information is used to indicate the moving path to the next fifth device, the fifth device is the node device corresponding to the node state of the third state path, and the fourth information is used to indicate the fourth device that has undergone state switching.
[0008] According to some embodiments of the present invention, the property system is further connected to a management device, a plurality of monitoring devices and at least one second visitor device in communication, the monitoring devices are installed in the target cell, each of the monitoring devices is pre-associated with one of the node devices, and in response to the node status of any of the fourth devices being configured as unavailable, the method includes: In response to a configuration operation of the management device, configuring the node status of any of the fourth devices to be unavailable; Alternatively, when monitoring information fed back by the monitoring device associated with any of the fourth devices is obtained, and the monitoring information is used to indicate impassability, the node state of the fourth device is configured as unavailable; Alternatively, in response to the second guest device triggering the first button, the node device to which the second guest device is currently connected based on near field communication is changed to the fourth device, and the node status of the fourth device is configured as unavailable.
[0009] According to some embodiments of the present invention, after playing the first information through the target device, the method further includes: When the state of the first guest device is switched to the target state, exchanging the target state and the first initial state; Determine a fourth state path based on each available node state, the target state after the exchange, and the first initial state, and determine a node device corresponding to the node state of the fourth state path as a sixth device; sending the fourth state path to the first guest device, and generating a second button in the first guest device; In response to any of the sixth devices being configured as unavailable, updating the fourth state path; In response to the second button being triggered, route navigation is started based on the latest fourth state route.
[0010] According to some embodiments of the present invention, the property system is also in communication with a management device, and after setting the node status corresponding to the target device to unavailable, the method further includes: Sending fifth information to the management device, and obtaining feedback information sent by the management device based on the fifth information, wherein the fifth information records the target device and the first state path; When the feedback information is used to indicate that the trigger signal is correctly triggered, maintaining the current configuration of the node state of the target device; When the feedback information is used to indicate that the trigger signal is erroneously triggered, restoring the node state of the target device to be available, determining a third initial state based on the current position of the first guest device, determining a fifth state path based on the third initial state, the target state, and each available node state, and sending the fifth state path to the first guest device; When the first guest device selects the fifth state path, the sixth information is played based on the first guest device and the current target device, wherein the sixth information is used to indicate the moving path to the next seventh device, and the seventh device is the node device corresponding to the node state of the fifth state path.
[0011] According to some embodiments of the present invention, after playing the first information through the target device, the method further includes: Acquire the target moving speed of the first visitor device, determine the target moving distance between the target device and the next first device, and determine the target moving duration based on the target moving distance and the target moving speed; When the first visitor device disconnects the near field communication with the target device, starting timing based on the target movement duration; When the timed duration reaches the target moving duration, and the first guest device does not establish near field communication with the next first device, the first information is played again through the first guest device.
[0012] In a second aspect, an embodiment of the present invention provides a state machine-based visitor navigation device, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the state machine-based visitor navigation method as described in the first aspect above.
[0013] In a third aspect, an embodiment of the present invention provides an electronic device, comprising the state machine-based visitor navigation device as described in the second aspect above.
[0014] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the state machine-based visitor navigation method as described in the first aspect above.
[0015] According to the state machine-based visitor navigation method of an embodiment of the present invention, there are at least the following beneficial effects: in response to a navigation request of the first visitor device, a first state path is determined based on each node state in the state machine, the first state path is sent to the first visitor device, and a first button is generated on the first visitor device, wherein each node state corresponds to one node device; a first device connected to the first visitor device based on near field communication is determined as a target device, and first information is played through the target device, wherein the first device is the node device corresponding to the node state of the first state path, and the first information is used to indicate a moving path to the next first device; when a trigger signal of the first button is obtained, the node state corresponding to the target device is set to unavailable; a second state path is determined based on each node state in the state machine, and second information is played through the target device, wherein the second information is used to indicate a moving path to the next second device, and the second device is the node device corresponding to the node state of the second state path. According to the technical solution of the embodiment of the present invention, the state path can be planned based on the available node states of the state machine, and the first information is played to prompt the next moving path after the visitor is judged to be close to the target device by near-field communication, and the visitor does not need to check the mobile phone frequently; when the visitor encounters a passage obstacle, the first button is triggered to modify the availability of the node state, so that the state machine can update the second state path based on the real-time passage status, thereby improving the visitor experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a schematic diagram of a property system provided by an embodiment of the present invention; Figure 2 is a flow chart of a state machine-based visitor navigation method provided by another embodiment of the present invention; Figure 3 is a schematic diagram of a switching path to a third state provided by another embodiment of the present invention; Figure 4 It is a structural diagram of a state machine-based visitor navigation device provided by another embodiment of the present invention. DETAILED DESCRIPTION
[0017] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0018] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0019] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0020] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.
[0021] An embodiment of the present invention provides a state machine-based visitor navigation method, apparatus, device and storage medium, wherein the state machine-based visitor navigation method includes: in response to a navigation request of the first visitor device, determining a first state path based on each node state in the state machine, sending the first state path to the first visitor device, and generating a first button on the first visitor device, wherein each node state corresponds to one node device; determining a first device connected to the first visitor device based on near field communication as a target device, and playing first information through the target device, wherein the first device is the node device corresponding to the node state of the first state path, and the first information is used to indicate a moving path to the next first device; when a trigger signal of the first button is obtained, setting the node state corresponding to the target device to unavailable; determining a second state path based on each node state in the state machine, and playing second information through the target device, wherein the second information is used to indicate a moving path to the next second device, and the second device is the node device corresponding to the node state of the second state path. According to the technical solution of the embodiment of the present invention, the state path can be planned based on the available node states of the state machine, and the first information is played to prompt the next moving path after the visitor is judged to be close to the target device by near-field communication, and the visitor does not need to check the mobile phone frequently; when the visitor encounters a passage obstacle, the first button is triggered to modify the availability of the node state, so that the state machine can update the second state path based on the real-time passage status, thereby improving the visitor experience.
[0022] First, refer to Figure 1 , Figure 1 This is a schematic diagram of a property system provided in an embodiment of the present invention. A plurality of node devices 20 are distributed in a target cell of this embodiment. The property system is in communication connection with the first visitor device 11 and the node device 20. The property system is provided with a state machine.
[0023] It should be noted that there are usually many access roads in the target community, such as Figure 1 As shown, in this embodiment, a node device 20 is installed at the intersection of each road, and multiple node devices 20 can also be set in a longer road.
[0024] It should be noted that the node device 20 of this embodiment can be a loudspeaker or an LED display screen. The loudspeaker plays the first information through audio, and the LED display screen can display the first information in text form or in a combination of pattern and text, such as displaying the path direction through an arrow, displaying the distance to the next first device through numbers, etc.
[0025] It should be noted that the first visitor device 11 can be a visitor's mobile phone, tablet or other smart device, which can log in to the mini program or APP of the property system.
[0026] It should be noted that the state machine of the property system records the node status of each node device 20. The switching of the node status represents the movement from one node device 20 to another node device 20. The node status "available" represents that the location of the node device 20 is accessible, and the node status "unavailable" represents that the location of the node device 20 is inaccessible. It will not be repeated later.
[0027] In addition, if Figure 3 As shown, the property system is also in communication connection with a management device 40 , a plurality of monitoring devices 50 and at least one second visitor device 12 . The monitoring devices 50 are installed in the target cell, and each monitoring device 50 is pre-associated with a node device 20 .
[0028] It should be noted that the management device 40 is an electronic device of the property management personnel, such as a computer, a mobile phone, etc. After the property management personnel access the property system through the management device 40, they can configure the node status of each node device 20, such as selecting the availability of each node status through a drop-down menu. No further details will be given here.
[0029] It should be noted that the second guest device 12 and the first guest device 11 belong to different guests, which will not be described in detail herein.
[0030] It should be noted that the monitoring device 50 can be a sensor, a microphone or a video monitoring device. After acquiring the sound information through the microphone, it can determine that the sound information is construction noise through conventional audio recognition, thereby generating monitoring information; similarly, the video monitoring device shoots the area near the node device 20, and generates monitoring information after determining through video recognition that the nearby road is under construction.
[0031] The following is based on the Figure 1 The property system shown further illustrates the technical solution of the embodiment of the present invention.
[0032] Reference Figure 2 , Figure 2 A flow chart of a state machine-based visitor navigation method provided by an embodiment of the present invention, the state machine-based visitor navigation method includes but is not limited to the following steps: S10, in response to a navigation request of the first guest device, determining a first state path based on each node state in the state machine, sending the first state path to the first guest device, and generating a first button in the first guest device, wherein each node state corresponds to a node device.
[0033] It should be noted that the first visitor device can input the residence of the owner to be visited to construct a navigation request, for example, after entering the gate of the community, enter the house number of the owner to be visited. In this embodiment, a plurality of node devices are distributed in the target community, and the node devices are used as path nodes of the passage path. For example, a node device is set at each fork in the road, or a node device is set at a certain distance on a longer straight road, so that any passage path in the community can be represented by the arrangement and combination of node devices. Based on this, in this embodiment, the node state of each node device is set in the state machine, and the state of the first visitor device initiating the navigation request is taken as the initial state, and the location of the owner's residence is taken as the target state. The first state path can be obtained by constructing a state path that switches from the initial state to the node state and then to the target state.
[0034] For example, Figure 1 As shown, the first visitor device 11 initiates a navigation request at the gate of the community, and the corresponding state is the initial state. The state of the target location 30 corresponding to the owner's residence is the target state. To switch from the initial state to the target state, it is necessary to determine the node state of each node device 20, for example Figure 1In the above figure, the three node devices 20 on the upper side correspond to state A, state B and state C, and state A to state C are all available, so the first state path is the initial state, state A, state B, state C and target state, and the node devices 20 corresponding to state A, state B and state C are determined as the first device, and the path composed of the first device is determined as the first state path. It is worth noting that the state 1, state 2, state 3, state 4 and state 10 of this example are used to distinguish the states of different devices, that is, the device state of the first guest device 11 is represented by state 1, and the first state and the second state of the subsequent embodiments are specific state types. For example, the state 2 of device A can be set to the first state to represent passability, or it can be set to the second state to represent inaccessibility, which will not be repeated later.
[0035] It should be noted that after determining the first state path, the first state path is sent to the first guest device, and the visitor can view the first state path through the first guest device. At the same time, this embodiment also generates a first button on the first guest device, for example, the first button is displayed in the sidebar or menu bar without affecting the normal display of the navigation interface, or the first button is displayed on the first guest device after connecting to any target device. This embodiment does not limit the display method of the first button.
[0036] It is worth noting that the first button is used to trigger a path update when the visitor determines that the road ahead is impassable. Therefore, the first button can display relevant text prompts. For example, the first button can display prompt information such as "Replan the route", "The road ahead is impassable, change the route", etc. It can be selected according to actual needs to let visitors know the function of the first button.
[0037] S20, determining the first device connected to the first guest device based on near field communication as the target device, and playing the first information through the target device, wherein the first device is a node device corresponding to the node state of the first state path, and the first information is used to indicate the moving path to the next first device.
[0038] It should be noted that near-field communication may be a connection method such as Bluetooth or NFC. The first visitor device receives the first state path through a mini-program or APP, and the visitor usually keeps the mini-program or APP activated during movement. Therefore, the near-field communication of the first visitor device may be initiated through the mini-program or APP, and the same communication device may be deployed on each node device, so that when the first visitor device approaches any first device, it may automatically connect to the first device through Bluetooth or NFC. The node devices of this embodiment are arranged at intersections or distributed at a certain distance. The first visitor device can only establish a near-field connection with one node device at the same time. For example, the maximum distance of the Bluetooth connection is 10 meters, and the distance between the two node devices is at least greater than 20 meters, so that the first visitor device can only connect to one node device.
[0039] It should be noted that the distance of near-field communication is relatively short. After connecting to the target device, it can be determined that the visitor has approached the target device. According to the description of the above embodiment, the target device can be a loudspeaker or an LED display. When the first state path has been planned and includes the node state corresponding to the first device, the switching method of the node state of each first device leading to the next first device is knowable. Therefore, the property system can construct the first information in advance, trigger the near-field communication connection, and play the first information through the target device, so that the visitor can know the next moving path from the target device without frequently checking the mobile phone, thereby improving the user experience.
[0040] For example, Figure 1 As shown, when the first visitor device 11 is connected to the target device, the target device is device B, and the next first device is device C. Therefore, the first information takes "go straight 100 meters on the main road ahead" as an example. If the target device is an LED display, the above first information can be displayed, or an arrow pointing to the direction of device C can be displayed, and then "go straight 100 meters" can be displayed simultaneously. When the visitor approaches the target device from a distance, the line of sight is in front during the movement, so the first information can be seen before reaching the target device, and the next moving path can be known without checking the mobile phone. Of course, if the node device is a loudspeaker, the visitor can also know the first information through audio broadcast, which will not be repeated here.
[0041] S30: When a trigger signal of the first button is obtained, the node status corresponding to the target device is set to unavailable.
[0042] It should be noted that according to the description of the above embodiment, when a visitor sees a traffic obstacle ahead, he can click the first button. After the property system detects the trigger signal of the first button, it modifies the node status of the target device to unavailable in the state machine, and the state adjustment of the state machine is triggered by the visitor.
[0043] It is worth noting that the obstacles encountered by visitors during navigation in the community are usually temporary obstacles. For example, maintenance personnel temporarily close a road in the community for water pipe maintenance, making the road impassable. Since the road is occupied for a short time, developers usually do not update the navigation code of the property system. In this embodiment, the node state is used to characterize whether the path where the node device is located is passable. The state machine can dynamically determine the passability of each road in the community based on whether the node state is available. When the node state of the target device is set to unavailable, the target device will not be introduced into the moving path because it cannot switch to the corresponding node state during state path planning. The path update can be accurately completed without updating the code version, and the road where the target device is located can be avoided in the updated path.
[0044] S40, determining a second state path based on each node state in the state machine, and playing second information through the target device, wherein the second information is used to indicate a moving path to a next second device, and the second device is a node device corresponding to the node state of the second state path.
[0045] It should be noted that the first button will only trigger a change in the node state of the target device. The node state of each node device of the state machine represents the traffic state of the corresponding position. Therefore, after the node state of the target device is configured as unavailable, the state machine can redetermine the second state path based on the available node state, so that the second state path can bypass the traffic obstacles.
[0046] It is worth noting that since the obstacle is not necessarily located in front of or behind the path of the target device, the visitor at least triggers the first button when seeing the obstacle. If the visitor has passed the target device at this time, but still maintains connection with the target device due to near-field communication, the target device can be determined as the first second device. Due to the maintenance of near-field communication, it can be determined that the visitor can see or hear the prompt information of the target device, and the second information is played through the target device to provide the visitor with path prompts.
[0047] For example, Figure 1 As shown, in the application Figure 1 When the first state path shown in the figure above moves, taking the node device corresponding to state B as the target device as an example, when passing the target device and maintaining near field communication, the visitor sees a construction obstacle ahead and clicks the first button in the first visitor device 11. The property system sets state B to unavailable in the state machine, and the re-planned second state path is as follows Figure 1As shown in the figure below, the first node state is set to state B, followed by state E, state C and the target state. Therefore, the second information played at the node device 20 corresponding to state B can be "Go back here, go straight for 100 meters at the fork in the road", guiding the visitor from the location corresponding to state B to the location corresponding to state E.
[0048] Of course, if the visitor triggers the first button without passing the target device, for example, if he sees a passage device in front of him when his vision is good and triggers the first button, since the target device is determined based on the near-field communication connection, it can still be determined that the visitor can see or hear the target device. After determining the second state path, the second information is played through the target device that the visitor has not reached. The visitor can still see or hear the second information, thereby knowing the next moving path, and being able to update the path in time to prompt the visitor, thereby improving the visitor experience.
[0049] For example, continue to refer to Figure 1 When the visitor is between the node devices 20 corresponding to state A and state B, and state B corresponds to the target device, the second state path updated after triggering the first button can be state A, state E, state C and target state. At this time, the second information can still be prompted through the target device. The second information can be "return to the previous intersection and go straight along another fork in the road". The second information can be determined according to the specific second state path.
[0050] It is worth noting that the location information of the first visitor device can be determined by common GPS technology, so the above two examples can be used to determine whether the target device is determined as the first second device based on the location information of the first visitor device.
[0051] In addition, in one embodiment, in step S10, determining a first state path based on the node state of each node device in the state machine includes but is not limited to the following steps: S11, determining a first initial state and a target state based on the navigation request, wherein the first initial state is used to represent a starting position of the first visitor device, and the target state is used to represent a target position of the navigation request; S12, determining a first state path based on the first initial state, the target state, and available node states in the state machine.
[0052] It should be noted that the first initial state corresponds to the starting position when the first visitor device initiates a navigation request. After the first visitor device inputs the owner's residence to be visited as the target position, the location of the first visitor device is determined by a simple positioning technology. For example, when approaching a community gate, the state corresponding to the community gate is used as the first initial state. When approaching a node device, the node state of the node device is used as the first initial state. The first initial state and the target state cannot be the same, otherwise the visitor has no motivation to initiate navigation. This embodiment does not discuss this scenario.
[0053] It should be noted that after determining the first initial state and the target state, the first state path for switching from the first initial state to the target state records the states of each node, and the actual path constituted by the node devices corresponding to each node state is used as the navigation path. This embodiment first determines the availability of each node state. If the node state is available, it can be used to plan the first state path. Otherwise, it is not used to plan the first state path.
[0054] For example, Figure 1 As shown, the unavailable node states include state H and state I, the available node states include state A, state B, state C, state D, state E, state F and state G, and the first initial state needs to be switched to the target state. The state path may include state A, state B, state C and the target state in sequence, or may include state D, state E, state F and the target state in sequence, or may include state A, state E, state C and the target state in sequence, and so on. This embodiment may select a path as the first state path according to the actual strategy, for example, selecting the state path with the least number of node state switching times, the state path with the shortest corresponding actual path, etc.
[0055] In addition, in one embodiment, after executing step S10, the following steps are also included but not limited to: S13, after the first visitor device starts navigation, determining a third device and a fourth device in real time, wherein the third device is the first device that has been determined as a target device, and the fourth device is the first device that has not been determined as a target device; S14, in response to the node state of any fourth device being configured as unavailable, determining a second initial state based on the current target device; S15, determining a third state path based on the second initial state, the target state, and each available node state, and sending the third state path to the first guest device; S16, play the third information and the fourth information through the target device and the first guest device, wherein the third information is used to indicate the moving path to the next fifth device, the fifth device is the node device corresponding to the node state of the third state path, and the fourth information is used to indicate the fourth device that has undergone state switching.
[0056] It should be noted that after the first visitor device starts navigation, since multiple node devices need to be connected based on near-field communication, this embodiment determines the first device that has been determined as the target device as the third device, and the unconnected first device as the fourth device. By utilizing the short connection distance of near-field communication, it can be determined that the visitor has reached or is about to reach the road corresponding to the third device, but has not reached the road corresponding to the fourth device. The node status of this embodiment can be adjusted not only by visitors, but also by property management personnel or other visitors. When the node status of the fourth device is configured as unavailable, it can be predicted that there are obstacles on the road ahead, and the path can be updated in advance to reduce unnecessary movement distances for visitors.
[0057] It should be noted that when the node state of the fourth device is configured as unavailable, this embodiment uses the current target device of the first guest device as the second initial state, and determines the third state path based on the second initial state, the target state and the available node state center, so that the third state path bypasses the position corresponding to the fourth device in advance. The third state path and the first state path may include multiple identical node states, and the occurrence of a path update does not mean that the roads corresponding to all the fourth devices that have not been reached are impassable, but only does not include the node state of the fourth device that has undergone a state change.
[0058] For example, Figure 3 As shown, the first state path is Figure 3 The solid line in the figure shows that the first initial state, state A, state B, state C and target state are included in sequence. When the first guest device is in state B, the node device corresponding to state C is the fourth device and is configured to be unavailable. State B is determined as the second initial state, and the third state path to the target state is replanned. The third state path is obtained as shown in FIG. Figure 3 As shown in the dot diagram in , it includes state B, state F and target state in sequence.
[0059] For example, continue to refer to Figure 3 , the first state path continues to refer to the above example. When the first visitor is in state A, the node device corresponding to state C is configured to be unavailable. At this time, state A is determined as the second initial state. The third state path includes state A, state B, state F and the target state in sequence. It can be seen that the path from state A to state B overlaps with the first state path. There is no obstacle in this path, so it can continue to be used. This embodiment does not limit different state paths to adopt different node states. It only needs to use available node states to plan a suitable path.
[0060] It should be noted that, when the target device has played the first information, since the state path has changed and it is not initiated based on the visitor's own obstacle judgment, if the third information is played only through the target device, it is likely that the visitor has passed the target device and cannot see the third information. Therefore, this embodiment plays the third information on the target device and the first visitor device at the same time to ensure that the visitor knows that the path has changed, and prompts the next moving path when the visitor is not familiar with the community environment. The principle of the third information refers to the first information, and will not be repeated here.
[0061] It should be noted that, when playing the third information, this embodiment also plays the fourth information synchronously, and the fourth information indicates the fourth device whose status has changed, thereby informing the visitor of the reason for the route change.
[0062] For example, Figure 3 As shown, after playing the first information "main road ahead for 100 meters", when updated to the third state path, the third information "fork road straight for 100 meters" and the fourth information "construction ahead" are played through the target device and the first guest device 11.
[0063] In addition, in one embodiment, step S14 specifically includes but is not limited to the following steps: S151, in response to a configuration operation of the management device, configuring a node state of any fourth device to be unavailable; S152, when monitoring information fed back by a monitoring device associated with any fourth device is obtained, and the monitoring information is used to indicate impassable, configuring the node state of the fourth device as unavailable; S153, in response to the second guest device triggering the first button, changing the node device to which the second guest device is currently connected based on near field communication to a fourth device, and configuring the node status of the fourth device to be unavailable.
[0064] It should be noted that if Figure 3 As shown, the management device 40 can be a mobile phone or computer logged in to the administrator account. The property management personnel perform configuration operations through the management device 40 to modify the availability of each node status of the state machine. For example, after receiving the construction plan, the node status of the node device in the construction area is set to unavailable in advance; multiple node devices can also be displayed in the property system, and construction or equipment maintenance and other matters are configured for each node device. The property system automatically configures the corresponding node status as unavailable in the state machine.
[0065] It should be noted that if Figure 3As shown, the monitoring device 50 takes a surveillance camera as an example. The node devices 20 within the shooting area of each surveillance camera are known, so the association relationship can be pre-configured. When construction is detected within the shooting area of the surveillance camera, the node status of the corresponding node device 20 is configured as unavailable.
[0066] It should be noted that the number of visitors in the community may be large, e.g. Figure 3 As shown, during the cell navigation process, the second visitor device 12 may also have overlapping node states with the first visitor device 11. Therefore, when the second visitor device 12 triggers the first button based on the principle of the above embodiment, if the target device involved is the fourth device of the first visitor device 11, the corresponding node state will be configured as unavailable based on the first button, triggering the first visitor device 11 to adjust to the third state path.
[0067] In addition, in one embodiment, after executing step S20, the following steps are also included but not limited to: S21, when the state of the first guest device is switched to the target state, the target state and the first initial state are exchanged; S22, determining a fourth state path based on each available node state, the target state after the exchange, and the first initial state, and determining a node device corresponding to the node state of the fourth state path as a sixth device; S23, sending the fourth state path to the first guest device, and generating a second button in the first guest device; S24, in response to any sixth device being configured as unavailable, updating a fourth state path; S25, in response to the second button being triggered, starting path navigation based on the latest fourth state path.
[0068] It should be noted that when the first visitor device reaches the target state, it can be determined that the visitor has arrived at the owner's residence, thereby ending this navigation. After the visitor completes the visit, he still needs to return. In this embodiment, the first visitor device switches to the target state as a trigger, interchanges the target state and the first initial state, and determines the fourth state path in combination with each available node state. The fourth state path is the path for the visitor to return from the owner's residence. The construction of the fourth state path can refer to the above-mentioned first state path, and the difference is that it is recorded in the opposite of the first initial state and the target state, so it will not be repeated here.
[0069] It should be noted that after determining the fourth state path, the visitor does not necessarily start the return trip immediately. During the waiting process, it is very likely that the status of some nodes will change. For example, during the visit, construction begins at the location of a certain node device, making the road that is smooth when going to the owner's residence impassable on the return trip. Based on this, after constructing the fourth state path, this embodiment monitors the node status of each sixth device in real time. When any sixth device is configured as unavailable, the fourth state path is updated in real time. At this time, it has not been triggered, so the first initial state and the target state remain unchanged, and the state path can be replanned.
[0070] It should be noted that this embodiment generates a second button on the first visitor device, for example, the first button is replaced by the second button. After the visitor presses the second button, navigation is performed based on the current latest fourth state path. The navigation process can refer to the description of the above embodiment, and will not be repeated here.
[0071] In addition, in one embodiment, after executing step S30, the following steps are also included but not limited to: S31, sending fifth information to the management device, and obtaining feedback information sent by the management device based on the fifth information, wherein the fifth information records the target device and the first state path; S32, when the feedback information is used to indicate that the trigger signal is correctly triggered, maintaining the current configuration of the node state of the target device; S33, when the feedback information is used to indicate that the trigger signal is erroneously triggered, restoring the node state of the target device to be available, determining a third initial state based on the current position of the first guest device, determining a fifth state path based on the third initial state, the target state, and each available node state, and sending the fifth state path to the first guest device; S34, when the first guest device selects the fifth state path, the sixth information is played based on the first guest device and the current target device, wherein the sixth information is used to indicate the moving path to the next seventh device, and the seventh device is a node device corresponding to the node state of the fifth state path.
[0072] It should be noted that after executing step S30, the triggering of the first button can only indicate that the visitor has determined that an obstacle has occurred, and the first button may be triggered by mistake. Therefore, this embodiment constructs the fifth information based on the target device and the first state path, and sends the fifth information to the management device. The management personnel judge the actual situation of the target device based on the fifth information and feedback the corresponding feedback information.
[0073] It should be noted that when the management personnel obtains the fifth information, it can be determined that the visitor has judged a traffic obstacle at the location of the target device when applying the first state path, and the actual situation of the location of the target device can be confirmed by monitoring or on-site and other related means, such as judging whether there is an unreported temporary occupation of the road, or whether there are collapsed plants that make it impossible to pass, etc. At this time, the feedback signal fed back by the management device is used to indicate that the trigger signal is correctly triggered, and the corresponding node state is maintained in the current unavailable state. If it is judged that there is no traffic obstacle on site, it may be that the first button is touched by mistake, such as the visitor puts the mobile phone in his pocket and touches it by mistake. At this time, the feedback information is used to indicate that the trigger signal is triggered incorrectly, and the node state of the target device is restored to available.
[0074] It should be noted that after the node state of the target device is restored to be available, since it takes a certain amount of time for the administrator to verify, the visitor may have moved along the third state path for a period of time. The third initial state can be determined based on the current position of the first visitor device, and the fifth state path can be replanned. After the node state of the target device is restored, the fifth state path may be better than the second state path currently used by the visitor. The visitor can choose to maintain the current second state path or switch to the fifth state path on the first visitor device. After changing the fifth state path, the sixth information is played through the current target device. Please refer to the first information for details and will not be repeated here.
[0075] In addition, in one embodiment, after executing step S20, the following steps are also included but not limited to: S26, obtaining a target moving speed of the first visitor device, determining a target moving distance between the target device and the next first device, and determining a target moving duration based on the target moving distance and the target moving speed; S27, when the first visitor device disconnects the near field communication with the target device, timing starts based on the target movement duration; S28, when the timed duration reaches the target moving duration, and the first visitor device does not establish near field communication with the next first device, the first information is played again through the first visitor device.
[0076] It should be noted that after the visitor obtains the first information on the target device, he or she goes to the next first device under the guidance of the first information. If the moving distance is long, the visitor may forget the first information. Therefore, this embodiment sets up a reminder mechanism. When the property system is connected to the first visitor device, the target moving speed of the first visitor device can be obtained, such as the average speed over the past period of time. At the same time, each first device is fixed, so the target moving distance between the target device and the next first device can be determined, and the target moving time can be determined based on the target moving distance and the target moving speed. The target moving time is used as a reference time for the visitor to reach the next first device.
[0077] It is worth noting that, according to the description of the above embodiment, each time a target device is reached, the relevant first information will be played, and the playing of the first information is triggered by the near field communication connection. Within the connection range of the near field communication, it can be considered that the visitor can see the target device. For example, if the target device is an LED display, the visitor can see the first information displayed on the LED display within the Bluetooth connection range. When the near field communication between the first visitor device and the target device is disconnected, it can be considered that the LED display is no longer within the visitor's line of sight. This embodiment uses the disconnection of the first visitor device from the target device as the trigger point for timing, so that the timing time period represents the time period when the visitor cannot directly obtain the first information.
[0078] It should be noted that, when the timing is completed and the first visitor device is not connected to the next first device, it can be determined that the visitor did not reach the first device within the expected time and may have forgotten the path. Playing the first information again by the first visitor device can effectively improve the visitor experience by giving the visitor a second reminder.
[0079] It is worth noting that when the switching path of the above embodiment occurs, the timing of this embodiment is terminated and is executed again until the next target device plays the prompt information, which is not repeated here.
[0080] like Figure 4 As shown, Figure 4 : is a structural diagram of a state machine-based visitor navigation device provided by an embodiment of the present invention. The present invention also provides a state machine-based visitor navigation device, comprising: The processor 401 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application; The memory 402 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 402 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 402, and the processor 401 calls and executes the state machine-based visitor navigation method of the embodiment of this application; Input / output interface 403, used to implement information input and output; Communication interface 404, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.); A bus 405 that transmits information between various components of the device (e.g., processor 401, memory 402, input / output interface 403, and communication interface 404); The processor 401 , the memory 402 , the input / output interface 403 and the communication interface 404 are connected to each other in communication within the device via the bus 405 .
[0081] An embodiment of the present application also provides an electronic device, including the visitor navigation device based on the state machine as described above.
[0082] An embodiment of the present application further provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the state machine-based visitor navigation method is implemented.
[0083] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0084] It will be appreciated by those skilled in the art that all or some of the steps and systems in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0085] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions under the shared conditions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. A visitor navigation method based on a state machine, characterized in that: A property system applied to a target cell, wherein the target cell is distributed with a plurality of node devices, the property system is in communication connection with a first visitor device and the node devices, the property system is provided with a state machine, and the method comprises: In response to a navigation request of the first guest device, determining a first state path based on each node state in the state machine, sending the first state path to the first guest device, and generating a first button in the first guest device, wherein each node state corresponds to one node device; Determine a first device connected to the first guest device based on near field communication as a target device, and play first information through the target device, wherein the first device is the node device corresponding to the node state of the first state path, and the first information is used to indicate a moving path to the next first device; When a trigger signal of the first button is obtained, setting the node state corresponding to the target device to unavailable; A second state path is determined based on each of the node states in the state machine, and second information is played through the target device, wherein the second information is used to indicate a moving path to a next second device, and the second device is the node device corresponding to the node state of the second state path.
2. The state machine-based visitor navigation method according to claim 1, characterized in that: Determining a first state path based on the states of each node in the state machine includes: Determining a first initial state and a target state based on the navigation request, wherein the first initial state is used to represent a starting position of the first visitor device, and the target state is used to represent a target position of the navigation request; The first state path is determined based on the first initial state, the target state, and the node states available in the state machine.
3. The state machine-based visitor navigation method according to claim 2, characterized in that: After sending the first state path to the first guest device, the method further includes: After the first visitor device starts navigation, determining a third device and a fourth device in real time, wherein the third device is the first device that has been determined as the target device, and the fourth device is the first device that has not been determined as the target device; In response to the node state of any of the fourth devices being configured as unavailable, determining a second initial state based on the current target device; Determine a third state path based on the second initial state, the target state, and each available node state, and send the third state path to the first guest device; The third information and the fourth information are played through the target device and the first guest device, wherein the third information is used to indicate the moving path to the next fifth device, the fifth device is the node device corresponding to the node state of the third state path, and the fourth information is used to indicate the fourth device that has undergone state switching.
4. The state machine-based visitor navigation method according to claim 3, characterized in that: The property system is also in communication with a management device, a plurality of monitoring devices and at least one second visitor device, wherein the monitoring device is installed in the target cell, each of the monitoring devices is pre-associated with one of the node devices, and in response to the node status of any of the fourth devices being configured as unavailable, the method comprises: In response to a configuration operation of the management device, configuring the node status of any of the fourth devices to be unavailable; Alternatively, when monitoring information fed back by the monitoring device associated with any of the fourth devices is obtained, and the monitoring information is used to indicate impassability, the node state of the fourth device is configured as unavailable; Alternatively, in response to the second guest device triggering the first button, the node device to which the second guest device is currently connected based on near field communication is changed to the fourth device, and the node status of the fourth device is configured as unavailable.
5. The state machine-based visitor navigation method according to claim 2, characterized in that: After playing the first information through the target device, the method further includes: When the state of the first guest device is switched to the target state, exchanging the target state and the first initial state; Determine a fourth state path based on each available node state, the target state after the exchange, and the first initial state, and determine a node device corresponding to the node state of the fourth state path as a sixth device; sending the fourth state path to the first guest device, and generating a second button in the first guest device; In response to any of the sixth devices being configured as unavailable, updating the fourth state path; In response to the second button being triggered, route navigation is started based on the latest fourth state route.
6. The state machine-based visitor navigation method according to claim 2, characterized in that: The property system is also in communication with a management device. After setting the node status corresponding to the target device to unavailable, the method further includes: Sending fifth information to the management device, and obtaining feedback information sent by the management device based on the fifth information, wherein the fifth information records the target device and the first state path; When the feedback information is used to indicate that the trigger signal is correctly triggered, maintaining the current configuration of the node state of the target device; When the feedback information is used to indicate that the trigger signal is erroneously triggered, restoring the node state of the target device to be available, determining a third initial state based on the current position of the first guest device, determining a fifth state path based on the third initial state, the target state, and each available node state, and sending the fifth state path to the first guest device; When the first guest device selects the fifth state path, the sixth information is played based on the first guest device and the current target device, wherein the sixth information is used to indicate the moving path to the next seventh device, and the seventh device is the node device corresponding to the node state of the fifth state path.
7. The state machine-based visitor navigation method according to claim 1, characterized in that: After playing the first information through the target device, the method further includes: Acquire the target moving speed of the first visitor device, determine the target moving distance between the target device and the next first device, and determine the target moving duration based on the target moving distance and the target moving speed; When the first visitor device disconnects the near field communication with the target device, starting timing based on the target movement duration; When the timed duration reaches the target moving duration, and the first guest device does not establish near field communication with the next first device, the first information is played again through the first guest device.
8. A visitor navigation device based on a state machine, characterized in that: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor to enable the at least one control processor to execute the state machine-based visitor navigation method as described in any one of claims 1 to 7.
9. An electronic device, characterized in that: The invention comprises the visitor navigation device based on the state machine as claimed in claim 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the state machine-based visitor navigation method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Navigation method and device, computer device and storage medium
CN111397628A
Serving cell state management
CN113383592A
Bluetooth navigation system, method, device and equipment and computer readable storage medium
CN116437294A
Video monitoring method and system based on construction equipment
CN119254929A
Indoor navigation systems and methods
US20160345137A1