Equipment power taking management system and method based on RFID and CAN bussing techniqueTechnical field
The present invention relates to a kind of electric kind equipment management system, relate in particular to a kind of decentralized electricity kind equipment power taking management system and method, belong to electric kind equipment power taking management domain based on RFID and CAN bussing technique.
Background technology
Radio-frequency (RF) identification (Radio Frequency Identification, RFID) technology is the automatic identification technology that rises the nineties, it is a kind of non-contact automatic identification technology that utilizes radio communication to realize, it is to utilize the space lotus root of radiofrequency signal to close the purpose that the information that realizes contactless information transmission and pass through to be transmitted reaches identifying object.Fieldbus (Fieldbus) is to develop formation the beginning of the nineties in the world, the field intelligent device interconnection communication network that is used for fields such as process automation, manufacturing automation, building automatic, it is exactly the communication system that is used for a kind of full dispersion of field instrument between dispatching with control system and Long-distance Control, total digitalization, intelligence, two-way, multivariate, multiple spot in essence.And CAN bus (full name is " Controller Area Network ", i.e. controller local area network) is one of most widely used fieldbus in the world.More than two kinds of technology the former can use and on individual equipment, realize User Recognition, it is interconnected that the latter can realize that a plurality of equipment carry out, and transmits the information of identification.
Well-known laboratory is the important base of teaching, scientific research, but along with the increase of Laboratory Instruments number of devices and the increase of use amount, the method that managerial personnel register Laboratory Instruments equipment operating position by hand is loaded down with trivial details, the flow process complexity, often because the problem of timeliness can not in time be safeguarded equipment, simultaneously also cause the idle of some equipment or repeat to purchase, cause the great wasting of resources because of frequency of utilization that can't the dynamic knowledge various device.Therefore, be necessary to design the electric kind equipment management system of the efficient and information-based characteristics of a kind of combination.
Summary of the invention
The objective of the invention is to propose a kind of decentralized electricity kind equipment power taking management system and method, to realize the information system management of electric kind equipment based on RFID and CAN bussing technique.
Equipment power taking management system based on RFID and CAN bussing technique of the present invention, its structure comprises: power taking controller, CAN standard interface equipment and host computer, a power taking controller is installed on each station, each power taking controller is corresponding to be connected with an electric kind equipment, and all power taking controllers all insert the CAN bus and link to each other with the COM end of host computer by the DB9CAN standard interface equipment.
The structure of described power taking controller comprises: main control unit, CAN bus data Transmit-Receive Unit, RFID read-write cell, power devices control module and power supply, main control unit is respectively with CAN bus data Transmit-Receive Unit, RFID read-write cell with the power devices control module is two-way is connected, CAN bus data Transmit-Receive Unit inserts the CAN bus, the power devices control module is connected with corresponding electric kind equipment, and power supply is given main control unit, CAN bus data Transmit-Receive Unit, RFID read-write cell and the power supply of power devices control module respectively.
The management method of the equipment power taking management system based on RFID and CAN bussing technique of the present invention is:
After the system initialization operation, the power taking controller reads active user's information by the RFID read-write cell, and send to upper computer end with CAN bus protocol form through the CAN bus by CAN bus data Transmit-Receive Unit, host computer is separated from protocol format by software and is read user profile and compare with the local data library information, if this user is by checking, then host computer sends the power taking controller of a control command to corresponding station, the controlled order rear drive of power taking controller power devices control module is to corresponding electric kind equipment power supply, send response message simultaneously to host computer, host computer is recorded in tabulate statistics in the database with this information.
The present invention has realized that the networking of discrete station equipment connects control and management, as long as the RFID tag recognition of user by on station, carrying out, just contents such as user profile, facility information, operating position can be handled preservation, simultaneously the electric kind equipment on the corresponding station is carried out intellectuality power supply control, real-time is higher.The present invention has improved the automatic capability of equipment control, has saved human resources, has realized high efficiency, the informationization of equipment control.
Description of drawings
Fig. 1 is the structural representation of power taking controller.
Fig. 2 is the structural topology figure of present device power taking management system.
Fig. 3 is a CAN application layer communication protocol form synoptic diagram.
Embodiment
As shown in Figure 2, system architecture of the present invention comprises: power taking controller, CAN standard interface equipment and host computer, a power taking controller is installed on each station, each power taking controller is corresponding to be connected with an electric kind equipment, and all power taking controllers all insert the CAN bus and are connected with the COM end of host computer by the DB9CAN standard interface equipment.
As shown in Figure 1, the structure of power taking controller comprises among the present invention: main control unit 1, CAN bus data Transmit-Receive Unit 2, RFID read-write cell 3, power devices control module 4 and power supply 5, main control unit 1 respectively with CAN bus data Transmit-Receive Unit 2, RFID read-write cell 3 and 4 two-way connections of power devices control module, CAN bus data Transmit-Receive Unit 2 inserts the CAN bus, power devices control module 4 is connected with the power module of corresponding electric kind equipment, and power supply 5 is given main control unit 1 respectively, CAN bus data Transmit-Receive Unit 2, RFID read-write cell 3 and 4 power supplies of power devices control module.Main control unit 1 adopts singlechip technology, is responsible for other each unit are carried out initialization and control in real time, and our the STC12C5A60S2 single-chip microcomputer of selecting macrocrystalline scientific ﹠ technical corporation for use is a core here; Adopting MCP2515 and TJA1050 in the CAN bus data Transmit-Receive Unit 2 respectively is controller and transceiver, realizes the transmission control to data; It is core that RFID read-write cell 3 adopts FM1702SL, realizes the read-write to the RFID label, is used to set user's rights of using and service time; Power devices control module 4 is to the equipment control of powering in the mode of pilot relay; Power supply 5 offers each unit after adopting three end power module LM7805 general+12V DC voltage to convert 5V voltage to, considers factors such as voltage fluctuation and power consumption, and level can be carried out dividing potential drop to 5V voltage in the back, provides 3.5V voltage to get final product for RFID read-write cell 3.
Before system's operation, power taking controller on each station carries out initialization to all internal elements, mode of operation, message transmission rate, duty of each unit etc. are set, simultaneously send a special character to host computer by each power taking controller, the numbering and the state of self relevant device of announcement, registration is from as at net state, for follow-up operation provides safeguard.
When system moves, RFID read-write cell 3 is finished the RFID tag recognition that the user holds, and the information in the label is read the back send into main control unit 1 by the mode of IIC, main control unit 1 is sent to CAN bus data Transmit-Receive Unit 2 after with the data processing that obtains, and sends to host computer by the CAN bus and handles.The customer data base that host computer is set up during with the user RFID label information that obtains and local hair fastener by software is compared, and judges this user's identity, simultaneously judged result is sent to station power taking controller end by the CAN bus.When obtaining the return information of host computer, the CAN bus data Transmit-Receive Unit 2 of power taking controller receives and is forwarded to main control unit 1 with confirmation, main control unit 1 is separated the data content of reading the inside, and the relay in the opertaing device supply control unit 4 is controlled the power taking of equipment on the station, simultaneously in the storer of main control unit 1 with the model of equipment, service time and user mode field perform mark, and these data (response message) are sent to host computer by CAN bus data Transmit-Receive Unit 2 again, host computer is after receiving these data, bind together with the preceding information of once receiving user on this station and to deposit in the background devices database, realize the record of equipment operating position on this station.
The CAN bus protocol form that uses on the CAN bus, its data link layer is followed the CAN2.0 protocol specification, because the CAN bus protocol is short frame structure, every frame data length is 1~8 byte, as shown in Figure 3, the CAN application layer communication protocol adopts the Frame of maximum 8 byte lengths, and to improve the real-time of system, its frame structure comprises the data item of a byte destination address item, a byte source address item, a byte command item, a byte data length item, one to four byte.According to foregoing, as the application layer data content frame that sends to host computer by station for being 00 02 01 04 3A, 56 F4 0A, wherein first byte 00 expression purpose is a host computer, the station address of second byte 02 expression transmission signal is 02, the 3rd byte 01 is that command entry is expressed as transmission RFID label information, the length of 04 expression data is 4 bytes, and 3A 56 F4 0A thereafter are the data of 4 byte lengths.