Vehicle curtain control method and device and vehicle-mounted equipment

文档序号:1727771 发布日期:2019-12-20 浏览:27次 中文

阅读说明:本技术 一种车辆窗帘的控制方法、装置及车载设备 (Vehicle curtain control method and device and vehicle-mounted equipment ) 是由 刘均 程驰 詹伟 刘国柱 裴慧 庄文龙 于 2019-07-31 设计创作,主要内容包括:本申请公开了一种车辆窗帘的控制方法、装置及车载设备,其中,该车辆窗帘的控制方法,应用于车载设备,所述方法包括:获取车辆的车型数据;获取车辆的当前窗帘数据;获取车辆所处环境的当前环境数据;判断所述当前窗帘数据是否与所述当前环境数据匹配;若不匹配,则根据所述车型数据和所述当前窗帘数据生成调整窗帘的调整指令;根据所述调整指令调整所述窗帘。本申请可以根据获取的车辆所处的环境数据和窗帘数据,并根据环境数据和窗帘数据获取调整车辆的窗帘,以实现车辆窗帘的自动调节。(The application discloses a control method and a control device of a vehicle curtain and vehicle-mounted equipment, wherein the control method of the vehicle curtain is applied to the vehicle-mounted equipment, and the method comprises the following steps: acquiring vehicle type data of a vehicle; acquiring current curtain data of a vehicle; acquiring current environment data of an environment where a vehicle is located; judging whether the current curtain data is matched with the current environment data; if not, generating an adjusting instruction for adjusting the curtain according to the vehicle type data and the current curtain data; and adjusting the curtain according to the adjusting instruction. The curtain adjusting method and device can adjust the curtain of the vehicle according to the acquired environment data and curtain data of the vehicle and the acquired environment data and curtain data, so that automatic adjustment of the curtain of the vehicle is achieved.)

1. A control method of a vehicle curtain is applied to vehicle-mounted equipment, and is characterized by comprising the following steps:

acquiring vehicle type data of a vehicle;

acquiring current curtain data of a vehicle;

acquiring current environment data of an environment where a vehicle is located;

judging whether the current curtain data is matched with the current environment data; if not, generating an adjusting instruction for adjusting the curtain according to the vehicle type data and the current curtain data;

and adjusting the curtain according to the adjusting instruction.

2. The method of claim 1, wherein said obtaining model data for a vehicle comprises:

sending a vehicle type data request to a traveling computer of the vehicle;

and obtaining vehicle type data of the vehicle, wherein the vehicle type data is data sent by the traveling computer in response to the vehicle type data request.

3. The method of claim 1, wherein the obtaining current shade data for the vehicle comprises:

sending a current curtain data request to a traveling computer of the vehicle;

and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the traveling computer in response to the current curtain data request.

4. The method of claim 3, wherein prior to said sending a current shade data request to a host computer of the vehicle, the method further comprises:

establishing communication connection with a running computer of the vehicle;

and sending an activation instruction to the traveling crane computer to activate the traveling crane computer.

5. The method of claim 1, wherein the obtaining current shade data for the vehicle comprises:

sending a current shade data request to a shade controller of the vehicle;

and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the curtain controller in response to the current curtain data request.

6. The method of claim 5, wherein prior to said sending a current shade data request to a shade controller of the vehicle, the method further comprises:

establishing a communication connection with a curtain controller of the vehicle;

and sending an activation instruction to the curtain controller to activate the curtain controller.

7. The method of claim 1, wherein the vehicle is provided with a photoelectric sensor, and the acquiring current environmental data of an environment in which the vehicle is located comprises:

acquiring sensing data of the photoelectric sensor;

and acquiring the current environment data of the environment where the vehicle is located according to the sensing data.

8. The method of claim 1, wherein generating the adjustment instructions to adjust the shade based on the vehicle type data and the current shade data comprises:

determining curtain information to be adjusted according to the current curtain data;

and generating an adjusting instruction corresponding to the curtain according to the curtain information to be adjusted and the vehicle type data.

9. A control device for a window blind for a vehicle, comprising:

the first acquisition module is used for acquiring vehicle type data of a vehicle;

the second acquisition module is used for acquiring the current curtain data of the vehicle;

the third acquisition module is used for acquiring the current environment data of the environment where the vehicle is located;

a judging module for judging whether the current curtain data is matched with the current environment data

The instruction generating module is used for generating an adjusting instruction for adjusting the curtain according to the vehicle type data and the current curtain data if the vehicle type data and the current curtain data are not matched; and

and the adjusting module is used for adjusting the curtain according to the adjusting instruction.

10. An in-vehicle apparatus characterized by comprising:

a memory for storing a computer-executable control program for a vehicle window shade; and

a processor for calling a control program of a vehicle window shade stored in the memory to perform the control method of the vehicle window shade according to any one of claims 1 to 8.

Technical Field

The application relates to the technical field of intelligent curtain control, in particular to a control method and device for a vehicle curtain and vehicle-mounted equipment.

Background

With the development of economy in recent years, vehicles become important components in life of people, and at present, some automobiles are equipped with electronic curtain functions, so that when sunlight is large or light is strong, passengers can shield the sunlight through the curtains to prevent the situations of overheating in the automobile, too strong light and the like caused by the light.

At present, curtains arranged on vehicles are basically troublesome to adjust manually, so that how to realize the sunshade adjustment of different vehicle curtains according to the change of external environment is a technical problem to be solved urgently by technical personnel in the field.

Disclosure of Invention

The application mainly aims to provide a vehicle curtain control method and device and vehicle-mounted equipment.

In order to achieve the above object, the present application provides a control method for a curtain of a vehicle, applied to a vehicle-mounted device, the method comprising:

acquiring vehicle type data of a vehicle;

acquiring current curtain data of a vehicle;

acquiring current environment data of an environment where a vehicle is located;

judging whether the current curtain data is matched with the current environment data; if not, generating an adjusting instruction for adjusting the curtain according to the vehicle type data and the current curtain data;

and adjusting the curtain according to the adjusting instruction.

Preferably, the acquiring vehicle model data of the vehicle includes:

sending a vehicle type data request to a traveling computer of the vehicle;

and obtaining vehicle type data of the vehicle, wherein the vehicle type data is data sent by the traveling computer in response to the vehicle type data request.

Preferably, the acquiring current curtain data of the vehicle includes:

sending a current curtain data request to a traveling computer of the vehicle;

and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the traveling computer in response to the current curtain data request.

Preferably, before the sending of the current shade data request to the vehicle's driving computer, the method further comprises:

establishing communication connection with a running computer of the vehicle;

and sending an activation instruction to the traveling crane computer to activate the traveling crane computer.

Preferably, the acquiring current curtain data of the vehicle includes:

sending a current shade data request to a shade controller of the vehicle;

and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the curtain controller in response to the current curtain data request.

Preferably, before the sending of the current shade data request to the shade controller of the vehicle, the method further comprises:

establishing a communication connection with a curtain controller of the vehicle;

and sending an activation instruction to the curtain controller to activate the curtain controller.

Preferably, the vehicle is provided with a photoelectric sensor, and the acquiring current environment data of the environment where the vehicle is located comprises:

acquiring sensing data of the photoelectric sensor;

and acquiring the current environment data of the environment where the vehicle is located according to the sensing data.

Preferably, the generating an adjustment instruction for adjusting the curtain according to the vehicle model data and the current curtain data includes:

determining curtain information to be adjusted according to the current curtain data;

and generating an adjusting instruction corresponding to the curtain according to the curtain information to be adjusted and the vehicle type data.

The present application also provides a control device of a vehicle curtain, the control device of the vehicle curtain including:

the first acquisition module is used for acquiring vehicle type data of a vehicle;

the second acquisition module is used for acquiring the current curtain data of the vehicle;

the third acquisition module is used for acquiring the current environment data of the environment where the vehicle is located;

a judging module for judging whether the current curtain data is matched with the current environment data

The instruction generating module is used for generating an adjusting instruction for adjusting the curtain according to the vehicle type data and the current curtain data if the vehicle type data and the current curtain data are not matched; and

and the adjusting module is used for adjusting the curtain according to the adjusting instruction.

Preferably, the first obtaining module is further configured to:

sending a vehicle type data request to a traveling computer of the vehicle;

and obtaining vehicle type data of the vehicle, wherein the vehicle type data is data sent by the traveling computer in response to the vehicle type data request.

Preferably, the second obtaining module is further configured to:

sending a current curtain data request to a traveling computer of the vehicle;

and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the traveling computer in response to the current curtain data request.

Preferably, the second obtaining module is further configured to:

establishing communication connection with a running computer of the vehicle;

sending an activation instruction to the traveling crane computer to activate the traveling crane computer;

sending a current curtain data request to a traveling computer of the vehicle;

and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the traveling computer in response to the current curtain data request.

Preferably, the second obtaining module is further configured to:

sending a current shade data request to a shade controller of the vehicle;

and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the curtain controller in response to the current curtain data request.

Preferably, the second obtaining module is further configured to:

establishing a communication connection with a curtain controller of the vehicle;

sending an activation instruction to the curtain controller to activate the curtain controller;

sending a current shade data request to a shade controller of the vehicle;

and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the curtain controller in response to the current curtain data request.

Preferably, the vehicle is provided with a photoelectric sensor, and the third acquisition module is further configured to:

acquiring sensing data of the photoelectric sensor;

and acquiring the current environment data of the environment where the vehicle is located according to the sensing data.

Preferably, the current curtain data includes first curtain data and second curtain data, the current environment data includes first environment data corresponding to the first curtain data and second environment data corresponding to the second curtain data, and the determining module is further configured to:

when the current curtain data is first curtain data, judging whether the current environment data is first environment data;

if the current environment data is first environment data, judging that the current curtain data is matched with the current environment data;

if the current environment data is second environment data, judging that the current curtain data is not matched with the current environment data;

when the current curtain data is second curtain data, judging whether the current environment data is second environment data;

if the current environment data is second environment data, judging that the current curtain data is matched with the current environment data;

and if the current environment data is first environment data, judging that the current curtain data is not matched with the current environment data.

Preferably, the instruction generation module is further configured to:

determining curtain information to be adjusted according to the current curtain data;

and generating an adjusting instruction corresponding to the curtain according to the curtain information to be adjusted and the vehicle type data.

The present application also provides an in-vehicle apparatus, including:

a memory for storing a computer-executable control program for a vehicle window shade; and

and the processor is used for calling the control program of the vehicle curtain stored in the memory so as to execute the control method of the vehicle curtain.

Compared with the prior art, the application provides a control method and device of a vehicle curtain and vehicle-mounted equipment, wherein the control method of the vehicle curtain is applied to the vehicle-mounted equipment, and the method comprises the following steps: acquiring vehicle type data of a vehicle; acquiring current curtain data of a vehicle; acquiring current environment data of an environment where a vehicle is located; judging whether the current curtain data is matched with the current environment data; if not, generating an adjusting instruction for adjusting the curtain according to the vehicle type data and the current curtain data; and adjusting the curtain according to the adjusting instruction, thereby realizing the automatic adjustment of the curtain of the vehicle.

Drawings

FIG. 1 is a flow chart illustrating steps of a method for controlling a vehicle window covering according to the present disclosure;

FIG. 2 is a schematic diagram illustrating an application scenario of the control method for a vehicle curtain provided by the present application;

FIG. 3 is a flowchart of an embodiment of step S10 in FIG. 1;

FIG. 4A is a flowchart illustrating steps of one embodiment of step S11 in FIG. 1;

FIG. 4B is a flowchart illustrating steps of one embodiment of step S11 in FIG. 1;

FIG. 4C is a flowchart illustrating steps of one embodiment of step S11 in FIG. 1;

FIG. 4D is a flowchart illustrating steps of one embodiment of step S11 in FIG. 1;

FIG. 5 is a flowchart illustrating steps of one embodiment of step S12 in FIG. 1;

FIG. 6 is a flowchart illustrating steps of one embodiment of step S14 of FIG. 1;

FIG. 7 is a block diagram of a control device for a vehicle window covering according to an embodiment of the present disclosure;

fig. 8 is a block diagram of an in-vehicle device according to another embodiment of the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

It should be noted that the descriptions in this application referring to "first", "second", etc. are 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" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.

The application provides a control method and a control device of a vehicle curtain and vehicle-mounted equipment, wherein the control method of the vehicle curtain is applied to the vehicle-mounted equipment, and the method comprises the following steps: acquiring vehicle type data of a vehicle; acquiring current curtain data of a vehicle; acquiring current environment data of an environment where a vehicle is located; judging whether the current curtain data is matched with the current environment data; if not, generating an adjusting instruction for adjusting the curtain according to the vehicle type data and the current curtain data; and adjusting the curtain according to the adjusting instruction, thereby realizing the automatic adjustment of the curtain of the vehicle.

Referring to fig. 1-2, fig. 1 is a control method of a vehicle curtain provided by the present application, where the control method of the vehicle curtain is applied to a vehicle-mounted device (not shown) disposed On a vehicle 10, and the vehicle-mounted device may be an OBD device, that is, an On boardd diagnostics device, and may also be a terminal device or a curtain controller disposed On the vehicle 10, which is not limited herein. In this embodiment, the on-board device will be described as an OBD device.

As shown in fig. 1, the control method of the vehicle curtain includes:

step S10: vehicle type data of a vehicle is acquired.

The model data is model data of the vehicle 10, which is different in model and corresponding to different model data.

Referring to fig. 3, in some embodiments, step S10 includes:

step S101: sending a vehicle type data request to a traveling computer of the vehicle;

step S102: and obtaining vehicle type data of the vehicle, wherein the vehicle type data is data sent by the traveling computer in response to the vehicle type data request.

The OBD device may be in communication connection with a vehicle computer of the vehicle 10 through an OBD interface on the vehicle 10, when vehicle type data of the vehicle 10 is needed, a user operates the OBD device to send a vehicle type data request to the vehicle computer arranged on the vehicle 10, and after the vehicle computer receives the vehicle type data request, the vehicle computer responds to the vehicle type data request to send the vehicle type data of the vehicle 10 to the OBD device, so that the OBD device knows the vehicle model of the vehicle 10.

Illustratively, the vehicle type data of the vehicle 10 may be obtained through the VIN code of the vehicle, and the user operates the OBD device to send a VIN code reading instruction to the vehicle computer, so that the vehicle computer arranged in the vehicle 10 returns VIN code information according to the VIN code reading instruction, so as to obtain the vehicle type information of the vehicle 10 through the VIN code information and the preset relationship, that is, the vehicle 10 may be the type a vehicle and the type B vehicle according to the preset relationship between the VIN code information and the vehicle type.

Since the vehicle-mounted diagnostic protocol of the vehicle 10 cannot be confirmed at the beginning, the VIN code reading command corresponding to each protocol is sent once in a preset sequence until the driving computer returns the VIN code information, where the vehicle-mounted diagnostic protocol may be a can (controller Area network) protocol, a kwp (keyboard protocol) protocol, an ISO9141 protocol, a pwm (Pulse Width modulation) protocol, or a vpw (variable Pulse Width modulated) protocol.

If the on-board diagnostic protocol of the vehicle 10 is the CAN protocol, the corresponding VIN code reading command is 0x0807df 0209020000000000. If the VIN code information returned by the driving computer in response to the VIN code reading instruction sent by the OBD device is WDD2210222a253260, the vehicle model is the ES350 of the speed (BENZ) from the VIN code information.

Step S11: current shade data of the vehicle is obtained.

As shown in fig. 2, a window 101 of the vehicle 10 is provided with a curtain that can be opened or closed to control external light to enter the interior of the vehicle 10, wherein the opening and closing of the curtain can be controlled by a curtain controller. The current shade data is used to characterize a current state of the shade, such as an open state or a closed state, when the shade disposed on the vehicle 10 is in the open state, external light may be irradiated into the vehicle 10 through the window, and when the shade on the vehicle 10 is in the closed state, external sunlight may be reduced from being irradiated into the vehicle 10.

Referring to fig. 4A, in some embodiments, step S11 includes:

step S111 a: sending a current curtain data request to a traveling computer of the vehicle;

step S112 a: and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the traveling computer in response to the current curtain data request.

For example, the current curtain data is stored in the traveling computer, the OBD device sends a reading command of the current state of the curtain of the window 101 set on the vehicle 10 to the traveling computer of the vehicle 10, that is, a current curtain data request, for example, 0x220401 is a command for reading the curtain state of the left front window, after receiving the reading command, the traveling computer returns the corresponding current curtain data to the OBD device through the OBD bus, if the current curtain data acquired by the OBD device is 0x62040101, the curtain is in an open state, and if the current curtain data is 0x62040102, the curtain is in a closed state.

Referring to fig. 4B, in some embodiments, step S11 includes:

step S111 b: establishing communication connection with a running computer of the vehicle;

step S112 b: sending an activation instruction to the traveling crane computer to activate the traveling crane computer;

step S113 b: sending a current curtain data request to a traveling computer of the vehicle;

step S114 b: and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the traveling computer in response to the current curtain data request.

Specifically, the establishing a communication connection with a driving computer of the vehicle includes: and setting communication parameters set by the OBD to enable the traveling computer to establish communication connection, wherein the communication parameters comprise any one or a combination of more of communication protocol type, communication pin information, communication frequency, information sending ID or information receiving ID.

After the OBD equipment establishes communication connection with the traveling computer, the OBD equipment sends an activation instruction to the traveling computer to activate the traveling computer.

After the traveling computer is activated, the OBD device sends a current curtain data request to the traveling computer, so that the traveling computer responds to the current curtain data request and sends the current curtain data to the OBD device.

Illustratively, communication parameters of the OBD device are set, such as setting the communication protocol type to be CAN type, the communication pins to be pin 6 and pin 14, the communication frequency to be 500K, the signal transmission ID to be 0xDE60, and the signal reception ID to be 0xDE 80.

After the OBD device and the traveling computer are in communication connection, an activation instruction, such as 0x1001, is sent to the traveling computer, and if the traveling computer receives the activation instruction and replies 0x5001, the traveling computer is activated successfully, and then the traveling computer can send corresponding current curtain data to the OBD device according to a current curtain data request of the OBD device after being activated.

Referring to fig. 4C, in some embodiments, step S11 includes:

step S111 c: sending a current shade data request to a shade controller of the vehicle;

step S112 c: and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the curtain controller in response to the current curtain data request.

For example, the current curtain data is stored in the curtain controller, the OBD device sends a reading command of the current state of the curtain of the window 101 set on the vehicle 10 to the curtain controller of the vehicle 10, that is, a current curtain data request, for example, 0x220401 is a command for reading the state of the curtain of the front left window, after receiving the reading command, the curtain controller returns the corresponding current curtain data to the OBD device through the OBD bus, if the current curtain data acquired by the OBD device is 0x62040101, the curtain is in an open state, and if the current curtain data is 0x62040102, the curtain is in a closed state.

In some embodiments, step S11 includes:

step S111 d: establishing a communication connection with a curtain controller of the vehicle;

step S112 d: sending an activation instruction to the curtain controller to activate the curtain controller;

step S113 d: sending a current shade data request to a shade controller of the vehicle;

step S114 d: and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the curtain controller in response to the current curtain data request.

Specifically, the establishing communication connection with the curtain controller of the vehicle comprises: and setting communication parameters set by the OBD to enable the curtain controller to establish communication connection, wherein the communication parameters comprise any one or more of communication protocol type, communication pin information, communication frequency, information sending ID or information receiving ID.

After the OBD device establishes communication connection with the curtain controller, the OBD device sends an activation instruction to the curtain controller to activate the curtain controller.

After the curtain controller is activated, the OBD device sends a current curtain data request to the curtain controller, so that the curtain controller responds to the current curtain data request and sends the current curtain data to the OBD device.

Illustratively, communication parameters of the OBD device are set, such as setting the communication protocol type to be CAN type, the communication pins to be pin 6 and pin 14, the communication frequency to be 500K, the signal transmission ID to be 0xDE60, and the signal reception ID to be 0xDE 80.

After the OBD device establishes a communication connection with the curtain controller, an activation instruction, for example, 0x1001, is sent to the curtain controller, and if the curtain controller receives the activation instruction and replies 0x5001, it indicates that the curtain controller has been successfully activated, and then the curtain controller may send corresponding current curtain data to the OBD device according to the current curtain data request of the OBD device after having been activated.

Step S12: current environmental data of an environment in which the vehicle is located is acquired.

The environmental data of the environment in which the vehicle 10 is located can be known in time by sensors provided on the vehicle.

Referring to fig. 5, in some embodiments, the vehicle is provided with a photoelectric sensor, and step S12 includes:

step S121: acquiring sensing data of the photoelectric sensor;

step S122: and acquiring the current environment data of the environment where the vehicle is located according to the sensing data.

Illustratively, a photoelectric sensor is mounted at a window of the vehicle 10, and the photoelectric sensor may be in communication connection with the OBD device through wired communication or wireless communication, wherein the wireless communication may be bluetooth, WiFi, or the like. The photoelectric sensor can detect illumination information of the environment where the vehicle 10 is located, such as light intensity, illuminance and radiation temperature, and generates corresponding sensing data according to the illumination information, and after the sensor data is sent to the OBD device, the OBD device can obtain the illumination information of the current environment according to the sensing data.

Step S13: and judging whether the current curtain data is matched with the current environment data.

Presetting the incidence relation between the current curtain data and the current environment data, acquiring the current curtain data or the current environment data, and correspondingly judging whether the current curtain data is matched with the current environment data or not by presetting the incidence relation between the current curtain data and the current environment data.

In some embodiments, the determining whether the current curtain data matches the current environment data includes:

when the current curtain data is first curtain data, judging whether the current environment data is first environment data;

if the current environment data is first environment data, judging that the current curtain data is matched with the current environment data;

if the current environment data is second environment data, judging that the current curtain data is not matched with the current environment data;

when the current curtain data is second curtain data, judging whether the current environment data is second environment data;

if the current environment data is second environment data, judging that the current curtain data is matched with the current environment data;

and if the current environment data is first environment data, judging that the current curtain data is not matched with the current environment data.

Illustratively, the environmental data is taken as the illumination intensity.

The environmental data corresponding to the current curtain state as the closed state is preset to indicate that the illumination intensity exceeds a preset value, such as 1000Lx, and the environmental data corresponding to the current curtain state as the open state is preset to indicate that the illumination intensity does not exceed the preset value.

If the fact that the current curtain data of the vehicle obtained by the vehicle is detected to be that the curtain is in an open state and the fact that the current environment data of the environment where the vehicle is located is obtained that the illumination intensity exceeds a preset value 1000Lx, it is judged that the current curtain data is not matched with the current environment data.

If the fact that the current curtain data of the vehicle obtained by the vehicle is in a closed state and the fact that the current environment data of the environment where the vehicle is located is obtained is that the illumination intensity exceeds a preset value 1000Lx, it is judged that the current curtain data is matched with the current environment data. Step S14: and if not, generating an adjusting instruction for adjusting the curtain according to the vehicle type data and the current curtain data.

And if the current curtain data is not matched with the current environment data, generating an adjusting instruction for adjusting the curtain according to the vehicle type data and the current curtain data so as to adjust the curtain according to the adjusting instruction.

Referring to fig. 6, in some embodiments, the generating a curtain adjustment instruction according to the vehicle type data and the current curtain data includes:

step S141: determining curtain information to be adjusted according to the current curtain data;

step S142: and generating an adjusting instruction corresponding to the curtain according to the curtain information to be adjusted and the vehicle type data.

The OBD device determines curtain information to be adjusted according to the current curtain data, and obtains vehicle diagnosis data of a corresponding vehicle type according to the vehicle type data, wherein the vehicle diagnosis information can be pre-stored in the OBD device or stored in a vehicle computer, and the vehicle diagnosis data comprises a curtain adjustment instruction.

For example, when it is detected that the window shades at the left window 101 of the vehicle 10 are in a closed state, and the window shades at the remaining windows 101 are in an open state, if the ambient light intensity of the vehicle 10 does not exceed the preset light intensity value, such as 1000Lx, by the detection. Then, the curtain currently required to be adjusted is determined as the curtain at the left window 101, that is, an adjustment instruction for adjusting the curtain at the left window 101 is generated according to the vehicle type data and the determined information of the curtain to be adjusted, so as to adjust the curtain at the left window 101 according to the adjustment instruction.

If the opening instruction of the curtain at the left window 101 of the type A is 0x2f0801, the curtain at the left window 101 can be controlled to be opened according to the adjustment instruction 0x2f0801, so that the automatic adjustment of the curtain according to the environment of the vehicle is realized.

In some embodiments, if the current curtain data matches the current environment data, the process ends.

Step S15: and adjusting the curtain according to the adjusting instruction.

And adjusting the corresponding curtain according to the adjusting instruction, wherein the adjusting instruction comprises curtain information to be adjusted, so that the curtain to be adjusted is found and adjusted according to the curtain information to be adjusted.

Referring to fig. 7, the present application also provides a control device 20 for a vehicle curtain, where the control device 20 for a vehicle curtain includes:

a first obtaining module 201, configured to obtain vehicle type data of a vehicle;

a second obtaining module 202, configured to obtain current curtain data of the vehicle;

the third obtaining module 203 is used for obtaining the current environment data of the environment where the vehicle is located;

a judging module 204, configured to judge whether the current curtain data matches the current environment data

The instruction generating module 205 is configured to generate an adjustment instruction for adjusting a curtain according to the vehicle type data and the current curtain data if the vehicle type data and the current curtain data are not matched; and

and the adjusting module 206 is used for adjusting the curtain according to the adjusting instruction.

In some embodiments, the first obtaining module 201 is further configured to:

sending a vehicle type data request to a traveling computer of the vehicle;

and obtaining vehicle type data of the vehicle, wherein the vehicle type data is data sent by the traveling computer in response to the vehicle type data request.

In some embodiments, the second obtaining module 202 is further configured to:

sending a current curtain data request to a traveling computer of the vehicle;

and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the traveling computer in response to the current curtain data request.

In some embodiments, the second obtaining module 202 is further configured to:

establishing communication connection with a running computer of the vehicle;

sending an activation instruction to the traveling crane computer to activate the traveling crane computer;

sending a current curtain data request to a traveling computer of the vehicle;

and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the traveling computer in response to the current curtain data request.

In some embodiments, the second obtaining module 202 is further configured to:

sending a current shade data request to a shade controller of the vehicle;

and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the curtain controller in response to the current curtain data request.

In some embodiments, the second obtaining module 202 is further configured to:

establishing a communication connection with a curtain controller of the vehicle;

sending an activation instruction to the curtain controller to activate the curtain controller;

sending a current shade data request to a shade controller of the vehicle;

and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the curtain controller in response to the current curtain data request.

In some embodiments, the vehicle is provided with a photoelectric sensor, and the third obtaining module 203 is further configured to:

acquiring sensing data of the photoelectric sensor;

and acquiring the current environment data of the environment where the vehicle is located according to the sensing data.

In some embodiments, the current curtain data includes first curtain data and second curtain data, the current environment data includes first environment data corresponding to the first curtain data and second environment data corresponding to the second curtain data, and the determining module 204 is further configured to:

when the current curtain data is first curtain data, judging whether the current environment data is first environment data;

if the current environment data is first environment data, judging that the current curtain data is matched with the current environment data;

if the current environment data is second environment data, judging that the current curtain data is not matched with the current environment data;

when the current curtain data is second curtain data, judging whether the current environment data is second environment data;

if the current environment data is second environment data, judging that the current curtain data is matched with the current environment data;

and if the current environment data is first environment data, judging that the current curtain data is not matched with the current environment data.

In some embodiments, the instruction generation module 205 is further configured to:

determining curtain information to be adjusted according to the current curtain data;

and generating an adjusting instruction corresponding to the curtain according to the curtain information to be adjusted and the vehicle type data.

Referring to fig. 8, the present application further provides an in-vehicle device 30, where the in-vehicle device 30 includes a memory 302 and a processor 301, and the memory 302 is electrically connected to the processor 301 through a bus 303.

The memory 302 includes at least one type of readable storage medium, which includes flash memory, hard disk, multi-media card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, and the like. The memory 302 may be an internal storage unit of the in-vehicle device 30 in some embodiments, such as a hard disk of the in-vehicle device 30. The memory 302 may be an external storage device of the in-vehicle device 30 in other embodiments, such as a plug-in hard disk provided on the in-vehicle device 30, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. The memory 302 may be used not only to store application software installed in the vehicle-mounted device and various types of data, such as codes of a computer-readable program, but also to temporarily store data that has been output or will be output, that is, the first memory may be used as a storage medium storing a computer-executable control program for a vehicle window shade.

Processor 301, which in some embodiments may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip, may invoke a control program stored in memory 302 for a vehicle window covering to implement the following steps:

acquiring vehicle type data of a vehicle;

acquiring current curtain data of a vehicle;

acquiring current environment data of an environment where a vehicle is located;

judging whether the current curtain data is matched with the current environment data or not

If not, generating an adjusting instruction for adjusting the curtain according to the vehicle type data and the current curtain data; and

and adjusting the curtain according to the adjusting instruction.

In some embodiments, the processor 301 is further configured to implement the following steps:

sending a vehicle type data request to a traveling computer of the vehicle;

and obtaining vehicle type data of the vehicle, wherein the vehicle type data is data sent by the traveling computer in response to the vehicle type data request.

In some embodiments, the processor 301 is further configured to implement the following steps:

sending a current curtain data request to a traveling computer of the vehicle;

and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the traveling computer in response to the current curtain data request.

In some embodiments, the processor 301 is further configured to implement the following steps:

establishing communication connection with a running computer of the vehicle;

sending an activation instruction to the traveling crane computer to activate the traveling crane computer;

sending a current curtain data request to a traveling computer of the vehicle;

and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the traveling computer in response to the current curtain data request.

In some embodiments, the processor 301 is further configured to implement the following steps:

sending a current shade data request to a shade controller of the vehicle;

and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the curtain controller in response to the current curtain data request.

In some embodiments, the processor 301 is further configured to implement the following steps:

establishing a communication connection with a curtain controller of the vehicle;

sending an activation instruction to the curtain controller to activate the curtain controller;

sending a current shade data request to a shade controller of the vehicle;

and acquiring current curtain data of the vehicle, wherein the current curtain data is data sent by the curtain controller in response to the current curtain data request.

In some embodiments, the vehicle is provided with a photoelectric sensor, and in some embodiments, the processor 301 is further configured to implement the following steps:

acquiring sensing data of the photoelectric sensor;

and acquiring the current environment data of the environment where the vehicle is located according to the sensing data.

In some embodiments, the current shade data includes first shade data and second shade data, and the current environment data includes first environment data corresponding to the first shade data and second environment data corresponding to the second shade data, and in some embodiments, the processor 301 is further configured to implement the following steps:

when the current curtain data is first curtain data, judging whether the current environment data is first environment data;

if the current environment data is first environment data, judging that the current curtain data is matched with the current environment data;

if the current environment data is second environment data, judging that the current curtain data is not matched with the current environment data;

when the current curtain data is second curtain data, judging whether the current environment data is second environment data;

if the current environment data is second environment data, judging that the current curtain data is matched with the current environment data;

and if the current environment data is first environment data, judging that the current curtain data is not matched with the current environment data.

In some embodiments, the processor 301 is further configured to implement the following steps:

determining curtain information to be adjusted according to the current curtain data;

and generating an adjusting instruction corresponding to the curtain according to the curtain information to be adjusted and the vehicle type data.

The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种自适应的汽车后遮阳挡

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类