A kind of non-contact debugging interface and embedded system
Technical field
The utility model is related to electricity, optical field, specially a kind of non-contact debugging interface and embedded system.
Background technology
Most of modern electronic equipment with certain function is made up of flush type circuit system, complicated from function
Smart mobile phone is controlled to simple LED switch, from the extensive micro energy lose equipment applied to Internet of Things to applied to complex calculation
High-performance equipment.In these electronic equipments, there have one or more control processor to be various general or special to carry out
Data processing and control.
In the design of flush type circuit system, it will usually by the debugging interface of one or more control processors with certain
Form connects out, and then debugs, in production or maintenance process, download program to control processor, update, instruct it is defeated
Enter, Debugging message printing, the function such as log read.Most basic debugging interface, usually universal asynchronous communication interface(UART).
Due to this debugging interface often can direct access control processor, with very high control authority.Therefore exist
When equipment delivers user as final product form, it can be protected or be hidden by certain structure, electrical design.Prevent user from existing
In actual use, due to maloperation or the illegal operation of malice, cause equipment operation irregularity or attacked and cracked.
Common debugging interface protection or hidden method, typically there is following several:By debugging interface in test point form
Retain on a printed circuit;Debugging interface is placed on device interior, only by opening equipment shell or dismounting part;
The circuit form that debugging interface is switched by similar multiselect one is multiplexed on other functional interfaces for being connected to device external;Will
Debugging interface by a kind of interfacing device of special construction outside, domestic consumer can not have any actual knowledge of interface function determine
Justice.
But such scheme is also all deposited has certain security, complexity, not convenient property and reliable in actual applications
The problems such as property.
In the way of printed circuit board test point form or internal debugging interface, for equipment in actual moving process
Need to be debugged and safeguarded, very big operation inconvenience can be brought.Generally require shell or the part ability by detaching equipment
It can connect.
It is multiplexed on other External Functionality Interfaces, later stage O&M commissioning staff can be solved and do not needing the feelings of device for disassembling
Under condition, access debugging is carried out to equipment.But the situation of this multiplexing, there is the following limitation:Since it is desired that multiplexing is existing outer
Portion's interface, its electric property needs are close with debugging interface, and the cost of switching otherwise can be significantly greatly increased and may influence normal
Interface function;If the equipment of same manufacturer has Multiple Type, and the external interface of every kind of model is not quite similar, can significantly
The complexity of increase debugging interface design is, it is necessary to which the actual conditions for every kind of equipment select most suitable interface to design one kind
Multiplexing scheme, the management difficulty for also increasing considerably later stage O&M commissioning staff.
And a special external interface is designed, substantially it is also that debugging interface is directly exposed to device external, there is one
Fixed potential safety hazard.And for many physical devices, how increased interface is also required to additional space and location layout,
Also larger cost can be increased.
In addition, the debugging interface of the above is all to need O&M debugging or developer that debugging interface is physically contacted
, there is damage in connection.
Utility model content
The purpose of this utility model is:A kind of non-contact debugging interface is provided, embedded system is can apply to, to solve
One or more of technical problem certainly of the prior art.
Realizing the technical scheme of above-mentioned purpose is:A kind of non-contact debugging interface, including a light emitting source, a debugging control
Circuit and a light sensor.The light emitting source is used to produce optical signal, and the light emitting source is connected to the Debug control circuitry,
The Debug control circuitry controls the opening and closing of light emitting source;The light sensor is used to detect optical signal;The light
The output of sensor is connected to the input of the demodulation control circuit.
In an embodiment of the present utility model, the Debug control circuitry includes an oscillating circuit and an analog switch,
The analog switch controls the opening and closing of oscillating circuit.
In an embodiment of the present utility model, the light sensor includes visible ray photodiode, visible ray light
One kind in quick triode, infrared photodiode, infrared phototriode.
In an embodiment of the present utility model, the demodulation controls circuit for a detecting circuit, including a diode, one
Electric capacity and a buffer.
In an embodiment of the present utility model, the light emitting source includes at least one in LED light, light emitting diode
Kind.
Another object of the present utility model is:A kind of embedded system is provided, with contactless in the first purpose
Debugging interface.
Realizing the technical scheme of above-mentioned purpose is:A kind of embedded system, including a debugging end and an equipment end;It is described to adjust
Trying end and the equipment end includes non-contact debugging interface;The debugging end and the equipment end pass through non-contact debugging
Interface is connected;Wherein, the light sensor at the debugging end is used for the optical signal for sensing the light emitting source of the equipment end;It is described to set
The light sensor at standby end is used for the optical signal for sensing the light emitting source at the debugging end.
In an embodiment of the present utility model, the debugging end includes a debugging control device, wherein, the debugging control
Circuit is connected to the data-out pin of the debugging UART interface of the debugging control device;The Debug control circuitry is connected to institute
State the data output pins of the debugging UART interface of debugging control device.
In an embodiment of the present utility model, the equipment end includes a control processor, wherein, the demodulation control
Circuit is connected to the data output pins of the debugging UART interface of the control processor;The Debug control circuitry is connected to institute
State the data output pins of the debugging UART interface of control processor.
The utility model has the advantages that:Non-contact debugging interface of the present utility model and the insertion with the debugging interface
Formula system, debugging interface uses cordless, and onsite application is convenient, and reliability is high, and interface probability of damage is low, effectively reduction
The spoilage of debugging interface;It is debugging interface good concealment, safe, use common power indicator lamp and shell hole
Complete, domestic consumer is difficult to find and discovers the presence of debugging interface;Cost is relatively low, it is not necessary to using the interface of specific customization,
Design is simple, easy to use.
Brief description of the drawings
The utility model is further explained with reference to the accompanying drawings and examples.
Fig. 1 is the equipment end construction module schematic diagram of the utility model embodiment;
Fig. 2 is the first Debug control circuitry construction module schematic diagram of the utility model embodiment;
Fig. 3 is the first demodulation control circuit structure module diagram of the utility model embodiment;
Fig. 4 is the debugging end structure module diagram of the utility model embodiment;
Fig. 5 is the second Debug control circuitry construction module schematic diagram of the utility model embodiment;
Fig. 6 is the second demodulation control circuit structure module diagram of the utility model embodiment;
Fig. 7 is the embedded system attachment structure schematic diagram of the utility model embodiment.
Identified in figure as follows:
1 equipment end;11 first light emitting sources;
12 first Debug control circuitries;13 first light sensors;
14 first demodulation control circuits;121 first oscillating circuits;
122 first analog switches;141 first diodes;
142 first electric capacity;143 first buffers;
2 debugging ends;21 second light emitting sources;
22 second Debug control circuitries;23 second light sensors;
24 second demodulation control circuits;221 second oscillating circuits;
222 second analog switches;241 second diodes;
242 second electric capacity;243 second buffers.
Embodiment
The explanation of following examples is the specific reality implemented to illustrate the utility model can be used to reference to additional schema
Apply example.The direction term that the utility model is previously mentioned, such as " on ", " under ", "front", "rear", "left", "right", " top ", " bottom "
Deng being only the direction with reference to annexed drawings.Therefore, the direction term used is to illustrate and understand the utility model, rather than
To limit the utility model.
Embodiment
As shown in fig. 7, a kind of embedded system, including an equipment end 1 and a debugging end 2.Debug end 2 and equipment end 1 is equal
Including non-contact debugging interface;The debugging end 2 and the equipment end 1 are connected by non-contact debugging interface.
Specifically, as shown in figure 1, the non-contact debugging interface of the equipment end 1 includes one first light emitting source 11,1 the
One Debug control circuitry 12, one first light sensor 13, the one first demodulation control control processor of circuit 14 and one.Its
In, the first light emitting source 11, for producing optical signal;In the present embodiment, the first light emitting source 11 can be that embedded device is used as finger
The normal bright power indication LED shown, or a independently-controlled light emitting diode(LED).
As shown in Fig. 2 the first light emitting source 11 is connected to the first Debug control circuitry 12, the first Debug control circuitry 12 is controlled
The opening and closing of light emitting source.First Debug control circuitry 12 includes one first oscillating circuit 121 and one first analog switch
122, the first analog switch 122 controls the opening and closing of the first oscillating circuit 121.First Debug control circuitry 12 is connected to control
The data output pins of the debugging UART interface of processor processed.
First light sensor 13 is used for the optical signal for detecting the light emitting source at debugging end 2.In the present embodiment, the first light
Sensor 13 can be general visible photodiode or can constitute light phototriode or infrared by photosensitive two
Pole pipe or infrared phototriode.The output of first light sensor 13 is connected to the input that the first demodulation controls circuit 14.
In order that the first light sensor 13 is not directly exposed to outside equipment, gap, housing aperture or face can be installed in
After backboard, it is difficult to be found by domestic consumer so as to stash.If using infrared optical sensor, without the concern for equipment sheet
Interference of the body light emitting source to the first light sensor 13, otherwise needing its position of increase consideration to try one's best will not be by the first light emitting source 11
Interference.
First demodulation control circuit 14 is a detecting circuit, and the first demodulation control circuit 14 is connected to the control processor
Debugging UART interface data output pins.In the present embodiment, first demodulation control circuit 14 include the first diode 141,
First electric capacity 142 and the first buffer 143.Specific connection, as shown in Figure 3.
As shown in figure 4, likewise, the non-contact debugging interface at the debugging end 2 includes one second light emitting source 21,1 the
Two Debug control circuitries 22, one second light sensor 23, the one second demodulation control debugging control device of circuit 24 and one.Its
In, the second light emitting source 21, for producing optical signal;In the present embodiment, the second light emitting source 21 can be that embedded device is used as finger
The normal bright power indication LED shown, or a independently-controlled light emitting diode(LED).
As shown in figure 5, the second light emitting source 21 is connected to the second Debug control circuitry 22, the second Debug control circuitry 22 is controlled
The opening and closing of light emitting source.Second Debug control circuitry 22 includes one second oscillating circuit 221 and one second analog switch
222, the second analog switch 222 controls the opening and closing of the second oscillating circuit 221.Second Debug control circuitry 22 is connected to control
The data output pins of the debugging UART interface of processor processed.
Second light sensor 23 is used for the optical signal for detecting the light emitting source at debugging end 2.In the present embodiment, the second light
Sensor 23 can be general visible photodiode or can constitute light phototriode or infrared by photosensitive two
Pole pipe or infrared phototriode.The output of second light sensor 23 is connected to the input that the second demodulation controls circuit 24.
In order that the second light sensor 23 is not directly exposed to outside equipment, gap, housing aperture or face can be installed in
After backboard, it is difficult to be found by domestic consumer so as to stash.If using infrared optical sensor, without the concern for equipment sheet
Interference of the body light emitting source to the second light sensor 23, otherwise needing its position of increase consideration to try one's best will not be by the second light emitting source 21
Interference.
Second demodulation control circuit 24 is a detecting circuit, and the second demodulation control circuit 24 is connected to the control processor
Debugging UART interface data output pins.In the present embodiment, second demodulation control circuit 24 include the second diode 241,
Second electric capacity 242 and the second buffer 243.Specific connection, as shown in Figure 6.
Wherein, the second light sensor 23 is used for the optical signal for sensing the first light emitting source 11;First light sensor 13 is used
In the optical signal for sensing the second light emitting source 21.
First light sensor 13 of second light emitting source 21 close to equipment end 1 at end 2 will be debugged, by the first of equipment end 1
Second light sensor 23 of the light emitting source 11 close to debugging end 2.
The control processor of embedded system debugs the data output pins of UART interface, needs to export debugging letter no
Number when, generally remain high level.The first analog switch 122 can be now closed, makes the output of the first oscillator uncontrollable
First light emitting source 11 of equipment end 1, now the normal luminous Chang Liang of the first light emitting source 11.
When having tune-up data output, the data output pins of UART interface can be changed into the level of height change.When
During the low level of output, now, the first analog switch 122 is opened, and the first oscillator can control the first light emitting source 11 to carry out soon
Speed flash is sparkled.The working frequency of first oscillator is adjusted according to the communication speed of UART interface, generally can be transmission baud
More than 10 times of rate, can typically exceed 10KHz.If the baud rate of transmission, can be straight with data out pin more than 10K
Connect the first light emitting source 11 of control.Due to controlling the switching frequency of the first light emitting source 11 very high, and the data of transmission also will not be total
It is low level, therefore people's naked eyes can not observe directly the brightness change of the first light emitting source 11, so that domestic consumer is not understanding
The first light emitting source 11 is known in transmission tune-up data.When output signal is high level, then the flicker of the first light emitting source 11 is closed.
The ASK debugging of similar communication in principle, i.e., control light emitting source after ASK debugging has been carried out to Debugging message.
, will after the optical signal that the second light emitting source 21 that first light sensor 13 of equipment end 1 receives debugging end 2 is sent
Optical signal is converted into electric signal, and the first demodulator circuit by equipment end 1 is demodulated, and converting the signal into control processor can
With the low and high level signal of the UART interface of identification.
For debugging end 2, its operation principle for being sent to the Debugging message of embedded system is also identical.
Preferred embodiment of the present utility model is these are only, it is all in this practicality not to limit the utility model
Any modifications, equivalent substitutions and improvements made within new spirit and principle etc., should be included in guarantor of the present utility model
Within the scope of shield.