Signal wire PWM function identification method

文档序号:473516 发布日期:2021-12-31 浏览:7次 中文

阅读说明:本技术 信号线pwm功能识别方法 (Signal wire PWM function identification method ) 是由 赵立业 陈方 于东旭 于 2021-09-01 设计创作,主要内容包括:本发明公开了信号线PWM功能识别方法,在整车端设有MCU控制端及PWM信号输出开关;在车灯灯具端也设有MCU控制端及分压电阻;整车的MCU控制端通过实体信号线向车灯灯具的MCU控制端发送PWM信号,整车的MCU控制端发出的PWM信号波形至车灯灯具,车灯灯具端通过将PWM信号进行分压后接入至车灯的MCU接收端,车灯灯具端根据计算得到的PWM信号占空比信息及提前与整车约定好的协议,对灯具进行相应的控制,本发明通过一根硬线信号的不同PWM占空比,实现多种指令的传递,使得整车与车灯之间接口较少;由于本发明基于传统高低电平指令传递,可节省硬线接口并且可精度高、操作便捷,对指令的传达更加精准和准确。(The invention discloses a signal line PWM function identification method.A whole vehicle end is provided with an MCU control end and a PWM signal output switch; the lamp end of the car lamp is also provided with an MCU control end and a divider resistor; the method comprises the following steps that an MCU control end of the whole vehicle sends a PWM signal to an MCU control end of a vehicle lamp through a physical signal line, the waveform of the PWM signal sent by the MCU control end of the whole vehicle is sent to the vehicle lamp, the vehicle lamp end is connected to an MCU receiving end of the vehicle lamp after voltage division is carried out on the PWM signal, and the vehicle lamp end correspondingly controls the lamp according to the calculated PWM signal duty ratio information and a protocol agreed with the whole vehicle in advance; because the invention is based on the traditional high-low level instruction transmission, the hard-wire interface can be saved, the precision is high, the operation is convenient and fast, and the instruction transmission is more accurate and accurate.)

1. A signal line PWM function identification method is characterized in that: the whole vehicle end is provided with an MCU control end and a PWM signal output switch; the lamp end of the car lamp is also provided with an MCU control end and a divider resistor; the MCU control end of the whole vehicle sends PWM signals to the MCU control end of the vehicle lamp through the entity signal line, and the specific steps are as follows:

q1, transmitting the PWM signal waveform sent by the MCU control end of the whole vehicle to the vehicle lamp, wherein the PWM signal controls the on-off of the PWM signal output switch of the whole vehicle end;

q2, connecting the lamp end of the vehicle lamp to the MCU receiving end of the vehicle lamp after dividing the voltage of the PWM signal, collecting the PWM signal, identifying the PWM signal after passing through a voltage dividing resistor, and obtaining the duty ratio information of the PWM signal through calculation;

q3: and the vehicle lamp end correspondingly controls the lamp according to the calculated PWM signal duty ratio information and a protocol agreed with the whole vehicle in advance.

2. The signal line PWM function recognition method according to claim 1, wherein: the waveform of the PWM signal sent by the MCU control end of the whole vehicle is that the PWM duty ratio is 80%, namely when the whole vehicle sends a signal with the PWM duty ratio of 80%, in the steps of Q2 and Q3, when the vehicle lamp receives the signal with the PWM duty ratio of 80%, the vehicle lamp correspondingly controls the daytime running lamp to be turned on.

Technical Field

The invention relates to the technical field of communication signals, in particular to a signal line PWM function identification method.

Background

With the development of the automobile industry, the automobile electronization in the market at present increasingly requires refinement.

In the prior art at present, there are many problems in communication between the whole vehicle and the vehicle lamp on the market at present, generally, when the whole vehicle cannot use CAN/LIN communication to issue a function instruction to the vehicle lamp for various reasons, the whole vehicle needs to issue an instruction in a hard-wire high-low level mode, but if the whole vehicle needs to issue various instructions to the vehicle lamp, a plurality of hard-wire signal wires are needed to be connected to the vehicle lamp, which results in great waste of resources.

Disclosure of Invention

Technical problem to be solved

Aiming at the defects of the prior art, the invention provides a signal wire PWM function identification method, which solves the problems provided by the background, a small number of hard wire signal wires are connected between a whole vehicle and a vehicle lamp, the whole vehicle sends digital signals with different duty ratios through the hard wire signal wires, then the vehicle lamp identifies the duty ratios, and finally the function issuing and receiving between the whole vehicle and the vehicle lamp are completed.

(II) technical scheme

In order to achieve the purpose, the invention is realized by the following technical scheme:

the signal line PWM function identification method comprises the steps that an MCU control end and a PWM signal output switch are arranged at the whole vehicle end; the lamp end of the car lamp is also provided with an MCU control end and a divider resistor; the MCU control end of the whole vehicle sends PWM signals to the MCU control end of the vehicle lamp through the entity signal line, and the specific steps are as follows:

q1, transmitting the PWM signal waveform sent by the MCU control end of the whole vehicle to the vehicle lamp, wherein the PWM signal controls the on-off of the PWM signal output switch of the whole vehicle end;

q2, connecting the lamp end of the vehicle lamp to the MCU receiving end of the vehicle lamp after dividing the voltage of the PWM signal, collecting the PWM signal, identifying the PWM signal after passing through a voltage dividing resistor, and obtaining the duty ratio information of the PWM signal through calculation;

q3: and the vehicle lamp end correspondingly controls the lamp according to the calculated PWM signal duty ratio information and a protocol agreed with the whole vehicle in advance.

In the above technical solution, the waveform of the PWM signal sent by the MCU control end of the entire vehicle is that, the PWM duty cycle is 80%, that is, when the entire vehicle is sending a signal with a PWM duty cycle of 80%, in the steps Q2 and Q3, the vehicle lamp is correspondingly controlled to turn on the daytime running light when receiving the signal with a PWM duty cycle of 80%.

(III) advantageous effects

The invention provides a signal line PWM function identification method, which has the following beneficial effects:

according to the invention, the transmission of various instructions is realized through different PWM duty ratios of one hard wire signal, so that the interfaces between the whole vehicle and the vehicle lamp are fewer; because the invention is based on the traditional high-low level instruction transmission, the hard-wire interface can be greatly saved; but also has high precision, convenient operation and more accurate and accurate instruction transmission.

Drawings

FIG. 1 is a schematic diagram of a hardware structure of a signal line PWM function identification method according to the present invention;

fig. 2 is a schematic diagram of a signal with a PWM duty of 80% according to the method for identifying a PWM function of a signal line of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Referring to fig. 1-2, an embodiment of the present invention provides a technical solution:

a signal line PWM function identification method is characterized in that as shown in figure 1, an MCU control end and a PWM signal output switch are arranged at a finished automobile end; the lamp end of the car lamp is also provided with an MCU control end and a divider resistor; the MCU control end of whole car passes through the entity signal line and sends the PWM signal to the MCU control end of car light lamps and lanterns, the during operation:

1. the whole vehicle end and the lamp end negotiate the content of the PWM signal protocol in advance: when the whole vehicle/lamp sends/receives a signal with the PWM duty ratio of 80%, the lamp correspondingly controls the daytime running lamp to be turned on;

2. the MCU in the finished automobile end outputs a PWM signal with a duty ratio of 80%, and the PWM signal controls the on-off of the Q1 switch, so that the PWM signal with the duty ratio of 80% emitted by the finished automobile is generated;

3. after receiving the PWM signal, the lamp terminal converts the PWM signal into a voltage signal that can be recognized by the MCU through voltage division by the resistors R1 and R2, as shown in fig. 2, at this time, the MCU acquires a high level time t1 equals to 80ms, a low level time t2 equals to 20ms,

the received PWM duty cycle calculated from this is t1/t1+ t 2-80/100-80%;

4. according to the protocol defined by the whole vehicle in advance, when the duty ratio of the received PWM signal is 80%, the daytime running lamp is lightened, and the lightening control of the daytime running lamp is realized through the internal control of the lamp.

Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

5页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种自支撑碳基电容器靶及其制备方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!