CN101562925A - Signal reading method based on DMX512 protocol - Google Patents

Signal reading method based on DMX512 protocol Download PDF

Info

Publication number
CN101562925A
CN101562925A CNA2008100902819A CN200810090281A CN101562925A CN 101562925 A CN101562925 A CN 101562925A CN A2008100902819 A CNA2008100902819 A CN A2008100902819A CN 200810090281 A CN200810090281 A CN 200810090281A CN 101562925 A CN101562925 A CN 101562925A
Authority
CN
China
Prior art keywords
input signal
signal
time
potential
reading method
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
CNA2008100902819A
Other languages
Chinese (zh)
Other versions
CN101562925B (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.)
ARC LIGHTING Co Ltd
Arc Solid State Lighting Corp
Original Assignee
ARC LIGHTING 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 ARC LIGHTING Co Ltd filed Critical ARC LIGHTING Co Ltd
Priority to CN2008100902819A priority Critical patent/CN101562925B/en
Publication of CN101562925A publication Critical patent/CN101562925A/en
Application granted granted Critical
Publication of CN101562925B publication Critical patent/CN101562925B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention discloses a signal reading method based on DMX512 protocol, which is carried out in a DMX512 nonpolarity wiring lighting system and reads input signals in nonpolarity through a microcontroller. The method comprises the following steps: firstly, detecting electric potential variations of the input signals, and then judging that the polarity of the input signals is a positive phase or a negative phase according to the electric potential variations, if the polarity of the input signal is the positive phase, reading the input signal by a positive phase receiving program; if the polarity of the input signal is the negative phase, reading the input signal by a negative phase receiving program; and finally, reading the data carried with the input signals according to the DMX512 protocol.

Description

Signal reading method based on the DMX512 agreement
Technical field
The present invention is about a kind of signal reading method, and particularly relates to a kind of signal reading method based on the DMX512 agreement.
Background technology
Along with the progress of science and technology, the control of lighting system must remove to handle individually the dimmer of light also in conjunction with modern science and technology with manpower to replace tradition.The DMX512 lighting system is that a kind of dimmer set with a plurality of light is triangular web, can be by the lighting system of the transmission of the signal between each dimmer of microprocessor controls.The DMX512 lighting system adopts a kind of standard agreement of DMX512 agreement by name, this DMX512 agreement is by U.S. theater technological associations (United States Institute for Theatre Technology, USITT) the standard digital interface protocol that develops based on EIA-485 communication standard (EIA-485) at first.
From the above, the input signal that the DMX512 lighting system is received comprises that one is opened beginning signal and a plurality of data-signal.Data-signal in input signal part is the longest to reach 36 microseconds (promptly continuing to be in the electric signal of 36 microseconds of electronegative potential), and the opening beginning signal in the input signal then has at least the time remaining of 88 microseconds to be in electronegative potential.Continue to be in the different of electronegative potential time with the current potential of data-signal by opening the beginning signal, what help to judge input signal opens the beginning signal.With input signal open the beginning signal read finish after, microcontroller just begins to read data that input signal is with, to carry out the transmission between the signal.
Yet the DMX512 lighting system judges that an input signal is by electric signal generation potential change (being the potential change of high potential to electronegative potential) and opens when the beginning signal is necessary to be the signal of electronegative potential continuously that input signal can be read by microcontroller.But during the error-polarity connection of DMX512 lighting system wiring, then can make the counter-rotating of the high potential of input signal and electronegative potential, make and open the beginning signal and continue to be in high potential.Under the situation of error-polarity connection, the high and low current potential counter-rotating of input signal makes microcontroller then when handling rp input signal, and because of the regulation that does not meet the DMX512 agreement input signal being treated as is rub-out signal, causes understanding input signal.
Summary of the invention
In view of above-mentioned DMX512 lighting system under the situation of error-polarity connection, input signal is by the problem that can't be understood as rub-out signal.The objective of the invention is to propose a kind of signal reading method based on the DMX512 agreement, by judging the mechanism of electric signal polarity, the polarity phase place of input signal is read in conversion automatically, realizes the nonpolarity effect that reads input signal.
For achieving the above object, the signal reading method based on the DMX512 agreement comprises: at first, detect input signal generation potential change.Then, according to potential change, judge that the polarity of input signal is positive or anti-phase:, then understand input signal with positive Phase Receiver program if the polarity of input signal is positive; If the polarity of input signal is anti-phase, then understand input signal with anti-phase reception program.At last, read data that this input signal is with according to the DMX512 agreement.
According to the described signal reading method of preferred embodiment of the present invention based on the DMX512 agreement, the polarity of judging this input signal comprise the following steps: when the potential change of input signal for by high potential during to electronegative potential, the polarity of input signal is positive; When the potential change of input signal is by electronegative potential during to high potential, the polarity of input signal is anti-phase.
According to the described signal reading method based on the DMX512 agreement of preferred embodiment of the present invention, positive Phase Receiver program package is drawn together the following step: at first, according to the potential change height, be that 0 high potential is 1 rule with electronegative potential, input signal is carried out binary coding.And read input signal according to DMX512 agreement predetermined data reading rate.Then, confirm that input signal is an electronegative potential in the very first time, and confirm that input signal is an electronegative potential in second time.At last, confirm that potential change takes place input signal once more.
According to the described signal reading method based on the DMX512 agreement of preferred embodiment of the present invention, the summation of the aforementioned very first time and second time opens the beginning signal time greater than DMX512 agreement regulation.Yet, if the summation of the very first time and second time during greater than a Preset Time, judges that this input signal is an idle signal.If when in the very first time potential change taking place, judge that then input signal is a noise.If when in second time potential change taking place, the judgement input signal is a data-signal.
According to the described signal reading method based on the DMX512 agreement of preferred embodiment of the present invention, anti-phase reception program comprises the following steps: at first, according to the potential change height, is that 1 high potential is 0 rule with electronegative potential, and input signal is carried out binary coding.Read input signal according to DMX512 agreement predetermined data reading rate.Then, confirm that input signal is a high potential in the 3rd time, and confirm that input signal is a high potential in the 4th time.At last, confirm that potential change takes place input signal once more.
According to the described signal reading method based on the DMX512 agreement of preferred embodiment of the present invention, the summation of aforementioned the 3rd time and the 4th time opens the beginning signal time greater than DMX512 agreement regulation.Yet, if the summation of the 3rd time and the 4th time during greater than a Preset Time, judges that this input signal is an idle signal.If when in the 3rd time potential change taking place, judge that then input signal is a noise.If when in the 4th time potential change taking place, the judgement input signal is a data-signal.
In sum, the present invention proposes the signal reading method based on the DMX512 agreement, by judging the polarity of input signal, the data of input signal load to read are resolved in decision with positive Phase Receiver program or anti-phase reception program, and then no matter polarity is just connecing or the state of reversal connection under, all correct interpretation data realizes reading the effect of input signal nonpolarityly.
Relevant detailed features of the present invention, now conjunction with figs. is described in detail as follows in execution mode, its content is enough to make those skilled in the art to understand technology contents of the present invention and implements according to this, and according to disclosed content of this specification and accompanying drawing, those skilled in the art can understand purpose and the advantage that the present invention is correlated with easily.
Description of drawings
Fig. 1 is the flow chart based on the signal reading method of DMX512 agreement;
Fig. 2 A is the potential diagram of positive phase input signal;
Fig. 2 B is the potential diagram of rp input signal;
Fig. 3 A is the flow chart of positive Phase Receiver program;
Fig. 3 B is the potential diagram of positive phase input signal;
Fig. 4 A is the flow chart of anti-phase reception program;
Fig. 4 B is the potential diagram of rp input signal.
Wherein, Reference numeral
21,30 positive phase input signals
22,40 rp input signals
31 positive phase input signals open the beginning signal
The 0th segment data signal of 32 positive phase input signals
The 1st segment data signal of 33 positive phase input signals
41 rp input signals open the beginning signal
The 0th segment data signal of 42 rp input signals
The 1st segment data signal of 43 rp input signals
The T1 very first time
Second time of T2
The 3rd time of T3
The 4th time of T4
Embodiment
For making purpose of the present invention, structure, feature and function thereof there are further understanding, cooperate embodiment to be described in detail as follows now.
The specific embodiment of below enumerating only is used to purpose of the present invention and manner of execution are described, is not in order to limit its scope.
Fig. 1 is the flow chart based on the signal reading method of DMX512 agreement.Please refer to Fig. 1, in the present embodiment, for example carry out signal reading method, in order to the data of the input signal institute load of reading nonpolarity access based on the DMX512 agreement with the nonpolarity wiring lighting system of a DMX512.Described signal reading method based on the DMX512 agreement may further comprise the steps: at first, detect the potential change (S110) that input signal took place.
Then, according to potential change, judge that the polarity of input signal is positive or anti-phase (S120):
If the polarity of input signal is positive, then understand input signal (S130) with positive Phase Receiver program; Otherwise,, then understand input signal (S140) with anti-phase reception program if the polarity of input signal is anti-phase.At last, read data that input signal is with (step S150) according to the DMX512 agreement.
Fig. 2 A is the potential diagram of positive phase input signal, please refer to Fig. 2 A, and when input signal transferred electronegative potential to by high potential, microcontroller judged that the polarity of input signal is positive, promptly positive phase input signal 21.Then in positive phase input signal 21, judge and open the low-potential signal of beginning signal for continuing.Fig. 2 B is the potential diagram of rp input signal.Please refer to Fig. 2 B, when input signal transferred high potential to by electronegative potential, microcontroller judged that the polarity of input signal is anti-phase, and promptly rp input signal 22.Then in rp input signal 22, judge and open the high potential signal of beginning signal for continuing.
After finishing the polarity of judging input signal, can read input signal with that.If the polarity of input signal is positive, then understand the data of institute's load with positive Phase Receiver program; If the polarity of input signal is anti-phase, then understand the data of institute's load with anti-phase reception program.Below will read the method for positive phase input signal with positive Phase Receiver program and anti-phase reception program description respectively, and the method that reads rp input signal.
Fig. 3 A is the flow chart of positive Phase Receiver program.Please refer to Fig. 3 A, positive Phase Receiver program package is drawn together the following step: at first, according to the potential change height, be that 0 high potential is 1 rule with electronegative potential, input signal is carried out binary coding, and read input signal (S310) according to DMX512 agreement predetermined data reading rate.Then, confirm that input signal is an electronegative potential (S320) in the very first time, and confirm that input signal is an electronegative potential (S330) in second time.At last, confirm that potential change (step S340) takes place input signal once more.
In order to illustrate further the read method of positive phase input signal, this section will illustrate the mode that reads of positive phase input signal by potential diagram according to sequential.Fig. 3 B is the potential diagram of positive phase input signal.Please refer to Fig. 3 B, in positive phase input signal, at first can take place once by the potential change of high potential, so microcontroller is just judged positive phase input signal according to this technical characterictic to electronegative potential.When entering positive Phase Receiver program, read/the positive phase input signal 30 of interpretation according to DMX512 agreement predetermined data reading rate.Microcontroller finish detection by high potential after the potential change of electronegative potential, confirm the potential change of positive phase input signal 30 at very first time T1.If positive phase input signal 30 in the very first time T1 potential change takes place, the just negative positive phase input signal 30 of microcontroller is the possibility of the 0th segment data signal 32 that opens beginning signal 31 and positive phase input signal of positive phase input signal at present.Data read rule under DMX512 agreement regulation is to skip the 0th segment data signal 32 that opens beginning signal 31 or positive phase input signal of positive phase input signal, and directly reads the 1st segment data signal 33 of positive phase input signal.If when input signal has potential change in very first time T1, can treat as noise processed.Through behind the very first time T1,, confirm that then positive phase input signal 30 is electronegative potential in second time T 2 because microcontroller will further be confirmed the signal 31 that begins that opens of positive phase input signal.
It is described to hold epimere, and second time T 2 is for changing the time of length.Owing to confirm that input signal is an electronegative potential in very first time T1, and prove the possibility of the 0th segment data signal 32 that opens beginning signal 31 or positive phase input signal of positive phase input signal.If potential change takes place in second time T 2 positive phase input signal 30, microcontroller can't further confirmed under the situation that opens beginning signal 31 of positive phase input signal, satisfies as the 0th segment data signal 32 of positive phase input signal and handles.Therefore, microcontroller will further be confirmed the condition that opens beginning signal 31 of positive phase input signal, be exactly the very first time T1 and second time T 2 summation greater than DMX512 agreement regulation open the beginning signal time, and positive phase input signal 30 is continuing to be in electronegative potential at the very first time T1 and second time T 2.
But, the DMX512 agreement also restriction simultaneously when the summation of the very first time T1 and second time T 2 during greater than Preset Time, the summation that is the very first time T1 and second time T 2 meets the idle signal time that the DMX512 agreement is stipulated, microcontroller also judges that positive phase input signal 30 is for also being idle signal.
The anti-phase reception program of explanation continues.Fig. 4 A is the flow chart of anti-phase reception program.Please refer to Fig. 4 A, anti-phase reception program comprises the following steps: at first, according to the potential change height, is that 1 high potential is 0 rule with electronegative potential, input signal is carried out binary coding, and read input signal (S410) according to DMX512 agreement predetermined data reading rate.Then, confirm that input signal is a high potential (S420) in the 3rd time, and confirm that input signal is a high potential (S430) in the 4th time.At last, confirm that potential change (S440) takes place input signal once more.
In order to illustrate further the read method of rp input signal, this section will be by potential diagram, according to the mode that reads of sequential explanation rp input signal.Fig. 4 B is the potential diagram of rp input signal.Please refer to Fig. 4 B, in rp input signal, at first can take place once, so microcontroller is just judged rp input signal according to this technical characterictic by the potential change of electronegative potential to high potential.When entering anti-phase reception program, because reading of rp input signal 40 must be according to DMX512 agreement predetermined data reading rate, therefore the 3rd time T 3 be the time of regular length, with the cooperation data read rates.
Microcontroller finish detection by electronegative potential after the potential change of high potential, microcontroller is confirmed the potential change of rp input signals 40 in the 3rd time T 3.If potential change takes place in the 3rd time T 3 rp input signal 40, the just negative rp input signal 40 of microcontroller is the possibility of the 0th segment data signal 42 that opens beginning signal 41 and rp input signal of rp input signal at present.And can not skip the 0th segment data signal 42 that opens beginning signal 41 or rp input signal of rp input signal based on the DMX512 agreement, directly read the reason of the 1st segment data signal 43 of rp input signal, therefore can treat as noise processed.After the 3rd time T 3,, confirm that then rp input signal 40 is high potential in the 4th time T 4 because microcontroller will further confirm to open beginning signal 41.
It is described to hold epimere, and the 4th time T 4 is for changing the time of length.Owing to confirm that input signal is a high potential in the 3rd time T 3, and prove the possibility of the 0th segment data signal 42 that opens beginning signal 41 or rp input signal of rp input signal.If potential change takes place in the 4th time T 4 rp input signal 40, microcontroller can't further confirmed under the situation that opens beginning signal 41 of rp input signal, satisfies as the 0th segment data signal 42 of rp input signal and handles.Therefore, microcontroller will further confirm to open the condition of beginning signal 41, exactly the summation of the 3rd time T 3 and the 4th time T 4 greater than DMX512 agreement regulation open the beginning signal time, and rp input signal 40 continues to be in high potential in the 3rd time T 3 and the 4th time T 4.The summation that the DMX512 agreement is also stipulated the 3rd time T 3 and the 4th time T 4 is during greater than Preset Time (summation of the 3rd time T 3 and the 4th time T 4 is greater than default standby time), and microcontroller judges that this rp input signal 40 is idle signal.
In order to allow microcontroller read rp input signal, microcontroller can increase that flag is auxiliary to enter anti-phase reception program in certain embodiments.That is to say, carry out an anti-phase processing by setting up flag, make microcontroller can judge input signal by electronegative potential to high potential potential change.Microcontroller and be that 1 high potential is 0 rule with electronegative potential by flag conversion carries out binary coding to input signal.And then reach the effect that reads input signal nonpolarityly.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (12)

1. signal reading method based on the DMX512 agreement, be executed in the nonpolarity wiring lighting system of a DMX512, read an input signal by a microcontroller nonpolarityly, it is characterized in that, should may further comprise the steps based on the signal reading method of DMX512 agreement:
Detect this input signal generation potential change;
The polarity of judging this input signal is positive or anti-phase:
If the polarity of this input signal is positive, then understand this input signal with a positive Phase Receiver program;
If the polarity of this input signal is anti-phase, then understand this input signal with an anti-phase reception program; And
Read data that this input signal is with according to the DMX512 agreement.
2. the signal reading method based on the DMX512 agreement according to claim 1 is characterized in that, judges that the polarity of this input signal comprises the following steps:
When the potential change of this input signal is by high potential during to electronegative potential, the polarity of this input signal is positive; And
When the potential change of this input signal is by electronegative potential during to high potential, the polarity of this input signal is anti-phase.
3. the signal reading method based on the DMX512 agreement according to claim 1 is characterized in that, this positive Phase Receiver program package is drawn together the following step:
According to the potential change height, be that 0 high potential is 1 rule with electronegative potential, this input signal is carried out binary coding, and read this input signal according to DMX512 agreement predetermined data reading rate;
Confirm that this input signal is electronegative potential in a very first time;
Confirm that this input signal is electronegative potential in one second time; And
Confirm that potential change takes place this input signal once more.
4. the signal reading method based on the DMX512 agreement according to claim 3 is characterized in that, the summation of this very first time and this second time opens the beginning signal time greater than one of DMX512 agreement regulation.
5. the signal reading method based on the DMX512 agreement according to claim 3 is characterized in that, the summation of this very first time and this second time judges that this input signal is an idle signal during greater than a Preset Time.
6. the signal reading method based on the DMX512 agreement according to claim 3 is characterized in that, if potential change took place in the very first time, judges that this input signal is a noise.
7. the signal reading method based on the DMX512 agreement according to claim 3 is characterized in that, if potential change took place in second time, judges that this input signal is a data-signal.
8. the signal reading method based on the DMX512 agreement according to claim 1 is characterized in that, this anti-phase reception program comprises the following steps:
According to the potential change height, be that 1 high potential is 0 rule with electronegative potential, this input signal is carried out binary coding, and read this input signal according to DMX512 agreement predetermined data reading rate;
Confirm that this input signal is high potential in one the 3rd time;
Confirm that this input signal is high potential in one the 4th time; And
Confirm that potential change takes place this input signal once more.
9. the signal reading method based on the DMX512 agreement according to claim 8 is characterized in that, the summation of the 3rd time and the 4th time opens the beginning signal time greater than one of DMX512 agreement regulation.
10. the signal reading method based on the DMX512 agreement according to claim 8 is characterized in that, the summation of the 3rd time and the 4th time judges that this input signal is an idle signal during greater than a Preset Time.
11. the signal reading method based on the DMX512 agreement according to claim 8 is characterized in that, if potential change took place in the 3rd time, judges that this input signal is a noise.
12. the signal reading method based on the DMX512 agreement according to claim 8 wherein if potential change took place in the 4th time, judges that this input signal is a data-signal.
CN2008100902819A 2008-04-17 2008-04-17 Signal reading method based on DMX512 protocol Expired - Fee Related CN101562925B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100902819A CN101562925B (en) 2008-04-17 2008-04-17 Signal reading method based on DMX512 protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100902819A CN101562925B (en) 2008-04-17 2008-04-17 Signal reading method based on DMX512 protocol

Publications (2)

Publication Number Publication Date
CN101562925A true CN101562925A (en) 2009-10-21
CN101562925B CN101562925B (en) 2012-11-28

Family

ID=41221483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100902819A Expired - Fee Related CN101562925B (en) 2008-04-17 2008-04-17 Signal reading method based on DMX512 protocol

Country Status (1)

Country Link
CN (1) CN101562925B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111928A (en) * 2009-12-28 2011-06-29 明阳半导体股份有限公司 Decoding circuit and decoding method
CN101711076B (en) * 2009-11-18 2013-01-23 广州中大中鸣科技有限公司 DMX512 communication link and method thereof
CN107635306A (en) * 2017-08-30 2018-01-26 深圳市汇德科技有限公司 A kind of decoding apparatus based on LED control system and a kind of LED control system
CN110513615A (en) * 2019-07-29 2019-11-29 厦门普为光电科技有限公司 Adjustable light lamp tube

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1153150C (en) * 2002-01-10 2004-06-09 昆明市粮油储运公司 Bidirectional transmission method and equipment for multiple groups of measuring and controling information by two-line power supply
CN200944597Y (en) * 2006-09-19 2007-09-05 珠海格力电器股份有限公司 Non-polarity communication interface module

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101711076B (en) * 2009-11-18 2013-01-23 广州中大中鸣科技有限公司 DMX512 communication link and method thereof
CN102111928A (en) * 2009-12-28 2011-06-29 明阳半导体股份有限公司 Decoding circuit and decoding method
CN102111928B (en) * 2009-12-28 2013-12-11 明阳半导体股份有限公司 Decoding circuit and decoding method
CN107635306A (en) * 2017-08-30 2018-01-26 深圳市汇德科技有限公司 A kind of decoding apparatus based on LED control system and a kind of LED control system
CN110513615A (en) * 2019-07-29 2019-11-29 厦门普为光电科技有限公司 Adjustable light lamp tube

Also Published As

Publication number Publication date
CN101562925B (en) 2012-11-28

Similar Documents

Publication Publication Date Title
CN101562925B (en) Signal reading method based on DMX512 protocol
JPH04233850A (en) Multivalue digital signal receiver
EP0982861A3 (en) Method and apparatus for reducing convergence time
WO2005069218A3 (en) System and method for comparing images with different contrast levels
JPH1056487A (en) Quadrature demodulation circuit
CN102811354A (en) Video image quality enhanced playing method and on-demand terminal
US8098018B2 (en) Pulse dimming circuit and the method thereof
EP0254877B1 (en) Automatic drift control circuit
CN102769459B (en) Enhanced communications circuit
US20100329327A1 (en) Equalizer adjustment method and adaptive equalizer
CN111613235A (en) Echo cancellation method and device
EP2107860A2 (en) Signal reading method based on DMX512 protocol
JPH07273807A (en) Communication path connector
CN102340907A (en) Light emitting diode (LED) controller having function of flicker removal, LED flicker removal circuit and related method
CN110753195B (en) High-stability video triggering method and digital oscilloscope
CN104052642B (en) A kind of communication system and communication means
JP5565066B2 (en) Receiver
JP4455395B2 (en) Muting judgment circuit and muting circuit
US8045059B2 (en) Gain control circuit and method of controlling gain
TWI580292B (en) Method and circuit for establishing network connection
JP2001144961A (en) Image processing unit
CN102801666B (en) Equalizer and communication system
JPS62183229A (en) Semiconductor integrated circuit device
CN100466480C (en) Method for judging output signal in Viterbi decoder
US8059197B2 (en) Field balancing device and method

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121128

Termination date: 20190417

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