CN103023929A - Implementation method of communication protocol of bank safety door system - Google Patents

Implementation method of communication protocol of bank safety door system Download PDF

Info

Publication number
CN103023929A
CN103023929A CN2013100140214A CN201310014021A CN103023929A CN 103023929 A CN103023929 A CN 103023929A CN 2013100140214 A CN2013100140214 A CN 2013100140214A CN 201310014021 A CN201310014021 A CN 201310014021A CN 103023929 A CN103023929 A CN 103023929A
Authority
CN
China
Prior art keywords
safety door
communication protocol
host computer
implementation method
door system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013100140214A
Other languages
Chinese (zh)
Inventor
姚兴旺
杨秉河
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SICHUAN CHENXING ELECTRONIC CO Ltd
Original Assignee
SICHUAN CHENXING ELECTRONIC CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SICHUAN CHENXING ELECTRONIC CO Ltd filed Critical SICHUAN CHENXING ELECTRONIC CO Ltd
Priority to CN2013100140214A priority Critical patent/CN103023929A/en
Publication of CN103023929A publication Critical patent/CN103023929A/en
Pending legal-status Critical Current

Links

Landscapes

  • Alarm Systems (AREA)

Abstract

The invention discloses an implementation method of a communication protocol of a bank safety door system. The implementation method comprises a universal controller, an upper computer, a safety door device and a bus network, wherein the universal controller and a device communication protocol access and control the state of the safety door device according to a command of the upper computer, and transmit the state information of the safety door device to the upper computer. The protocol can standardize communication among various devices of different manufacturers in the bank safety door system, and technical parameter requirements of each communication way to facilitate efficient communication among various systems in a bank, avoid repeated installation and unnecessary waste of devices, reduce bank cost and increase working and management efficiency.

Description

The implementation method of bank safety door system communication protocol
Technical field
The present invention relates to a kind of communication protocol implementation method, a kind of implementation method of bank safety door system communication protocol particularly is mainly used in the implementation method of the communication between each equipment of bank safety door system.
Background technology
The safety door system that present most of bank adopts is the autonomous control system of non-networking, can only carry out execute-in-place in this site, and without any operation note, management to the related personnel can't be supervised, do not have record afterwards, can not carry out relevant inquiring, do not have real-time status to detect, for administrative staff, must be in the action and just can see state.
Some emergency exit equipment is with the local record hold function, can be afterwards at the local search record, and need to connect at the scene computer and read record and inquire about, operate more loaded down with trivial details.
The emergency exit product of some networking can carry out various operations in the administrative center of banking system in addition, is worthy to be popularized, but because the product of each producer does not have industry standard, from ordering, Comparison of Management is mixed and disorderly by producer for the communication protocol of each safety door system, is unfavorable for promoting.Under this situation, be badly in need of a kind of general bank safety door system communication protocol, the emergency exit communication system is carried out standard, make it easy to inquire about and various operation at host computer, improve fail safe, ease for operation and the versatility of bank safety door system.
Summary of the invention
In order to overcome the problem of above-mentioned prior art, the invention provides a kind of implementation method of bank safety door system communication protocol, but the communication in the standard bank safety door system between the various device of different manufacturers, and the technical parameter requirement of various communication modes, make that various systems can effectively communicate by letter, link up in the bank, avoid equipment repeat reduction bank cost, raising work and the efficiency of management are installed and unnecessary waste.
The present invention overcomes the above problems the technical scheme that adopts:
The implementation method of bank safety door system communication protocol, comprise general purpose controller, host computer, emergency exit equipment and bus network, described bus network comprises serial communication interface, router and network connection, described general purpose controller is connected with host computer by bus network, host computer can connect some controllers simultaneously, each controller is by emergency exit interface and emergency exit equipment connection, described general purpose controller is namely to establish communication protocol, order according to host computer, the state of emergency exit equipment is conducted interviews and controls, and the state information of emergency exit equipment transferred to host computer by bus network, the step of communication protocol implementation method is:
1) host computer sends query statement, the response format of corresponding controllers to the controller of certain address coding;
2) host computer sends the controller of certain address coding and instruction is set, the response format of corresponding controllers;
3) host computer sends control command, the response format of corresponding controllers to the controller of certain address coding.
Wherein, query statement is used for the various states of inquiry corresponding controllers, such as information such as time, temperature, alarm condition, voltages; The authority of opening the door, time and various parameter that instruction is used for arranging corresponding controllers are set; Control command is used for the control corresponding controllers and uploads various information, as open the door, warning etc., and the various operational orders that send of host computer.Host computer can connect the controller of a plurality of different geocodings, by each controller of various instruction access, shows and store the state of each controller.
16 system packet structures are all adopted in the various instructions that host computer sends, and the response format of controller response host computer instruction, and its content comprises initial symbol, length symbol, command characteristics code, numeric data code, check character and end mark, and is as shown in table 1:
Table 1
Initial symbol The length symbol The command characteristics code Numeric data code Check character End mark
1 byte 1 byte 2 bytes Variable-length 1 byte 1 byte
Wherein, initial symbol is made of 1 byte, can be according to the device type adjustment that adds up, as shown in table 2:
Table 2
Numerical value The emergency exit type
0x53 Anti-prizing safety door
0x54 Anti-following linkage interlocking safety door
But this theme is not limited to numerical value and the emergency exit type that illustrates.
The length symbol is the length sum of command characteristics code and numeric data code.
The command characteristics code is made of 2 bytes, represents concrete Content of Communication.
The numeric data code variable-length, the data message that expression is additional is such as card number, time, state etc., if no data content is then filled with four 0x00.
Check character is made of 1 byte, and expression is by length symbol, command characteristics code and each byte XOR income value of numeric data code.
End mark is made of 1 byte, and the end of presentation directives is fixed value 0x43.
This agreement can be carried out standard to common several communication modes, and the connection request between the distinct device is avoided communication failure.
As adopt the RS232 communication mode, and then requiring baud rate is 9600, the no parity check position, and numeric data code is 8, communication distance is not more than 15 meters;
As adopt the RS485 communication mode, and then requiring baud rate is 9600, the no parity check position, and numeric data code is 8, communication distance is not more than 1000 meters;
As adopt the tcp/ip communication mode, and then requiring to adopt UDP communication, communication port is defaulted as 50000, and it is 38183 that system arranges port.If need the across a network bridging router, then should set in advance, guarantee that communication is normal.
In addition, require between two communication datas at least interval 50ms, receive in time return information of data, so that the other side judges and processes.
The invention has the beneficial effects as follows, but the communication in this agreement standard bank safety door system between the various device of different manufacturers, and the technical parameter requirement of various communication modes, make that various systems can effectively communicate by letter, link up in the bank, avoid equipment repeat install and unnecessary waste, reduce bank's cost, raising work and the efficiency of management.
Description of drawings
Fig. 1 is the system schematic of the implementation method of bank safety door system communication protocol of the present invention.
Embodiment
Be described further below in conjunction with the technical scheme of drawings and Examples to this agreement.
The implementation method of bank safety door system communication protocol, comprise general purpose controller, host computer, emergency exit equipment and bus network, described bus network comprises serial communication interface, three kinds of modes of router and network connection, can multiplely use simultaneously, also can choose wherein a kind of use wantonly, described general purpose controller is connected with host computer by bus network, host computer can connect some controllers simultaneously, each controller is by emergency exit interface and emergency exit equipment connection, described general purpose controller and establish communication protocol, order according to host computer, the state of emergency exit equipment is conducted interviews and controls, and the state information of emergency exit equipment transferred to host computer by bus network, the step of communication protocol implementation method is:
1) host computer sends query statement, the response format of corresponding controllers to the controller of certain address coding;
2) host computer sends the controller of certain address coding and instruction is set, the response format of corresponding controllers;
3) host computer sends control command, the response format of corresponding controllers to the controller of certain address coding.
16 system packet structures are all adopted in the various instructions that host computer sends, and the response format of controller response host computer instruction, and its content comprises initial symbol, length symbol, command characteristics code, numeric data code, check character and end mark.
Wherein, initial symbol is made of 1 byte, according to the device type adjustment that adds up.
The length sum of length symbol command characteristics code and numeric data code.
The command characteristics code is made of 2 bytes, represents concrete Content of Communication.
The numeric data code variable-length, the data message that expression is additional.
Check character is made of 1 byte, and expression is by length symbol, command characteristics code and each byte XOR income value of numeric data code.
End mark is made of 1 byte, the end of presentation directives.
Be illustrated in figure 1 as three kinds of concrete application modes of this agreement:
The first: use the RS232 interface of controller inside, be directly connected to the RS232 interface of host computer.
The second: use the RS485 interface of controller inside, again by RS485 RS 232 equipment, be connected to the RS232 interface of host computer.
The third: use the Ethernet interface of controller inside, link to each other with host computer by router, perhaps directly dock the third mode of recommendation with the Ethernet interface of host computer.
This agreement communicates by following steps:
The first step: according to the operation purpose, determine corresponding command characteristics code, represent the content of this agreement, condition code is made of 2 bytes;
Second step: collect data, the part instruction need to attach some data and parameter, collects relevant parameter according to the command characteristics code, through coding, is filled into the numeric data code part, if do not need or do not have data, replaces with 0x00 0x00 0x00 0x00;
The 3rd step: fill the length symbol, i.e. command characteristics code length and numeric data code length sum;
The 4th step: generate check character, until numeric data code finishes, every is carried out XOR, and operation result is filled into check character from the beginning of length symbol;
The 5th step: according to the device type of emergency exit, add initial symbol in instruction header, and add end mark, i.e. fixed value 0x43 at the instruction afterbody.
By above step, can finish this instruction, be sent to the controller of appropriate address coding by communication interface.
Numeric data code in each instruction can represent various data and parameter, as:
State representation:, represent normally other value (such as 0x10,0xFF) expression abnormal condition with 0x00 such as door state, lock status, alarm condition etc.Be that on off state represents.
Analog representation: voltage, temperature, smokescope, intensity of illumination etc. represent other data value with 0x00-0xFF.
Cell voltage algorithm: V=H/51*6, wherein, V represents cell voltage (keeping a decimal), and H represents the hexadecimal value that transmits in the data communication, and as H=0x72 namely 114 time, the expression cell voltage is 13.4V.
Temperature algorithm: sensing adopts non-linear element, and its temperature is obtained by look-up table.
Card number rule: the TM card is got three valid data, i.e. second in eight card numbers, the 3rd, the 4th.As: actual card number is: 01 C9 8E, 37 05 00 00 A6, then getting wherein, three C9 8E 37 are the communication card number.
Date mode in the communication: for making things convenient for the communication between the various device, the date is adopted the BCD coded format, that is: 2012 on June 11,15: 48 27 seconds=0x20 0x12 0x06 0x11 0x015 0x48 0x27.
The phone number method for expressing: phone number is 11 mobile phones, as: 15982462327=0x15 0x98 0x24 0x62 0x32 0x7F, F is filled in last position.
The set of time of withdrawing a garrison of deploying troops on garrison duty: adopt 24 hours systems, totally 24 of 3 bytes, each expression one hour, high level is for deploying troops on garrison duty, and low level is for withdrawing a garrison.
The local record transmission: time+type of action+data, send one every 50ms, reissue again an ending message after being sent completely.
But the communication in the bank safety door system communication protocol standard bank safety door system of the present invention between the various device of different manufacturers, and the technical parameter requirement of various communication modes, make that various systems can effectively communicate by letter, link up in the bank, avoid equipment repeat install and unnecessary waste, reduce bank's cost, raising work and the efficiency of management.

Claims (8)

1. the implementation method of a bank safety door system communication protocol, comprise general purpose controller, host computer, emergency exit equipment and bus network, described bus network comprises serial communication interface, three kinds of modes of router and network connection, can multiplely use simultaneously, also can choose wherein a kind of use wantonly, described general purpose controller is connected with host computer by bus network, host computer can connect some controllers simultaneously, each controller is by emergency exit interface and emergency exit equipment connection, it is characterized in that, described general purpose controller and establish communication protocol, order according to host computer, the state of emergency exit equipment is conducted interviews and controls, and the state information of emergency exit equipment is transferred to host computer by bus network, the step of communication protocol implementation method is:
1) host computer sends query statement, the response format of corresponding controllers to the controller of certain address coding;
2) host computer sends the controller of certain address coding and instruction is set, the response format of corresponding controllers;
3) host computer sends control command, the response format of corresponding controllers to the controller of certain address coding.
2. the implementation method of bank safety door system communication protocol according to claim 1, it is characterized in that, the various instructions that host computer sends, and the response format of controller response host computer instruction, all adopt 16 system packet structures, its content comprises initial symbol, length symbol, command characteristics code, numeric data code, check character and end mark.
3. the implementation method of bank safety door system communication protocol according to claim 2 is characterized in that, initial symbol is made of 1 byte, according to the device type adjustment that adds up.
4. the implementation method of bank safety door system communication protocol according to claim 2 is characterized in that, the length sum of length symbol command characteristics code and numeric data code.
5. the implementation method of bank safety door system communication protocol according to claim 2 is characterized in that, the command characteristics code is made of 2 bytes, represents concrete Content of Communication.
6. the implementation method of bank safety door system communication protocol according to claim 2 is characterized in that, numeric data code variable-length, the data message that expression is additional.
7. the implementation method of bank safety door system communication protocol according to claim 2 is characterized in that, check character is made of 1 byte, and expression is by length symbol, command characteristics code and each byte XOR income value of numeric data code.
8. the implementation method of bank safety door system communication protocol according to claim 2 is characterized in that, end mark is made of 1 byte, the end of presentation directives.
CN2013100140214A 2013-01-15 2013-01-15 Implementation method of communication protocol of bank safety door system Pending CN103023929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100140214A CN103023929A (en) 2013-01-15 2013-01-15 Implementation method of communication protocol of bank safety door system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013100140214A CN103023929A (en) 2013-01-15 2013-01-15 Implementation method of communication protocol of bank safety door system

Publications (1)

Publication Number Publication Date
CN103023929A true CN103023929A (en) 2013-04-03

Family

ID=47972059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100140214A Pending CN103023929A (en) 2013-01-15 2013-01-15 Implementation method of communication protocol of bank safety door system

Country Status (1)

Country Link
CN (1) CN103023929A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404945A (en) * 2020-03-19 2020-07-10 厦门铁博士电子有限公司 Method for self-adapting communication protocol and weighing sensor

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626367A (en) * 2008-07-07 2010-01-13 北京中煤矿山工程有限公司 1-wire bus device ID-based communication protocol
CN102478797A (en) * 2010-11-22 2012-05-30 中国科学院空间科学与应用研究中心 Monitoring system with configurable communication protocol

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626367A (en) * 2008-07-07 2010-01-13 北京中煤矿山工程有限公司 1-wire bus device ID-based communication protocol
CN102478797A (en) * 2010-11-22 2012-05-30 中国科学院空间科学与应用研究中心 Monitoring system with configurable communication protocol

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵念强等: "基于Soc单片机C8051F的码头供给监控系统", 《微计算机信息》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404945A (en) * 2020-03-19 2020-07-10 厦门铁博士电子有限公司 Method for self-adapting communication protocol and weighing sensor

Similar Documents

Publication Publication Date Title
CN103065438B (en) There is the gas alarm system of radio communication function
CN102819249B (en) Linkage control system and control method for power tunnel
US20130066470A1 (en) Automated building monitoring system
CN102238311B (en) Set-top box and power management method thereof
CN102411365A (en) IoT (Internet of Things) remote intelligent monitoring system for coal yard
CN103281337A (en) Method, server and system for equipment centralized management
CN106982222A (en) The multi-protocol data cut-in method and device that can configure under a kind of industrial 4.0 environment
CN103019188B (en) Water tower level remote intelligent control system and its control method based on Internet of Things
CN207817514U (en) The system of long-distance monitor and control PLC terminal devices
CN103809527A (en) Manhole cover wireless monitoring system
CN103023929A (en) Implementation method of communication protocol of bank safety door system
CN206835124U (en) A kind of Intelligent internet of things gateway
CN203025801U (en) Centralized-control door control system
CN102110355A (en) Wireless monitoring system of water pump and control method
KR20130099390A (en) Local and remote operation system of elevator using by duplex wcdma and the control method thereof
CN205281239U (en) Building intelligent management and control system
CN107346124B (en) Operating method and system by a kind of moving machine
CN103914900A (en) Terminal extensible door control system based on CAN and network communication
CN204887021U (en) Utilize public platform's field device's field data transmission equipment and monitored control system
CN104898616A (en) Portable power monitoring device
CN103490994A (en) Bimodule communication protocol conversion device and work procedure thereof
CN106843135B (en) New energy automobile fills electric pile centralized controller based on power line carrier technique
CN201421628Y (en) Door access controller
CN203326719U (en) Information distribution network dispatching control system
CN204759172U (en) Portable power monitoring device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130403