CN107918332A - The control device and system of remote DC decoder - Google Patents
The control device and system of remote DC decoder Download PDFInfo
- Publication number
- CN107918332A CN107918332A CN201711467089.2A CN201711467089A CN107918332A CN 107918332 A CN107918332 A CN 107918332A CN 201711467089 A CN201711467089 A CN 201711467089A CN 107918332 A CN107918332 A CN 107918332A
- Authority
- CN
- China
- Prior art keywords
- decoder
- circuit
- output terminal
- gateway
- solenoid valve
- 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
Links
- 230000002441 reversible effect Effects 0.000 claims abstract description 15
- 238000012545 processing Methods 0.000 claims description 45
- 238000004891 communication Methods 0.000 claims description 33
- 238000006243 chemical reaction Methods 0.000 claims description 32
- 230000005611 electricity Effects 0.000 claims description 12
- 238000013500 data storage Methods 0.000 claims description 11
- 230000005540 biological transmission Effects 0.000 claims description 9
- 230000002123 temporal effect Effects 0.000 claims description 9
- 230000004044 response Effects 0.000 claims description 7
- 230000001360 synchronised effect Effects 0.000 claims description 7
- 238000003860 storage Methods 0.000 claims description 6
- 238000011084 recovery Methods 0.000 claims description 3
- 239000000725 suspension Substances 0.000 claims description 3
- 230000000739 chaotic effect Effects 0.000 abstract description 3
- 230000008439 repair process Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 9
- 238000000034 method Methods 0.000 description 8
- 230000002262 irrigation Effects 0.000 description 7
- 238000003973 irrigation Methods 0.000 description 7
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 5
- 229910052802 copper Inorganic materials 0.000 description 5
- 239000010949 copper Substances 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000001939 inductive effect Effects 0.000 description 4
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001603 reducing effect Effects 0.000 description 2
- 230000000087 stabilizing effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000003990 capacitor Substances 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24215—Scada supervisory control and data acquisition
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Selective Calling Equipment (AREA)
Abstract
The present invention provides the control device and system of remote DC decoder, including:Decoder gateway, multiple solenoid valves and multiple decoders, wherein, each solenoid valve is connected with each decoder respectively by two twisted wires, and each decoder is connected to decoder gateway in a manner of bus;Decoder gateway is used to send command information to the decoder;Decoder is used to parse described instruction information, the command information parsed, the command information of parsing includes direct impulse information of voltage or reverse impulse information of voltage, and closed or disconnected according to direct impulse information of voltage or reverse impulse information of voltage control solenoid valve, it can solve the problems, such as that traditional wired is chaotic by way of bus, it is convenient to position and easily repair if there is damage.
Description
Technical field
The present invention relates to irrigation technique field, more particularly, to the control device and system of remote DC decoder.
Background technology
With the extension of cultivated area, scale, the area of corresponding irrigation system also increases, and uses solenoid valve
Quantity is also more and more.Under traditional mode, solenoid valve all be exchange 24V solenoid valves, each solenoid valve is required for from control
Device connects two power cords.When solenoid valve quantity is more, many cables are needed to connect between solenoid valve and controller
Connect, the later stage is if there is damage, it is not easy to position, also do not allow easy-maintaining.
The content of the invention
In view of this, it is an object of the invention to provide the control device and system of remote DC decoder, can pass through
The mode of bus solves the problems, such as that traditional wired is chaotic, convenient to position and easily repair if there is damage.
In a first aspect, an embodiment of the present invention provides the control device of remote DC decoder, including:Decoder gateway,
Multiple solenoid valves and multiple decoders, wherein, each solenoid valve by two twisted wires respectively with each decoder phase
Connection, each decoder are connected to the decoder gateway in a manner of bus;
The decoder gateway, for sending command information to the decoder;
The decoder, for being parsed to described instruction information, the command information parsed, the finger of the parsing
Information is made to include direct impulse information of voltage or reverse impulse information of voltage, and according to the direct impulse information of voltage or described
Reverse impulse information of voltage controls the solenoid valve to be closed or disconnected.
Further, the decoder includes the first power protecting circuit, solenoid valve power supply circuit, solenoid valve inversion electricity
Road, the first power line carrier circuit, first voltage conversion circuit, the first central processing unit and solenoid valve;
The first input end and the equal input DC power of the second input terminal of first power protecting circuit, first electricity
The first output terminal and the second output terminal of the protection circuit first input end and second with the solenoid valve power supply circuit respectively
Input terminal is connected, and the first output terminal and the second output terminal of the solenoid valve power supply circuit are electric with the solenoid valve inversion respectively
The first input end on road and the second input terminal are connected, the second output terminal and the 3rd output terminal of the solenoid valve inverter circuit with
The solenoid valve is connected, and the first output terminal is connected with first central processing unit;
The first input end and the second input terminal of the first power line carrier circuit respectively with first power protection
The first input end of circuit and the second input terminal are connected, the second output terminal of the first power line carrier circuit and the 3rd defeated
Outlet is connected with first central processing unit respectively, and the input of the first output terminal and the first voltage conversion circuit
End is connected, and the first output terminal of the first voltage conversion circuit is connected with first central processing unit, and described first
Second output terminal of voltage conversion circuit and the 3rd output terminal with the 3rd output terminal of first power protecting circuit and
Four output terminals are connected.
Further, first power protecting circuit, for protecting the first power line carrier circuit and described
One central processing unit, and when the electrical bus is there are during high pressure, the multiple decoder is broken from the electrical bus
Open.
Further, the solenoid valve power supply circuit, in the case of controlling the solenoid valve in the decoder, place
In closure state, and charge;
The solenoid valve inverter circuit, for providing the direct impulse information of voltage to the solenoid valve, so that described
Solenoid valve is in closure state;
Alternatively,
The reverse impulse information of voltage is provided to the solenoid valve, so that the solenoid valve is off.
Further, the decoder gateway includes second source protection circuit, the second power line carrier circuit, GSM systems
System, the communication of second voltage conversion circuit, the second central processing unit, system data storage circuit, real time clock circuit, Ethernet
Communicate with differential serial;
The first input end and the second input terminal input DC power of the second source protection circuit, the second source
Protect the first output terminal and the second output terminal first input end and second with the second voltage conversion circuit respectively of circuit
Input terminal is connected, the first output terminal of the second voltage conversion circuit respectively with second central processing unit, the system
The system input terminal of data storage circuitry, the input terminal of real time clock circuit, the input terminal of Ethernet communication and differential serial lead to
The input terminal of letter is connected, and the output terminal of the system data storage circuit, output terminal, the Ethernet of real time clock circuit lead to
The output terminal of output terminal and the differential serial communication of letter is connected with second central processing unit respectively;
The first input end and the second input terminal of the second power line carrier circuit are protected with the second source respectively
The first input end of circuit and the second input terminal are connected, the first output terminal of the second power line carrier circuit and second defeated
Outlet is connected with second central processing unit respectively, the 3rd output terminal of the second power line carrier circuit respectively with institute
The input terminal for stating gsm system is connected with the second output terminal of the second voltage conversion circuit, and the gsm system is defeated
Enter end with the second output terminal of the second voltage conversion circuit to be connected, in the output terminal of the gsm system and described second
Central processor is connected.
Further, the second source protection circuit, for protecting the second power line carrier circuit, the GSM
System and second central processing unit, and when power supply is there are during high pressure, and by the decoder gateway from the power supply
Disconnect.
Further, the real time clock circuit, for providing world's unified time for second central processing unit
UTC, and when there are during error, time synchronization is carried out under the action of server;
The system data storage circuit, for making what the decoder gateway and server disconnected in network failure
In the case of, the data that the decoder gateway generates during suspension are stored, and in the case of network recovery, will
The data are synchronized in the server.
Second aspect, the embodiment of the present invention also provide the control system of remote DC decoder, including as described above remote
The control device of Cheng Zhiliu decoders, further includes server, the control device of the server and the remote DC decoder
In decoder gateway be connected;
The server, the heartbeat data sent for receiving the decoder gateway, and to the decoder gateway
The task with ID is sent, and time synchronization and tasks synchronization are realized according to the heartbeat data and the task with ID.
Further, the server, is additionally operable to receive the described including temporal information of the decoder gateway transmission
Heartbeat data, by the temporal information compared with local time information, if the temporal information and the local zone time
The difference of information is more than predetermined threshold value, then the local time information is sent to the decoder gateway, so that the decoding
Device gateway synchronizes renewal according to the local time information.
Further, the server, is additionally operable to the task with ID being sent to the decoder gateway, so that
The decoder gateway replys response message according to the task with ID, and carries ID by described according to the response message
Task flagging into having issued task.
An embodiment of the present invention provides the control device and system of remote DC decoder, including:It is decoder gateway, multiple
Solenoid valve and multiple decoders, wherein, each solenoid valve is connected with each decoder respectively by two twisted wires, each decoding
Device is connected to decoder gateway in a manner of bus;Decoder gateway is used to send command information to the decoder;Decoder
For being parsed to described instruction information, the command information parsed, the command information of parsing includes direct impulse voltage
Information or reverse impulse information of voltage, and carried out according to direct impulse information of voltage or reverse impulse information of voltage control solenoid valve
Closure disconnects, and can solve the problems, such as that traditional wired is chaotic by way of bus, if there is damage, conveniently position and hold
It is easy-maintaining.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages are in specification, claims
And specifically noted structure is realized and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended attached drawing, is described in detail below.
Brief description of the drawings
, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution of the prior art
Embodiment or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, in describing below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
Put, other attached drawings can also be obtained according to these attached drawings.
Fig. 1 is the control device schematic diagram of remote DC decoder provided in an embodiment of the present invention;
Fig. 2 is decoder schematic diagram provided in an embodiment of the present invention;
Fig. 3 is decoder gateway schematic diagram provided in an embodiment of the present invention;
Fig. 4 is the control system schematic diagram of remote DC decoder provided in an embodiment of the present invention;
Fig. 5 is lightning protection device connection diagram provided in an embodiment of the present invention.
Icon:
The first power protecting circuits of 11-;12- solenoid valve power supply circuits;13- solenoid valve inverter circuits;The first centres of 15-
Manage device;16- first voltage conversion circuits;17- the first power line carrier circuits;21- second sources protect circuit;The electricity of 22- second
Voltage conversion circuit;23-GSM systems;24- the second power line carrier circuits;The second central processing units of 25-;26- system datas store
Circuit;27- real time clock circuits;28- Ethernets communicate;29- differential serials communicate;10- decoder gateways;20- decoders;
30- solenoid valves;40- lightning protection devices.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiment is part of the embodiment of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Lower all other embodiments obtained, belong to the scope of protection of the invention.
For ease of understanding the present embodiment, describe in detail below to the embodiment of the present invention.
Fig. 1 is the control device schematic diagram of remote DC decoder provided in an embodiment of the present invention.
With reference to Fig. 1, which includes decoder gateway 10, multiple solenoid valves 30 and multiple decoders 20, wherein, Mei Ge electricity
Magnet valve 30 is connected with each decoder 20 respectively by two twisted wires, and each decoder 20 is connected to decoding in a manner of bus
Device gateway 10;
Decoder gateway 10, for sending command information to decoder 20;
Decoder 20, for being parsed to command information, the command information parsed, the command information of parsing includes
Direct impulse information of voltage or reverse impulse information of voltage, and according to direct impulse information of voltage or reverse impulse information of voltage control
Solenoid valve 30 processed is closed or disconnected.
Specifically, decoder gateway 10 by bus send read solenoid valve 30 and control solenoid valve 30 command information to
Decoder 20, after 20 analysis instruction information of decoder, completes the control to 30 state of solenoid valve.Solved by way of bus
The problem of traditional wired bothers, during actual arrangement, it is only necessary to put a buried twisted-pair feeder and just complete bus
Arrangement.The bad local very convenient positioning of later stage line loss, and be easy to repair.Due to the characteristic of bus, it is only necessary to toward bus
Upper parallel decoder 20 can be extended.
By a twisted pair line connection between decoder 20 and decoder gateway 10, the power supply of decoder 20 is by decoder net
Close 10 to provide, and the communication between them is realized also by this power cord.So decoder 20 and decoder gateway 10 are all
Realize the encoding and decoding of power line transmission.Decoder gateway 10 is DC voltage to the power supply voltage range of decoder 20, voltage
Scope is 12V to 48V.
Solenoid valve 30 is direct current pulse electromagnetic valve, and the operating voltage of direct current pulse electromagnetic valve is DC9~DC24V, resistance 6
Ω so opening or closing the moment of solenoid valve 30, is produced in bus, it is necessary to the duration of pulse is at least 100ms
Electric current can be bigger, so as to cause the pressure drop of bus obvious, or even influences the communication with decoder 20.So set in circuit
When meter, a capacitance is added in the control circuit of solenoid valve 30, when needing to control solenoid valve 30, is beaten first
Capacitor charging circuit is opened, completes the charging to capacitance, the electricity filled by capacitance completes the control to solenoid valve 30 below, so exists
The voltage in bus would not be drawn when control solenoid valve 30 too low.Direct current pulse electromagnetic valve is beaten by direct impulse
Open, closed by reverse impulse.So have a power supply switch circuit on the circuit of control solenoid valve 30, it is electric when needing to open
When magnet valve 30, positive DC9V is provided to solenoid valve 30, when needing to close solenoid valve 30, is carried to solenoid valve 30
That supply is reverse DC9V.
In addition, the device further includes lightning protection device 40, since decoder 20 is all placed on wild environment, it is easy to by thunder
Hit, so lightning protection device 40 is arranged in bus, for reducing the possibility that decoder 20 is struck by lightning.Lightning protection device 40 a total of 3
Root line, wherein two are connected in parallel in bus, in addition a piece-root grafting is taken shelter from the thunder copper rod, when having inductive lightning to bus, by keeping away
Thunder is introduced the earth by thunder copper rod, final to protect decoder 20, makes its normal work, referring in particular to Fig. 5.Lightning protection device 40 passes through two
Line is connected in parallel on communication bus, and to place one every 300 meters or so in bus.The major function of lightning protection device 40 is exactly
By the inductive lightning in bus, big underground is incorporated into by being grounded copper rod.Lightning protection device 40 be grounded after, its resistance to earth be necessarily less than and
Equal to 10 Ω, to ensure its electric conductivity over the ground, inductive lightning can be introduced into the earth within the shortest time.
Ground connection copper rod needs to be embedded in the place over bus at least 2.5 meters, prevents from again feeling toward the thunder that the earth introduces
Should be on communication bus.The operation principle of 40 core of lightning protection device be by the varistor of 2 times of communication bus voltage, it is complete
Off and in couples.When inductive lightning is added on communication bus, a moment height occurs on communication bus
Pressure, once this voltage exceedes the pressure voltage of varistor, varistor will turn on, and decoder 20 will be by bus by connecing
Electric discharge is completed in ground copper rod and the earth conducting.When communication bus voltage is normal, lightning protection device 40 is not turned on over the ground, and bus is led to
Believe no any influence.
Fig. 2 is decoder schematic diagram provided in an embodiment of the present invention.
With reference to Fig. 2, decoder includes the first power protecting circuit 11, solenoid valve power supply circuit 12, solenoid valve inverter circuit
13rd, the first power line carrier circuit 17, first voltage conversion circuit 16, the first central processing unit 15 and solenoid valve 30;
The first input end and the equal input DC power of the second input terminal of first power protecting circuit 11, the first power protection
The first output terminal and the second output terminal of circuit 11 first input end and the second input terminal with solenoid valve power supply circuit 12 respectively
It is connected, the first output terminal and the second output terminal of solenoid valve power supply circuit 12 are defeated with the first of solenoid valve inverter circuit 13 respectively
Enter end with the second input terminal to be connected, the second output terminal and the 3rd output terminal of solenoid valve inverter circuit 13 are connected with solenoid valve 30
Connect, and the first output terminal is connected with the first central processing unit 15;
The first input end and the second input terminal of first power line carrier circuit 17 respectively with the first power protecting circuit 11
First input end and the second input terminal be connected, the second output terminal and the 3rd output terminal of the first power line carrier circuit 17 point
It is not connected with the first central processing unit 15, and the first output terminal is connected with the input terminal of first voltage conversion circuit 16,
First output terminal of first voltage conversion circuit 16 is connected with the first central processing unit 15, and the of first voltage conversion circuit 16
Two output terminals and the 3rd output terminal are connected with the 3rd output terminal of the first power protecting circuit 11 and the 4th output terminal.
First power protecting circuit 11, for protecting the first power line carrier circuit 17 and the first central processing unit 15, and
And when electrical bus is there are during high pressure, multiple decoders are disconnected from electrical bus.
Solenoid valve power supply circuit 12, in the case of controlling solenoid valve 30 in decoder, in closure state, and carries out
Charging;
Solenoid valve inverter circuit 13, for providing direct impulse information of voltage to solenoid valve 30, so that solenoid valve 30 is in
Closure state;
Alternatively,
Reverse impulse information of voltage is provided to solenoid valve 30, so that solenoid valve 30 is off.
The first input end and the equal input DC power of the second input terminal of first power protecting circuit 11, the electricity of DC power supply
It is DC12V~DC36V to press scope.If voltage is less than 12V, the communication of decoder and decoder gateway will be influenced.
First power line carrier circuit 17 is used to completing the transmission of power line data, and with the first central processing unit 15
Data transfer.First power line carrier circuit 17 divides for the first transmission system and the first reception system, it and the first central processing
Device 15 is connected by ttl serial ports, and data communication baud rate could be provided as 2400Bd or 9600Bd.
First voltage conversion circuit 16 is completed the power supply voltage stabilizing of power line to 3.3V, to the first power line carrier circuit 17
Power with the first central processing unit 15.First power line carrier circuit 17 and the first central processing unit 15 are supplied by 3.3V
Electricity.
In the present embodiment, the MCU of the Cotex M0 of super low-power consumption is employed as the first central processing unit 15, this first
The dominant frequency of central processing unit 15 is 72MHz.When decoder gateway provides DC24V, the static working current of decoder is
10mA, in order to allow decoder to be in lower power consumption, by programme-control MCU frequency reducings, allows MCU to be operated in the 1/4 of usually dominant frequency
(18MHz), the static working current of such decoder can be stablized in 6mA, considerably increase the communication distance of decoder.By
Actual test, DC24V power supplies, using BVS 2*2.5 cables, 100 decoders of carry on the cable of 2.5Km can be normal
Work.
Fig. 3 is decoder gateway schematic diagram provided in an embodiment of the present invention.
With reference to Fig. 3, decoder gateway includes second source protection circuit 21, the second power line carrier circuit 24, gsm system
23rd, second voltage conversion circuit 22, the second central processing unit 25, system data storage circuit 26, real time clock circuit 27, ether
Network service 28 and differential serial communication 29;
Second source protects the first input end and the second input terminal input DC power of circuit 21, second source protection electricity
First output terminal and the second output terminal on road 21 first input end and the second input terminal with second voltage conversion circuit 22 respectively
Be connected, the first output terminal of second voltage conversion circuit 22 respectively with the second central processing unit 25, system data storage circuit
26 input terminal, the input terminal of real time clock circuit 27, Ethernet communication 28 input terminal and differential serial communication 29 it is defeated
Enter end to be connected, the output terminal of system data storage circuit 26, the output terminal of real time clock circuit 27, Ethernet communication 28
Output terminal and the output terminal of differential serial communication 29 are connected with the second central processing unit 25 respectively;
The first input end and the second input terminal of second power line carrier circuit 24 protect circuit 21 with second source respectively
First input end and the second input terminal be connected, the first output terminal and the second output terminal of the second power line carrier circuit 24 point
Be not connected with the second central processing unit 25, the 3rd output terminal of the second power line carrier circuit 24 respectively with gsm system 23
Input terminal is connected with the second output terminal of second voltage conversion circuit 22, and the input terminal and second voltage of gsm system 23
Second output terminal of conversion circuit 22 is connected, and the output terminal of gsm system 23 is connected with the second central processing unit 25.
Second source protects circuit 21, for protecting the second power line carrier circuit 24,23 and second centre of gsm system
Manage device 25, and when power supply is there are during high pressure, and decoder gateway is disconnected from power supply.
Real time clock circuit 27, for providing world unified time UTC for the second central processing unit 25, and is missed when existing
When poor, time synchronization is carried out under the action of server;
System data storage circuit 26, for making the situation that decoder gateway and server disconnect in network failure
Under, the data that decoder gateway generates during suspension are stored, and in the case of network recovery, data are synchronous
Into server.
Second power line carrier circuit 24 completes the transmission of power line data, and the data with the second central processing unit 25
Transmission.Second power line carrier circuit 24 divides for the second transmission system and the second reception system, it and the second central processing unit 25
Connected by ttl serial ports, data communication baud rate could be provided as 2400Bd or 9600Bd.Meanwhile second electrical power carrier circuit
24 also complete the communication to decoder, are completed by two power lines.
Second voltage conversion circuit 22 is completed, by power supply voltage stabilizing to 12V, to be converted to 4V by 12V, supply to gsm system 23
Electricity.In addition, by the way that 12V is converted to 3.3V, powers to the second power line carrier circuit 24 and the second central processing unit 25, be
Powered by 3.3V.
Gsm system 23 is used to complete GPRS communication functions, when decoder gateway, which is in, does not have ethernet environment, leads to
Cross the completion of gsm system 23 and the communication of server.
Second central processing unit 25, employs the MCU of 9 frameworks of technical grade ARM, has the characteristics that super power consumption.Second center
Processor 25 has the function of communication, dialing, storage and control.
When there is exterior other equipment, the second central processing unit 25 passes through RS485 buses and other for differential serial communication 29
Equipment interacts.Communicate in RS485 buses above with Modbus rtu protocols, largely compatible standard association
The sensor and controller of view.
Ethernet communication 28 completes the communication with server by Ethernet communication 28 when there is ethernet environment.
Fig. 4 is the control system schematic diagram of remote DC decoder provided in an embodiment of the present invention.
With reference to Fig. 4, which includes the control device of remote DC decoder, further includes server, server with remotely
Decoder gateway in the control device of direct current decoder is connected;
Server, the heartbeat data sent for Rcv decoder gateway, and sent to decoder gateway with ID
Task, and according to heartbeat data and the task with ID realizes time synchronization and tasks synchronization.
Further, server be additionally operable to Rcv decoder gateway transmission the heartbeat data for including temporal information, by when
Between information compared with local time information, if temporal information and the difference of local time information are more than predetermined threshold value,
Local time information is sent to decoder gateway, so that decoder gateway synchronizes renewal according to local time information.
Here, in current irrigation system, it is divided into two kinds of Irrigations substantially.One kind is that time-based irrigate is appointed
Business, a kind of is the irrigation task based on sensing data, and time-based irrigation task is in the majority.So gateway of decoder
Local zone time it is extremely important.By the above-mentioned means, the local time information that decoder gateway issues server is synchronized to RTC
In (Real-Time Clock, real-time timepiece chip) circuit, so that it is guaranteed that the time difference of decoder gateway and server is less than 60
Second.
Further, server is additionally operable to the task with ID being sent to decoder gateway, so that decoder gateway root
Reply response message according to the task with ID, and according to response message by the task flagging with ID into having issued task.
Specifically, decoder gateway supports two kinds of tasks, is time task and script task respectively.Time task is mainly complete
Into the time-based irrigation of solenoid valve, script task mainly completes the relating operation of peripheral equipment, such as frequency-conversion control cabinet, rainfall
Sensor, flow sensor etc..Being issued for server for task, decoder gateway can all be stored in local sqlite data
In storehouse.Newest task can be all loaded when decoder gateway powers on every time from local data base.When user passes through the page
When editor's task, server can produce one and carry the task of unique ID, and this task is stored in server count
According in storehouse, while attempt to issue the task and give decoder gateway.When decoder gateway receives the task, one can be sent
For response message with the unique ID of task to server, server can be by the task flagging into having issued task.Due to irrigating item
Mesh is all environment outdoors mostly, network environment be not it is highly stable, so decoder gateway there is a possibility that it is offline.This is
System solves the problems, such as synchronous task of reaching the standard grade again by heartbeat data.Decoder gateway is set in the heartbeat data periodically reported
Unique ID of the newest task in current local is put, server, can be newest with server when the data are received
The ID of business is compared, once discovery is inconsistent, server can issue newest task at once and give decoder gateway.By this
Mode, even if user, when task is issued, decoder gateway is not online, when reaching the standard grade next time, task equally can be with
It is synchronized to decoder gateway.
Decoder gateway is communicated with decoder by two power lines, is communicated by Modbus rtu protocols.
Decoder gateway continual can sequentially scan each decoder, be spaced 200 milliseconds between scanning every time.Pass through this side
Formula, the memory the inside of decoder gateway can refresh the real-time status of all decoders always.Decoder gateway passes through periodic operation
Task, each run, which completes task, a decoder outcomes state table.By contrasting decoder real-time status inside memory
Table and result phase table, once finding that some decoder states is inconsistent, according to result phase table as foundation, send out to decoder
Send control command.After decoder performs completion control command, the state of solenoid valve can be written in flash, prevented unexpected disconnected
Conductance sends a telegraph magnet valve status error.
The computer program product that the embodiment of the present invention is provided, including store the computer-readable storage of program code
Medium, the instruction that said program code includes can be used for performing the method described in previous methods embodiment, and specific implementation can be joined
See embodiment of the method, details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
With the specific work process of device, the corresponding process in preceding method embodiment is may be referred to, details are not described herein.
In addition, in the description of the embodiment of the present invention, unless otherwise clearly defined and limited, term " installation ", " phase
Even ", " connection " should be interpreted broadly, for example, it may be being fixedly connected or being detachably connected, or be integrally connected;Can
To be mechanical connection or be electrically connected;It can be directly connected, can also be indirectly connected by intermediary, Ke Yishi
Connection inside two elements.For the ordinary skill in the art, with concrete condition above-mentioned term can be understood at this
Concrete meaning in invention.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part to contribute to the prior art or the part of the technical solution can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment the method for the present invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
In the description of the present invention, it is necessary to explanation, term " " center ", " on ", " under ", "left", "right", " vertical ",
The orientation or position relationship of the instruction such as " level ", " interior ", " outer " be based on orientation shown in the drawings or position relationship, merely to
Easy to describe the present invention and simplify description, rather than instruction or imply signified device or element must have specific orientation,
With specific azimuth configuration and operation, therefore it is not considered as limiting the invention.In addition, term " first ", " second ",
" the 3rd " is only used for description purpose, and it is not intended that instruction or hint relative importance.
Finally it should be noted that:Embodiment described above, is only the embodiment of the present invention, to illustrate the present invention
Technical solution, rather than its limitations, protection scope of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, it will be understood by those of ordinary skill in the art that:Any one skilled in the art
The invention discloses technical scope in, it can still modify the technical solution described in previous embodiment or can be light
It is readily conceivable that change, or equivalent substitution is carried out to which part technical characteristic;And these modifications, change or replacement, do not make
The essence of appropriate technical solution departs from the spirit and scope of technical solution of the embodiment of the present invention, should all cover the protection in the present invention
Within the scope of.Therefore, protection scope of the present invention answers the scope of the claims of being subject to.
Claims (10)
- A kind of 1. control device of remote DC decoder, it is characterised in that including:Decoder gateway, multiple solenoid valves and more A decoder, wherein, each solenoid valve is connected with each decoder respectively by two twisted wires, each solution Code device is connected to the decoder gateway in a manner of bus;The decoder gateway, for sending command information to the decoder;The decoder, for being parsed to described instruction information, the command information parsed, the instruction letter of the parsing Breath includes direct impulse information of voltage or reverse impulse information of voltage, and according to the direct impulse information of voltage or described reverse Pulse voltage information controls the solenoid valve to be closed or disconnected.
- 2. the control device of remote DC decoder according to claim 1, it is characterised in that the decoder includes the One power protecting circuit, solenoid valve power supply circuit, solenoid valve inverter circuit, the first power line carrier circuit, first voltage conversion Circuit, the first central processing unit and solenoid valve;The first input end and the equal input DC power of the second input terminal of first power protecting circuit, first power supply are protected The first output terminal and the second output terminal of protection circuit are inputted with the first input end of the solenoid valve power supply circuit and second respectively End is connected, the first output terminal and the second output terminal of the solenoid valve power supply circuit respectively with the solenoid valve inverter circuit First input end and the second input terminal are connected, the second output terminal and the 3rd output terminal of the solenoid valve inverter circuit with it is described Solenoid valve is connected, and the first output terminal is connected with first central processing unit;The first input end and the second input terminal of the first power line carrier circuit respectively with first power protecting circuit First input end and the second input terminal be connected, the second output terminal and the 3rd output terminal of the first power line carrier circuit It is connected respectively with first central processing unit, and the input terminal phase of the first output terminal and the first voltage conversion circuit Connection, the first output terminal of the first voltage conversion circuit are connected with first central processing unit, the first voltage The second output terminal and the 3rd output terminal of conversion circuit are defeated with the 3rd output terminal of first power protecting circuit and the 4th Outlet is connected.
- 3. the control device of remote DC decoder according to claim 2, it is characterised in that first power protection Circuit, for protecting the first power line carrier circuit and first central processing unit, and when the electrical bus is deposited In high pressure, the multiple decoder is disconnected from the electrical bus.
- 4. the control device of remote DC decoder according to claim 2, it is characterised in that the solenoid valve power supply electricity Road, in the case of controlling the solenoid valve in the decoder, in closure state, and charges;The solenoid valve inverter circuit, for providing the direct impulse information of voltage to the solenoid valve, so that the electromagnetism Valve is in closure state;Alternatively,The reverse impulse information of voltage is provided to the solenoid valve, so that the solenoid valve is off.
- 5. the control device of remote DC decoder according to claim 1, it is characterised in that the decoder gateway bag Include second source protection circuit, the second power line carrier circuit, gsm system, second voltage conversion circuit, the second central processing Device, system data storage circuit, real time clock circuit, Ethernet communication and differential serial communication;The first input end and the second input terminal input DC power of the second source protection circuit, the second source protection The first output terminal and the second output terminal of circuit are inputted with the first input end of the second voltage conversion circuit and second respectively End is connected, the first output terminal of the second voltage conversion circuit respectively with second central processing unit, the system number According to the input terminal of storage circuit, the input terminal of real time clock circuit, the input terminal of Ethernet communication and differential serial communication Input terminal is connected, and the output terminal of the system data storage circuit, the output terminal of real time clock circuit, Ethernet communicate Output terminal and the output terminal of differential serial communication are connected with second central processing unit respectively;The first input end and the second input terminal of the second power line carrier circuit protect circuit with the second source respectively First input end and the second input terminal be connected, the first output terminal and the second output terminal of the second power line carrier circuit Be connected respectively with second central processing unit, the 3rd output terminal of the second power line carrier circuit respectively with it is described The input terminal of gsm system is connected with the second output terminal of the second voltage conversion circuit, and the input of the gsm system End is connected with the second output terminal of the second voltage conversion circuit, the output terminal of the gsm system and the described second center Processor is connected.
- 6. the control device of remote DC decoder according to claim 5, it is characterised in that the second source protection Circuit, for protecting the second power line carrier circuit, the gsm system and second central processing unit, and when electricity Source disconnects the decoder gateway there are during high pressure from the power supply.
- 7. the control device of remote DC decoder according to claim 6, it is characterised in that the real-time clock electricity Road, for providing world unified time UTC for second central processing unit, and when there are during error, in the work of server Time synchronization is carried out under;The system data storage circuit, for making the situation that the decoder gateway and server disconnect in network failure Under, the data that the decoder gateway generates during suspension are stored, and in the case of network recovery, by described in Data are synchronized in the server.
- 8. a kind of control system of remote DC decoder, it is characterised in that including any one of claim 1 to claim 7 The control device of the remote DC decoder, further includes server, the server and the remote DC decoder Decoder gateway in control device is connected;The server, the heartbeat data sent for receiving the decoder gateway, and sent to the decoder gateway Task with ID, and time synchronization and tasks synchronization are realized according to the heartbeat data and the task with ID.
- 9. the control system of remote DC decoder according to claim 8, it is characterised in that the server, is also used In the heartbeat data for including temporal information for receiving the decoder gateway transmission, by the temporal information and local zone time Information is compared, if the temporal information and the difference of the local time information are more than predetermined threshold value, by described Ground temporal information is sent to the decoder gateway, so that the decoder gateway is synchronized according to the local time information Renewal.
- 10. the control system of remote DC decoder according to claim 8, it is characterised in that the server, is also used In the task with ID is sent to the decoder gateway, so that the decoder gateway is according to the appointing with ID Response message is replied in business, and according to the response message by the task flagging with ID into having issued task.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711467089.2A CN107918332A (en) | 2017-12-28 | 2017-12-28 | The control device and system of remote DC decoder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711467089.2A CN107918332A (en) | 2017-12-28 | 2017-12-28 | The control device and system of remote DC decoder |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107918332A true CN107918332A (en) | 2018-04-17 |
Family
ID=61894442
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711467089.2A Pending CN107918332A (en) | 2017-12-28 | 2017-12-28 | The control device and system of remote DC decoder |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107918332A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1140383A (en) * | 1995-06-19 | 1997-01-15 | 摩托罗拉公司 | Method and apparatus for integrating dedicated selective call decoder in controller |
CN101009502A (en) * | 2006-01-24 | 2007-08-01 | 黄勇 | A DC power line carrier communication method, system and lamp series using the system |
US20160349765A1 (en) * | 2015-05-26 | 2016-12-01 | Hunter Industries, Inc. | Decoder systems and methods for irrigation control |
CN207601592U (en) * | 2017-12-28 | 2018-07-10 | 上海垄欣科技有限公司 | The control device and system of remote DC decoder |
-
2017
- 2017-12-28 CN CN201711467089.2A patent/CN107918332A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1140383A (en) * | 1995-06-19 | 1997-01-15 | 摩托罗拉公司 | Method and apparatus for integrating dedicated selective call decoder in controller |
CN101009502A (en) * | 2006-01-24 | 2007-08-01 | 黄勇 | A DC power line carrier communication method, system and lamp series using the system |
US20160349765A1 (en) * | 2015-05-26 | 2016-12-01 | Hunter Industries, Inc. | Decoder systems and methods for irrigation control |
CN207601592U (en) * | 2017-12-28 | 2018-07-10 | 上海垄欣科技有限公司 | The control device and system of remote DC decoder |
Non-Patent Citations (1)
Title |
---|
刘秋霞;杨桂林;: "电能信息自动采集终端的设计", 现代电子技术, no. 11 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN206541430U (en) | A kind of data capture management device based on cloud platform | |
CN103023139A (en) | Device and method for monitoring distribution network | |
CN104993479A (en) | Power supply method and power supply system of data center, and IT cabinet | |
CN207601592U (en) | The control device and system of remote DC decoder | |
CN209103120U (en) | A kind of open port automatic recognition system | |
CN202772913U (en) | Intelligent home gateway | |
CN101902078A (en) | Centralized monitoring device in direct-current power supply system | |
CN107918332A (en) | The control device and system of remote DC decoder | |
CN205212878U (en) | Novel charge stake intelligent network deployment equipment | |
CN206977157U (en) | A kind of power distribution automation station institute terminal | |
CN205123760U (en) | Communications management system based on intelligence passes accuse terminal | |
CN208489856U (en) | A kind of private electric power wireless communication apparatus | |
CN202662148U (en) | Electricity utilization information concentrator | |
CN109379100A (en) | Communication module | |
CN210807667U (en) | Automatic association pairing system for electric meter and circuit breaker | |
CN109713786A (en) | A kind of power distribution station intelligence distribution transformer terminals | |
CN104157123A (en) | Intelligent load monitoring system | |
CN209764929U (en) | Single-phase GPRS/4G remote cost control intelligent electric energy meter | |
CN203773277U (en) | Lightning protection remote control device for device of seismic station | |
CN206759161U (en) | A kind of mine electric power monitoring system | |
CN207135125U (en) | Lamp router | |
CN105475101B (en) | A kind of intelligent irrigation equipment, system and method | |
CN206773431U (en) | Agriculture motor-pumped well irrigating controller | |
CN104133444A (en) | Smart grid satellite network transmission system | |
CN110519067A (en) | A kind of instrumentation tap system with Internet of Things function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |