Utility model content
The technical problems to be solved in the utility model is, prior art is when detecting band telepilot product, need to use multiple remote control to carry out manual detection, the product needed of different model is carried out remote control with telepilot corresponding with it and is detected, waste telepilot cost of manufacture, complicated operation, waste of manpower and increase the defect of workman's learning difficulty, a kind of telechiric device is provided.
The utility model solves the technical scheme that its technical matters adopts: on the one hand, construct a kind of telechiric device, comprising:
For providing the computer main board of polytype remote control mode, wherein, the polytype correspondence of described remote control mode is provided with multiple key assignments;
For driving peripheral circuit to send the processor of infrared signal according to the type of described remote control mode and key assignments, it is connected with described computer main board;
Described peripheral circuit, it comprises adjustable gooseneck and infrared transmitter, wherein, one end of described gooseneck is connected to described processor, the other end is connected to described infrared transmitter, by arranging wire in described gooseneck inside to connect described infrared transmitter and described processor, thus described infrared transmitter is regulated to be infrared signal described in multiple angular emission.
In telechiric device described in the utility model, described telechiric device also comprises the housing that inside is provided with described processor, described gooseneck extend out to outside described housing within described housing, to make described infrared transmitter outside described housing in infrared signal described in multiple angular emission.
In telechiric device described in the utility model, described processor is connected with described computer main board by serial interface.
In telechiric device described in the utility model, described processor comprises:
For providing the instruction encoding unit of instruction encoding signal according to described remote control mode;
For generation of the timer of periodic pulse signal, it is electrically connected at described instruction encoding unit;
For by described instruction encoding signal madulation on described pulse signal to generate the modulation circuit of modulation signal, it is electrically connected at described instruction encoding unit and described timer;
For the driving circuit driving described peripheral circuit to send infrared signal according to described modulation signal, it is electrically connected at described modulation circuit and described peripheral circuit.
In telechiric device described in the utility model, described instruction encoding unit comprises house dog.
In telechiric device described in the utility model, described processor comprises:
For providing the instruction encoding unit of instruction encoding signal according to described remote control mode;
For generation of the carrier wave oscillating circuit of periodic pulse signal, it is electrically connected at described instruction encoding unit;
For by described instruction encoding signal madulation on described pulse signal to generate the modulation circuit of modulation signal, it is electrically connected at described instruction encoding unit and described carrier wave oscillating circuit;
For the driving circuit driving described peripheral circuit to send infrared signal according to described modulation signal, it is electrically connected at described modulation circuit and described peripheral circuit.
In telechiric device described in the utility model, described carrier wave oscillating circuit comprises:
Crystal oscillator;
First electric capacity, it is electrically connected at one end of described crystal oscillator;
Second electric capacity, it is electrically connected at the other end of described crystal oscillator;
Logical and not gate, it is electrically connected at one end of described crystal oscillator and described first electric capacity;
First resistance, it is electrically connected at one end of described crystal oscillator, described first electric capacity and described logical and not gate;
Second resistance, it is electrically connected at the other end of described crystal oscillator, described second electric capacity, described first resistance and described logical and not gate.
Above-mentioned disclosed a kind of telechiric device has following beneficial effect: by arranging adjustable gooseneck and infrared transmitter, cost-saving, do not need manually to operate at the scene, simple to operate, raise the efficiency, use an equipment can realize Multi-encoding mode telepilot.
Embodiment
In order to make the purpose of this utility model, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the utility model is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the utility model, and be not used in restriction the utility model.
The utility model for prior art when detecting band telepilot product, need to use multiple remote control to carry out manual detection, the telepilot that different product needed artificial selection is corresponding with this product detects, waste telepilot cost of manufacture, complicated operation, waste of manpower and increase the defect of workman's learning difficulty, devise a kind of cost-saving, do not need manually to operate at the scene, simple to operate, raise the efficiency, use an equipment can realize a kind of telechiric device and the control method thereof of Multi-encoding mode telepilot.
See the structural representation of a kind of telechiric device that Fig. 1, Fig. 1 provide for the utility model one embodiment, this telechiric device comprises:
For providing the computer main board 1 of polytype remote control mode, wherein, the polytype correspondence of described remote control mode is provided with multiple key assignments;
For driving peripheral circuit 3 to send the processor 2 of infrared signal according to the type of described remote control mode and key assignments, it is connected with described computer main board 1; Preferably, use SC51P0304SA1 or similar chip as processor 2.
Described peripheral circuit 3, it comprises adjustable gooseneck 31 and infrared transmitter 32 (i.e. " infrared transmitting tube "), wherein, one end of described gooseneck 31 is connected to described processor 2, the other end is connected to described infrared transmitter 32, by arranging wire to connect described infrared transmitter and described processor in described gooseneck 31 inside, thus regulate described infrared transmitter 32 in infrared signal described in multiple angular emission.Multi-angle emission function is realized by gooseneck 31.One end of gooseneck 31 is fixed on base to be connected to processor 2, the other end installation infrared power valve of gooseneck 31, infrared transmitting tube is connected by wire with telepilot, and wire is from the inner cabling of gooseneck 31, even if telechiric device base is fixed and also can supports that multi-angle is launched like this.Preferably, adopt HKL-5IR1B4C-F24-AHV as infrared transmitter 32.In addition, LED also can also be fixed on gooseneck 31 end, can send a branch of infrared light during infrared position adjustments, instruction transmitting site, facilitates adjusting remote angle.
See Fig. 2, the structural representation of a kind of telechiric device that Fig. 2 provides for another embodiment of the utility model, this embodiment is different from an embodiment part and is, described telechiric device also comprises the housing 4 that inside is provided with described processor 2, described housing 4 can be arranged on described computer main board 1, or select certain fixed position according to application scenario, this position is relative with product to be tested position, power valve is facilitated to aim at article to be measured, described gooseneck 31 extend out to outside described housing 4 within described housing 4, to make described infrared transmitter 32 outside described housing 4 in infrared signal described in multiple angular emission.
The structured flowchart of above two embodiments is see Fig. 3, the structured flowchart of a kind of telechiric device that Fig. 3 provides for the utility model, shown in composition graphs 1, in this telechiric device, described processor 2 is connected with described computer main board 1 by serial interface 20, serial interface 20 connection diagram that its connected mode provides for the utility model see Fig. 4, Fig. 4.Processor 2 is connected with computer main board 1 by serial interface 20, after remote controller receives the data that computer main board 1 sends over, drives infrared transmitting tube HKL-5IR1B4C-F24-AHV to send infrared signal.Because SC51P0304SA1 single-chip microcomputer does not have the UART module of hardware, by carrying out simulated implementation with I/O.The K10/P1.0 of SC51P0304SA1 single-chip microcomputer is used for being the RXD of UART module, and K11/P1.1 is used for being the TXD of UART module.P3.0 meets infrared transmitting tube LED G (HKL-5IR1B4C-F24-AHV).
About this Infrared Remote-Control Sending principle, the implementation of processor 2 has two kinds:
1) described processor 2 comprises:
For providing the instruction encoding unit 21 of instruction encoding signal according to described remote control mode;
For generation of the timer 22 of periodic pulse signal, it is electrically connected at described instruction encoding unit 21; See the structured flowchart of the processor 2 with timer 22 that Fig. 5, Fig. 5 provide for the utility model.Realize about 38KHz carrier wave: use single-chip microcomputer built-in timer 22T0 to produce the rect.p. of periodic 26.3us, namely every 13us, timer 2 2T0 produces the contrary signal of interrupt output one makes output terminal produce the 38KHz pulse signal in cycle.
For by described instruction encoding signal madulation on described pulse signal to generate the modulation circuit 23 of modulation signal, it is electrically connected at described instruction encoding unit 21 and described timer 22;
For driving described peripheral circuit 3 to send the driving circuit 24 of infrared signal according to described modulation signal, it is electrically connected at described modulation circuit 23 and described peripheral circuit 3.
2) this telechiric device can also adopt the processor 2 with carrier oscillation circuit to replace above-mentioned timer 22 to provide 38KHZ carrier wave, see the structured flowchart of the processor 2 with carrier wave oscillating circuit 25 that Fig. 6, Fig. 6 provide for the utility model.
If processor 2 adopts chip microcontroller, then mainly comprise single-chip microcomputer firmware design:
Single-chip microcomputer firmware mainly realizes following function:
1) command functions of computer main board 1 control end is received.
Single-chip microcomputer is communicated by serial communication protocol with computer main board 1 main control end.Serial communication protocol agree as follows but be not limited to this: baud rate: 9600, data bit: 8, position of rest: 2, check bit: None.
Single-chip microcomputer and computer main board 1 main control end serial port communication data frame design:
Because polytype remote control mode (grinding auspicious code, TOSHIBA code, NEC code, MITSHIBISHI code etc.) supported by analog telecommand device, so need all types of remote control mode coding rule all will write in firmware when design.In order to better distinguish remote control mode type, computer main board 1 control end and microcomputer series interface communication data frame format design as follows:
Infrared code type definition:
0x00 grinds auspicious code
0x01TOSHIBA code
0x02NEC code
0x03MITSUBISHI code
0x0n……
In coding rule design part, its coding rule is see Fig. 7-Figure 10, the coding rule schematic diagram that Fig. 7 provides for the utility model, the pulse duty factor schematic diagram of 2ms in the coding rule that Fig. 8 provides for the utility model, the pulse duty factor schematic diagram of 3ms in the coding rule that Fig. 9 provides for the utility model, pulse schematic diagram in 70ms in the coding rule that Figure 10 provides for the utility model.
As can be seen from Fig. 7-Figure 10, receive a complete code and comprise: head pulse 101, eight customer numbers 102 (comprising C7-C0) of two 3ms are then remote control modes 103 (comprising D7-D0), finally also have the protected code 104 of 4.5ms.Ensure the correct of a receiving code, must verify that three parts (head pulse 101 width, customer number 102, protection pulse width 104) are all the correct correctness that just can ensure institute's receiving code.
Such as, according to grinding auspicious code coding and following Frame rule, grinding auspicious code data frame is: 0xA5 0x5A0x00 0x02 customer number 102 numeric data code, other remote control modes carry out layout by the coding rule of its correspondence.
Accordingly, computer main board 1 control end Software for Design comprises:
A, designer's machine interactive interface select type and the remote control mode of the remote control mode needing to launch for user
B, be packaged into Frame and send to single-chip microcomputer by serial ports, such as user have selected at remote control mode type item and grinds auspicious code, remote control mode item have selected 0x02 as customer number, 0x1C is as numeric data code, so being packaged into Frame is: 0xA5 0x5A 0x00 0x02 0x02 0x1C, then sends to single-chip microcomputer by serial ports.
2) infrared remote control code function is launched
Infrared emission principle: command pulse coded signal is modulated at carrier oscillator produce carrier wave on (also claiming pulse-code modulation), then with this PCM signaling go drive infrarede emitting diode, to send the infrared waves through ovennodulation.
For encoded carrier wave, it need be changed according to appointment remote control mode coding rule according to specified type, see the carrier modulation schematic diagram that Figure 11, Figure 11 provide for the utility model, wherein, infrared coding produces and launches:
Remote signal (binary pulse code) is modulated on the carrier wave of 38KHz by Infrared remote controller, delivers to infrarede emitting diode, be converted into infrared signal and launch after Hyblid Buffer Amplifier.The form of binary pulse code has multiple, and wherein the most conventional is PWM code (pulse-length modulation code) and PPM code (pulse position modulation code).The former represents 1 with broad pulse, and burst pulse represents 0.The latter's pulse width is the same, but the width of code bit is different, the representative 1 that code bit is wide, the representative 0 that code bit is narrow.To grind auspicious code, the combination that pulsewidth is 0.5ms, interval 1.5ms, cycle are 2ms represents binary " 0 ", see Fig. 8 and Figure 10; Take pulsewidth as 0.5ms, interval 2.5ms, the cycle is 3ms combination represents binary " 1 ", see Fig. 9 and Figure 10.Namely PPM code plan is adopted.
Remote control code pulse signal is made up of signals such as preamble code, systematic code, system radix-minus-one complement, function code, function radix-minus-one complements.Preamble code is also initial code, is made up of (different infrared codes is encoded and had certain difference) the low level of width to be the high level of 3ms and width be 3ms, is used for indicating the beginning of remote control code pulse signal.
Systematic code is also identification code, and it is used to refer to the kind of telechirics, to distinguish other telechirics, prevents the misoperation of each telechirics.Function code is also order code, it represent corresponding controlling functions, and receiver can complete various feature operation according to the numerical value of function code.System radix-minus-one complement and function radix-minus-one complement are the radix-minus-one complement of systematic code and function code respectively, and adding of radix-minus-one complement whether produces mistake to proofread data in transmitting procedure at receiving end.Sometimes in order to simplify, system radix-minus-one complement and function radix-minus-one complement are all omitted, grind auspicious code and just eliminate system radix-minus-one complement and function radix-minus-one complement, and we are called customer number systematic code, function code is called numeric data code.
For same equipment, function code is all fixing, so when we send infrared code, the function code that will send, numeric data code convert command pulse coded signal to by the remote control mode coding rule of specifying, and are then modulated on the carrier wave of 38KHz by command pulse coded signal.Our telepilot supports that polytype remote control mode is launched, just need to change according to the remote control mode type in the computer main board 1 serial data frame received in this stage of conversion instruction pulse code signal, specified type is changed by appointment remote control mode coding rule.
Preferably, described instruction encoding unit 21 comprises house dog, and this house dog has exceptional reset function:
When telepilot runs into deadlock situation, whole system automatically resets, and increases the reliability of system.Realized by the built-in WatchDog Timer 22 (WDT, Watch Dog Timer) of SC51P0304, count greatly to WatchDog Timer 22 1 when program starts initialization, after program brings into operation, house dog starts to count down.If program normal operation, CPU sends instruction and allows watchdog reset after a while, restarts to count down.If house dog reduces to 0 just think that program does not normally work, forced system resets.
Its specific works flow process is see Figure 12, and this workflow comprises the following steps:
S1, initialization system, comprise initialization processor 2 (such as MCU), counter (T0), house dog (WDT), I/O device.
S2, startup timer produce 38KHZ carrier wave (i.e. " modulation signal "), start house dog simultaneously.
The data of S3, preparation reception computer main board 1.
S4, judge whether WDT overflows, and if so, goes to step S5, if not, go to step S1.
S5, judge whether WDT receives data connection request, if so, goes to step S6, if not, go to step S3.
S6, judge that whether described request is legal, if so, go to step S7, if not, go to step S3.
S7, MCU generate command pulse coded signal (i.e. " instruction encoding signal ").
S8, described command pulse coded signal to be modulated on the carrier wave of 38KHZ.
S9, judge modulate after volume signal whether be sent, if so, go to step S3, if not, go to S8.
The utility model also provides a kind of remote control thereof of telechiric device, and this remote control thereof adopts the telechiric device of above-mentioned any embodiment, and it comprises the following steps:
S1, computer main board 1 provide polytype remote control mode, and wherein, the polytype correspondence of described remote control mode is provided with multiple key assignments;
S2, processor 2 drive peripheral circuit 3 to send infrared signal according to the type of described remote control mode and key assignments;
S3, by regulating the gooseneck 31 of described peripheral circuit 3, make the infrared transmitter 32 of described peripheral circuit 3 in infrared signal described in multiple angular emission.
Wherein, step S2 comprises following sub-step:
S21, provide instruction encoding signal according to described remote control mode;
S22, produce periodic pulse signal, preferably, produce periodic pulse signal by timer 22 or carrier wave oscillating circuit 25;
S23, by described instruction encoding signal madulation on described pulse signal to generate modulation signal;
S24, described peripheral circuit 3 is driven to send infrared signal according to described modulation signal.
Wherein, for the realizing circuit of carrier wave oscillating circuit 25, the structural representation of the carrier wave oscillating circuit 25 that a kind of preferred embodiment provides for the utility model see Figure 13, Figure 13, described carrier wave oscillating circuit 25 comprises:
Crystal oscillator 251 (i.e. Y1);
First electric capacity 252 (i.e. C1), it is electrically connected at one end of described crystal oscillator 251;
Second electric capacity 253 (i.e. C2), it is electrically connected at the other end of described crystal oscillator 251;
Logical and not gate 254 (i.e. U1A), it is electrically connected at one end of described crystal oscillator 251 and described first electric capacity 252;
First resistance 255 (i.e. R2), it is electrically connected at one end of described crystal oscillator 251, described first electric capacity 252 and described logical and not gate 254;
Second resistance (i.e. R3) 256, it is electrically connected at the other end of described crystal oscillator 251, described second electric capacity 253, described first resistance 255 and described logical and not gate 254.
In this embodiment, crystal oscillator Y1, electric capacity C1, C2, U1A, R2, R3 form 38KHz carrier oscillation circuit, and wherein U1A adopts MC14011 (i.e. logical and not gate).In addition, U1B, to the oscillator signal negate of 38KHz, isolates the signal disturbing of front stage simultaneously.P11 belongs to single-chip microcomputer P1 mouth for single-chip microcomputer to the data output after the process of controll plant control signal, and data and 38KHz signal and P3.0 end data logical OR not gate export, the modulation of settling signal.
Its advantage is, because of software simulating, to have circuit board component few, economical and practical advantage, therefore optimization software scheme, but this hardware plan is also in our scope of patent protection.
By reference to the accompanying drawings embodiment of the present utility model is described above; but the utility model is not limited to above-mentioned embodiment; above-mentioned embodiment is only schematic; instead of it is restrictive; those of ordinary skill in the art is under enlightenment of the present utility model; do not departing under the ambit that the utility model aim and claim protect, also can make a lot of form, these all belong within protection of the present utility model.