CN102710245B - A kind of photosensitive type button and its control method for calorimeter - Google Patents

A kind of photosensitive type button and its control method for calorimeter Download PDF

Info

Publication number
CN102710245B
CN102710245B CN201210173908.3A CN201210173908A CN102710245B CN 102710245 B CN102710245 B CN 102710245B CN 201210173908 A CN201210173908 A CN 201210173908A CN 102710245 B CN102710245 B CN 102710245B
Authority
CN
China
Prior art keywords
calorimeter
light
button
byte
circuit board
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
CN201210173908.3A
Other languages
Chinese (zh)
Other versions
CN102710245A (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.)
Hangzhou Sanhua Research Institute Co Ltd
Original Assignee
Hangzhou Sanhua Research Institute 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 Hangzhou Sanhua Research Institute Co Ltd filed Critical Hangzhou Sanhua Research Institute Co Ltd
Priority to CN201210173908.3A priority Critical patent/CN102710245B/en
Publication of CN102710245A publication Critical patent/CN102710245A/en
Application granted granted Critical
Publication of CN102710245B publication Critical patent/CN102710245B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of photosensitive type button and its control method for calorimeter, the photosensitive type button for calorimeter includes optical pickup apparatus and light control device, optical pickup apparatus sets on circuit boards and electrically connected with the printed circuit of circuit board, optical pickup apparatus is photosensitive sensor components, the surface of circuit board is provided with the cured layer formed by solid material cure package, the metal pin of electronic component on circuit board is embedded in cured layer, is exposed at the top of optical pickup apparatus outside cured layer.The present invention uses integrated photosensitive button on circuit boards for the photosensitive type button of calorimeter; and the surface of circuit board coats one layer of cured layer to the component on protection circuit plate; this photosensitive type button is not only convenient for transporting and adapts to the severe working environment residing for calorimeter, overcomes the fragile defect for being unfavorable for transport of calorimeter in the prior art using magnetic induction button;And meet the requirement of calorimeter water proof and dust proof.

Description

A kind of photosensitive type button and its control method for calorimeter
Technical field
The present invention relates to field of energy-saving technology, and in particular to a kind of photosensitive type button and its controlling party for calorimeter Method.
Background technology
With country's carrying out in a deep going way for housing reducing energy consumption engineering, the heat death theory retrofit work of heating industry Iterative method therewith, heat supply company progressively payes attention to for household-based heat metering work.In this process, from which type of Calorimeter is a key problem, and calorimeter technology had obtained rapid progress in the last few years, by early stage mechanical heat meter and Electromagnetic type calorimeter, develops into the ultrasonic calorimeter gradually promoted out today.Ultrasonic calorimeter has measuring accuracy height, nothing Mechanical moving element, it is less scaling the advantages of.But the use environment of ultrasonic calorimeter is complicated, some occasions need reach compared with High degree of protection, calorimeter degree of protection at present on the market is more in B IP likes 54 and C IP likes 65, reaches that IP68 ranks can The ultrasonic calorimeter product of dustproof and waterproof is seldom.In order to realize the dustproof and waterproof of calorimeter, calorimeter circuit part is entered There is a button on row solidification sealing, the circuit board of calorimeter, the inquiry of calorimeter can be realized by the button, the work(such as screen are turned over Can, this button can not be cured into, otherwise can not just operate button;In conventional art process, the button typically uses machine Tool contact button, but conventional mechanical contact button is difficult to accomplish dustproof and waterproof, even if circuit board is sealed, at button Still it is difficult to accomplish sealing, so the degree of protection for being unable to reach IP68 using traditional calorimeter of mechanical contact button will Ask.
Sealing is difficult to for mechanical contact button, the shortcoming of dustproof and waterproof is unable to, and some calorimeters use magnetic strength Button is answered to replace mechanical contact button.Magnetic induction button is made up of a tongue tube and one block of magnet, and its mechanism of action is: When magnet is close to tongue tube, the sheet metal of two separation originally in tongue tube is attracted and closed by magnetic force, reaches button The effect being pressed;After magnet is removed, two sheet metals in tongue tube are separated from each other, and reach the effect that button is upspring; Do not have under magneticaction, two in tongue tube sheet metal is in released state, so its normality is upspring for button.Using the magnetic Induced key, can also seal tongue tube during sealing, and its switching function is not influenceed.But tongue tube outer enclosure is generally glass Glass material, two ends have metal ferrule to be connected with glass tube again, therefore very fragile, once there are strong vibrations or drop, all very Tongue tube damage is easily caused, is unfavorable for transport;This causes to can be only applied to typically using the calorimeter of this magnetic induction button Infrequently move and non-vibrations instrument and meter.
, it is necessary to which the ID table numbers and correction parameter of each calorimeter are sent out by optoelectronic transceiver interface in calorimeter factory testing Calorimeter is given, calorimeter is preserved;In the detection of metrological supervision department, optoelectronic transceiver interface is also used.The interface Technical standard be written into calorimeter relevant industries standard CJ/T188-2004, i.e.,《Family is passed with metering instrument industry data Transferring technology condition》, so the calorimeter of calorimeter producer of the country all has optoelectronic transceiver interface at present.Optoelectronic transceiver interface is by one To infrared induction diode/triode(Hereinafter referred to as " infrared light-inductive pipe ")Constituted with infrared light emitting diode.
The content of the invention
In view of this, the photosensitive type for calorimeter being readily transported it is an object of the invention to provide a kind of intensity height by Key and its control method, are unfavorable for the defect of transport to overcome calorimeter to be in the prior art easily damaged.
To achieve the above object, one embodiment of the present of invention provides a kind of photosensitive type button for calorimeter, including Optical pickup apparatus and light control device, the optical pickup apparatus set on circuit boards and are electrically connected with the printed circuit of circuit board Connect, the optical pickup apparatus is photosensitive sensor components, the surface of the circuit board is provided with what is formed by solid material cure package The metal pin of electronic component on cured layer, the circuit board is embedded in the cured layer, the top of the optical pickup apparatus Expose outside cured layer in portion.
Preferably, the altitude range exposed at the top of the optical pickup apparatus outside cured layer is:1.5mm-3mm, it is described The acceptable light frequency range of optical pickup apparatus is:900nm-1000nm.
Preferably, the light control device is:The controlling switch on light emitting devices is arranged at, the switch control is described Whether light emitting devices launches light to the optical pickup apparatus, and the optical pickup apparatus is infrared light-inductive pipe;The light hair Injection device is infrarede emitting diode.
Preferably, the optical pickup apparatus is the infrared light-inductive pipe in the optoelectronic transceiver interface of calorimeter.
Preferably, the positive pole of the infrarede emitting diode is connected by resistance with the positive pole of battery, the infraluminescence The negative pole of diode is connected by switch with the negative pole of the battery;The plus earth of the infrared light-inductive pipe, it is described red The negative pole of outer light-inductive pipe is connected by resistance with power supply.
To achieve the above object, an alternative embodiment of the invention provides a kind of controlling party of the key system of calorimeter Method, the key system is included using the photosensitive type button described in any of the above-described, the control method:
Receive optical signal;
The optical signal is converted into electric signal, the electric signal is made up of data message;
The electric signal is defined as effective push button signalling;
According to effective push button signalling processing key information.
Preferably, the light-inductive pipe is the light-inductive pipe in the optoelectronic transceiver interface of calorimeter;It is described to incite somebody to action described Electric signal is defined as before effective push button signalling, in addition to:
An interrupt signal is received, the interrupt signal is received by the photoelectricity for the circuit board being connected with the light-inductive pipe The level for sending out the communication pin of interface is undergone mutation and produced.
Preferably, it is described that the electric signal is defined as effective push button signalling, including:
Whether the beginning byte for judging the data message is communication byte;
Whether if the beginning byte of the data message is communication byte, it is button to determine whether the data message Byte is consistent with key commands agreement, if it is, the electric signal is defined as into effective push button signalling.
Preferably, if the beginning byte of the data message is not communication byte, the circuit board is determined whether Whether the level of the communication pin of optoelectronic transceiver interface keeps constant, believes if it is, the electric signal is defined as into effective button Number.
Preferably, after judging the data message and being button byte, in addition to:
The byte number of the data message is recorded, judges whether the byte number is not less than predetermined byte number, it is only described The byte number of data message is not less than the predetermined byte number, and the electric signal just is defined as into effective push button signalling.
Preferably, after judging that the level of the communication pin of the optoelectronic transceiver interface of the circuit board keeps constant, in addition to:
The level for recording the communication pin of the optoelectronic transceiver interface of the circuit board is kept for constant duration, is judged Whether the time is not less than the scheduled time, and the only described time is not less than the scheduled time, just determines the electric signal For effective push button signalling.
The embodiment of the present invention provides a kind of photosensitive type button and its control method for calorimeter, the light for calorimeter The surface of circuit board where sensitive button is provided with the electronics member on the cured layer formed by solid material cure package, circuit board The metal pin of device is embedded in cured layer, therefore the intensity of button is higher, be hardly damaged.Overcome and use magnetic in the prior art The calorimeter of induced key is easily damaged the defect for being unfavorable for transport;Meanwhile, the circuit board of calorimeter is closed using cured layer Encapsulation, meets the requirement of calorimeter water proof and dust proof, the degree of protection of calorimeter has been reached IP68 rank.
In the preferred embodiments of the present invention, the optical pickup apparatus of photosensitive type button is in the optoelectronic transceiver interface of calorimeter Infrared light-inductive pipe.Not only overcome to be easily damaged using the calorimeter of magnetic induction button in the prior art and be unfavorable for transport Defect, meets the requirement of calorimeter water proof and dust proof, also uses infrared photosensitive in the standard interface in existing calorimeter Sensing element, saves the cost of calorimeter button.In the case where not influenceing calorimeter optoelectronic transceiver interface normal communication, adopt The function of photosensitive type button is realized with the light-inductive pipe in the optoelectronic transceiver interface of calorimeter, not only realizes and calorimeter is adopted While operation with photosensitive type button, do not increase calorimeter new part, simplify hardware design.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is the principle schematic of the photosensitive type button for calorimeter of the embodiment of the present invention;
Fig. 2 is the front view of the schematic diagram of the photosensitive type button for calorimeter of the embodiment of the present invention 1;
Fig. 3 is the top view of the schematic diagram of the photosensitive type button for calorimeter of the embodiment of the present invention 1;
Fig. 4 is the left view of the schematic diagram of the photosensitive type button for calorimeter of the embodiment of the present invention 1;
Fig. 5 is the left view of the schematic diagram of the photosensitive type button for calorimeter of the embodiment of the present invention 2;
Fig. 6 is the front view of the schematic diagram of the photosensitive type button for calorimeter of the embodiment of the present invention 2;
Fig. 7 is the top view of the schematic diagram of the photosensitive type button for calorimeter of the embodiment of the present invention 2;
Fig. 8 is the circuit of the light emitting devices of the photosensitive type button for calorimeter of Example 1 and Example 2 of the present invention Structure chart;
Fig. 9 is the circuit structure diagram of the optical pickup apparatus of the photosensitive type button for calorimeter of the embodiment of the present invention 1;
Figure 10 is the circuit structure diagram of the optical pickup apparatus of the photosensitive type button for calorimeter of the embodiment of the present invention 2.
Figure 11 is the control method flow chart of the photosensitive type button for calorimeter of the embodiment of the present invention 1;
Figure 12 is the flow chart of the first control method of the key system for the calorimeter that the embodiment of the present invention 2 is provided;
Figure 13 is the flow chart of second of control method of the key system for the calorimeter that the embodiment of the present invention 2 is provided.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
In the prior art, heat will be applied to using the magnetic induction button of tongue tube and Magnet design using magnetic induction principle Table, the magnetic induction button with solidification Sealing Technology be combined realize the protection to the IP68 ranks of calorimeter measuring circuit will Ask.Tongue tube generally has the reed contact that two or three are made by soft magnetic material, is encapsulated in vacuum or filled with lazy In property gas (such as nitrogen, helium) or glass tube, the leaf end of parallel encapsulation is overlapping in glass tube, and leaves certain interval or phase Mutually contact to be to constitute the normally opened or normally-closed contact of switch, tongue tube it is outside using glass tube encapsulation, so tongue tube intensity compared with It is low, it is very easy to damage, is unfavorable for transport;So as to cause the calorimeter of the magnetic induction button using this structure to be easily damaged, It is unfavorable for transport.
For above-mentioned situation, one embodiment of the present of invention provides a kind of photosensitive type button for calorimeter, its structure As shown in figs. 1-7, the photosensitive type button 100 for being used for calorimeter includes optical pickup apparatus 101 and light control device to schematic diagram 102, wherein, optical pickup apparatus sets 101 on circuit boards and electrically connected with the printed circuit of circuit board 2, optical pickup apparatus 101 For photosensitive sensor components, the surface of circuit board 2 is provided with the cured layer 200 formed by solid material cure package, circuit board 2 The metal pin of electronic component is embedded in cured layer 200, and the top of optical pickup apparatus 101 is exposed outside cured layer.Further, The altitude range exposed at the top of optical pickup apparatus outside cured layer is:1.5mm-3mm, the acceptable light frequency of optical pickup apparatus Scope is:900nm-1000nm.
In all embodiments of the present invention, light control device is:It is arranged at the controlling switch on light emitting devices, switch control Whether light emitting devices processed launches light to optical pickup apparatus.In embodiments of the invention, light emitting devices is two grades of infraluminescence Pipe, optical pickup apparatus is infrared light-inductive pipe.
Fig. 8 show the circuit structure diagram of light emitting devices:The positive pole of infrarede emitting diode 301 passes through resistance R and electricity Pond V positive pole is connected, and the negative pole of infrarede emitting diode 301 is connected by switch 302 with battery V negative pole.
The present invention provide it is a kind of including optical pickup apparatus and light control device for calorimeter photosensitive type button and its Control method, wherein, one layer cured layer enclosed package of the optical pickup apparatus using coating on circuit boards.With by using glass tube The magnetic inductive button of the tongue tube composition of encapsulation is compared, the photosensitive type button provided in an embodiment of the present invention for calorimeter Intensity is higher, be hardly damaged;Further, since using cured layer enclosed package, it is provided in an embodiment of the present invention to be used for calorimeter Photosensitive type button can apply in the device for having the requirements such as water proof and dust proof.
Embodiment one
Fig. 2, Fig. 3 and Fig. 4 be the principle schematic of the embodiment of the present invention 1 wherein, 2 be photosensitive type button where circuit Plate, all electronic components of photosensitive type button are integrated on circuit board as depicted, and 200 be to be coated in circuit board surface And the cured layer of the metal pin of electronic component on circuit board is wrapped, 202 be the optoelectronic transceiver interface on calorimeter.This Optical pickup apparatus 101 in embodiment is infrared light-inductive pipe.
The calorimeter of photosensitive type button provided in an embodiment of the present invention for calorimeter, by by the button on calorimeter It is set to use cured layer by the photosensitive type button for calorimeter of the metal pin enclosed package of electronic component so that heat Scale has higher intensity, and is hardly damaged and is readily transported, and overcomes the calorimeter for using magnetic induction button in the prior art It is easily damaged the defect for being unfavorable for transport;The requirement of calorimeter water proof and dust proof is met, the degree of protection of calorimeter is reached IP68 rank.
Fig. 9 show circuit structure diagram of the embodiment of the present invention 1 for the optical pickup apparatus of the photosensitive type button of calorimeter.
The plus earth of infrared light-inductive pipe 401, the negative pole of infrared light-inductive pipe 401 passes through resistance R and power supply phase Even.In addition, the two ends of infrared light-inductive pipe 401 can also be connected in parallel with a capacitor C, this is due to that infrared light-inductive pipe is received To the transient switching of infrared signal, signal jitter can be produced, electric capacity C can remove signal jitter.
The operation principle of the photosensitive type button for calorimeter of the structure is as follows:The pole of infraluminescence two shown in Fig. 8 Pipe 301 launches the infrared light-inductive pipe 401 shown in Fig. 9 the infrared signal of a certain time, when infrared photosensitive When induction tube 401 receives the infrared signal, infrared light-inductive pipe 401 is turned on, and has electric current to flow through, equivalent to button by by Under.Infrarede emitting diode 301 stops after transmitting infrared signal, and infrared light-inductive pipe 401 ends, and no electric current flows through, this Individual process is upspring equivalent to button.Namely infrared light-inductive pipe 401, which receives infrared signal and is equivalent to button, to be pressed, Stopping reception infrared signal is equivalent to button and lifted, and its essential button principle has no too big difference with common key-press, different Be that the medium of button is changed, common button operation is a mechanical action, and provided in an embodiment of the present invention is used for heat The button operation of the photosensitive type button of scale is an infrared signal.
Photosensitive type button provided in an embodiment of the present invention for calorimeter includes infrared light-inductive pipe and infraluminescence Diode, can be applied in most application environment;Also, due to using cured layer by the electronic component on circuit board Metal pin enclosed package, the photosensitive type button for being used for calorimeter can be applied in the dress for having the particular/special requirements such as water proof and dust proof Put with environment.
The embodiment of the present invention also provides a kind of control method of calorimeter key system, wherein, the key system is using this The photosensitive type button that inventive embodiments are provided, wherein, light-inductive pipe is integrated on the circuit board of calorimeter, and circuit board is adopted Use cured layer enclosed package.It is the flow chart of the control method of the calorimeter key system, the control method bag as shown in figure 11 Include following steps:
Step S601:Receive optical signal.
Specifically, by controlling switch light-inductive pipe can be controlled to open into optical channel, receives light-inductive pipe Incident light;By the controlling switch being arranged on light-inductive pipe light emitting devices can also be controlled to be sent out to light-inductive pipe Light is penetrated, so that light-inductive pipe receives the light of light emitting devices transmitting.
Step S602:Electric signal is converted optical signals to, wherein, electric signal is made up of data message;
Electric signal is converted to by the light for receiving light-inductive pipe, and then realizes the judgement of key information.
Step S603:Electric signal is defined as effective push button signalling;
Whether be effective push button signalling, if effectively push button signalling then presses keystroke handling if judging electric signal;If not Effective push button signalling, then handled by other means.Wherein it is determined that whether electric signal is that effective push button signalling can have a variety of sides Formula.
Step S604:Key information is handled according to effective push button signalling.
Button operation is performed if electric signal is confirmed as effective push button signalling.
The control method of the key system of calorimeter provided in an embodiment of the present invention, by receiving optical signal, by optical signal Be converted to the step such as electric signal and processing key information and realize keypress function, whole process realizes button using cordless Function.
Based on foregoing description, the key system of calorimeter can have light emitting devices in the embodiment of the present invention, can also There is no light emitting devices, also, the key system of the calorimeter can also be using luminous the two of the optoelectronic transceiver interface of calorimeter Pole pipe and light-inductive pipe realize that, based on this, the control method of the calorimeter key system in the embodiment of the present invention can have many The mode of kind, is illustrated by taking some concrete modes as an example below.It should be noted that these modes are served only for explaining this hair below Bright embodiment, rather than the limitation to the embodiment of the present invention, in addition to these following modes, the calorimeter of the embodiment of the present invention The control method of key system can also have other implementations.
Embodiment 2
It refer in foregoing background technology in calorimeter provided with the optoelectronic transceiver interface for meeting professional standard.Optoelectronic transceiver The general principle of interface is:
(1)Data receiver.Infrared light-inductive pipe is turned on when receiving the infrared radiation of some strength, its principle class It is similar to photodiode and receives on state characteristic when the normal light of some strength shines.Low or high electricity is exported respectively when conducting and cut-off It is flat, 0 in data signal or 1 are corresponded to, because digital communication data are all made up of 0 and 1, so communicating circuit can be by knowing The function of receiving data is realized in the conducting and cut-off of not infrared light-inductive pipe, and being set for another communication for infrared signal is sent to it Standby infrared light emitting diode.
(2)Data are sent.Infrared emitting diode diode current flow when forward direction adds a voltage, has electric current to flow through And launch infrared ray.Forward voltage is withdrawn, and recovers cut-off, stops transmitting infrared ray.Communicating circuit can be infrared by controlling Data sending function is realized in the conducting and cut-off of line emitting diode, and its sending object is the infrared photaesthesia of another communication apparatus Ying Guan.
Infrared transmitting tube launches infrared ray, when infrared remote receiver receives infrared ray, infrared induction to infrared induction pipe Pipe is turned on, and has electric current to flow through, the microcontroller communication pin level being connected with infrared induction pipe changes, high level interval scale number Word 1, low level represents numeral 0.The purpose of numerical data is sent by controlling the light on and off of infrared transmitting tube to reach;Infrared photodiode To ultrared cut-off/conducting response, microcontroller communication pin number level is directly influenced, so as to reach data receiver Purpose.
The core objective of the present embodiment is that the optoelectronic transceiver interface that each calorimeter product possesses is subject into communication program On transformation, and design a portable infrared signal projector be used for launch push button signalling, do not influenceing normal communication function In the case of, the optoelectronic transceiver interface that calorimeter possesses originally is had both keypress function.
Fig. 5, Fig. 6 and Fig. 7 be the principle schematic of the embodiment of the present invention 2 wherein, 2 be photosensitive type button where circuit Plate, all electronic components of photosensitive type button are integrated on circuit board as depicted, and 200 be to be coated in circuit board surface And wrap the metal pin of electronic component on circuit board, 202 be the optoelectronic transceiver interface on calorimeter.The present embodiment In optical pickup apparatus 101 be optoelectronic transceiver interface 202 as depicted in infrared light-inductive pipe.
The calorimeter of photosensitive type button provided in an embodiment of the present invention for calorimeter, by by the button on calorimeter It is set to use cured layer by the photosensitive type button for calorimeter of the metal pin enclosed package of electronic component so that heat Scale has higher intensity, and is hardly damaged and is readily transported, and overcomes the calorimeter for using magnetic induction button in the prior art It is easily damaged the defect for being unfavorable for transport;The requirement of calorimeter water proof and dust proof is met, the degree of protection of calorimeter is reached IP68 rank
Figure 10 show the circuit structure diagram of optical pickup apparatus of the embodiment of the present invention:It is infrared in optoelectronic transceiver interface 202 The positive pole of light-inductive pipe 501 by current-limiting resistance R be grounded GND, and with the phase of middle-end pin 502 of optoelectronic transceiver interface 202 Even, the negative pole of infrared light-inductive pipe 501 is connected with power supply.
Infrared light-inductive pipe and infrarede emitting diode in the embodiment of the present invention use cured layer enclosed package, relatively It is higher in the glass tube package strength of tongue tube, it is more solid reliable, it is hardly damaged and is readily transported;Simultaneously as said structure The photosensitive type button for calorimeter it is durable, be hardly damaged, so as to reduce the maintenance cost of button.So while pressing Instrument fault rate is reduced caused by key failure, so that the maintenance cost of calorimeter is reduced, in addition, relative to tongue tube, it is infrared The manufacturing cost of light-inductive pipe is lower, can save the manufacturing cost of calorimeter.
The calorimeter of photosensitive type button provided in an embodiment of the present invention using for calorimeter can be applied not only to one As infrequently move and non-vibrations instrument and meter, can be applied in the mobile instrument and meter that often transports or march into the arena, expand The big application of calorimeter.
It should be noted that, the light-inductive pipe in the above embodiment of the present invention may each be photodiode or light Quick triode or photodiode or phototriode.
In an idle state, the single-chip I/O mouth level being connected with infrared induction pipe is constant for optic electric interface, when there is non-zero data During reception, microcontroller communication I/O port level changes, and inspires interrupt event.Two pieces thing is done in interrupt event:
(1)The beginning byte of communication data is recognized, the communications protocol if heating power table starts byte, then do not sentenced as button Disconnected, now calorimeter is carrying out data communication with its host computer;If it is not as defined in calorimeter communications protocol to first open beginning byte Byte, but the byte that button operation is fixed, such as FF then continues to subsequent byte, and records the number of FF bytes, exceedes Number N as defined in button communications protocol(For an integer), calorimeter is automatically into verifying process flow, and the key mode is mainly used in life Verifying process flow is produced, calibrating efficiency is improved.
(2)If None- identified starts byte and infrared induction pipe is constantly in conducting state(Correspond to single-chip microcomputer pipe Pin level is also constantly in occurs preceding opposite level state with interrupting), then illustrate to trigger the signal of interrupt event not come From communication, but Infrared push button is operated, and now opens a timing program, as long as the single-chip microcomputer pin for receiving signal is constantly in The level, then timing always, until level is reverse.Stop the chronometric data of timing if greater than button minimum setting duration value, Then it is considered once effective button operation.
In view of the characteristic of optic electric interface, the embodiment of the present invention also provides a kind of control method of the key system of calorimeter, Wherein, the key system uses the photosensitive type button that the embodiment of the present invention 2 is provided, wherein, light-inductive pipe is the light of calorimeter Light-inductive pipe in electric transceiver interface, circuit board uses cured layer enclosed package.Carried as shown in figure 12 for the embodiment of the present invention 2 The flow chart of the first control method of the key system of the calorimeter of confession, the control method comprises the following steps:
Step S701:Receive optical signal;The optical signal can be provided in after the controlling switch unlatching on light-inductive pipe, By the optical signal for entering the quick induction tube of optical channel incident light;It can also be the optical signal that light emitting devices is launched to light-inductive pipe.
Step S702:Electric signal is converted optical signals to, wherein electric signal is made up of data message;
Step S703:An interrupt signal is received, wherein, the interrupt signal is the circuit board by being connected with light-inductive pipe The level of communication pin of optoelectronic transceiver interface undergo mutation and produce.
Specifically, the interrupt signal can be used for the beginning of mark data message reception.
Step S704:Whether the beginning byte for judging data message is communication byte, if it is, performing step S705;Such as It is really no, perform step S706.
Specifically, it can also judge whether data message is correct by this step, if correctly, continuing to the datagram Text;If incorrect, stop receiving the data message.
Step S705:Whether be button byte or with key commands agreement consistent, if it is, performing if judging data message Step S707;If not, performing step S709.
Specifically, judge data message be not button byte or with key commands agreement it is inconsistent after, can be with Carry out following:
For example, judging whether data message is meter reading agreement, if it is, meter reading operation is performed, if not, performing step S709。
If the beginning byte of data message is communication byte, subsequent step, Yi Zhongshi can be performed using two ways Whether be button byte, another is to judge whether data message is consistent with key commands agreement if judging data message.
Step S706:Whether the level of the communication pin of the optoelectronic transceiver interface of decision circuitry plate keeps constant, if it is, Perform step S707;If not, performing step S709.
When the beginning byte of data message is not communication byte, if the communication pin of the optoelectronic transceiver interface of circuit board Level continue keep produce interruption after level, then perform subsequent step, for example, produce interrupt before be low level " 0 ", produce It is high level " 1 " after interruption, now continues to keep high level " 1 ", then perform subsequent step.If the optoelectronic transceiver of circuit board connects The level of the communication pin of mouth returns to the level produced before interruption, that is, returns to low level " 0 ", then quit a program.
Step S707:Electric signal is defined as effective push button signalling.
Specifically, other steps are can also carry out before step S107 is performed, this point will be done in detail in embodiment seven Explanation.
Step S708:Key information is handled according to effective push button signalling.
Step S709:Quit a program.
It should be noted that being, the embodiment of the present invention six provides two kinds of sides that electric signal is defined as to effective push button signalling Formula, wherein step S704-step S705-step S707 are first way, and which is by determining that data message is communication Byte, and be button byte or consistent with key commands agreement, so that electric signal is defined as into effective push button signalling;Step S704-step S706-step S707 is the second way, which by determining that data message is not communication byte, and The level of the communication pin of the optoelectronic transceiver interface of circuit board keeps constant, and then electric signal is defined as into effective push button signalling; Wherein first way can be divided into button byte and two methods consistent with key commands agreement again.
The control method for the calorimeter key system that the embodiment of the present invention 2 is provided, by by the optical signal prosessing received Into electric signal, electric signal is defined as by effective push button signalling by two ways, and according to effective push button signalling processing button letter Breath, realizes the Untouched control to key system, i.e., perform button by optical signal control button system or other are grasped Make, compared with the control method of traditional use way of contact control button system, the control method is more convenient.
Light-inductive pipe in calorimeter can be that common light-inductive pipe, ultraviolet-sensitive should be managed or infrared photaesthesia Ying Guan, wherein during using infrared light-inductive pipe, the adaptable scene of the calorimeter is wider.
The photosensitive type button of the key system of the calorimeter can also use light emitting devices, for launching optical signal, should Light emitting devices can be integrated on the circuit board of the calorimeter, can also be independently of the circuit board individualism.The light is launched Device can be light emitting diode, including common light emitting diode, UV LED and infrarede emitting diode, be based on Foregoing description, during using infrarede emitting diode, the adaptable scene of calorimeter is wider.
Specifically, heat can also be respectively adopted in the light-inductive pipe and light emitting devices in the photosensitive type button of calorimeter Light-inductive pipe and light emitting diode in mass color electricity transceiver interface are realized.Below to the photosensitive type button using this structure Control method elaborates.
The embodiment of the present invention also provides the control method of another calorimeter key system, wherein, the key system is used The photosensitive type button that the embodiment of the present invention 2 is provided, wherein, light-inductive pipe is the photaesthesia in the optoelectronic transceiver interface of calorimeter Ying Guan, light emitting diode is the light emitting diode in the optoelectronic transceiver interface of calorimeter, and the circuit board of calorimeter uses cured layer Enclosed package.As shown in figure 13, for the calorimeter key system second of control method flow chart, the control method bag Include following steps:
Step S801:Receive optical signal;
Step S802:Electric signal is converted optical signals to, wherein electric signal is made up of data message;
Step S803:An interrupt signal is received, wherein, the interrupt signal is the circuit board by being connected with light-inductive pipe The level of communication pin of optoelectronic transceiver interface undergo mutation and produce.
Specifically, light-inductive pipe can be used for monitoring the interrupt pin of optoelectronic transceiver interface always receiving interruption letter Number, the interrupt signal can be used for the beginning of mark data message reception.
Step S804:Whether the beginning byte for judging data message is communication byte, if it is, performing step S805;Such as It is really no, perform step S806.
Communication byte, button byte and key commands agreement in the embodiment of the present invention can be by particular condition in use It is determined that.
Specifically, communication byte can be some specific character or numeral, for example, communication byte can be " FE " or " AA " or other forms combination.
Furthermore it is also possible to judge whether data message is correct by this step, if correctly, continuing to the datagram Text;If incorrect, stop receiving the data message.Wherein, correct byte can be:It is 0, data bit 8 to start byte Byte, 1 byte of even parity check, end byte is 1, so the transmission of a byte has the regular change of low and high level.
Step S805:Whether be button byte or with key commands agreement consistent, if it is, performing if judging data message Step S812 or step S807;If not, performing step S813.
Specifically, judge data message be not button byte or with key commands agreement it is inconsistent after, can be with Carry out following:
For example, judging whether data message is meter reading agreement, if it is, meter reading operation is performed, if not, performing step S813。
If the beginning byte of data message is communication byte, subsequent step, Yi Zhongshi can be performed using two ways Whether be button byte, another is to judge whether data message is consistent with key commands agreement if judging data message.
In a specific example, if receiving a data message " FE FE FE FE FE FE FE FE FE FE 68 20 * * * * * * * * * * ", then it is assumed that the data message is consistent with key commands agreement;Further, if the data Message is " the * * * * * * * * * * * * * * * * * * 2F 90 of FE FE FE FE FE FE FE FE FE FE 68 20 * * * 16 ", then the purpose of the communication can be that button turns over screen operation;If the data message is " FE FE FE FE FE FE The * * * * 16 " of 68 20 * * * * * * * * * * * * * * * * * * 1F of FE FE FE FE 90, then the purpose of the communication can To be that button meter reading is operated, " * " is used as asterisk wildcard in this section and following description, not as actual communications identification.
Step S806:Whether the level of the communication pin of the optoelectronic transceiver interface of decision circuitry plate keeps constant, if it is, Perform step S809;If not, performing step S812.
When the beginning byte of data message is not communication byte, if the communication pin of the optoelectronic transceiver interface of circuit board Level continue keep produce interruption after level, then perform subsequent step, for example, produce interrupt before be low level " 0 ", produce It is high level " 1 " after interruption, now continues to keep high level " 1 ", then perform subsequent step.If the optoelectronic transceiver of circuit board connects The level of the communication pin of mouth returns to the level produced before interruption, that is, returns to low level " 0 ", then quit a program.
Step S807:The byte number of record data message.
Step S808:Judge whether the byte number of data message is not less than predetermined byte number, if it is, performing step S811;If not, performing step S813.If the byte number of data message is less than predetermined byte number, it is believed that the datagram Text is error signal, is quit a program.
Wherein predetermined byte number can be determined by specifically used scene, can be several, tens etc., such as reserved word Joint number is 10.
For example, set button byte as " AA ", when receiving AA, according to agreement learn the data frame be a simulation by Key communication frames;Start to count the byte number that AA is carried out, until communication pin is interrupted again, communication interface is received not Counted to stopping during AA.Judge whether this button is once effective button according to the size of data message byte number.
Further, it can also set more than the first predetermined byte number of predetermined byte number and more than the first byte number Second byte number, if the byte number of data message is more than predetermined byte number and less than the first predetermined byte number, screen is turned in execution Operation;If the byte number of data message is more than or equal to the first predetermined byte number and less than the second predetermined byte number, hold Row calibrating operation.Specifically, it can also realize that other are operated by similar fashion.
Specifically, the first predetermined byte number can be set as 20, the second predetermined byte number is 30, when the byte of data message When number is more than predetermined byte number and is less than the first predetermined byte number, perform button and turn over screen operation, can be by the screen turning of calorimeter The page checked to needs;When the byte number of data message is more than or equal to the first predetermined byte number and less than the second predetermined bite During number, button calibrating operation is performed.With this, different move can be performed by recording the byte number of the data message received Make.
Step S809:After the level of the communication pin of the optoelectronic transceiver interface of decision circuitry plate keeps constant, photoelectricity is recorded The level of the communication pin of transceiver interface is kept for constant duration;
Specifically, timing is stopped when the level for communicating pin is undergone mutation again, i.e., the timing time is once to interrupt Duration.
Step S810:Judge whether the level duration of the communication pin of optoelectronic transceiver interface is less than pre- timing Between, if it is, step S811 is performed, if not, performing step S813.
It is less than the scheduled time when the level duration of the communication pin of optoelectronic transceiver interface, it is believed that this is pressed Key operation is maloperation, is quit a program.
Specifically, the scheduled time can also be set as 1s, first scheduled time was 1.5s, second scheduled time was 2s, when When the level of the communication pin of optoelectronic transceiver interface is sustained for longer than the scheduled time and was less than for first scheduled time, execution is pressed Key turns over screen operation, and the screen of calorimeter can be turned to the page for needing to check;When the electricity of the communication pin of optoelectronic transceiver interface It is flat to be sustained for longer than or during equal to first scheduled time and less than second scheduled time, perform button calibrating operation.With this, Different actions can be performed by the length of the level duration of the communication pin of optoelectronic transceiver interface.
Step S811:Electric signal is defined as effective push button signalling.
Step S812:Key information is handled according to effective push button signalling.
Step S813:Quit a program.
It should be noted that being, the embodiment of the present invention seven provides two kinds of sides that electric signal is defined as to effective push button signalling Formula, wherein step S804-step S805-step S811 are first way, and which is by determining that data message is communication Byte, and be button byte or consistent with key commands agreement, so that electric signal is defined as into effective push button signalling;Step S804-step S806-step S809-step S810-step S811 is the second way, and which is by determining datagram Text is not communication byte, and the level of the communication pin of the optoelectronic transceiver interface of circuit board keeps constant, and level is kept The constant time is not less than the scheduled time, and then electric signal is defined as into effective push button signalling;Wherein first way again can be with It is divided into button byte and two methods consistent with key commands agreement, wherein step S805-step S807-step S808- Step S811 is the method for button byte, and button byte number is not less than predetermined byte number, by electric signal be defined as effectively by Key signals.
The control method for the calorimeter key system that the embodiment of the present invention 2 is provided, by by the optical signal prosessing received Electric signal is defined as effective push button signalling into electric signal, and by two ways, and button is handled according to effective push button signalling Information, realizes the Untouched control to key system, i.e., by optical signal control button system perform button or other Operation, compared with the control method of traditional use way of contact control button system, the control method is more convenient.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (11)

1. a kind of photosensitive type button for calorimeter, it is characterised in that including optical pickup apparatus and light control device, the light Reception device sets on circuit boards and electrically connected with the printed circuit of circuit board, and the optical pickup apparatus is light-inductive member Part, the surface of the circuit board is provided with the electronics member device on the cured layer formed by solid material cure package, the circuit board The metal pin of part is embedded in the cured layer, is exposed at the top of the optical pickup apparatus outside cured layer, except light-receiving dress Beyond the top put, the remainder of the optical pickup apparatus is embedded in the cured layer.
2. the photosensitive type button according to claim 1 for calorimeter, it is characterised in that the top of the optical pickup apparatus The altitude range that portion exposes outside cured layer is:1.5mm-3mm, the acceptable light frequency range of optical pickup apparatus is: 900nm-1000nm。
3. the photosensitive type button according to claim 1 or 2 for calorimeter, it is characterised in that the light control device For:The controlling switch on light emitting devices is arranged at, the switch controls whether the light emitting devices fills to the light-receiving Transmitting light is put, the optical pickup apparatus is infrared light-inductive pipe;The light emitting devices is infrarede emitting diode.
4. the photosensitive type button according to claim 3 for calorimeter, it is characterised in that the optical pickup apparatus is heat Infrared light-inductive pipe in the optoelectronic transceiver interface of scale.
5. the photosensitive type button according to claim 4 for calorimeter, it is characterised in that the infrarede emitting diode Positive pole be connected by resistance with the positive pole of battery, the negative pole of the infrarede emitting diode is negative with the battery by switching Extremely it is connected;The plus earth of the infrared light-inductive pipe, the negative pole of the infrared light-inductive pipe passes through resistance and power supply phase Even.
6. the photosensitive type button according to claim 3 for calorimeter, it is characterised in that the infrarede emitting diode Positive pole be connected by resistance with the positive pole of battery, the negative pole of the infrarede emitting diode is negative with the battery by switching Extremely it is connected;The plus earth of the infrared light-inductive pipe, the negative pole of the infrared light-inductive pipe passes through resistance and power supply phase Even.
7. a kind of control method of the key system of calorimeter, it is characterised in that the key system using claim 1,2, 4th, the photosensitive type button described in 6 any one, the control method includes:
Receive optical signal;
The optical signal is converted into electric signal, the electric signal is made up of data message;
The electric signal is defined as effective push button signalling;
According to effective push button signalling processing key information.
8. control method according to claim 7, it is characterised in that the light-inductive pipe is the optoelectronic transceiver of calorimeter Light-inductive pipe in interface;It is described that the electric signal is defined as before effective push button signalling, in addition to:
An interrupt signal is received, the interrupt signal is connect by the optoelectronic transceiver for the circuit board being connected with the light-inductive pipe The level of the communication pin of mouth is undergone mutation and produced.
9. the control method according to claim 7 or 8, it is characterised in that it is described by the electric signal be defined as effectively by Key signals, including:
Whether the beginning byte for judging the data message is communication byte;
Whether if the beginning byte of the data message is communication byte, it is button byte to determine whether the data message Or it is consistent with key commands agreement, if it is, the electric signal is defined as into effective push button signalling;
If the beginning byte of the data message is not communication byte, the optoelectronic transceiver interface of the circuit board is determined whether The level of communication pin whether keep constant, if it is, the electric signal is defined as into effective push button signalling.
10. control method according to claim 9, it is characterised in that after judging that the data message is button byte, also Including:
The byte number of the data message is recorded, judges whether the byte number is not less than predetermined byte number, only described data The byte number of message is not less than the predetermined byte number, and the electric signal just is defined as into effective push button signalling.
11. control method according to claim 9, it is characterised in that judge the optoelectronic transceiver interface of the circuit board After the level of communication pin keeps constant, in addition to:
The level for recording the communication pin of the optoelectronic transceiver interface of the circuit board is kept for constant duration, judges described Whether the time is not less than the scheduled time, and the only described time is not less than the scheduled time, just is defined as having by the electric signal Imitate push button signalling.
CN201210173908.3A 2012-04-09 2012-05-31 A kind of photosensitive type button and its control method for calorimeter Active CN102710245B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210173908.3A CN102710245B (en) 2012-04-09 2012-05-31 A kind of photosensitive type button and its control method for calorimeter

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201210101831.9 2012-04-09
CN201210101831 2012-04-09
CN2012101018319 2012-04-09
CN201210173908.3A CN102710245B (en) 2012-04-09 2012-05-31 A kind of photosensitive type button and its control method for calorimeter

Publications (2)

Publication Number Publication Date
CN102710245A CN102710245A (en) 2012-10-03
CN102710245B true CN102710245B (en) 2017-11-03

Family

ID=46816123

Family Applications (3)

Application Number Title Priority Date Filing Date
CN201210173827.3A Active CN102684663B (en) 2012-04-09 2012-05-31 A kind of calorimeter, photosensitive type button and its control method for calorimeter
CN201210173908.3A Active CN102710245B (en) 2012-04-09 2012-05-31 A kind of photosensitive type button and its control method for calorimeter
CN201210173851.7A Active CN102706483B (en) 2012-04-09 2012-05-31 A kind of calorimeter

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201210173827.3A Active CN102684663B (en) 2012-04-09 2012-05-31 A kind of calorimeter, photosensitive type button and its control method for calorimeter

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201210173851.7A Active CN102706483B (en) 2012-04-09 2012-05-31 A kind of calorimeter

Country Status (1)

Country Link
CN (3) CN102684663B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111130A (en) * 2013-04-17 2014-10-22 成都技高科技有限公司 Low-power consumption heat meter of supersonic wave
CN105206032B (en) * 2015-08-20 2018-09-25 威海市天罡仪表股份有限公司 Micro energy lose visible light induced key
CN105771038B (en) * 2016-03-17 2022-09-13 南京医科大学第一附属医院 Accurate trace acupuncture point injection pen
CN108377147B (en) * 2018-04-27 2023-11-28 张家港乐达汽车电器有限公司 BRT (binary coded time) quick control switch with key protection function
CN109828524B (en) * 2019-03-05 2020-11-10 朱高峰 Programmable control system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002049195A2 (en) * 2000-11-06 2002-06-20 Bcn Data Systems Auxiliary metering apparatus and methods
CN2932828Y (en) * 2005-10-26 2007-08-08 深圳Tcl新技术有限公司 An infrared-based display equipment control device
CN201096551Y (en) * 2007-10-08 2008-08-06 王魁林 Heat and cold quantity gauge
EP2246667A1 (en) * 2009-04-28 2010-11-03 Kamstrup A/S Consumption meter with optical sealing system
CN201716130U (en) * 2010-06-03 2011-01-19 湖南威铭能源科技有限公司 Heat meter with magnetic key switch

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5293115A (en) * 1991-08-06 1994-03-08 Schlumberger Industries, Inc. Method and system for sensing removal of a utility meter from its socket
DE102006019281B3 (en) * 2006-04-26 2007-05-16 Kundo Systemtechnik Gmbh Defining method for determining an amount of heat in a liquid solar medium in a solar unit allows the solar medium to flow through the solar unit to be heated up by the sun's rays
CN101540602B (en) * 2008-03-21 2011-02-02 鸿富锦精密工业(深圳)有限公司 Key assembly
CN201903413U (en) * 2010-12-23 2011-07-20 张礼祥 Heat meter for solidifying circuit board of calculator

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002049195A2 (en) * 2000-11-06 2002-06-20 Bcn Data Systems Auxiliary metering apparatus and methods
CN2932828Y (en) * 2005-10-26 2007-08-08 深圳Tcl新技术有限公司 An infrared-based display equipment control device
CN201096551Y (en) * 2007-10-08 2008-08-06 王魁林 Heat and cold quantity gauge
EP2246667A1 (en) * 2009-04-28 2010-11-03 Kamstrup A/S Consumption meter with optical sealing system
CN201716130U (en) * 2010-06-03 2011-01-19 湖南威铭能源科技有限公司 Heat meter with magnetic key switch

Also Published As

Publication number Publication date
CN102706483A (en) 2012-10-03
CN102684663B (en) 2018-01-16
CN102684663A (en) 2012-09-19
CN102706483B (en) 2017-04-05
CN102710245A (en) 2012-10-03

Similar Documents

Publication Publication Date Title
CN102710245B (en) A kind of photosensitive type button and its control method for calorimeter
KR101836018B1 (en) Terminal and electronic water-resistance method
CN206192424U (en) Gas system of family
CN102122477A (en) Inductive digital multimedia display terminal and control method thereof
CN106897177A (en) A kind of method and system based on mobile terminal system of fingerprints short-circuit detecting and protection
CN105141947B (en) A kind of pressure test equipment and its method
CN102520572B (en) Cover opening prevention device
CN204442386U (en) A kind of photon acceptor terminal and wake-up circuit thereof
CN104159358A (en) Electric torch drive circuit and mobile terminal
CN206517538U (en) A kind of monitoring camera timely checking circuit
CN104897954A (en) Multipath intelligent gas meter quiescent current automatic detection device
CN107170175A (en) A kind of fire safety control system communicated based on Internet of Things
CN205681118U (en) A kind of novel digital signal detection circuit
WO2021081886A1 (en) Gas meter having data transmission function
CN204423302U (en) Electronic signature equipment
CN206907181U (en) Fire alarm installation based on tablet personal computer
CN203607812U (en) Trip-out protection device
CN202550997U (en) Photosensitive button and heat meter using photosensitive button
CN206399918U (en) The protection structure of thermal conductivity cell detector
CN206162699U (en) Lodging industry information collection system
CN104967435A (en) Heat meter, photosensitive key for heat meter and control method thereof
CN204882653U (en) Electric power instrument with infrared vehicle actuated control LCD is shaded
CN206673973U (en) A kind of unidirectional importing portable equipment based on VLC
CN204795390U (en) Building site entrance guard and lift -cabin door record appearance
CN206878984U (en) A kind of intelligent network high-definition video 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
GR01 Patent grant
GR01 Patent grant