CN102497675A - Method for communication between intelligent firefighting upper computer and wireless node - Google Patents

Method for communication between intelligent firefighting upper computer and wireless node Download PDF

Info

Publication number
CN102497675A
CN102497675A CN2011104054971A CN201110405497A CN102497675A CN 102497675 A CN102497675 A CN 102497675A CN 2011104054971 A CN2011104054971 A CN 2011104054971A CN 201110405497 A CN201110405497 A CN 201110405497A CN 102497675 A CN102497675 A CN 102497675A
Authority
CN
China
Prior art keywords
packet
node
send
data
bag
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.)
Granted
Application number
CN2011104054971A
Other languages
Chinese (zh)
Other versions
CN102497675B (en
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.)
Zhejiang Wantai Special Steel Co. Ltd.
Original Assignee
Hangzhou Electronic Science and Technology University
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 Hangzhou Electronic Science and Technology University filed Critical Hangzhou Electronic Science and Technology University
Priority to CN201110405497.1A priority Critical patent/CN102497675B/en
Publication of CN102497675A publication Critical patent/CN102497675A/en
Application granted granted Critical
Publication of CN102497675B publication Critical patent/CN102497675B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method for communication between an intelligent firefighting upper computer and a wireless node. The traditional communication network between the intelligent firefighting upper computer and the wireless node has various defects, such as complex constructed structure, high cost, low efficiency and the like, along with the increase of the floor number. The method disclosed by the invention is realized by virtue of uploading and issuing data by a base station node so as to realize the communication and control for the upper computer and an entire wireless sensor network, high efficiency of the network and low cost of the node. By applying the method disclosed by the invention and an intelligent firefighting emergency lamp in a coordination manner, the functions, such as fault warning, early warning, real-time state display and the like, of the emergency lamp can be fulfilled when fire disasters and other dangers occur, escapers can be guided to escape from the field safely, and the property and safety of people can be guaranteed to the maximum extent.

Description

A kind of intelligent fire host computer and radio node communication means
Technical field
The invention belongs to communication technical field, particularly a kind of to the host computer of intelligent fire and the communication means between the radio node.
Background technology
Communicating by letter between intelligent fire host computer and the radio node is a kind of guarantee of public place security against fire, is the compulsive measures of public fire protection, and its scope of application is wide, arranges the environment more complicated.At present, along with the increase of number of floor levels, the communication network between host computer and the radio node makes up complex structure, cost is high, efficient is low.
Summary of the invention
The objective of the invention is to deficiency, provide a kind of to intelligent fire host computer and radio node communication means to existing fire communication technology.What use between host computer and the radio node is Routing Protocol, relies on base-station node (Base) to upload and issue data and accomplishes, and this will realize communicating by letter and control of host computer and whole radio sensing network.Host computer is shown to the packet that obtains on the display after handling, and the instruction acquisition with the user simultaneously is issued in the wireless sense network well.
The intelligent fire host computer upgrades net list for timing and offers a timer, with the superseded overtime node of not uploading data of certain cycle, and offers an interruption inlet and detects whether receive that packet perhaps needs transmitting order to lower levels.In order to reduce the fire-fighting node power consumption, send instructions being kept in the specific buffer memory down,, the corresponding node packet again it is handed down to the fire-fighting node when uploading.After host computer receives data, packet is sorted out, distinguished out networking request package and packet.The networking request package is filtered, and finally judging whether needs to upgrade net list, and sends response packet.Packet is filtered equally, and send response packet.The wireless fire-fighting node that needs transmitting order to lower levels is sent reception response packet in advance, order wireless fire-fighting node to prepare to receive the order bag.Concrete steps are following:
Whether step 1. host computer is provided with a TMR3 timer for regularly upgrading net list, finish in order to judge timing: if the timer timing finishes, will upgrade net list to remove overtime free of data node; Otherwise, get into step 2.
Step 2. is interrupted inlet for detecting radio node and whether receiving packet and whether need transmitting order to lower levels bag, host computer to offer one: need the transmitting order to lower levels bag if detect, will testing result be saved in and send buffer memory in the order bag; If testing result is to have received packet, with regard to execution in step 3; If testing result is not receive packet or do not need the transmitting order to lower levels bag, just return step 1.
Step 3. receives after the packet, and type of data packet is judged: if belong to the networking request package, get into step 4; If belong to data, get into step 5.
Step 4. receives after the networking request package, judges in the net list to have or not vacant position: if vacant position is arranged, then send and agree the networking packet and upgrade net list; If there is not vacant position, then send refusal networking packet.
Step 5. receives after the packet of data type, judges whether to network: if do not network, send refusal networking packet; If network, then show and preserve packet and querying command bag buffer memory, get into step 6 then.
Step 6. judges whether this node is sent packet: if do not send packet, then send and successfully receive response packet; If sent packet, then send and receive response packet in advance, and then send the order bag.
The beneficial effect that the relative prior art of the present invention has is: the communication means between host computer and the radio node, and rely on base-station node (Base) to upload and issue data and accomplish, the realization host computer is communicated by letter and control with whole radio sensing network.Realize the low cost of network-efficient property and node.Collocation through the present invention and intelligent fire emergency light is used can be when breaking out of fire etc. be dangerous; Realize the fault alarm of emergency light and the demonstration of functions such as early warning, emergency light real-time status; Guide the survivor to flee the scene safely, to greatest extent support personnel's property safety.
Description of drawings
Fig. 1 is host computer and radio node communication means operating mechanism figure.
Embodiment
Below in conjunction with accompanying drawing and instantiation the present invention is made and to further specify.
The present invention proposes the communication means between a kind of intelligent fire host computer and the radio node.As shown in Figure 1:
Step 1. host computer specially is provided with a TMR3 timer for regularly upgrading net list, does not finish in order to judge timing.If the Timeout of timer surpasses certain threshold value, will upgrade net list and remove overtime free of data node; Otherwise, get into step 2.
To the net list that host computer regularly upgrades, its particular content comprises node address, node R SSI value, Timeout value, shown in table one.Wherein node address is made up of the node ID (low byte) and the node floor number (high byte) that network, the RSSI value of node R SSI value representation network access node, and tabulation will be deleted this nodal information when the Timeout value surpasses certain threshold value.
Table one net list form
Figure 2011104054971100002DEST_PATH_IMAGE001
Step 2. is interrupted inlet for detecting radio node and whether receiving packet and whether need transmitting order to lower levels bag, host computer specially to offer one.Need the transmitting order to lower levels bag if detect, will testing result be saved in and send buffer memory in the order bag; If testing result is to have received packet, will execution in step 3; If testing result is not receive packet or do not need the transmitting order to lower levels bag, will return step 1.
(2.1) packet that receives to radio node, its concrete form is shown in table two:
Table two packet data zone form
Figure 2011104054971100002DEST_PATH_IMAGE002
(2.1.1) self floor number is meant which floor the packet that receives belongs to.Agreement between radio node regulation, every layer of name zone that has separately, for example: ground floor has 256 nodes, and self floor number is 1, and node number is 1-255.Attention: have only Base node ability called after 0.
(2.1.2) present invention includes sensing data and report, the node health condition reports, a series of functions such as network control.In order better to use these functions, the present invention's decision is distinguished different packet functions according to type of data packet, and makes different decision-makings according to different data types.
(2.1.3) the node group number is for signal between distinguishing not on the same group disturbs, and can be used for defining different transmission regions in the present invention.
(2.1.4) self node number and destination node number comparatively speaking are meant the node number that sends data, are used for distinguishing the different nodes in the same floor.
(2.1.5) equipment of itself number is in order to distinguish different wireless devices, so that host computer is handled corresponding different data area types, simultaneously different equipment to be made different processing.The device number type is shown in table three:
Table three device number type
The device number style number The device number types value Describe
BASE_DEVICE 0x01 Base station (Base)
MOTE_ DEVICE 0x02 Emergency light node (Mote)
MEASUR_ DEVICE 0x03 The wireless measurement node
(2.1.6) sequence of data packet number writes down the position of this packet in whole transmission sequence, purpose be in the test link packet loss with give the significant data bag for change.Sequence of data packet number adds up once when packet of every transmission.
(2.1.7) data packet length comprises except that CRC check code, packet header and all data lengths the bag tail.Packet header and bag tail are represented with 0x7E, when using 0x7E in the packet, need escape.The 0x7E escape becomes 0x7D5E, and the 0x7D escape becomes 0x7D5D.
(2.2) to the required order bag that issues of radio node, according to the difference of device type, order packet format that issues and content are with different.
The order packet format of intelligent fire emergency light control is enumerated at this place, and its data area form is shown in following table four:
The data area form of table four order bag
(2.2.1) the data upload time interval: be meant the time cycle of uploading data of emergency light node to the Base node, unit is second (S), and the largest interval time is 65535 seconds, and the minimum interval is 1 second.
(2.2.2) discharge and recharge control: the expression host computer directly charges to the node of emergency light and discharges.Concrete form is shown in following table five:
Table five discharges and recharges the controlled flag position
Discharge and recharge the sign name Discharge and recharge value of statistical indicant Describe
CHANG 0x01 Charging
DISCHANG 0x02 Discharge
CHANG_TOGGLE 0x03 Discharge and recharge upset
(2.2.3) emergent control: the expression host computer is directly met an urgent need and main electricity condition switching controls to the node of emergency light.Concrete form is shown in following table six:
The emergent control of table six
Emergent controlled flag name Emergent controlled flag value Describe
EMERG_MODE 0X01 Discharge mode
MAINS_MODE 0X02 Main power mode
MODE _TOGGLE 0X03 The pattern upset
(2.2.4) manually year/monthly test: the expression host computer carries out remote manual year/monthly test to emergent Lantern Festival point and controls.Concrete form is shown in following table seven:
Manually year/monthly test control of table seven
Manual year/monthly test sign name Manual year/monthly test value of statistical indicant Describe
YEAR_CHECK 0X01 Annual test
MONTH_CHECK 0X02 Monthly test
NO_CHECK 0X03 Do not have and detect
Step 3. receives after the packet, will judge type of data packet.If belong to the networking request package, get into step 4; If belong to data, get into step 5.
To type of data packet, the form of data area is with different in the different data type corresponding data bags, and concrete form is shown in table eight:
Table eight type of data packet
The type of data packet name The type of data packet value Describe
AM_SHEART_MSG 0x01 Heartbeat data packets shows the base operating state
AM_SSENSOR_MSG 0x02 Sensor data packet reports acquisition node
AM_SHEALTH_MSG 0x03 Healthy bag shows node health status
AM_SCOMMAND_MSG 0x04 The order bag, control wireless network operating state
AM_SACK_MSG 0x05 Response packet is replied accepting to instruct to make
AM_SOUTE_MSG 0x06 The route bag, Control Network is set up
(3.1) owing to need not to upload any other redundant data, the data area in the heartbeat data packets is empty.And information such as floor number, node number, group number are all relevant with Base node self.
(3.2) owing to the difference of device type, sensing data packet format of uploading and content are with different.The data format that the fire emergency lamp transducer is collected is enumerated at this place, shown in table nine:
Table nine sensor data packet data area form
Figure 2011104054971100002DEST_PATH_IMAGE004
(3.2.1) cell voltage: the existing magnitude of voltage of expression emergency light internal cell, represent the existing electric weight of battery.
(3.2.2) light source state: the existing state value of expression emergency light light source, concrete form is shown in following table ten:
Table ten light source Status Flag
Light source failure sign name The light source failure value of statistical indicant Describe
LIGHT_FUN 0X01 Light source is normal
LIGHT_SHORT 0X02 The light source short circuit
LIGHT_OPEN 0X03 The light source open circuit
(3.2.3) battery status: the standing state of expression emergency light internal cell, concrete form is shown in following table 11:
Table ten a battery status flag bit
Battery failures sign name The battery failures value of statistical indicant Describe
BATTERY_FUN 0X01 Battery is normal
BATTERY_SHORT 0X02 Battery short circuit
BATTERY_OPEN 0X03 The battery open circuit
BATTERY_LOW 0X04 Electric weight is low
BATTERY_LOW 0X05 Electric weight is low excessively
BATTERY_FULL 0X06 Electric weight is saturated
(3.2.4) city's electricity condition: whether expression 220V power supply situation need get into emergency rating.When line voltage gets into contingency mode during less than 132V, get into main power mode during greater than 186V.Concrete form is shown in following table 12:
Table ten two civil power state flag bits
Civil power Status Flag name The civil power status flag value Describe
MAINS_MODE 0X01 Main power mode
EMERG_MODE 0X02 Contingency mode
(3.2.5) warning: whether the expression emergency light needs to report to the police, and concrete warning reason needs several before of reference data bags.Concrete form is shown in following table 13:
Table ten three warning mark positions
The warning mark name The warning mark value Describe
FUN 0X01 Normally
ALERT 0X02 Report to the police
(3.3) purpose of healthy bag is in order to obtain the health status of all nodes in the network.According to the difference that distinct device requires, host computer can through under send instructions and come the Control Network interior nodes whether to upload healthy bag.The data area form of healthy bag is shown in table ten four.
The data area form of table ten four healthy bags
(3.4) the order bag sees (2.2) for details.
(3.5) response packet mainly is the serial ports instruction that host computer is issued, and slave computer is made this and being replied, comprising receiving the information that whether successfully waits.Its data area form is shown in table ten five:
Table ten five response packet data area forms
Figure 2011104054971100002DEST_PATH_IMAGE006
The accepting state concrete form is shown in following table 16:
Table ten six accepting state flag bits
Response status sign name The response status value of statistical indicant Describe
SUCCEED_STATE 0X01 Receive successfully
ERROR_STATE 0X02 Take defeat
The fault message concrete form is shown in following table 17:
Table ten seven fault message flag bits
Fault message sign name The fault message value of statistical indicant Describe
NO_MOTE_ERROR 0X01 No node mistake
CRC_ERROR 0X02 The CRC check failure
OVERSET_ERROR 0X03 Adjusting overruns
NO_ERROR 0X04 Inerrancy
(3.6) the route bag sends the packet that uses when replying instruction mainly as slave computer to host computer application networking or host computer to slave computer.Route bag data area form is shown in table ten eight:
Table ten octuple is by bag data area form
Figure DEST_PATH_IMAGE007
(3.6.1) routing state: represent the effect that this route bag is played, slave computer will be made corresponding reaction to its different state.Particular type is shown in table ten nine:
Table ten nine routing state signs
Routing state sign name Discharge and recharge value of statistical indicant Describe
DATA_ACCEPT 0xE0 Data Receiving is replied
DATA_DENIED 0xEF Data reject response
SLAVE_INFO_TABLE_UNFULL 0xF0 Network successfully
SLAVE_INFO_TABLE_FULL 0xFF Failure networks
COMMAND_REQ_PACKET 0x13 Instruction issues requirement
(3.6.2) RSSI value: link corresponding quality when the expression node networks, preserve the RSSI value and help evaluating and optimizing of network configuration.
Step 4. receives after the networking request package, judges in the net list to have or not vacant position.If vacant position is arranged, then send and agree the networking packet and upgrade net list; If there is not vacant position, then send refusal networking packet.
Step 5. receives after the packet of data type, judges whether to network.If do not network, send refusal networking packet; If network, then show and preserve packet and querying command bag buffer memory, get into step 6 then.
Step 6. judges whether this node is sent packet.If do not send packet, then send and successfully receive response packet; If sent packet, then send and receive response packet in advance, and then send the order bag.

Claims (1)

1. intelligent fire host computer and radio node communication means rely on base-station node to upload and issue data and accomplish, and realize communicating by letter and control of host computer and whole radio sensing network, it is characterized in that this method specifically may further comprise the steps:
Whether step 1. host computer is provided with a TMR3 timer for regularly upgrading net list, finish in order to judge timing: if the timer timing finishes, will upgrade net list to remove overtime free of data node; Otherwise, get into step 2;
Step 2. is interrupted inlet for detecting radio node and whether receiving packet and whether need transmitting order to lower levels bag, host computer to offer one: need the transmitting order to lower levels bag if detect, will testing result be saved in and send buffer memory in the order bag; If testing result is to have received packet, with regard to execution in step 3; If testing result is not receive packet or do not need the transmitting order to lower levels bag, just return step 1;
Step 3. receives after the packet, and type of data packet is judged: if belong to the networking request package, get into step 4; If belong to data, get into step 5;
Step 4. receives after the networking request package, judges in the net list to have or not vacant position: if vacant position is arranged, then send and agree the networking packet and upgrade net list; If there is not vacant position, then send refusal networking packet;
Step 5. receives after the packet of data type, judges whether to network: if do not network, send refusal networking packet; If network, then show and preserve packet and querying command bag buffer memory, get into step 6 then;
Step 6. judges whether this node is sent packet: if do not send packet, then send and successfully receive response packet; If sent packet, then send and receive response packet in advance, and then send the order bag.
CN201110405497.1A 2011-12-08 2011-12-08 Method for communication between intelligent firefighting upper computer and wireless node Expired - Fee Related CN102497675B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110405497.1A CN102497675B (en) 2011-12-08 2011-12-08 Method for communication between intelligent firefighting upper computer and wireless node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110405497.1A CN102497675B (en) 2011-12-08 2011-12-08 Method for communication between intelligent firefighting upper computer and wireless node

Publications (2)

Publication Number Publication Date
CN102497675A true CN102497675A (en) 2012-06-13
CN102497675B CN102497675B (en) 2014-04-02

Family

ID=46189451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110405497.1A Expired - Fee Related CN102497675B (en) 2011-12-08 2011-12-08 Method for communication between intelligent firefighting upper computer and wireless node

Country Status (1)

Country Link
CN (1) CN102497675B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078803A (en) * 2013-01-06 2013-05-01 宁波继明电器有限公司 MAC (Media Access Control) layer communication method on basis of fire fighting emergency light
CN107949046A (en) * 2017-12-21 2018-04-20 华为技术有限公司 Wireless senser management method, apparatus and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007072802A (en) * 2005-09-07 2007-03-22 Akebono Brake Ind Co Ltd Information communication system using helmet with camera
CN101291267A (en) * 2008-03-05 2008-10-22 中科院嘉兴中心微系统所分中心 Implementing method for fire disaster situation monitoring system based on wireless sensor network
CN101883455A (en) * 2009-05-08 2010-11-10 北京时代凌宇科技有限公司 Lighting power-saving measurement and control system based on wireless sensor network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007072802A (en) * 2005-09-07 2007-03-22 Akebono Brake Ind Co Ltd Information communication system using helmet with camera
CN101291267A (en) * 2008-03-05 2008-10-22 中科院嘉兴中心微系统所分中心 Implementing method for fire disaster situation monitoring system based on wireless sensor network
CN101883455A (en) * 2009-05-08 2010-11-10 北京时代凌宇科技有限公司 Lighting power-saving measurement and control system based on wireless sensor network

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
SHENG"AN DUAN等: "Wireless Intelligent Fire Fighting Systems Software Platform R & D", 《INTERNET OF THINGS,2011 INTERNATIONAL CONFERENCE ON AND 4TH INTERNATIONAL CONFERENCE ON CYBER,PHYSICAL AND SOCIAL COMPUTING》, 22 October 2011 (2011-10-22) *
段胜安,葛泉波,杜明: "新型智能消防系统的硬件平台构建与研发", 《计算机研究与发展》, 15 September 2011 (2011-09-15) *
闵丽娟等: "智能开关照明控制系统中的上位机软件设计", 《计算机工程》, vol. 37, no. 22, 30 November 2011 (2011-11-30) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078803A (en) * 2013-01-06 2013-05-01 宁波继明电器有限公司 MAC (Media Access Control) layer communication method on basis of fire fighting emergency light
CN103078803B (en) * 2013-01-06 2015-12-23 宁波飞拓电器有限公司 A kind of MAC layer communication means based on fire emergency lamp
CN107949046A (en) * 2017-12-21 2018-04-20 华为技术有限公司 Wireless senser management method, apparatus and system
WO2019119922A1 (en) * 2017-12-21 2019-06-27 华为技术有限公司 Wireless sensor management method, apparatus, and system
CN107949046B (en) * 2017-12-21 2020-09-04 华为技术有限公司 Wireless sensor management method, device and system

Also Published As

Publication number Publication date
CN102497675B (en) 2014-04-02

Similar Documents

Publication Publication Date Title
CN101763704B (en) Intelligent home fire-fighting detection and alarm system and control method thereof
EP1303999B1 (en) Method and system for monitoring and controlling working components
CN101287324B (en) Distant measurement, communication, control method supporting illumination of ZigBee road lamp and electronic ballast
CN102624426B (en) Implementing method of fire-fighting and lighting intelligent monitoring system on basis of power line communication
CN102195274A (en) Distribution line fault detection control method and system
KR100963895B1 (en) roadlamp remote-management system using Ubiquitous Sensor network.
CN202569230U (en) Internet of things type fire-fighting emergency lighting evacuation indicator escape and maintenance system
CN103294037A (en) Natural gas vehicle gas wireless monitoring controller based on CC2530 and control method thereof
CN203689663U (en) Self-networking air quality monitoring system
CN103067960A (en) Indoor distribution system antenna feeder monitoring method
CN107466079A (en) Automatic relay switching method and device
CN110112825A (en) Grid equipment on-line monitoring method, server and system
CN103066570A (en) Battery protection device and server and battery management system
CN101917211B (en) Mine downhole intelligent wireless monitoring and positioning system base station
CN102497675B (en) Method for communication between intelligent firefighting upper computer and wireless node
CN201654983U (en) Short-range wireless load monitor system based on Zigbee technology
CN103985240A (en) Anti-theft method for street lamp cable based on ZigBee and GSM (Global System for Mobile Communications) network
CN102523147B (en) Communication method among intelligent fire-fighting wireless nodes
CN103390325A (en) Wireless fire alarm
CN205280218U (en) Lamp house for subway tunnel with alarming function
CN104778820A (en) Intelligent remote gas-leakage alarm system based on ZigBee
CN101103385B (en) Central test radio frequency system for emergency lighting
CN106488498A (en) A kind of automated testing method based on Remote Radio Unit self-discovery and device
CN104980294B (en) A kind of Host Administration method, apparatus and associated host management system
CN109195293A (en) A kind of online emergency luminaire monitoring method and online emergency luminaire monitoring system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20181122

Address after: 313000 industrial zone of Donglin Town, Wuxing District, Huzhou, Zhejiang

Patentee after: Zhejiang far new material Co., Ltd.

Address before: 310018 No. 3 Junction, No. 2 Street, Xiasha University Park, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Electronic Science and Technology Univ

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191211

Address after: No. 366, Wantai Road, Yaozhuang Town, Jiashan County, Jiaxing City, Zhejiang Province

Patentee after: Zhejiang Wantai Special Steel Co. Ltd.

Address before: 313000 Zhejiang Province, Huzhou city Wuxing District East Town Industrial Zone

Patentee before: Zhejiang far new material Co., Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140402

Termination date: 20201208

CF01 Termination of patent right due to non-payment of annual fee