CN103093569B - Code returning judgment method and drive circuit of current type industrial control bus - Google Patents

Code returning judgment method and drive circuit of current type industrial control bus Download PDF

Info

Publication number
CN103093569B
CN103093569B CN201210429661.7A CN201210429661A CN103093569B CN 103093569 B CN103093569 B CN 103093569B CN 201210429661 A CN201210429661 A CN 201210429661A CN 103093569 B CN103093569 B CN 103093569B
Authority
CN
China
Prior art keywords
value
code
pedestals
difference
level
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.)
Active
Application number
CN201210429661.7A
Other languages
Chinese (zh)
Other versions
CN103093569A (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.)
Shenzhen Hi Tech Investment Sanjiang Electronics Co ltd
Original Assignee
Shenzhen Fanhai Sanjiang Electronics 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 Shenzhen Fanhai Sanjiang Electronics Co Ltd filed Critical Shenzhen Fanhai Sanjiang Electronics Co Ltd
Priority to CN201210429661.7A priority Critical patent/CN103093569B/en
Publication of CN103093569A publication Critical patent/CN103093569A/en
Application granted granted Critical
Publication of CN103093569B publication Critical patent/CN103093569B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Selective Calling Equipment (AREA)
  • Emergency Protection Circuit Devices (AREA)

Abstract

The application discloses a code returning judgment method of a current type industrial control bus, which comprises the following steps: collecting a detection signal sent by a detector; converting the detection signal into an amplified level signal; acquiring a basic level value, acquiring a level value after the detection signal is converted, and calculating the difference value between the converted level value and the basic level value; and judging whether a code is returned or not according to the difference value. The application also discloses a drive circuit of the current type industrial control bus. The method comprises the steps of firstly obtaining a basic level value and a level value obtained after conversion processing of the acquired detection signal, then calculating a difference value between the processed level value and the basic level value, and judging whether a return code exists or not according to the difference value.

Description

A kind of time code determination methods and driving circuit of current mode industrial-controlled general line
Technical field
The application relates to fire alarm field, and what particularly relate to a kind of current mode industrial-controlled general line returns code determination methods and driving circuit.
Background technology
At present, time code determination methods of the existing current mode industrial-controlled general line for fire alarm control unit circuit board, the normal mode adopting fixed level to compare, differentiates whether detector has back code.Because signal amplification circuit wants filtering interfering and current change quantity, the change of code waveform inevitably to be caused back.As shown in Figure 1, code waveform (L is returned -) be identical at 1 and 2 place's level, but after amplifying, waveform alters a great deal, and 1,2 upper amplitude differences are fairly obvious.Equally, the code waveform that returns after amplification also has a greater change in diverse location amplitude, as the 1st, figure and the 3rd wave amplitude difference have 0.5V, causes back code to differentiate difficulty.
If L -on waveform amplify without distortion, if according to bus maximum current 500mA, return code 30mA calculate, the maximum 1V of pedestals, signal 0.06V, repeated code 0.12V, if use rail-to-rail amplifier, undistorted amplification 4 times, then pedestals can arrive 4V, signal 0.24V, repeated code 0.48V, consider loss, obtain signal 0.15V, repeated code 0.30V, because signal level is too low, differentiates more difficult.
Summary of the invention
The technical matters that the application will solve is for the deficiencies in the prior art, and what provide a kind of current mode industrial-controlled general line returns code determination methods.
The technical matters that the application will solve is solved by the following technical programs:
A time code determination methods for current mode industrial-controlled general line, comprises the following steps:
Gather the detection signal that detector sends;
Described detection signal is converted to the level signal of amplification;
Obtain pedestals value, the level value after the conversion of acquisition testing signal, calculates the difference of the level value after described conversion and pedestals value;
Code has been judged whether back according to described difference.
Described acquisition pedestals value, is specially: the level value obtained in the schedule time is set to pedestals value.
Described the level value obtained in the schedule time is set to pedestals value, specifically comprises: be synchronous with low and high level figure signal, the level value that the schedule time of rising when low level uprises level obtains is set to pedestals value.
Describedly judge whether back code according to described difference, specifically comprised: preset first reference value; Calculate the difference between described level value and described pedestals value; Described difference is more than or equal to described first reference value, and described detector has back code.
Describedly judge whether back code according to described difference, also comprised: preset second reference value; When described difference is greater than described second reference value, judge that described detector has repeated code.
The described difference according to described level value and described pedestals value has judged whether back code, also comprises: described difference is less than described first reference value, judges that described detector is without returning code.
Also comprise before the detection signal that described collection detector sends: send the step of patrolling and examining signal to detector.
Owing to have employed above technical scheme, the beneficial effect that the application is possessed is:
In the embodiment of the application, owing to first obtaining the level value after pedestals value and acquisition testing signal conversion processes, the difference of the level value again after computing and pedestals value, and judged whether back code according to this difference, because when comprising back coded signal in detection signal, this difference drops in fixing span, so the method for the application is not only easy to judge whether back code, and method is accurately simple, is easy to realize.
Accompanying drawing explanation
Fig. 1 is that the application returns yard waveform and returns the schematic diagram of code waveform after amplifying;
Fig. 2 is the process flow diagram of a kind of embodiment of the application's method;
Fig. 3 is the process flow diagram of a kind of embody rule example of the application's method.
Embodiment
By reference to the accompanying drawings the application is described in further detail below by embodiment.
Embodiment one:
As shown in Figure 2, time code determination methods of the application's current mode industrial-controlled general line, its a kind of embodiment, comprises the following steps:
Step 202: gather the detection signal that detector sends;
Step 204: level signal detection signal being converted to amplification;
Step 206: obtain pedestals value, the level value after the conversion of acquisition testing signal, namely obtains the level value of pedestals value and detection signal from the level signal of amplifying, and calculates the difference of the level value after conversion and pedestals value;
Step 208: judged whether back code according to difference.
In one embodiment, in step 206, obtain pedestals value, be specially and the level value obtained in the schedule time is set to pedestals value.
In a kind of embodiment, the level value obtained in the schedule time is set to pedestals value, specifically realizes by following steps:
Synchronous with low and high level figure signal, the level value that the schedule time of rising when low level uprises level obtains is set to pedestals value.In this embodiment, specifically come synchronous by 24V/18V figure signal, the schedule time of rising when 18V becomes 24V obtains pedestals value, specifically can when not receiving the minimum level value of detection signal.In this embodiment, pedestals value can be obtained at the 200 μ s risen when 18V becomes 24V
In one embodiment, in step 208, judge whether back code according to difference, specifically comprised:
Step 2081: preset first reference value; First reference value can set according to the needs of user, can measure or calculate to obtain, and also can be an empirical value.
Step 2082: the difference between compute level value and pedestals value;
Step 2083: difference is more than or equal to the first reference value, judges that detector has back code.Judge whether detector has back code according to the difference between level value and pedestals value, when the difference between level value and pedestals value is greater than the first reference value, can determine that detector has back code.
In one embodiment, in step 208, judge whether back code according to difference, also comprised:
Step 2084: preset second reference value; Second reference value can set according to the needs of user, can measure or calculate to obtain, and also can be an empirical value.
Step 2085: when difference is greater than the second reference value, judges that detector has repeated code.Judge whether detector has repeated code according to the difference between level value and pedestals value, when the difference between level value and pedestals value is greater than the second reference value, can determine that detector has repeated code.
In one embodiment, in step 208, judge whether back code according to difference, also comprised:
Step 2086: difference is less than described first reference value, described detector is without returning code.Judging whether detector has back code according to the difference between level value and pedestals value, when the difference between level value and pedestals value is less than the first reference value, can determining that detector is without returning code.
In one embodiment, also comprise before gathering the detection signal of detector transmission:
The step of patrolling and examining signal is sent to detector.Detector returns detection signal after receiving and patrolling and examining signal.
Time code determination methods of the application's current mode industrial-controlled general line, available query mode gathers the signal in one or more loop, for each loop, available 24V/18V figure signal does synchronously, play 200 μ s places when 18V becomes 24V and obtain pedestals, after this continuous acquisition detection signal to 700 μ s, namely compares with pedestals after collection, has judged whether back code.A kind of embody rule example of the application, as shown in Figure 3, comprises the following steps:
Step 302: start; Send to detector and patrol and examine signal, detector returns detection signal after receiving and patrolling and examining signal.
Step 304: whether start signal effective? judge that whether start signal is effective, if effectively, go to step 306, otherwise go to step 308.
Step 306: put sampling mark, start timing.
Step 308: sampling mark is 1? judge whether sampling mark is 1, if 1, goes to step 310, otherwise, go to step 330.
Step 310: whether to 200 μ s? judge whether timing time has reached 200 μ s, if so, goes to step 312, otherwise goes to step 330.
Step 312: detection signal is amplified and does AD conversion; Sampled signal amplified and carries out AD conversion, being converted into level value;
Step 314: obtain pedestals value, the level value after acquisition testing signal is converted, and calculate the difference of the level value after being converted and pedestals value.
Step 316: difference is more than or equal to the first reference value? first reference value is the reference value judging whether to have back code, first reference value can pre-set, in this embodiment, first reference value is empirical value, judge whether the difference of the level value after being processed and pedestals value is more than or equal to the first reference value, in this way, goes to step 318, otherwise, go to step 320.
Step 318: have back code; Judge that detector has back code, go to step 322.
Step 320: without returning code; Namely, when difference is less than the first reference value, judge that detector is without returning code, goes to step 328.
Step 322: difference is greater than the second reference value? second reference value is the reference value judging whether repeated code, second reference value can pre-set, in this embodiment, second reference value is empirical value, and the second reference value can pre-set, and judges whether the difference of the level value after being processed and pedestals value is more than or equal to the second reference value, in this way, go to step 324, otherwise, go to step 326.
Step 324: have repeated code; When difference is more than or equal to the second reference value, judge that detector has back code and as repeated code.
Step 326: without repeated code; Difference is more than or equal to the first reference value, and when being less than the second reference value, judges that detector has back code and without repeated code, goes to step 328.
Step 328: whether to 700 μ s? in this example, the sampling time 500 μ s of setting, both from 200 μ s to 700 μ s, had judged whether timing time reaches 700 μ s, if so, goes to step 330, otherwise, go to step 332.
Step 330: mark of sampling clearly.
Step 332: terminate.
Embodiment two:
The driving circuit of the current mode industrial-controlled general line of the application, what use the current mode industrial-controlled general line in embodiment one returns code determination methods.
Above content is the further description done the application in conjunction with concrete embodiment, can not assert that the concrete enforcement of the application is confined to these explanations.For the application person of an ordinary skill in the technical field, under the prerequisite not departing from the application's design, some simple deduction or replace can also be made.

Claims (6)

1. a time code determination methods for current mode industrial-controlled general line, is characterized in that, comprise the following steps:
Gather the detection signal that detector sends;
Described detection signal is converted to the level signal of amplification;
Obtain pedestals value, the level value after the conversion of acquisition testing signal, calculates the difference of the level value after described conversion and pedestals value;
Code has been judged whether back according to described difference;
Described acquisition pedestals value, is specially:
The level value obtained in the schedule time is set to pedestals value;
Described the level value obtained in the schedule time is set to pedestals value, specifically comprises:
Synchronous with low and high level figure signal, the level value that the schedule time of rising when low level uprises level obtains is set to pedestals value.
2. current mode industrial-controlled general line as claimed in claim 1 return code determination methods, it is characterized in that, describedly judged whether back code according to described difference, specifically comprise:
Preset first reference value;
Calculate the difference between described level value and described pedestals value;
Described difference is more than or equal to described first reference value, and described detector has back code.
3. current mode industrial-controlled general line as claimed in claim 2 return code determination methods, it is characterized in that, describedly judged whether back code according to described difference, also comprise:
Preset second reference value;
When described difference is greater than described second reference value, judge that described detector has repeated code.
4. time code determination methods of current mode industrial-controlled general line as claimed in claim 2, it is characterized in that, the described difference according to described level value and described pedestals value has judged whether back code, also comprises:
Described difference is less than described first reference value, judges that described detector is without returning code.
5. time code determination methods of the current mode industrial-controlled general line according to any one of Claims 1-4, is characterized in that, also comprises before the detection signal that described collection detector sends:
The step of patrolling and examining signal is sent to detector.
6. a driving circuit for current mode industrial-controlled general line, is characterized in that, what use the current mode industrial-controlled general line according to any one of claim 1 to 5 returns code determination methods.
CN201210429661.7A 2012-11-01 2012-11-01 Code returning judgment method and drive circuit of current type industrial control bus Active CN103093569B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210429661.7A CN103093569B (en) 2012-11-01 2012-11-01 Code returning judgment method and drive circuit of current type industrial control bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210429661.7A CN103093569B (en) 2012-11-01 2012-11-01 Code returning judgment method and drive circuit of current type industrial control bus

Publications (2)

Publication Number Publication Date
CN103093569A CN103093569A (en) 2013-05-08
CN103093569B true CN103093569B (en) 2015-04-22

Family

ID=48206092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210429661.7A Active CN103093569B (en) 2012-11-01 2012-11-01 Code returning judgment method and drive circuit of current type industrial control bus

Country Status (1)

Country Link
CN (1) CN103093569B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107369306B (en) * 2017-06-15 2020-04-03 深圳市泰和安科技有限公司 Duplicate code detection method, duplicate code detection device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2403085Y (en) * 1999-12-07 2000-10-25 海湾安全技术有限公司 Linear infrared beam smoke sensing detector
CN201673575U (en) * 2010-05-31 2010-12-15 西安奥赛福科技有限公司 Transmission system of fire disaster detection signal
CN102622846A (en) * 2012-04-10 2012-08-01 无锡蓝天电子有限公司 Bus device address collision detection structure of fire alarm control unit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2403085Y (en) * 1999-12-07 2000-10-25 海湾安全技术有限公司 Linear infrared beam smoke sensing detector
CN201673575U (en) * 2010-05-31 2010-12-15 西安奥赛福科技有限公司 Transmission system of fire disaster detection signal
CN102622846A (en) * 2012-04-10 2012-08-01 无锡蓝天电子有限公司 Bus device address collision detection structure of fire alarm control unit

Also Published As

Publication number Publication date
CN103093569A (en) 2013-05-08

Similar Documents

Publication Publication Date Title
MX2017016552A (en) Method of detecting home appliance bus control system.
MX358068B (en) Methods and apparatus to use vibration data to determine a condition of a process control device.
NZ736148A (en) Distributed monitoring system and waste management system and method
WO2012145600A3 (en) Robust rate calculation in an implantable cardiac stimulus or monitoring device
WO2007141607A3 (en) Methods and apparatus for a sim-based firewall
ATE424016T1 (en) AUTONOMOUS MONITORING SYSTEM
CN106195649B (en) Leak water detdction automatic alarm
EP2511701A3 (en) Transducer based structural health monitoring system
EP2226950A3 (en) Communication device, communication method, and program
ATE539583T1 (en) APPARATUS AND METHOD FOR IMPROVING CONNECTION SETUP TO A MOBILE TELEPHONE DURING CELL RESELECTION BETWEEN FREQUENCIES
CN202110228U (en) Insulator fault detection instrument
RU2012140027A (en) INFORMATION PROCESSING DEVICE, INFORMATION PROCESSING SYSTEM, INFORMATION PROCESSING METHOD AND INFORMATION MEDIA
CN105953875A (en) Living animal weighing method and apparatus
WO2013184493A3 (en) Oscillating mobile device position determination
TW200620923A (en) Method and system for guard interval size detection
CN105488772B (en) Sensor signal peak value detection method
CN103475343A (en) Low-power-consumption processing method for anti-interference, amplification and shaping of weak signals
CN103093569B (en) Code returning judgment method and drive circuit of current type industrial control bus
CN102716527A (en) Detection method for liquid drops of transfusion pump
EP2466919A3 (en) Audio apparatus, control method for the audio apparatus, and program
EP2509001A3 (en) Information processing device, connection method and program
ATE543434T1 (en) METHOD AND DEVICE USING SHORTENED SQUARE WAVEFORMS IN SYNCHRONOUS SIGNAL PROCESSING
CN109855655A (en) A kind of sensing data processing method strong and weak based on swing
CN213336469U (en) Rail transit vibration noise data acquisition device
CN204154916U (en) Quantity of precipitation pick-up unit and 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
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: 518054 Nanshan District, Shenzhen Nanshan Avenue, new world, the third floor of the building

Patentee after: Shenzhen pan sea Sanjiang electronic Limited by Share Ltd

Address before: 518054 Nanshan District, Shenzhen Nanshan Avenue, new world, the third floor of the building

Patentee before: Shenzhen Fanhai Sanjiang Electronics Co., Ltd.

CP03 Change of name, title or address

Address after: 518000 the three floor of the new world apartment, Nanshan Avenue, Nanshan District, Shenzhen, Guangdong (for office only).

Patentee after: Shenzhen hi tech investment Sanjiang Electronics Co.,Ltd.

Address before: 518054 floor 3, Guangcai Xintiandi building, Nanshan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN FANHAI SANJIANG ELECTRONICS Co.,Ltd.

CP03 Change of name, title or address