Position lamp control method, position lamp control device, terminal and storage medium

文档序号:787786 发布日期:2021-04-09 浏览:17次 中文

阅读说明:本技术 一种位置灯控制方法、装置、终端及储存介质 (Position lamp control method, position lamp control device, terminal and storage medium ) 是由 杜雨恒 马良 李溪 刘行 高茹 方丽琴 陈倍彬 柳甲东 于 2020-12-25 设计创作,主要内容包括:本发明公开了一种位置灯控制方法、装置、终端及储存介质,属于汽车电子电气控制系统技术领域,包括:获取位置信号灯开启信号状态;通过所述位置信号灯开启信号状态确定位置灯端口唤醒组合开关MCU策略。本发明的一种位置灯控制方法,采用对位置灯档位信号单独处理技术手段,克服了睡眠前位置灯状态为点亮,则位置灯会持续点亮无法关闭的问题,进而达到了提升客户舒适度、降低能耗的效果。(The invention discloses a position lamp control method, a position lamp control device, a position lamp control terminal and a storage medium, belonging to the technical field of automobile electronic and electrical control systems and comprising the steps of obtaining the starting signal state of a position signal lamp; and determining a position light port awakening combination switch MCU strategy according to the starting signal state of the position signal light. According to the position lamp control method, the technical means of independently processing the position lamp gear signals is adopted, the problem that the position lamp can be continuously turned on and cannot be turned off when the position lamp is turned on before sleeping is solved, and the effects of improving the comfort level of customers and reducing energy consumption are achieved.)

1. A position light control method, characterized in that the method comprises:

acquiring the starting signal state of a position signal lamp;

and determining a position light port awakening combination switch MCU strategy according to the starting signal state of the position signal light.

2. A position light control method according to claim 1, wherein said acquiring the state of the position signal light on signal comprises:

acquiring the state variable of the position lamp switch signal in the combined switch,

and determining the starting signal state of the position signal lamp through the position lamp switch signal state variable in the combined switch.

3. The method for controlling the position lamp according to claim 1, wherein the determining the position lamp port wake-up combination switch MCU strategy through the position signal lamp turn-on signal state comprises:

when the position light signal starting signal is effective, configuring a position light port wake-up combined switch MCU strategy to wake-up on a falling edge;

when the position light signal starting signal is not effective, the configuration position light port awakening combination switch MCU strategy is rising edge awakening.

4. A position light control apparatus, the apparatus comprising:

the acquisition unit is used for acquiring the starting signal state of the position signal lamp;

and the execution unit is used for determining a position light port awakening combination switch MCU strategy according to the starting signal state of the position signal light.

5. The position light control device as claimed in claim 4, wherein the obtaining unit is configured to:

acquiring the state variable of the position lamp switch signal in the combined switch,

and determining the starting signal state of the position signal lamp through the position lamp switch signal state variable in the combined switch.

6. The position light control device as claimed in claim 4, wherein the execution unit is configured to:

when the position light signal starting signal is effective, the position light port is configured to wake up the combination switch MCU strategy to be wake up at a falling edge;

and when the position light signal starting signal is not effective, the configuration position light port awakening combination switch MCU strategy is awakening along a rising edge.

7. A terminal, comprising:

one or more processors;

a memory for storing the one or more processor-executable instructions;

wherein the one or more processors are configured to:

is carried out to realize the position light control method as claimed in any one of claims 1 to 3.

8. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to execute to implement the position light control method according to any one of claims 1 to 3.

9. An application program product, characterized in that when the application program product is running at a terminal, the terminal is caused to execute to implement the position light control method according to any one of claims 1 to 3.

Technical Field

The invention discloses a position lamp control method, a position lamp control device, a position lamp control terminal and a storage medium, and belongs to the technical field of automobile electronic and electrical control systems.

Background

With the development of automobile science and technology, a combination switch is gradually developing towards comfort and operation convenience as an important automobile electrical component. The demand for combination switches has also increased. The position lamp control function is related to safety, and effective control under various working conditions of the combined switch is necessary.

In the combined switch MCU wake-up strategy, the falling edge or rising edge wake-up is generally adopted, but this structure or method has the following disadvantages: if safety is considered, the MCU can be effectively awakened by the position lamp gear opening signal, and the MCU cannot be awakened by the position lamp gear closing signal. If the position lamp is in the state of being lightened before sleeping, the position lamp can be continuously lightened and cannot be turned off, which causes troubles to users and causes the waste of the energy of the whole vehicle.

Disclosure of Invention

The invention aims to solve the problems that the position lamp can be continuously turned on and can not be turned off when the position lamp is turned on before the automobile sleeps, which causes trouble to users and causes the waste of the energy of the whole automobile.

The invention aims to solve the problems and is realized by the following technical scheme:

according to a first aspect of embodiments of the present invention, there is provided a position light control method, the method including:

acquiring the starting signal state of a position signal lamp;

and determining a position light port awakening combination switch MCU strategy according to the starting signal state of the position signal light.

Preferably, the acquiring the state of the turn-on signal of the position signal lamp includes:

acquiring the state variable of the position lamp switch signal in the combined switch,

and determining the starting signal state of the position signal lamp through the position lamp switch signal state variable in the combined switch.

Preferably, the determining the position light port wakeup combination switch MCU strategy through the position signal light turn-on signal state includes:

when the position light signal starting signal is effective, configuring a position light port wake-up combined switch MCU strategy to wake-up on a falling edge;

when the position light signal starting signal is not effective, the configuration position light port awakening combination switch MCU strategy is rising edge awakening.

According to a second aspect of embodiments of the present invention, there is provided a position light control apparatus, the apparatus comprising:

the acquisition unit is used for acquiring the starting signal state of the position signal lamp;

and the execution unit is used for determining a position light port awakening combination switch MCU strategy according to the starting signal state of the position signal light.

Preferably, the acquiring unit is configured to:

acquiring the state variable of the position lamp switch signal in the combined switch,

and determining the starting signal state of the position signal lamp through the position lamp switch signal state variable in the combined switch.

Preferably, the execution unit is configured to:

when the position light signal starting signal is effective, the position light port is configured to wake up the combination switch MCU strategy to be wake up at a falling edge;

and when the position light signal starting signal is not effective, the configuration position light port awakening combination switch MCU strategy is awakening along a rising edge.

According to a third aspect of the embodiments of the present invention, there is provided a terminal, including:

one or more processors;

a memory for storing the one or more processor-executable instructions;

wherein the one or more processors are configured to:

the method of the first aspect of the embodiments of the present invention is performed.

According to a fourth aspect of embodiments of the present invention, there is provided a non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of a terminal, enable the terminal to perform the method of the first aspect of embodiments of the present invention.

According to a fifth aspect of embodiments of the present invention, there is provided an application program product, which, when running on a terminal, causes the terminal to perform the method of the first aspect of embodiments of the present invention.

The technical scheme provided by the embodiment of the invention can have the following beneficial effects:

according to the position lamp control method, the technical means of independently processing the position lamp gear signals is adopted, the problem that the position lamp can be continuously turned on and cannot be turned off when the position lamp is turned on before sleeping is solved, and the effects of improving the comfort level of customers and reducing energy consumption are achieved.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.

FIG. 1 is a flow diagram illustrating a position light control method according to an exemplary embodiment;

FIG. 2 is a flow diagram illustrating a position light control method according to an exemplary embodiment;

FIG. 3 is a block diagram of a position light control apparatus according to an exemplary embodiment;

fig. 4 is a block diagram of a position light control apparatus according to an exemplary embodiment.

Detailed Description

Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.

The embodiment of the invention provides a position lamp control method, which is realized by a terminal, wherein the terminal can be a smart phone, a desktop computer or a notebook computer and the like. The terminal at least comprises a CPU, a voice acquisition device and the like.

Fig. 1 is a flow chart illustrating a location light control method according to an exemplary embodiment, as shown in fig. 1, the method being used in a terminal, the method comprising the steps of:

step 101, acquiring the starting signal state of a position signal lamp;

and 102, determining a position light port awakening combination switch MCU strategy according to the state of the position signal light starting signal.

Preferably, the acquiring the state of the turn-on signal of the position signal lamp includes:

acquiring a position lamp switch signal state variable in the combined switch;

and determining the starting signal state of the position signal lamp through the position lamp switch signal state variable in the combined switch.

Preferably, the determining the position light port wakeup combination switch MCU strategy through the position signal light turn-on signal state includes:

when the position light signal starting signal is effective, configuring a position light port wake-up combined switch MCU strategy to wake-up on a falling edge;

when the position light signal starting signal is not effective, the configuration position light port awakening combination switch MCU strategy is rising edge awakening.

Fig. 2 is a flow chart illustrating a position light control method according to an exemplary embodiment, as shown in fig. 2, the method being used in a terminal, the method comprising the steps of:

step 201, acquiring a position light switch signal state variable in the combination switch.

Step 202, determining the state of the turn-on signal of the position signal lamp through the state variable of the position lamp switch signal in the combination switch.

And 203, determining a position light port awakening combination switch MCU strategy according to the state of the position signal light starting signal.

Initializing and configuring a signal port of a position lamp of the combination switch: if the position light signal starting signal collected by the current MCU is effective, configuring a position light port wake-up combination switch MCU strategy as falling edge wake-up; and if the position light signal starting signal collected by the current MCU is not effective, configuring the position light port to wake up the combination switch MCU strategy as rising edge wake-up.

The combination switch position lamp switch is operated, the combination switch MCU can be awakened no matter the combination switch position lamp switch is turned on or turned off, and the LIN network can be actively awakened after the combination switch MCU is awakened. At the moment, the vehicle body controller realizes corresponding control of switching on or switching off the position lamp according to the signal input of the combined switch.

Finally, under the condition of sleeping of the whole vehicle, the operation action of the position lamp is realized according to the driver, and the operation intention of the driver is realized.

According to the invention, a technical means of independently processing the position signal of the position lamp is adopted, so that the problem that the position lamp can be continuously turned on and can not be turned off when the position lamp is turned on before sleeping is solved, and the effects of improving the comfort level of a client and reducing the energy consumption are further achieved.

In an exemplary embodiment, there is also provided a position light control apparatus, as shown in fig. 3, including:

an obtaining unit 310, configured to obtain a state of a turn-on signal of a position signal lamp;

and the execution unit 320 is configured to determine, according to the state of the position signal lamp turn-on signal, that the position lamp port wakes up the MCU strategy.

Preferably, the obtaining unit 310 is configured to:

acquiring the state variable of the position lamp switch signal in the combined switch,

and determining the starting signal state of the position signal lamp through the position lamp switch signal state variable in the combined switch.

Preferably, the execution unit 320 is configured to:

when the position light signal starting signal is effective, the position light port is configured to wake up the combination switch MCU strategy to be wake up at a falling edge;

and when the position light signal starting signal is not effective, the configuration position light port awakening combination switch MCU strategy is awakening along a rising edge.

According to the invention, a technical means of independently processing the position signal of the position lamp is adopted, so that the problem that the position lamp can be continuously turned on and can not be turned off when the position lamp is turned on before sleeping is solved, and the effects of improving the comfort level of a client and reducing the energy consumption are further achieved.

In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as a memory 402 comprising instructions, as shown in fig. 4, executable by a processor 401 of the apparatus to perform the above-described position light control method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

In an exemplary embodiment, an application product is also provided that includes one or more instructions executable by the processor 401 of the apparatus to perform the above-described position light control method.

While embodiments of the invention have been disclosed above, it is not intended to be limited to the uses set forth in the specification and examples. It can be applied to all kinds of fields suitable for the present invention. Additional modifications will readily occur to those skilled in the art. It is therefore intended that the invention not be limited to the exact details and illustrations described and illustrated herein, but fall within the scope of the appended claims and equivalents thereof.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于光电检测的智慧黑板补光装置及方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!