Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by the person skilled in the art based on the present application are included in the scope of protection of the present application.
When personnel channel equipment is installed on site, because of the complexity of operation, each equipment needs to be activated, configured with network parameters and channel parameters, positioned and confirmed, and when a plurality of groups of personnel channels need to be installed, related operators need to be configured repeatedly to enable the personnel channel equipment to achieve the installation purpose, so that the installation efficiency of the personnel channel equipment is low, and the synchronous operation of subsequent parameters is complex.
In one example, when multiple personnel access devices need to be activated and configured to complete an installation, e.g., a total of 5 personnel access devices need to be installed, in the prior art, the associated operator needs to manually activate and configure each personnel access device one by one. However, in practical application, in a public place such as a station, a community and the like, the number of required personnel channel equipment is large, and if the personnel channel equipment is still activated or configured one by means of manpower, time and labor are consumed, so that the activation efficiency and the configuration efficiency of the personnel channel equipment are low, and the installation efficiency of the personnel channel equipment is low.
In order to solve at least one of the above problems, in the system of the embodiment of the present application, the relevant operator may only manually activate and configure one of the devices, i.e., the first personnel access device, and after the first personnel access device performs the relevant activation and configuration operation to complete the installation, the upper platform may access the first personnel access device, so as to complete the relevant activation or configuration operation to other personnel access devices by accessing the first personnel access device, thereby implementing the installation to each personnel access device. In the process, related operators only need to manually activate one personnel channel device and access the first personnel channel device through the upper platform, so that the activation of other personnel channel devices in the system is completed, the workload of manually activating the personnel channel devices by technicians can be reduced, and the device installation efficiency is improved. The following examples are provided to illustrate the technical scheme of the present application:
In a first aspect, an embodiment of the present application provides a traffic control system, as shown in fig. 1, including at least two people-way devices 101, where each people-way device 101 is in the same local area network;
The first personnel channel equipment is used for acquiring an activation password input by a user and activating the equipment according to the activation password; and acquiring a first network configuration parameter input by a user, and carrying out network configuration on the self equipment according to the first network configuration parameter, wherein the first personnel channel equipment is any personnel channel equipment.
The first personnel channel device is any personnel channel device, and a technician manually activates the first personnel channel device, for example, an activation password is input to the first personnel channel device, so that the first personnel channel device completes activation. The activation password is a key set when the equipment goes out, and the first personnel channel equipment can be accessed by the upper platform after the activation password is utilized to complete the activation of the first personnel channel equipment. The first network configuration parameter is used to determine a communication manner and a range of the personnel channel device, and may include configuring information such as an IP (Internet Protocol ) address, a subnet mask, a gateway, a server, a network interface, and the like of the personnel channel device.
In practical application, the personnel channel equipment is in an inactive state when leaving the factory, and in the inactive state, the operation parameters of the personnel channel equipment are all in a default value when leaving the factory, the upper platform cannot access the network of the personnel channel equipment, and the parameters of the personnel channel equipment cannot be configured. After the personnel channel equipment is activated, the personnel channel equipment is in an activated state, and in the activated state, network parameter configuration and other channel parameter configuration can be carried out on the personnel channel equipment. After the proper network parameters are configured, the upper platform can perform network access on the personnel channel equipment, and perform operations such as configuration of related parameters on the personnel channel equipment.
The first personnel channel device is further configured to send a multicast search message in the local area network.
Wherein, each personnel channel device can be added into the same multicast group, and the multicast search message is sent in the local area network through the router. In one example, the router needs to support multicast routing protocols, such as PIM (Protocol Independent Multicast, independent multicast protocol), DVMPR (Distance Vector Multicast Routing Protocol ), etc., to implement transmission of multicast data, and needs to configure multicast routing in the network to indicate a transmission path of the multicast data. In practical applications, the first personnel channel equipment has been manually configured in advance, and the configuration includes operations such as activation, network configuration, traffic function configuration and the like.
And the other personnel channel devices except the first personnel channel device are used for analyzing the received message, and when the received message is determined to be the multicast search message, the equipment information of the other personnel channel devices is sent to the first personnel channel device, wherein the equipment information comprises an equipment identifier and an equipment address.
The device information is key information capable of being positioned on the personnel channel device, and comprises a device identifier and a device address, for example, the device identifier information can be information such as a device serial number, a device model number, a device name and the like. The device Address information may be IP Address information or physical Address information, where the physical Address information refers to a MAC Address (MEDIA ACCESS Control Address) of a personnel channel device, and the personnel channel device in the local area network may be identified according to the MAC Address. In practical applications, the first personnel access device is configured to communicate with the upper platform, and other personnel access devices in the personnel access device are configured to communicate with the first personnel access device. In a multicast group of individual people-channel devices, a multicast address may be selected to identify the destination address of the multicast data for identifying the people-channel device of that particular multicast group.
In one example, communication between each other personnel channel device and the first personnel channel device is implemented through an SADP (SEARCH ACTIVE DEVICE Protocol) Protocol, where the Protocol predefines a multicast message Protocol format assembled by the personnel channel devices, and each device is capable of supporting operation of the SADP service. And each other personnel channel device starts the SADP service to monitor the multicast message, an operator triggers the device search on the web interface of the first personnel channel device to enable the first personnel channel device to send a specific multicast search message to the local area network, and after receiving the SADP multicast search request carrying the multicast search message, the other personnel channel devices analyze the SADP multicast search request and judge whether the SADP service is the specific multicast search message or not, if so, the equipment information of the other personnel channel devices is sent to the first personnel channel device. And the other devices which are not personnel channel devices can not reply after receiving the specific multicast search message even if joining the multicast group.
As shown in fig. 2, each piece of personnel channel equipment joins in the same multicast group, the first personnel channel equipment is the personnel channel equipment currently operated, a specific multicast search message is sent through a router, other personnel channel equipment analyzes after receiving the message, and judges whether the message is a specific multicast message, if yes, the equipment information is responded and replied to the router, namely, the equipment information of other personnel channel equipment is sent to the first personnel channel equipment through the router, and the other equipment not in the multicast group does not respond to the specific multicast message.
The first personnel channel equipment is further used for generating a first list comprising equipment identifiers of all other personnel channel equipment and sending the first list to the upper platform; acquiring batch activation messages sent by an upper platform, wherein the batch activation messages are generated by the upper platform according to the equipment identifiers of all the equipment in the first list, and the batch activation messages comprise the equipment identifiers of all the personnel channel equipment to be activated; according to the equipment identification in the batch activation message, a first equipment address of personnel channel equipment to be activated is searched; and generating an activation message comprising the first equipment address and the activation password, and sending the activation message in the local area network.
The upper platform can be a platform, a system or a server of a traffic control system, or can be a third party platform, and is mainly used for centralized management and control of all personnel channel equipment. For example, the upper platform may initiate an activation request, a network configuration request, a parameter configuration request, a location request, etc. to the personnel channel device. In one example, the device management interface of the upper platform may include a management interface of an inactive personnel channel device and a management interface of an activated personnel channel device, where each management interface may include information such as a model number, a serial number, an IP address, an activation state, and the like of the personnel channel device. In addition, in one example, configuration buttons (or configuration controls) for the activated personnel channel devices may also be provided below the management interface of the activated personnel channel devices, which may include network configuration buttons, and/or parameter configuration buttons, etc., or which may include batch network configuration buttons, and/or batch parameter configuration buttons, etc. In another example, configuration buttons (or configuration controls) for the inactive personnel channel devices may also be provided below the management interface of the inactive personnel channel devices, which may include an activation button or the like; or the configuration buttons may include a batch activation button or the like. And, in another example, a selection control may be included in the device management interface that may allow a user to select a single device and/or to select devices in a batch. After the first personnel channel device completes activation and network configuration, the upper platform can access the first personnel channel device through the web (network), and receive device information of other personnel channel devices sent by the first personnel channel device.
In one example, after receiving the first list, the upper platform may obtain device identification information, such as a device serial number, of each other personnel channel device, determine, according to the device identification of each other personnel channel device, each personnel channel device that needs to be activated, and send a batch activation message to the first personnel channel device according to the device information of the other personnel channel device that needs to be activated.
The upper platform selects other personnel channel equipment to be activated from the other personnel channel equipment information sent by the first personnel channel equipment, and performs batch activation operation by triggering an activation instruction to enter an activation interface shown in fig. 3, and sends a batch activation message to the first personnel channel equipment.
The first personnel channel equipment can also generate a second list after acquiring equipment information of each personnel channel equipment, and the second list is stored locally, wherein the second list at least comprises equipment identifiers and equipment addresses of each personnel channel equipment.
After receiving the batch activation message, the first personnel channel equipment analyzes to obtain equipment identifiers of all personnel channel equipment to be activated in the batch activation message, and according to the equipment identifiers in the batch activation message, a first equipment address of the personnel channel equipment to be activated is found; and generating an activation message comprising the first equipment address and the activation password, and sending the activation message in the local area network.
In one example, after receiving the batch activation message, the first personnel channel device analyzes the batch activation message, obtains the device identifier of the personnel channel device to be activated in the batch activation message, queries the second list according to the device identifier of the personnel channel device to be activated, obtains the device address of the personnel channel device to be activated, i.e. the first device address, assembles the first device address and the activation password into an activation message, and sends the activation message in the local area network. In practical application, the activation passwords of all the personnel channel devices are kept consistent, namely, all other personnel channel devices are the same as the activation passwords of the first personnel channel device.
The other personnel channel equipment is also used for analyzing the activation message to obtain a first equipment address and an activation password after receiving the activation message; when the first device address is the address of the self device, the self device is activated by using the activation password.
By applying the system of the embodiment of the application, the first personnel channel equipment can complete the activation and configuration of the first personnel channel equipment according to the activation password and the first network configuration parameter input by the user; the multicast search message is sent to acquire the equipment information of other personnel channel equipment, and a first list is generated and sent to an upper platform; the upper platform sends a batch activation message according to the equipment information of the personnel channel equipment to be activated in the first list, the first personnel channel equipment obtains a first equipment address and an activation password of the personnel channel equipment to be activated according to the batch activation message, generates an activation message of the personnel channel equipment to be activated and sends the activation message in the local area network; and after the first equipment address in the activation message is determined to be the equipment address of the other personnel channel equipment, the other personnel channel equipment can complete the self activation.
Therefore, only one personnel channel device is required to be manually activated, the other personnel channel devices can be automatically activated through the personnel channel device, each personnel channel device is not required to be manually activated one by one, so that the manual workload is reduced, the device activation efficiency is improved, and the installation efficiency of the personnel channel devices is further improved.
In one possible implementation manner, each personnel channel device is further configured to join the same multicast group according to a preset service discovery protocol;
the first personnel channel equipment is specifically used for generating a multicast search message containing a channel equipment extension field, wherein the channel equipment extension field comprises equipment identifiers of the first personnel channel equipment; multicasting the multicast search message in a multicast group;
the other personnel channel equipment is specifically used for analyzing the received message, and when the channel equipment extension field is analyzed, the received message is determined to be a multicast search message;
The first personnel channel device is further configured to discard the received message if the channel device extension field of the received message is a device identifier of the first personnel channel device.
In general, manufacturers of all the personnel channel devices are the same, and can communicate through the same network protocol, namely, a preset service discovery protocol, the protocol prescribes a message format sent when all the personnel channel devices communicate, and in the same multicast group, the personnel channel devices judge whether to respond to a received message by identifying whether the received message is in a format prescribed by the preset service discovery protocol.
In order to ensure that each of the human channel devices responds accurately to the message of the first human channel device, the multicast search message sent by the first human channel device includes a channel device extension field, which is the device identification of the first human channel. In one example, if the original message is 30 characters, the multicast search message is added with 5 characters to represent the device identifier of the first personnel channel device, for example, the device serial number of the first personnel channel device, based on the specified format.
Because the personnel channel devices are generally manufactured by the same manufacturer, the device serial numbers of the personnel channel devices have certain similarity, after the other personnel channel devices receive the multicast search message for analysis, the device serial numbers in the multicast search message can be determined to be the device serial number of the first personnel channel device, and accordingly, the self device information is sent to the first personnel channel device in response to the multicast search message. In practical application, the first personnel channel device does not need to collect own device information, so after receiving the multicast search message sent by the first personnel channel device, the first personnel channel device discards the message after recognizing that the channel device extension field of the received message is the own device identifier.
By applying the system of the embodiment of the application, other personnel channel equipment can determine that the received message is the message of the first personnel channel equipment by identifying whether the channel equipment extension field in the multicast search message is the equipment identifier of the first personnel channel equipment, thereby avoiding sending equipment information to other equipment and improving the accuracy of communication among the personnel channel equipment.
In one possible implementation of the method according to the invention,
The first personnel channel equipment is specifically used for analyzing the batch activation message to obtain equipment identifiers of all second personnel channel equipment to be activated; selecting a second personnel channel device to be activated currently from the second personnel channel devices; inquiring to obtain a first equipment address of the second personnel channel equipment selected currently according to the equipment identifier of the second personnel channel equipment selected currently; generating an activation message comprising a first device address and an activation password; the activation message is multicast in the local area network.
After the first personnel channel equipment acquires each second personnel channel equipment needing to be activated, generating an activation message corresponding to each second personnel channel equipment, for example, the first personnel channel equipment firstly selects one second personnel channel equipment, queries a second list according to equipment identification of the second personnel channel equipment, acquires a first equipment address of the second personnel channel equipment, assembles the first equipment address and the activation code of the second personnel channel equipment into the activation message, and multicasts the activation message in a local area network.
And the other personnel channel equipment is also used for generating an activation response message comprising an activation result of the self equipment and a first equipment identifier of the self equipment after the self equipment is activated by using the activation password, and sending the activation response message to the first personnel channel equipment.
The first personnel channel equipment is also used for receiving an activation response message; analyzing the activation response message to obtain a first equipment identifier and an activation result, and recording the activation result of the personnel channel equipment represented by the first equipment identifier; and selecting the next second personnel channel equipment to be activated from the second personnel channel equipment, continuing to execute the activation operation until the second personnel channel equipment is traversed, and sending the activation result of the second personnel channel equipment to the upper platform.
After receiving the activation message, the other personnel channel equipment analyzes the activation message to obtain a first equipment address in the activation message, judges whether the first equipment address is the equipment address of the first equipment, if so, considers that the activation message is the activation message corresponding to the first equipment address, responds to the activation message, activates the first equipment address according to the activation password in the activation message, and forms an activation result and the first equipment identification of the first equipment address into an activation response message to be returned to the first personnel channel equipment. After receiving the activation response message, the first personnel channel equipment analyzes to obtain a first equipment identifier and an activation result, and records the first equipment identifier and the activation result, so that the next unactivated second personnel channel equipment is selected until the activation response messages of all the second personnel channel equipment are received.
In one example, the traffic control system includes personnel channel devices A, B and C, where the personnel channel device a is a first personnel channel device, the personnel channel devices B and C are other personnel channel devices, the batch activation message includes device identifiers of the other personnel channel devices B and C, and the personnel channel devices B and C are second personnel channel devices.
The first personnel channel equipment A obtains equipment identifiers of the personnel channel equipment B and the personnel channel equipment C by analyzing the batch activation message, and inquires a second list to obtain equipment addresses of the personnel channel equipment B and the personnel channel equipment C. The personnel channel equipment A can firstly select the equipment address of the personnel channel equipment B, generate an activation message B of the personnel channel equipment B by combining with an activation password, multicast the activation message in a local area network, analyze the activation message B after receiving the activation message B, determine that a first equipment address in the activation message B is an own equipment address, determine that the message is an own corresponding activation message, acquire the activation password in the activation message B, activate the self, and assemble an activation result and an own first equipment identifier into an activation response message 1 to be sent to the personnel channel equipment A. And the personnel channel equipment C judges that the activation message b is not the activation message corresponding to the personnel channel equipment C after receiving the activation message b, and ignores the activation message.
The first personnel channel equipment A records an activation result of the personnel channel equipment b after receiving the activation response message 1, generates an activation message C of the personnel channel equipment C according to the equipment address of the personnel channel equipment C, multicasts the activation message C in the local area network, and determines that the activation message C corresponds to the activation message after receiving the activation message C, and then responds to the activation message C to activate the personnel channel equipment A, and likewise generates an activation response message 2 to be sent to the first personnel channel equipment A.
In still another example, for illustrating an activation process of each of the people path devices in the embodiment of the present application, as shown in fig. 4, the first people path device is a currently operated people path device, where the first people path device is a pre-manually configured people path device, that is, a people path device that has been activated. The first personnel channel device performs device searching firstly, sends a multicast searching message to other personnel channel devices (such as personnel channel device 1, personnel channel device 2 and … … personnel channel device N) to perform searching multicasting, and returns information after receiving the multicast searching message, wherein the returned information is self device information. After receiving the batch activation request of the upper platform, the currently operated personnel channel equipment searches an equipment search list, namely a second list, acquires MAC address information of each second personnel channel equipment according to equipment identifiers (equipment serial numbers) of the second personnel channels required to be activated in the batch request, and assembles an activation message according to the equipment serial numbers and the MAC address information of each second personnel channel equipment.
In one example, when the first personnel channel device currently operating needs to activate the personnel channel devices 1 and 2 in batches, the activation message for the personnel channel device 1 may be first generated to perform multicasting to enable the personnel channel device 1 to be activated, and the activation message for the personnel channel device 2 may be first generated to perform multicasting to enable the personnel channel device 2 to be activated. For example, the currently operating man channel device assembles an activation message for the man channel device 1 according to the information (serial number/MAC address, etc.) of the man channel device 1 acquired by the search, and multicasts the activation message. Each personnel channel device monitors the multicast request, compares whether the MAC address information in the message is a local MAC address after receiving the activation message, if so, responds to activation, returns an activation result, and if not, ignores the activation message.
After the last equipment activation flow of the currently operated personnel channel equipment is finished, the activation result is recorded, the personnel channel equipment 2 is continuously activated in the same mode, an activation message aiming at the personnel channel equipment 2 is generated, and after the personnel channel equipment 2 receives the activation message, the personnel channel equipment responds to the activation message to perform self activation and returns an activation result. And similarly, when all the personnel channel devices 1 to N are activated, the currently operated personnel channel device assembles an activation result list message after the activation flow of all the devices is finished, and returns the activation result list message to the upper platform.
By applying the system provided by the embodiment of the application, the first personnel channel equipment can conveniently determine the second personnel channel equipment which is not activated by receiving and recording the activation results of other personnel channel equipment, so that the selection and the sending of the activation message can be performed. And the activation result of each other personnel channel device is sent to the upper platform, so that the upper platform can manage the activation state of each other personnel channel device, and each personnel channel device is ensured to complete activation.
In one possible implementation manner, the first personnel access device is further configured to obtain the access parameter and the credential identification parameter sent by the upper platform after the network configuration is completed, and perform the pass function configuration on the self device according to the access parameter and the credential identification parameter.
The first personnel channel equipment is also used for acquiring the configuration information sent by the upper platform, analyzing the configuration information to obtain the equipment identification of each third personnel channel equipment needing configuration parameters and the configuration parameters of each third personnel channel equipment; selecting third personnel channel equipment to be configured currently from the third personnel channel equipment; inquiring to obtain a second equipment address of the currently selected third personnel channel equipment according to the equipment identifier of the currently selected third personnel channel equipment; generating a configuration parameter message comprising a second equipment address and a first configuration parameter, wherein the first configuration parameter is the configuration parameter of the third personnel channel equipment selected currently; the configuration parameter message is multicast in the local area network.
The other personnel channel equipment is also used for analyzing the configuration parameter message to obtain a second equipment address and a first configuration parameter after receiving the configuration parameter message; when the second equipment address is the equipment address of the self equipment, the self equipment is configured by utilizing the first configuration parameter; generating a configuration response message comprising a configuration result of the self equipment and a second equipment identifier of the self equipment, and sending the configuration response message to the first personnel channel equipment.
The first personnel channel equipment is also used for receiving the configuration response message; analyzing the configuration response message to obtain a second equipment identifier and a configuration result; recording a configuration result of the personnel channel equipment represented by the second equipment identifier; and selecting the next third personnel channel equipment to be configured from the third personnel channel equipment, continuing to execute configuration operation until the third personnel channel equipment is traversed, and transmitting the configuration result of the third personnel channel equipment to the upper platform.
The passage function configuration refers to the relative arrangement of the passage function to the personnel passage equipment, and the passage parameter refers to the relative parameter of the personnel passage equipment when the personnel passage equipment executes operations such as opening the passage equipment, for example, the passage parameter can comprise the opening passage mode parameter of the personnel passage equipment, for example, the authenticated personnel can pass through the personnel passage equipment by rotating the blocking rod, or the authenticated personnel can pass through the personnel passage equipment by translating the blocking plate; an opening time parameter of the personnel access may also be included, for example, 3s, 5s, 8s, etc. are set to define the opening time of the personnel access.
The credential identification parameters refer to related parameters of personnel verification when passing through the personnel channel equipment, and may include verification modes such as face identification, two-dimensional code verification, processor unit verification and the like which can be verified by the personnel channel equipment.
Similar to the batch activation operation, the configuration message sent by the upper platform to the first personnel channel device may also be a batch configuration message. In one possible implementation manner, the configuration message may be divided into a network configuration message or a channel configuration message, where the network configuration is mainly used to implement network connection of the personnel channel device, so as to ensure that the personnel channel device can normally communicate; the channel configuration is mainly used for configuring the passing function of the personnel channel equipment, so that the personnel channel equipment can realize the passing function according to the requirement.
In one possible implementation, when the configuration message is a network configuration message, the first configuration parameter includes an IP address and a gateway; the other personnel channel equipment is specifically configured to utilize the IP address and the gateway in the first configuration parameter to configure the IP address and the gateway of the own equipment when the second equipment address is the equipment address of the own equipment;
When the configuration message is a channel configuration message, the first configuration parameter comprises a channel parameter and a credential identification parameter; and the other personnel channel equipment is particularly used for carrying out pass function configuration on the self equipment by utilizing the channel parameter and the certificate identification parameter in the first configuration parameter when the second equipment address is the equipment address of the self equipment.
The upper platform selects other activated personnel channel equipment to be configured in the network from the other personnel channel equipment information sent by the first personnel channel equipment, namely, the first list, and the display interface can comprise information such as the number, the model number, the serial number, the IP address, the activation state and the like of the other personnel channel equipment. The network configuration interface may be accessed through a "batch network configuration" operation to determine network parameter configuration operations, such as that shown in fig. 5. And sending a network configuration message for performing network configuration to the first personnel channel equipment. In still another example, the upper platform selects other personnel channel devices to be configured in the information of the other personnel channel devices sent by the first personnel channel device, and the display interface may include information such as a model number, a serial number, an IP address, an activation state, and the like of the other personnel channel devices; the "batch parameter configuration" operation may be entered into the interface of fig. 6 to determine a channel parameter configuration operation, and a channel configuration message for channel configuration may be sent to the first personnel channel device.
By applying the system provided by the embodiment of the application, different configuration operations, such as network parameter configuration or channel parameter configuration operation, can be completed by sending different types of configuration messages to the personnel channel equipment, so that manual configuration operation on each personnel channel equipment one by one is avoided, the parameter configuration efficiency of the personnel channel equipment is improved, and the installation efficiency of the personnel channel equipment is further improved.
In the embodiment of the application, the configuration parameter message can also carry a password for equipment verification to further determine whether the configuration parameter message is third personnel channel equipment needing to carry out configuration parameters.
Similarly, when receiving the configuration parameter message, other personnel channel equipment needs to analyze and judge the configuration parameter message, and judge whether the second equipment address is the own equipment address, if so, the configuration parameter operation is responded and completed, a configuration response message is generated and returned to the first personnel channel equipment, and if not, the configuration parameter message is ignored.
In addition, other personnel channel equipment can also judge that the type of the configuration parameter message is a network configuration message or a channel parameter configuration message after analyzing the configuration parameter message, if the configuration parameter message is the network configuration message, the other personnel channel equipment can acquire network parameters (such as IP addresses, gateways and the like) needing to be configured in the configuration parameter message, update the network parameters to the equipment, and generate a configuration result. If the configuration parameter message is a channel parameter configuration message, other personnel channel equipment can acquire parameter information values (such as credential identification parameters, channel parameters and other information) to be synchronized in the channel parameter configuration message, update the parameter information values to the self equipment, and generate a configuration result.
Similarly, the first personnel channel device may record after receiving the configuration response of each other personnel channel device, and send the configuration result of each other personnel channel device to the upper platform.
The following example is used to specifically describe the operation of the configuration parameters in the embodiment of the present application, as shown in fig. 7, the first personnel channel device is the personnel channel device currently operated, the device search is first performed, a multicast search message is sent to other personnel channel devices (such as personnel channel device 1, personnel channel device 2, … … personnel channel device N), search multicast is performed, and each personnel channel device returns information after receiving the multicast search message, where the returned information is self device information. After receiving the configuration message of the upper platform, the currently operated personnel channel equipment searches an equipment search list, namely a second list, according to the equipment serial numbers of other personnel channel equipment needing configuration parameters in the configuration message, the MAC address information of the personnel channel equipment is obtained, and then a configuration parameter message is generated according to the serial numbers of the personnel channel equipment, the MAC address information and the configuration parameters.
In one example, when the currently operated personnel channel devices need to configure the personnel channel devices 1 and 2 in batch, the configuration parameter message for the personnel channel device 1 may be first generated to be multicast to enable the personnel channel device 1 to perform parameter configuration, and the configuration parameter message for the personnel channel device 2 may be generated to be multicast to enable the personnel channel device 2 to perform parameter configuration. The currently operated personnel channel device assembles a configuration parameter message according to the information (serial number/MAC address, etc.) of the personnel channel device 1 obtained by searching, and multicasts the configuration parameter message. In practical application, each personnel channel device monitors a multicast request, compares whether the MAC address information in the message is a local MAC address after receiving a configuration parameter message, responds to configuration if the MAC address information is the local MAC address, returns a configuration result, and ignores the configuration parameter message if the MAC address information is not the local MAC address.
After the configuration flow of the current operating personnel channel equipment is finished, the configuration result is recorded, the personnel channel equipment 2 is continuously configured in the same mode, a configuration parameter message aiming at the personnel channel equipment 2 is generated, and the personnel channel equipment 2 responds to configuration and returns the configuration result after receiving the configuration parameter message. And similarly, when the personnel channel equipment 1 to the personnel channel equipment N are configured, the personnel channel equipment currently operated assembles a configuration result list message after the configuration flow of all equipment is finished, and returns the configuration result list message to the upper platform.
By applying the system of the embodiment of the application, the first personnel channel equipment can generate the corresponding configuration parameter messages according to the physical addresses and the configuration parameters corresponding to the other personnel channel equipment, and multicast the configuration parameter messages in the local area network, so that the other personnel channel equipment responds to the parameter configuration according to the corresponding configuration parameter messages, and a technician can complete the configuration of the other personnel channel equipment in the system by only carrying out the configuration parameters on one personnel channel equipment, thereby reducing the workload of the technician for manually configuring the personnel channel equipment, improving the efficiency of the configuration parameters of the personnel channel equipment and further improving the installation efficiency of the personnel channel equipment. And the first personnel channel equipment is directly used for carrying out configuration parameter operation on other personnel channel equipment, so that the parameters of the other personnel channel equipment can be synchronized, and the difficulty of parameter synchronization operation of the personnel channel equipment is reduced.
In a possible implementation manner, the first personnel channel device is further configured to obtain a positioning message sent by the upper platform, and parse the positioning message to obtain device identifiers of fourth personnel channel devices to be positioned; selecting fourth personnel channel equipment to be positioned currently from the fourth personnel channel equipment; inquiring and obtaining a third equipment address of the fourth personnel channel equipment selected currently according to the equipment identification of the fourth personnel channel equipment selected currently; and generating a positioning message comprising the third equipment address and the positioning mark.
The other personnel channel equipment is also used for analyzing the received message, and judging the received message as a positioning message when the positioning mark in the message is analyzed; when the third equipment address in the positioning message is the equipment address of the self equipment, controlling the self equipment to execute the positioning action; and generating a positioning response message comprising a third equipment identifier of the self equipment, and sending the positioning response message to the first personnel channel equipment.
The first personnel channel equipment is also used for receiving the positioning response message; analyzing the positioning response message to obtain a third equipment identifier; recording personnel channel equipment represented by a third equipment identifier to finish positioning; and selecting the next fourth personnel channel equipment to be positioned from the fourth personnel channel equipment, and continuing to execute positioning operation until the fourth personnel channel equipment is traversed.
In practical application, the upper platform may select the fourth personnel channel equipment to be positioned according to the actual requirement, and generate a positioning message according to the equipment identifier of the selected fourth personnel channel equipment, for example, select one or two other personnel channel equipment to position. The first personnel channel device may obtain the device address of the fourth personnel channel device by the same method as in the above embodiment, and generate the positioning message according to the device address and the positioning mark. The device management interface of the upper platform may display status information of each device, where a positioning operation may be determined by a device positioning icon, and a positioning message may be sent to the first personnel channel device.
The positioning action executed by other personnel channel equipment is an action which can be conveniently observed by an operator, the positioning action can be determined through a positioning mark, for example, the equipment which can enable the operator to definitely position by controlling the door opening and the light prompt can be normally-on light or flashing light for the purpose of definitely positioning. In the following example, the positioning operation of the embodiment of the present application is specifically described, as shown in fig. 8, the first personnel channel device is the personnel channel device currently operated, the device search is first performed, a multicast search message is sent to other personnel channel devices (such as personnel channel device 1, personnel channel device 2, … … personnel channel device N), search multicast is performed, and each personnel channel device returns information after receiving the multicast search message, where the returned information is own device information. After receiving the positioning message of the upper platform, the currently operated personnel channel equipment searches the equipment search list of the personnel channel equipment, acquires the MAC address information of each fourth personnel channel equipment, and assembles the positioning message according to the serial number, the MAC address information and the positioning mark of each personnel channel equipment.
In general, in order to more clearly identify the personnel access device, an operator may select only one personnel access device to locate, and in one example, the currently operated personnel access device needs to locate the personnel access device 2, and then a location message for the personnel access device 2 may be generated and multicast to enable the personnel access device 2 to respond to the location message. The currently operated personnel channel device assembles a positioning message according to the information (serial number/MAC address, etc.) of the personnel channel device 2 obtained by searching, generates a positioning message for the personnel channel device 2, and multicasts the positioning message.
In practical application, each personnel channel device monitors a multicast request, compares whether message MAC address information is a local MAC address after receiving a positioning message, and responds to the positioning message if the message MAC address information is the local MAC address. When responding to the positioning message, the self equipment can be controlled to execute the positioning action, and a positioning response message is returned, if not, the positioning message is ignored. When the personnel channel equipment 2 determines that the MAC address in the positioning message is the self MAC address, the lamplight prompt and door opening actions are carried out, and a positioning response message is generated and returned to the personnel channel equipment currently operated. And after the flow is finished, the personnel channel equipment operated at present assembles a positioning result message and returns the positioning result message to the upper platform.
By applying the system of the embodiment of the application, the first personnel channel equipment can generate the corresponding positioning messages according to the physical addresses and the positioning marks corresponding to the other personnel channel equipment, and multicast the positioning messages in the local area network, so that the other personnel channel equipment responds to the positioning request according to the corresponding positioning messages, thereby being convenient for related operators to identify the personnel channel equipment.
In a second aspect of the embodiment of the present application, a device configuration method is provided, which is applied to a first personnel access device, where the first personnel access device is any personnel access device in a traffic control system, and the method includes the steps as shown in fig. 9:
Step S901: acquiring an activation password input by a user, and activating self equipment according to the activation password; acquiring a first network configuration parameter input by a user, and carrying out network configuration on the self equipment according to the first network configuration parameter.
Step S902: and sending the multicast search message in the local area network, so that other personnel channel equipment in the local area network can send own equipment information to the first personnel channel equipment after receiving the multicast search message, wherein the equipment information comprises equipment identification and equipment address.
Step S903: and generating a first list comprising the device identifications of the other personnel channel devices, and sending the first list to the upper platform.
Step S904: and acquiring batch activation messages sent by the upper platform, wherein the batch activation messages are generated by the upper platform according to the equipment identifiers of the equipment in the first list, and the batch activation messages comprise the equipment identifiers of the equipment of the personnel channels needing to be activated.
Step S905: according to the equipment identification in the batch activation message, a first equipment address of personnel channel equipment to be activated is searched; and generating an activation message comprising the first equipment address and the activation password, and sending the activation message in the local area network so that other personnel channel equipment can be activated by using the activation password in the activation message after receiving the activation message.
By applying the method of the embodiment of the application, the first personnel channel equipment can complete the activation and configuration of the first personnel channel equipment according to the activation password and the first network configuration parameter input by the user; the multicast search message is sent to acquire the equipment information of other personnel channel equipment, and a first list is generated and sent to an upper platform; the upper platform sends a batch activation message according to the equipment information of the personnel channel equipment to be activated in the first list, the first personnel channel equipment obtains a first equipment address and an activation password of the personnel channel equipment to be activated according to the batch activation message, generates an activation message of the personnel channel equipment to be activated and sends the activation message in the local area network; and after the first equipment address in the activation message is determined to be the equipment address of the other personnel channel equipment, the other personnel channel equipment can complete the self activation.
Therefore, only one personnel channel device is required to be manually activated, the other personnel channel devices can be automatically activated through the personnel channel device, each personnel channel device is not required to be manually activated one by one, so that the manual workload is reduced, the device activation efficiency is improved, and the installation efficiency of the personnel channel devices is further improved.
In one possible implementation manner, before acquiring the activation password input by the user and activating the self device according to the activation password, the method of the embodiment of the present application further includes: after accessing to the local area network, adding the local area network into a multicast group according to a preset service discovery protocol;
Transmitting a multicast search message in a local area network, comprising: generating a multicast search message containing a channel equipment extension field, wherein the channel equipment extension field comprises an identifier of the first personnel channel equipment; multicasting the multicast search message in a multicast group;
The method of the embodiment of the application further comprises the following steps: if the channel equipment extension field of the received message is the identifier of the first personnel channel equipment, discarding the received message.
By applying the method of the embodiment of the application, other personnel channel equipment can determine that the received message is the message of the first personnel channel equipment by identifying whether the channel equipment extension field in the multicast search message is the equipment identifier of the first personnel channel equipment, thereby avoiding sending equipment information to other equipment and improving the accuracy of communication among the personnel channel equipment.
In one possible implementation manner, according to the device identification in the batch activation message, a first device address of the personnel channel device to be activated is searched; generating an activation message including a first device address and an activation password, and transmitting the activation message in a local area network, including:
analyzing the batch activation message to obtain the equipment identification of each second personnel channel equipment to be activated; selecting a second personnel channel device to be activated currently from the second personnel channel devices; inquiring to obtain a first equipment address of the second personnel channel equipment selected currently according to the equipment identifier of the second personnel channel equipment selected currently; generating an activation message comprising a first device address and an activation password; multicasting an activation message in the local area network so that after other personnel channel equipment is activated by using an activation password, an activation response message comprising an activation result of the other personnel channel equipment and a first equipment identifier of the other personnel channel equipment is generated, and the activation response message is sent to the first personnel channel equipment;
Receiving an activation response message sent by other personnel channel equipment; analyzing the activation response message to obtain a first equipment identifier and an activation result, and recording the activation result of the personnel channel equipment represented by the first equipment identifier;
And selecting the next second personnel channel equipment to be activated from the second personnel channel equipment, continuing to execute the activation operation until the second personnel channel equipment is traversed, and sending the activation result of the second personnel channel equipment to the upper platform.
By applying the method provided by the embodiment of the application, the first personnel channel equipment can conveniently determine the second personnel channel equipment which is not activated by receiving and recording the activation results of other personnel channel equipment, so that the selection and the sending of the activation message can be performed. And the activation result of each other personnel channel device is sent to the upper platform, so that the upper platform can manage the activation state of each other personnel channel device, and each personnel channel device is ensured to complete activation.
In one possible implementation manner, the method of the embodiment of the application further comprises the following steps:
After the network configuration is completed, obtaining channel parameters and credential identification parameters sent by an upper platform, and configuring the passing function of self equipment according to the channel parameters and the credential identification parameters;
Acquiring configuration information sent by an upper platform, and analyzing the configuration information to obtain equipment identifiers of all third personnel channel equipment needing configuration parameters and the configuration parameters of all third personnel channel equipment;
Selecting third personnel channel equipment to be configured currently from the third personnel channel equipment; inquiring to obtain a second equipment address of the currently selected third personnel channel equipment according to the equipment identifier of the currently selected third personnel channel equipment; generating a configuration parameter message comprising a second equipment address and a first configuration parameter, wherein the first configuration parameter is the configuration parameter of the third personnel channel equipment selected currently; multicasting configuration parameter messages in a local area network so that other personnel channel equipment utilizes the first configuration parameters to configure the equipment, generates configuration response messages comprising configuration results of the other personnel channel equipment and second equipment identifiers, and sends the configuration response messages to the first personnel channel equipment;
receiving a configuration response message; analyzing the configuration response message to obtain a second equipment identifier and a configuration result; recording a configuration result of the personnel channel equipment represented by the second equipment identifier;
and selecting the next third personnel channel equipment to be configured from the third personnel channel equipment, continuing to execute configuration operation until the third personnel channel equipment is traversed, and transmitting the configuration result of the third personnel channel equipment to the upper platform.
By applying the method of the embodiment of the application, the first personnel channel equipment can generate the corresponding configuration parameter messages according to the physical addresses and the configuration parameters corresponding to the other personnel channel equipment, and multicast the configuration parameter messages in the local area network, so that the other personnel channel equipment responds to the parameter configuration according to the corresponding configuration parameter messages, and a technician can complete the configuration of the other personnel channel equipment in the system by only carrying out the configuration parameters on one personnel channel equipment, thereby reducing the workload of the technician for manually configuring the personnel channel equipment, improving the efficiency of the configuration parameters of the personnel channel equipment and further improving the installation efficiency of the personnel channel equipment. And the first personnel channel equipment is directly used for carrying out configuration parameter operation on other personnel channel equipment, so that the parameters of the other personnel channel equipment can be synchronized, and the difficulty of parameter synchronization operation of the personnel channel equipment is reduced.
In one possible embodiment, the method of the present application further comprises:
Acquiring a positioning message sent by an upper platform, and analyzing the positioning message to obtain the equipment identification of each fourth personnel channel equipment to be positioned;
Selecting fourth personnel channel equipment to be positioned currently from the fourth personnel channel equipment; inquiring to obtain a third equipment address of the fourth personnel channel equipment currently selected according to the equipment identifier of the fourth personnel channel equipment currently selected as a keyword; generating a positioning message comprising a third equipment address and a positioning mark; the other personnel channel equipment controls the self equipment to execute positioning action, generates a positioning response message comprising a third equipment identifier of the other personnel channel, and sends the positioning response message to the first personnel channel equipment;
Receiving a positioning response message; analyzing the positioning response message to obtain a third equipment identifier; recording personnel channel equipment represented by a third equipment identifier to finish positioning;
And selecting the next fourth personnel channel equipment to be positioned from the fourth personnel channel equipment, and continuing to execute positioning operation until the fourth personnel channel equipment is traversed.
By applying the method of the embodiment of the application, the first personnel channel equipment can generate the corresponding positioning messages according to the physical addresses and the positioning marks corresponding to the other personnel channel equipment, and multicast the positioning messages in the local area network, so that the other personnel channel equipment responds to the positioning request according to the corresponding positioning messages, thereby being convenient for related operators to identify the personnel channel equipment.
In a third aspect of the embodiment of the present application, an apparatus configuration method is provided, which is applied to other personnel access apparatuses, where the other personnel access apparatuses are personnel access apparatuses in a traffic control system except for a first personnel access apparatus, and the first personnel access apparatus is any personnel access apparatus in the traffic control system, and the method in the embodiment of the present application includes the steps as shown in fig. 10:
Step S1001: and analyzing the received message, and when the received message is determined to be a multicast search message, transmitting the device information of the received message to the first personnel channel device so as to enable the first personnel channel device to generate a first list comprising the device identification, and transmitting the first list to an upper platform.
The device information comprises a device identifier and a device address, and the multicast search message is sent in the local area network after the first personnel channel device is manually configured.
Step S1002: after receiving the activation message, analyzing the activation message to obtain a first equipment address and an activation password.
The activation message is generated by the first personnel channel equipment according to batch activation messages sent by the upper platform.
Step S1003: when the first device address is the address of the self device, the self device is activated by using the activation password.
By applying the method provided by the embodiment of the application, the personnel channel equipment can directly receive the activation message of the first personnel channel equipment, and the activation of the personnel channel equipment is completed according to the received activation message, so that each personnel channel equipment is not required to be activated one by one manually, the manual workload is reduced, the equipment activation efficiency is improved, and the installation efficiency of the personnel channel equipment is further improved.
In one possible implementation, parsing the received message includes: and analyzing the received message, and determining that the received message is a multicast search message when analyzing the channel equipment extension field.
In one possible implementation manner, the method of the embodiment of the application further comprises the following steps:
After the self equipment is activated by using the activation password, an activation response message comprising an activation result of the self equipment and a first equipment identifier of the self equipment is generated, and the activation response message is sent to the first personnel channel equipment; and the first personnel channel equipment records the activation result of the personnel channel equipment represented by the first equipment identifier and sends the activation result to the upper platform.
In one possible implementation manner, the method of the embodiment of the application further comprises the following steps:
after receiving the configuration parameter message, analyzing the configuration parameter message to obtain a second equipment address and a first configuration parameter; the configuration parameter message is generated by the first personnel channel equipment according to the configuration message sent by the upper platform;
When the second equipment address is the equipment address of the self equipment, the self equipment is configured by utilizing the first configuration parameter;
Generating a configuration response message comprising a configuration result of the self equipment and a second equipment identifier of the self equipment, and sending the configuration response message to the first personnel channel equipment; and the first personnel channel equipment records the configuration result of the personnel channel equipment represented by the second equipment identifier and sends each configuration result to the upper platform.
In one possible implementation manner, the method of the embodiment of the application further comprises the following steps:
analyzing the received message, and judging the received message as a positioning message when analyzing the positioning mark in the message; the positioning message is generated by the first personnel channel equipment according to the positioning message of the upper platform;
When the third equipment address in the positioning message is the equipment address of the self equipment, controlling the self equipment to execute the positioning action; generating a positioning response message comprising a third equipment identifier of the self equipment, and sending the positioning response message to the first personnel channel equipment; so that the first personnel access device records the personnel access device indicated by the third device identifier to complete positioning.
In the technical scheme of the application, the operations of acquiring, storing, using, processing, transmitting, providing, disclosing and the like of the related equipment information are all performed under the condition that the user authorization is obtained.
The embodiment of the application also provides an electronic device, as shown in fig. 11, including:
a memory 1101 for storing a computer program;
The processor 1102 is configured to execute the program stored in the memory 1101, and implement the following steps:
acquiring an activation password input by a user, and activating self equipment according to the activation password; acquiring a first network configuration parameter input by a user, and carrying out network configuration on self equipment according to the first network configuration parameter;
Sending a multicast search message in the local area network, so that after receiving the multicast search message, other personnel channel equipment in the local area network send own equipment information to the personnel channel equipment, wherein the equipment information comprises equipment identification and equipment address;
Generating a first list comprising equipment identifiers of all other personnel channel equipment, and sending the first list to an upper platform;
Acquiring batch activation messages sent by an upper platform, wherein the batch activation messages are generated by the upper platform according to the equipment identifiers of all the equipment in the first list, and the batch activation messages comprise the equipment identifiers of all the personnel channel equipment to be activated;
According to the equipment identification in the batch activation message, a first equipment address of personnel channel equipment to be activated is searched; and generating an activation message comprising the first equipment address and the activation password, and sending the activation message in the local area network so that other personnel channel equipment can be activated by using the activation password in the activation message after receiving the activation message.
Or the processor 1102 is configured to execute the program stored in the memory 1101, thereby implementing the following steps:
Analyzing the received message, and when the received message is determined to be a multicast search message, transmitting self equipment information to the first personnel channel equipment so as to enable the first personnel channel equipment to generate a first list comprising equipment identifiers, and transmitting the first list to an upper platform; the device information comprises a device identifier and a device address, and the multicast search message is sent in the local area network after the first personnel channel device is manually configured;
after receiving the activation message, resolving the activation message to obtain a first equipment address and an activation password; the method comprises the steps that after a message is activated, the message is generated by first personnel channel equipment according to batch activation messages sent by an upper platform;
When the first device address is the address of the self device, the self device is activated by using the activation password.
And the electronic device may further include a communication bus and/or a communication interface, where the processor 1102, the communication interface, and the memory 1101 may communicate with each other via the communication bus.
The communication bus mentioned above for the electronic device may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In yet another embodiment of the present application, a computer readable storage medium is provided, in which a computer program is stored, which when executed by a processor implements any of the above-mentioned device configuration methods.
In yet another embodiment of the present application, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the device configuration methods of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.) means from one website, computer, server, or data center. Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a Solid state disk (Solid STATE DISK, SSD), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the method, electronic device, storage medium embodiments, since they are substantially similar to the system embodiments, the description is relatively simple, and references to the parts of the description of the method embodiments are only needed.
The foregoing is merely a preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.