Infrared receiving circuit and filling device

文档序号:195416 发布日期:2021-11-02 浏览:26次 中文

阅读说明:本技术 一种红外接收电路及加注装置 (Infrared receiving circuit and filling device ) 是由 何冠军 喻坚 苏洪松 卢建国 于 2021-08-24 设计创作,主要内容包括:本发明创造提供了一种红外接收电路,由数据选择模块以及数据选择模块连接的通讯模块、时钟生成模块和多个信号转换模块构成。该电路通过微处理器进行多路数据的选择,可实现多角度红外接收、自检、任一路红外接收通道检测及双向通信功能,具有较高的实用价值。(The invention provides an infrared receiving circuit which is composed of a data selection module, a communication module, a clock generation module and a plurality of signal conversion modules, wherein the communication module, the clock generation module and the plurality of signal conversion modules are connected with the data selection module. The circuit selects multi-path data through the microprocessor, can realize multi-angle infrared receiving, self-checking, any-path infrared receiving channel detection and two-way communication functions, and has higher practical value.)

1. An infrared receiving circuit, characterized by: the device comprises a data selection module, a signal conversion module and a communication module, wherein the signal conversion module and the communication module are connected with the data selection module;

the data selection module comprises a plurality of paths of data receiving interfaces and m paths of data sending interfaces, wherein m is an integer greater than or equal to zero;

the number of the signal conversion modules is multiple, and the multiple signal conversion modules are connected with the data selection module through the multiple data receiving interfaces and the m data sending interfaces;

each signal conversion module comprises an IrDA (infrared data association) transceiving submodule and an IrDA coding and decoding submodule which are connected, and the IrDA coding and decoding submodule is connected with the data selection module through a data receiving or sending interface;

the data selection module is in communication connection with the communication module, and the communication module is connected with the upper computer through a bus.

2. The infrared receiving circuit according to claim 1, characterized in that: the device also comprises a power supply module for supplying power to the data selection module, the signal conversion module and the communication module.

3. The infrared receiving circuit according to claim 2, characterized in that: the power supply module comprises a filter circuit and a voltage regulating circuit connected with the filter circuit;

the power supply module is also provided with an anti-reverse protection circuit and an overcurrent protection circuit.

4. The infrared receiving circuit according to claim 1, characterized in that: the device also comprises a clock generation module, wherein the clock generation module is connected with the IrDA coding and decoding submodule.

5. The utility model provides a filling device, includes filling device body, its characterized in that: the filling device body is provided with an infrared receiving circuit of any one of claims 1 to 4;

the filling device comprises a hydrogenation gun.

6. The filling device of claim 5, wherein: the number of the signal conversion modules is three, and the IrDA transceiver modules of the three signal conversion modules are circumferentially arranged around the filling device body at equal intervals.

Technical Field

The invention belongs to the technical field of filling device communication, and particularly relates to an infrared receiving circuit and a filling device.

Background

In order to ensure the safety of the hydrogenation process of the hydrogen energy automobile, the hydrogenation gun needs to receive infrared signals sent by the automobile in real time while hydrogenating, convert the infrared signals into electric signals and transmit the electric signals to the hydrogenation station through an RS485 bus. The hydrogenation station adjusts the hydrogen sending state in real time according to the data such as the temperature, the pressure, the instruction and the like obtained by analysis, thereby smoothly finishing the hydrogenation process.

Because the angle of the hydrogenation gun is not fixed when the hydrogenation gun is inserted into a hydrogenation port of a hydrogen energy automobile, the infrared receiving circuit needs to adapt to multi-angle receiving. The infrared receiving circuit of the existing hydrogenation gun mostly adopts a direct parallel connection mode of infrared photodiodes without processors, namely, a plurality of infrared photodiodes are firstly connected in parallel to receive infrared signals at multiple angles, then devices such as triodes and operational amplifiers are adopted to carry out signal conditioning, UART signals are obtained through an IrDA decoding chip, and finally the UART signals are converted into RS485 bus signals through an RS485 bus transceiver to be sent out. Although the infrared receiving circuit has the advantages of simple circuit and low cost, and meets the infrared communication requirement in the hydrogenation process to a certain extent, the following problems exist:

first, the self-checking function cannot be supported. Because the infrared receiving circuit has no processor, the infrared receiving circuit cannot support the self-checking function, and all circuit and electrical connection faults can be discovered only when a hydrogenation gun is inserted into a hydrogenation port of a hydrogen energy source automobile and a hydrogenation process is started.

Secondly, the testability of the front-end device is poor. Because the infrared photodiodes are in a parallel connection mode, a single infrared receiving channel, namely the fault of a single infrared photodiode, cannot be quickly and accurately detected before leaving a factory.

And thirdly, the bidirectional communication function cannot be supported. The infrared photodiode has only one-way transmission function from infrared light signal to electric signal, so that it has no hardware condition for two-way communication. The two-way communication function can only be supported by replacing hardware when needed subsequently.

Disclosure of Invention

In view of the above, the present invention is directed to an infrared receiving circuit and a filling device.

In order to achieve the purpose, the technical scheme of the invention is realized as follows:

in a first aspect, the invention provides an infrared receiving circuit, which comprises a data selection module, and a signal conversion module and a communication module which are connected with the data selection module;

the data selection module comprises a plurality of paths of data receiving interfaces and m paths of data sending interfaces, wherein m is an integer greater than or equal to zero;

the number of the signal conversion modules is multiple, and the multiple signal conversion modules are connected with the data selection module through the multiple data receiving interfaces and the m data sending interfaces;

each signal conversion module comprises an IrDA (infrared data association) transceiving submodule and an IrDA coding and decoding submodule which are connected, and the IrDA coding and decoding submodule is connected with the data selection module through a data receiving or sending interface;

the data selection module is in communication connection with the communication module, and the communication module is connected with the upper computer through a bus.

Furthermore, the device also comprises a power supply module for supplying power to the data selection module, the signal conversion module and the communication module.

Further, the power supply module comprises a filter circuit and a voltage regulating circuit connected with the filter circuit;

the power supply module is also provided with an anti-reverse protection circuit and an overcurrent protection circuit.

Furthermore, the device also comprises a clock generation module, wherein the clock generation module is connected with the IrDA coding and decoding submodule.

On the other hand, the invention creatively provides a filling device, which comprises a filling device body, wherein the infrared receiving circuit of the first aspect is arranged on the filling device body;

the filling device comprises a hydrogenation gun.

Furthermore, the number of the signal conversion modules is three, and the IrDA transceiver modules of the three signal conversion modules are circumferentially arranged around the filling device body at equal intervals.

Compared with the prior art, the infrared receiving circuit has the following advantages:

(1) when the infrared receiving circuit is applied to a hydrogenation gun, multi-angle infrared receiving can be realized based on a plurality of signal conversion modules, namely, infrared signals from a hydrogen energy source automobile are received from multiple angles, and are converted into bus signals to be sent to a hydrogenation station.

(2) When the infrared receiving circuit is applied to the hydrogenation gun, self-detection can be realized and a self-detection result is sent, namely, the data selection module is supported to carry out self-detection on the running state of the module in the circuit and the self-detection result is sent to the hydrogenation station through a bus signal.

(3) The infrared receiving circuit can realize the detection of any infrared receiving channel, namely, the detection of any specified infrared receiving channel is supported.

(4) The hydrogenation gun using the infrared receiving circuit can realize two-way communication, namely, the infrared signal from the hydrogen energy automobile is converted into a bus signal to be sent to the hydrogenation station, the bus signal from the hydrogenation station is converted into an infrared signal to be sent to the hydrogen energy automobile, and half-duplex communication between the hydrogen energy automobile and the hydrogenation station is realized.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and, together with the description, serve to explain the invention without limitation. In the drawings:

fig. 1 is a schematic block diagram of an infrared receiving circuit according to an embodiment of the present invention;

FIG. 2 is a diagram of a distribution structure of IrDA transceiver sub-modules of a hydrogenation gun according to an embodiment of the present invention;

FIG. 3 is a circuit diagram of a data selection module according to an embodiment of the present invention;

FIG. 4 is a circuit diagram of a clock generation module according to an embodiment of the present invention;

fig. 5 is a circuit diagram of an RS485 transceiver module according to an embodiment of the present invention;

fig. 6 is a circuit diagram of an IrDA codec sub-module according to an embodiment of the present invention.

Detailed Description

It should be noted that the embodiments and features of the embodiments of the present invention may be combined with each other without conflict.

In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like are used in the orientation or positional relationship indicated in the drawings, which are merely for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced device or element must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be construed as limiting the invention. Furthermore, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," etc. may explicitly or implicitly include one or more of that feature. In the description of the invention, the meaning of "a plurality" is two or more unless otherwise specified.

In the description of the invention, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted", "connected" and "connected" are to be construed broadly, e.g. as being fixed or detachable or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the creation of the present invention can be understood by those of ordinary skill in the art through specific situations.

The invention will be described in detail with reference to the following embodiments with reference to the attached drawings.

The first embodiment is as follows:

the embodiment provides an infrared receiving circuit, as shown in fig. 1, which includes a data selection module, and a signal conversion module and a communication module connected to the data selection module;

the data selection module comprises a plurality of paths of data receiving interfaces and m paths of data sending interfaces, wherein m is an integer greater than or equal to zero;

the number of the signal conversion modules is multiple, and the multiple signal conversion modules are connected with the data selection module through the multiple data receiving interfaces and the m data sending interfaces;

when the size of m is zero, the signal conversion modules only have a data sending function, and when the signal conversion modules are applied to a hydrogenation gun, the hydrogenation gun can have the most basic data sending function; when the size of m is an integer larger than zero, at least one of the signal conversion modules has a bidirectional communication function, so that the functions of data transmission and data reception can be realized, and a user can customize the signal conversion modules according to requirements and select the number of the signal conversion modules with the bidirectional communication function.

The data selection module can support self-detection of the running state of a part of modules in the circuit and send the self-detection result to an upper computer through a bus signal; the data selection module can also be used for realizing the detection of any infrared receiving channel, namely supporting the detection of any specified infrared receiving channel; as for how to realize the self-check of each module and the detection of any infrared receiving channel by using the data selection module, the method can be realized by using the prior art, is similar to the power-on self-check, the periodic self-check and the like of the prior intelligent equipment, does not relate to the improvement of programs, and related technologies are not repeated here.

Each signal conversion module comprises an IrDA (infrared data association) transceiving submodule and an IrDA coding and decoding submodule which are connected, and the IrDA coding and decoding submodule is connected with the data selection module through a data receiving or sending interface; the IrDA transceiver submodule is used for converting the electric signal from the IrDA transceiver submodule into a UART bus signal and also converting the UART bus signal from the data selection module into the electric signal required by the IrDA transceiver submodule, and the IrDA transceiver submodule can be realized by but not limited to MCP2122 and TIR1000 chips.

The signal conversion module adopts but is not limited to an IrDA-UART conversion module;

the data selection module is in communication connection with the communication module, the communication module is connected with an upper computer through a bus, and the upper computer can be a hydrogen filling station. The communication module adopts, but is not limited to, an RS485 transceiver module. Taking the RS485 transceiver module as an example, as shown in fig. 5, the RS485 transceiver module includes an RS485 transceiver chip SIT65HVD08 and an impedance matching circuit; the impedance matching circuit is used for realizing impedance matching with an RS485 circuit of an upper computer and ensuring the quality of communication signals and is realized by an impedance matching resistor; since the SIT65HVD08 chip has a certain transient suppression capability to meet the usage requirement, the present embodiment does not need an additional transient suppression circuit.

It should be noted that the communication module can be a one-way communication module or a two-way communication module, and can be flexibly customized and selected, for example, the communication module is applied to a hydrogenation gun, when a client only needs to collect relevant information of an automobile and send the information to a hydrogenation station, and the two-way communication between the automobile and the hydrogenation station is not needed, the signal conversion module only needs to be connected with a data receiving interface of the data selection module, the infrared receiving circuit only needs to have a one-way communication function, and at the moment, the communication module only needs to have a one-way communication function of sending data to the hydrogenation station through a bus, and thus, the client requirements can be met; when a customer needs to utilize the hydrogenation gun to realize the two-way communication between the automobile and the hydrogenation station, m is more than or equal to 1, at least 1 channel of signal conversion module has the two-way communication function, and the communication module also has the two-way communication function to realize the two-way communication function of the hydrogenation gun.

The data selection module adopts but not limited to STC microprocessor as a main control chip and is combined with a peripheral circuit to form, the STC microprocessor supports 4 paths of UART receiving and sending, receives UART data from 3 IrDA-UART conversion modules and selects data to send to the RS485 receiving and sending module according to preset rules, and how the data selection module selectively receives and sends the data can be realized by utilizing the prior art (current program) and can also be used for receiving and sending by applying the specially designed rule of the application, the specially designed rule of the application can realize the high-efficiency and accurate receiving and sending of the multi-path data, and the specially designed rule of the application specifically comprises the following steps: after the data selection module is powered on or receives 8-bit data d1 sent by a certain IrDA-UART conversion module for the first time after the data is sent to the RS485 transceiver module, the data selection module waits for a certain time Tspan, combines all UART data received within the time Tspan with d1 into a group of data, selects 1 8-bit data from the group of data according to the selection principle of selecting the data with the largest occurrence frequency to be output, for example, two data of d2 and d3 are received within the time Tspan after d1 is received, combines the data of d1, d2 and d3 into a group of data to be selected, outputs the value of d1 if d1 is d2 or d1 is d3, or outputs the value of d2 if d2 is d 3. When no two data are the same, one data can be selected to be output according to the pre-assigned priority; the time Tspan is more than or equal to (Tdmax-Tdmin), wherein Tdmax is the maximum delay from the receiving of the infrared data by all the IrDA-UART conversion modules to the output of the UART, and Tdmin is the minimum delay from the receiving of the infrared data by all the IrDA-UART conversion modules to the output of the UART.

The infrared receiving circuit also comprises a power supply module for supplying power to the data selection module, the signal conversion module and the communication module.

The power supply module comprises a filter circuit and a voltage regulating circuit connected with the filter circuit, wherein the filter circuit can be realized by using an inductor or a capacitor, and the voltage regulating circuit can be realized by using DC-DC or LDO; the power supply module filters the power supply from the hydrogen filling station and converts the power supply into a power supply of 2.9V-5.5V to supply power to each module.

The power supply module is also provided with an anti-reverse protection circuit and an overcurrent protection circuit, wherein the overcurrent protection circuit can be realized by using a recovery fuse connected in series on the circuit, and the anti-reverse protection circuit can be realized by using a diode or an MOS (metal oxide semiconductor) tube connected in series on the circuit.

The device also comprises a clock generation module, wherein the clock generation module is connected with the IrDA coding and decoding submodule. The clock generation module generates a clock signal with specified frequency, the clock signal is used by an IrDA coding and decoding submodule in the IrDA-UART conversion module, when the infrared receiving circuit is applied to a hydrogenation gun, the clock frequency is 16 times of the infrared transmitting baud rate of a hydrogen energy source automobile, the infrared transmitting baud rate of the hydrogen energy source automobile is 38400bps, and the clock frequency generated by the clock generation module is 38400 × 16-440610 Hz; when the microprocessor of the data selection module supports the output of the clock signal with the corresponding frequency, the function of the clock generation module may be combined into the data selection module, as shown in fig. 3, 4, and 6, the clock generation module and the data selection module are combined, and in the combined case, the P3.5 pin of the clock generation module, i.e., the STC microprocessor, is connected to the 16XCLK pin of the MCP2122 chip. In this embodiment, the STC microprocessor selected by the data selection module supports 614400Hz frequency output, so that the functions of the clock generation module can be combined into the data selection module. It should be noted that, in consideration of the fact that the clock output has an error and the requirement on the precision of the clock input frequency of the IrDA codec submodule is low, the clock frequency output to the IrDA codec submodule is not 614400Hz which is absolutely accurate, and the clock frequency can be changed within a certain frequency range.

On the other hand, the invention creatively provides a filling device, which comprises a filling device body, wherein the filling device body is provided with the infrared receiving circuit in the embodiment;

the filling device comprises a hydrogenation gun or other filling devices applied to gas and liquid filling, and is mainly applied to filling of dangerous gas and liquid, and when such media are filled, information interaction between an object to be filled and a filling station is generally required to be realized by the aid of the filling devices.

The number of the signal conversion modules is at least three, and the number of the signal conversion modules is preferably three, as shown in fig. 2, the IrDA transceiver modules of the three signal conversion modules are circumferentially arranged around the filling device body at equal intervals, specifically, the IrDA transceiver modules can be uniformly arranged in the annular region of the head of the hydrogenation gun, and the central included angle α of the adjacent IrDA transceiver modules is 360/3 ° or 120 °.

Among the three signal conversion modules, the three signal conversion modules can be customized to have only a data sending function, namely the three signal conversion modules are not connected with the data sending module of the data selection module, and the hydrogenation gun is a basic version and only has a data sending function; when the number of the signal conversion modules with the bidirectional communication is small, the signal conversion module of the filling device can be in butt joint with an infrared transmitting and receiving device on the automobile better through rotating the filling device when the filling device is used, so that information interaction is facilitated; of course, all the signal conversion modules may be designed to be in a half-duplex communication state, and have both the transmitting and receiving functions.

The system supports receiving infrared signals from a hydrogen energy source automobile from multiple angles, converting the infrared signals into RS485 bus signals and sending the signals to a hydrogen station;

when the hydrogenation gun is applied to the infrared receiving circuit in the embodiment, the operation state of a part of modules in the circuit is supported to be self-detected, and the self-detection result is sent to the hydrogenation station through a bus signal; the data selection module can also be used for realizing the detection of any infrared receiving channel, namely supporting the detection of any specified infrared receiving channel; how to use the data selection module to realize self-detection of each module and detection of any infrared receiving channel can be realized by using the prior art, which is similar to the power-on detection of the existing intelligent equipment, and related technologies are not repeated here.

When the infrared receiving circuit is applied to the hydrogen gun, bidirectional communication can be realized, namely, the infrared receiving circuit supports that infrared signals from a hydrogen energy automobile are converted into bus signals to be sent to a hydrogen station, and also supports that the bus signals from the hydrogen station are converted into infrared signals to be sent to the hydrogen energy automobile, so that half-duplex communication between the hydrogen energy automobile and the hydrogen station is realized.

The above description is only for the purpose of illustrating the preferred embodiments of the present invention and should not be taken as limiting the invention, so that any modifications, equivalents, improvements and the like, which are within the spirit and principle of the present invention, should be included in the scope of the present invention.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种面向6G的可见光通信系统和方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!