Disclosure of Invention
The invention provides a crew area positioning and management system based on an active tag bracelet, which aims to solve the technical problem that the existing positioning and management system for ships is inconvenient and effective.
The invention further provides a crewman area positioning and managing method based on the active tag bracelet.
The technical scheme adopted by the invention is as follows:
an active tag bracelet-based crewman zone locating and management system comprising: the active tag bracelet is provided with a tag ID and is used for collecting vital sign information and environmental information of a crew; the positioning base station is provided with a base station ID, when the distance between the active tag bracelet and the positioning base station is smaller than or equal to a preset distance, the positioning base station and the active tag bracelet are used as nodes to form a ZigBee network, and the positioning base station receives the tag ID of the active tag bracelet, vital sign information of a shipman and environmental information through the ZigBee network; the gateway is connected with the positioning base station through a power line, and the gateway is communicated with the positioning base station through a power carrier to acquire a base station ID of the positioning base station, a tag ID of the active tag bracelet, vital sign information of a crew member and environmental information; the upper computer server is connected with the gateway and is used for receiving the base station ID of the positioning base station, the tag ID of the active tag bracelet, the vital sign information of the crew and the environmental information, and monitoring vital sign and environmental information of the crew, positioning the crew and checking work attendance according to the base station ID of the positioning base station, the tag ID of the active tag bracelet, the vital sign information of the crew and the environmental information; and the bulletin board is connected with the gateway through a power line, the upper computer server also transmits bulletin information to the gateway, and the bulletin board is communicated with the gateway through a power carrier to acquire the bulletin information and performs information release according to the bulletin information.
The upper computer server is connected with the gateway through a serial port.
The plurality of positioning base stations comprise at least two positioning base stations arranged in a boarding and ship leaving area, at least two positioning base stations linearly arranged in a corridor tunnel area, at least two positioning base stations arranged in an open deck area in an array mode and at least one positioning base station correspondingly arranged in at least one room of a cabin room area.
The upper computer server comprises a database, the database stores the position information of each positioning base station, when the upper computer server receives the base station ID transmitted by any positioning base station, the tag ID of the active tag bracelet, the vital sign information of the crew and the environmental information, the crew wearing the active tag bracelet is identified according to the received tag ID so as to realize monitoring on the vital sign and the environmental information of the crew, the positioning base station is identified according to the received base station ID, and the position information of the positioning base station is called from the database so as to realize positioning of the crew.
And when the upper computer server receives the base station IDs, the tag IDs of the active tag bracelets, the vital sign information of the crews and the environmental information sent by the base stations at the two ends of the boarding and leaving areas within the preset time, judging that the crews wearing the active tag bracelets are in a boarding state or a leaving state according to the receiving sequence so as to realize attendance checking of the crews.
The active tag bracelet and the positioning base station both comprise radio frequency modules, and when the distance between the active tag bracelet and the positioning base station is smaller than or equal to a preset distance, the active tag bracelet and the positioning base station form a ZigBee network through the radio frequency modules.
The active tag bracelet comprises a power supply battery, and enters a low power consumption mode within an interval time after the tag ID, vital sign information of a shipman and environmental information are sent to the positioning base station.
The positioning base station, the gateway and the bulletin board all comprise power carrier modules, the power carrier modules of the positioning base station are connected with the power carrier modules of the gateway through power lines, and the power carrier modules of the bulletin board are connected with the power carrier modules of the gateway through the power lines so as to realize power carrier communication.
The positioning base station and the gateway are directly connected with a power supply in an inserting mode so as to supply power to the positioning base station and the gateway.
A crewman area positioning and managing method based on an active tag bracelet comprises the following steps: acquiring vital sign information and environmental information of a crew member through an active tag bracelet, wherein the active tag bracelet is provided with a tag ID; the positioning base station receives the tag ID of the active tag bracelet, the vital sign information of the crewman and the environmental information, wherein the positioning base station has a base station ID; the gateway performs power carrier communication with the positioning base station to acquire a base station ID of the positioning base station, a tag ID of the active tag bracelet, vital sign information of the crew and the environmental information; the upper computer server receives the base station ID of the positioning base station, the tag ID of the active tag bracelet, the vital sign information of the crew and the environmental information, so as to monitor the vital sign and the environmental information of the crew, position the crew and check the attendance of the crew according to the base station ID of the positioning base station, the tag ID of the active tag bracelet, the vital sign information of the crew and the environmental information; and the upper computer server sends the bulletin information to the gateway, and the bulletin board performs power carrier communication with the gateway to acquire the bulletin information and performs information release according to the bulletin information.
The invention has the beneficial effects that:
the invention collects the vital sign information and the environmental information of the shipman through the active tag bracelet, receives the tag ID of the active tag bracelet, the vital sign information of the shipman and the environmental information through the positioning base station, and transmits the base station ID of the active tag bracelet, the tag ID of the shipman, the vital sign information of the shipman and the environmental information to the upper computer server through the gateway, thereby realizing the monitoring, positioning and attendance of the vital sign and the environmental information of the shipman, simultaneously, the upper computer server can also transmit the notice information to the bulletin board through the gateway for information release, and the gateway is communicated with the positioning base station, the bulletin board and the gateway through power lines, thereby solving the problems of troublesome wireless signal shielding, special signal line arrangement and the like of a ship steel structure.
Detailed Description
The following description of the embodiments of the present invention 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 invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, the crew area locating and managing system based on an active tag bracelet according to an embodiment of the present invention includes an active tag bracelet 10, a locating base station 20, a gateway 30, an upper computer server 40 and a bulletin board 50.
The active tag bracelet 10 is provided with a tag ID, and the active tag bracelet 10 is used for collecting vital sign information and environmental information of a shipman; the positioning base station 20 is provided with a base station ID, when the distance between the active tag bracelet 10 and the positioning base station 20 is smaller than or equal to a preset distance, the positioning base station 20 and the active tag bracelet 10 are used as nodes to form a ZigBee network, and the positioning base station 20 receives the tag ID of the active tag bracelet 10, vital sign information of a shipman and the information of the environment through the ZigBee network; the gateway 30 is connected with the positioning base station 20 through a power line, and the gateway 30 performs power carrier communication with the positioning base station 20 to acquire a base station ID of the positioning base station 20, a tag ID of the active tag bracelet 10, vital sign information of a shipman and information of the environment; the upper computer server 40 is connected with the gateway 30, and the upper computer server 40 is used for receiving the base station ID of the positioning base station 20, the tag ID of the active tag bracelet 10, the vital sign information of the crew and the environmental information, so as to monitor the vital sign and the environmental information of the crew, position the crew and check the attendance of the crew according to the base station ID of the positioning base station 20, the tag ID of the active tag bracelet 10, the vital sign information of the crew and the environmental information; the bulletin board 50 is connected to the gateway 30 through a power line, the upper computer server 40 also transmits bulletin information to the gateway 30, and the bulletin board 50 acquires the bulletin information by performing power carrier communication with the gateway 30 and performs information distribution according to the bulletin information.
The active tag bracelet 10 is worn by a crewman, in an embodiment of the present invention, each crewman needing vital sign and environmental information monitoring, locating and attendance checking. The tag ID serves as an identification of the active tag bracelet and thus as an identification of the crew member, each tag ID corresponding to each crew member. The active tag bracelet 10 can collect vital sign information such as body temperature, heart rate and the like of a crew member through a built-in temperature sensor, a heart rate sensor and the like; the active tag bracelet 10 can collect environmental information such as temperature, humidity and the like of the environment where the crew member is located through a built-in temperature and humidity sensor.
In one embodiment of the invention, the active tag bracelet 10 includes a power supply battery powered by a built-in power supply battery. The active tag bracelet 10 further comprises a radio frequency module, wherein the radio frequency module can be specifically an AT-MR500M, and the radio frequency module can comprise an MG2455 chip with ultra-low power consumption, a radio frequency transceiver unit and a power supply unit. The minimum system of the MG2455 chip is a control core and is mainly used for controlling the radio frequency receiving and transmitting unit, the radio frequency receiving and transmitting unit is mainly responsible for receiving and transmitting tag information, and the power supply unit is used for processing a power supply provided by a power supply battery so as to provide 5V working voltage for the whole system of the radio frequency module.
In an embodiment of the present invention, the positioning base station 20 also includes a radio frequency module, and the structure of the radio frequency module is the same as that of the radio frequency module of the active tag bracelet 10, which is not described herein.
When the distance between the active tag bracelet 10 and the positioning base station 20 is smaller than or equal to the preset distance, namely, the distance between the active tag bracelet 10 and the positioning base station 20 is within the communication range of the radio frequency module, the active tag bracelet 10 and the positioning base station 20 form a ZigBee network through the radio frequency module. After the ZigBee network is successfully built, the active tag bracelet 10 may transmit the tag ID, the vital sign information of the crew and the environmental information to the positioning base station 20 at intervals, and enter the low power consumption mode in the intervals after transmitting the tag ID, the vital sign information of the crew and the environmental information to the positioning base station 20.
Specifically, the working process of the active tag bracelet 10 is shown in fig. 4, and includes the following steps:
s101, initializing.
S102, sending a network joining signal.
S103, judging whether the joining of the network is successful or not. If yes, go to step S104; if not, return to step S102.
S104, configuring a radio frequency transceiver unit.
S105, defining a tag ID.
S106, configuring a clock, and interrupting every 3 seconds.
S107, data is sent.
S108, entering a low power consumption mode.
S109, judging whether the timing time is up. If yes, return to step S107; if not, return to step S108.
The operation of the positioning base station 20 is shown in fig. 3, and includes the following steps:
s201, initializing.
S202, a new network is established.
S203, entering a wireless monitoring state.
S204, judging whether a wireless signal appears. If yes, step S205 is performed; if not, return to step S203.
S205, a label is added to the network.
S206, a sixteen-bit short address is allocated to the label.
S207, entering a receiving mode.
That is, when the active tag bracelet 10 and the positioning base station 20 form point-to-point wireless communication, the positioning base station 20 may dynamically allocate a sixteen-bit short address to the active RFID tag bracelet, and the sixteen-bit short address of the positioning base station 20 may be fixed to 0x0000. When the positioning base station 20 communicates with the active tag bracelet 10, a short address of each other is used, and then a fixed unique ID number is set to the active tag bracelet 10 to match the worn crewman. Then, according to the timer setting, the tag ID number is transmitted once outwards, and then the active tag bracelet 10 enters a low power consumption mode to reduce tag bracelet power consumption, and tag information is transmitted again after 3 seconds. The active tag bracelet 10 may also receive information transmitted by the positioning base station 20.
In one embodiment of the present invention, the gateway 30 may use a single chip microcomputer with STM32F103ZET6 as a core chip, the host computer server 40 may include a cloud platform server, and the bulletin board 50 may include a display screen and a speaker.
In one embodiment of the present invention, the positioning base station 20, the gateway 30 and the bulletin board 50 each include a power carrier module, the power carrier module of the positioning base station 20 is connected to the power carrier module of the gateway 30 through a power line, and the power carrier module of the bulletin board 50 is connected to the power carrier module of the gateway 30 through a power line, so as to implement power carrier communication. The positioning base station 20 and the gateway 30 can be directly plugged with a power supply, such as 220V ac power supply, so as to supply power to the positioning base station 20 and the gateway 30.
In one embodiment of the present invention, the upper computer server 40 and the gateway 30 may be directly connected through a serial port.
The gateway 30 has a main function of receiving information from the positioning base station 20 through a power line and transmitting the received information to the upper computer server 40 through its own serial port unit. Meanwhile, the gateway 30 receives the information from the upper computer server 40, and on one hand, the information is returned to the positioning base station 20 through the power line, so that the information is finally returned to the active tag bracelet; on the other hand, the information is sent to the bulletin board 50 through the power line for display or broadcasting, thereby achieving the function of information publication. Thus, the gateway 30 mainly serves as a "relay station" for locating the base station 20 and the upper computer server 40, and for locating the upper computer server 40 and the bulletin board 50.
In one embodiment of the invention, the power carrier module adopts a KQ-130F module, is a single-row 9-pin small-size high-performance zero-crossing carrier data receiving and transmitting module, and is a carrier module with very high cost performance specially designed and developed for reliably transmitting data under the environment with strong interference, strong attenuation and long-distance requirements on 220V alternating current. KQ-130F module has integrated KQ-330F and peripheral circuit's carrier plate, need not other coupling element, and direct connection 220V alternating current uses. The KQ-130F communication protocol specifies that KQ-130F provides two modes of operation, a transparent mode of operation and a custom mode of operation, respectively. The MODE is a transparent operation MODE when high level (suspended) and a self-defined operation MODE when low level (grounded). In the transparent operation MODE (mode=1, i.e. MODE is suspended or connected with 5V, suspended is recommended), the module is not required to be initialized during programming, however, because the load on the power line is relatively high, the harmonic wave generated by the electric appliance is inevitably coupled to the power line, the module is a high-sensitivity carrier module, when all carrier modules are in a receiving state, the power line is covered by the harmonic wave generated by the electric appliance, at this time, the module outputs demodulated noise data from the TX end, so that the transmitting and receiving data should introduce a synchronous code to distinguish real transmitting data. In the custom operation MODE (mode=0, i.e. MODE grounded), data is transferred according to a predetermined definition, and one frame of transferred data is defined as follows: the first byte: the number of bytes to be transferred for a frame is 0-250 (without the first byte), the second byte to the n+1th byte: byte data that the user needs to transfer.
In one embodiment of the present invention, the upper computer server 40 is based on c# technology, and its software functions include data reception, data transmission, and information verification and inquiry. The functional modules designed by the upper computer server 40 mainly include: the system mainly comprises a login module, a crewman information management module, a data analysis module, a data processing module and a data query module, and has the following functions: system maintenance, device management, basic information management, data processing, information transmission, and the like. The system management of the upper computer server 40 includes setting a login password of an operator, setting a connection parameter of a database, a service name address of the database, etc., the device management includes setting a port number of a communication parameter, and the setting operations include adding, saving, modifying, deleting, and inquiring.
In one embodiment of the invention, as shown in fig. 4, the vessel may include boarding areas, corridor tunnel areas, deck opening areas, cabin room areas, and the like. The plurality of positioning base stations 20 comprises at least two positioning base stations arranged in a boarding and disembarking area, at least two positioning base stations linearly arranged in a corridor tunnel area, at least two positioning base stations arranged in an open deck area in an array mode and at least one positioning base station correspondingly arranged in at least one room of a cabin room area.
Further, the upper computer server 40 includes a database storing the position information of each positioning base station 20, when the upper computer server 40 receives the base station ID transmitted by any positioning base station 20, the tag ID of the active tag bracelet, the vital sign information of the crew and the environmental information, the crew wearing the active tag bracelet 10 can be identified according to the received tag ID to monitor the vital sign and the environmental information of the crew, the positioning base station 20 is identified according to the received base station ID, and the position information of the positioning base station 20 is retrieved from the database to realize the positioning of the crew. The positioning base stations are arranged in a straight line in the corridor tunnel area, one-dimensional positioning of the crews can be achieved, the positioning base stations are arranged in an array mode in the open area of the deck, two-dimensional positioning of the crews can be achieved, and the positioning base stations in each room can be used for achieving positioning of cabin room areas of the crews.
In one embodiment of the present invention, two positioning base stations may be respectively disposed at two ends of the boarding and disembarking area, and when the upper computer server 40 receives the base station ID, the tag ID of the active tag bracelet, the vital sign information of the crew and the environmental information of the crew sent by the positioning base stations at two ends of the boarding and disembarking area within a preset time, it may be determined that the crew wearing the active tag bracelet is in the boarding state or the disembarking state according to the receiving sequence, so as to implement attendance checking of the crew. For example, the positioning base stations at two ends of the boarding and disembarking area are a and B, respectively, wherein a is located at the boarding start and B is located at the boarding end. In the process of boarding by a shipman, the shipman sequentially passes through the positioning base station A, B, so that the active tag bracelet worn by the shipman is firstly in communication connection with the positioning base station A and then in communication connection with the positioning base station B, as shown in fig. 5, the upper computer server 40 firstly receives data sent by the positioning base station A and then receives data sent by the positioning base station B, the receiving sequence is marked as AB, and the boarding state is determined; in the process of leaving the ship, the shipmen sequentially pass through the positioning base station B, A, so that the active tag bracelet worn by the shipmen is firstly in communication connection with the positioning base station B and then in communication connection with the positioning base station A, as shown in fig. 6, the upper computer server 40 firstly receives the data sent by the positioning base station B and then receives the data sent by the positioning base station A, the receiving sequence is marked as BA, and the state is determined as leaving the ship.
According to the crew area positioning and managing system based on the active tag bracelet, the active tag bracelet is used for collecting vital sign information and the located environment information of the crew, the positioning base station is used for receiving the tag ID of the active tag bracelet, the vital sign information and the located environment information of the crew, and the base station ID of the active tag bracelet, the tag ID of the crew, the vital sign information and the located environment information are sent to the upper computer server through the gateway, so that monitoring, positioning and attendance of the vital sign and the environment information of the crew are achieved, meanwhile, the upper computer server can also send the announcement information to the bulletin board through the gateway for information release, and the gateway is communicated with the positioning base station, the bulletin board and the gateway through power lines, so that the problems of wireless signal shielding, special signal line arrangement trouble and the like of a hull steel structure are solved, and therefore, the crew can be conveniently and effectively positioned and information managed.
Corresponding to the embodiment, the invention further provides a crew area positioning and managing method based on the active tag bracelet.
The crew area positioning and managing method based on the active tag bracelet provided by the embodiment of the invention comprises the following steps: acquiring vital sign information and environmental information of a crew member through an active tag bracelet, wherein the active tag bracelet is provided with a tag ID; the positioning base station receives a tag ID of an active tag bracelet, vital sign information of a crewman and environmental information, wherein the positioning base station has a base station ID; the gateway performs power carrier communication with the positioning base station to acquire the base station ID of the positioning base station, the tag ID of the active tag bracelet, the vital sign information of a shipman and the information of the environment where the shipman is located; the upper computer server receives the base station ID of the positioning base station, the tag ID of the active tag bracelet, the vital sign information of the crew and the environmental information, so as to monitor the vital sign and the environmental information of the crew, position the crew and check the attendance of the crew according to the base station ID of the positioning base station, the tag ID of the active tag bracelet, the vital sign information of the crew and the environmental information; the upper computer server sends the notice information to the gateway, and the notice board performs power carrier communication with the gateway to acquire the notice information and performs information release according to the notice information.
For more specific embodiments, reference may be made to the above-mentioned relevant examples of the crew area locating and managing system based on active tag bracelets, and redundant description is omitted herein.
According to the crew area positioning and managing method based on the active tag bracelet, the active tag bracelet is used for collecting vital sign information and the located environment information of the crew, the positioning base station is used for receiving the tag ID of the active tag bracelet, the vital sign information and the located environment information of the crew, and the base station ID of the active tag bracelet, the tag ID of the crew, the vital sign information and the located environment information are sent to the upper computer server through the gateway, so that monitoring, positioning and attendance of the vital sign and the environment information of the crew are achieved, meanwhile, the upper computer server can also send the announcement information to the bulletin board through the gateway for information release, and the gateway is communicated with the positioning base station, the bulletin board and the gateway through power lines, so that the problems of wireless signal shielding, special signal line arrangement trouble and the like of a hull steel structure are solved, and therefore, the crew can be conveniently and effectively positioned and information managed.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.