Vehicle monitoring method, device and system and electronic equipment

文档序号:1636334 发布日期:2020-01-17 浏览:28次 中文

阅读说明:本技术 一种车辆监测方法、装置和系统及电子设备 (Vehicle monitoring method, device and system and electronic equipment ) 是由 刘均 程驰 詹伟 刘国柱 裴慧 庄文龙 于 2019-10-18 设计创作,主要内容包括:本申请提供一种车辆监测方法,包括:获取测距设备发送的车辆与周遭所有潜在碰撞物的实时距离信息;根据所有实时距离信息判断周遭所有潜在碰撞物中是否存在向车辆移动的移动潜在碰撞物;若存在移动潜在碰撞物,则将移动潜在碰撞物的实时距离和预设安全距离进行比较,得到比较结果,其中实时距离是实时距离信息中的数据;根据比较结果得到转向灯控制指令,并发送转向灯控制指令至车灯电子控制单元,以便车灯电子控制单元执行对应操作。本申请实现对周围行人或者车辆的预警,避免了在静止状态或者倒车状态下由于车辆剐蹭等造成的车辆损失。本申请同时还提供了一种车辆监测装置、一种电子设备和计算机可读存储介质,均具有上述有益效果。(The application provides a vehicle monitoring method, comprising: acquiring real-time distance information of all potential collision objects around the vehicle, which is sent by the distance measuring equipment; judging whether all the potential collision objects in the periphery have the potential moving collision objects moving towards the vehicle or not according to all the real-time distance information; if the mobile potential collision object exists, comparing the real-time distance of the mobile potential collision object with a preset safety distance to obtain a comparison result, wherein the real-time distance is data in the real-time distance information; and obtaining a steering lamp control instruction according to the comparison result, and sending the steering lamp control instruction to the vehicle lamp electronic control unit so that the vehicle lamp electronic control unit can execute corresponding operation. The early warning to surrounding pedestrians or vehicles is realized, and the vehicle loss caused by scraping and rubbing of vehicles and the like under the static state or the reversing state is avoided. The application also provides a vehicle monitoring device, an electronic device and a computer readable storage medium, which all have the beneficial effects.)

1. A vehicle monitoring method, comprising:

acquiring real-time distance information of all potential collision objects around the vehicle, which is sent by the distance measuring equipment;

judging whether a moving potential collision object moving to the vehicle exists in all the potential collision objects according to all the real-time distance information;

if the mobile potential collision object exists, comparing the real-time distance of the mobile potential collision object with a preset safety distance to obtain a comparison result, wherein the real-time distance is data in the real-time distance information;

and obtaining a steering lamp control instruction according to the comparison result, and sending the steering lamp control instruction to a vehicle lamp electronic control unit so that the vehicle lamp electronic control unit can execute corresponding operation.

2. The vehicle monitoring method according to claim 1, wherein the obtaining of the turn signal lamp control command according to the comparison result and sending the turn signal lamp control command to a lamp electronic control unit so that the lamp electronic control unit performs corresponding operations comprises:

if the real-time distance is smaller than the safe distance, determining the moving direction of the moving potential collision object;

determining first target turn light information according to the moving direction;

and sending a starting instruction to the vehicle lamp electronic control unit according to the first target steering lamp information so that the vehicle lamp electronic control unit can execute the starting operation of the first target steering lamp.

3. The vehicle monitoring method of claim 2, wherein said determining first target turn signal information based on the direction of movement comprises:

determining upper left turn light information and rear left turn light information when the moving direction is to move to the left side of the vehicle;

correspondingly, the sending a starting instruction to the vehicle lamp electronic control unit according to the first target turn signal information so that the vehicle lamp electronic control unit can execute the starting operation of the first target turn signal comprises:

and sending the starting instruction to the vehicle lamp electronic control unit according to the upper left steering lamp information and the rear left steering lamp information so that the vehicle lamp electronic control unit can start the upper left steering lamp and the rear left steering lamp.

4. The vehicle monitoring method according to claim 1, wherein the sending of a turn signal lamp control command to a lamp electronic control unit according to the comparison result so that the lamp electronic control unit performs corresponding operations comprises:

if the real-time distance is greater than the safe distance, determining a second target turn light corresponding to the moving potential collision object;

sending a switch state request of the second target steering lamp to the vehicle lamp electronic control unit;

and when the received switch state sent by the vehicle lamp electronic control unit is an on state, sending a closing instruction to the vehicle lamp electronic control unit so that the vehicle lamp electronic control unit can execute the closing operation of the second target steering lamp.

5. The vehicle monitoring method according to claim 1, wherein before acquiring the real-time distance information between the vehicle and all potential collisions in the surroundings, the method further comprises:

after detecting that the vehicle OBD interface is accessed, sending a VIN code reading instruction to a vehicle OBD module, so that the vehicle OBD module can obtain VIN code information according to the VIN code reading instruction;

reading the VIN code information fed back by the vehicle OBD module;

determining a vehicle type corresponding to the vehicle according to the VIN code information;

obtaining the diagnosis function information of the vehicle lamp electronic control unit corresponding to the vehicle type from a diagnosis protocol file;

establishing a communication link with the vehicle lamp electronic control unit by utilizing an OBD bus according to the diagnosis function information;

sending a system activation command to the vehicle lamp electronic control unit;

and receiving successful activation information fed back by the vehicle lamp electronic control unit.

6. The vehicle monitoring method of claim 1, wherein the ranging device is a plurality of ultrasonic sensors.

7. The vehicle monitoring method according to claim 1, further comprising:

the stop operation is read to stop the alert operation.

8. A vehicle monitoring device, comprising:

the real-time distance information acquisition module is used for acquiring real-time distance information of all potential collision objects around the vehicle, which is sent by the distance measuring equipment;

the judging module is used for judging whether a moving potential collision object moving to the vehicle exists in all the potential collision objects according to all the real-time distance information;

the comparison module is used for comparing the real-time distance of the mobile potential collision object with a preset safety distance if the mobile potential collision object exists, so as to obtain a comparison result, wherein the real-time distance is data in the real-time distance information;

and the steering lamp control instruction sending module is used for obtaining a steering lamp control instruction according to the comparison result and sending the steering lamp control instruction to the vehicle lamp electronic control unit so that the vehicle lamp electronic control unit can execute corresponding operation.

9. An electronic device, comprising:

a memory for storing a computer program;

a processor for implementing the steps of the vehicle monitoring method according to any one of claims 1 to 7 when executing the computer program.

10. A monitoring system, comprising:

the distance measuring equipment is used for acquiring real-time distance information of all potential collision objects around the vehicle;

the electronic equipment is used for acquiring the real-time distance information; judging whether a moving potential collision object moving to the vehicle exists in all the potential collision objects according to all the real-time distance information; if the mobile potential collision object exists, comparing the real-time distance of the mobile potential collision object with a preset safety distance to obtain a comparison result; and sending a steering lamp control command to the vehicle lamp electronic control unit according to the comparison result so that the vehicle lamp electronic control unit can execute corresponding operation.

Technical Field

The present disclosure relates to the field of vehicle technologies, and in particular, to a vehicle monitoring method, a vehicle monitoring device, an electronic device, and a monitoring system.

Background

When a vehicle is in a static state or a reversing state, a scratch may occur due to unnoticed vehicles beside the vehicle or pedestrians, bicycles and the like, so that the vehicle is lost, for example, when the vehicle runs past or reverses at night, the light is too dark, and the scratch is issued at a position where the vehicle is not clearly seen. The accident can be prevented only by taking care of nearby vehicles or pedestrians during driving and keeping the distance from the vehicles as far as possible, so that the problem of vehicle loss is easy to occur when the current vehicles are in a static state or a reversing state.

Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.

Disclosure of Invention

The application aims to provide a vehicle monitoring method, a vehicle monitoring device, a monitoring system and electronic equipment, which can improve the warning effect and avoid vehicle damage. The specific scheme is as follows:

in a first aspect, the present application discloses a vehicle monitoring method, comprising:

acquiring real-time distance information of all potential collision objects around the vehicle, which is sent by the distance measuring equipment;

judging whether a moving potential collision object moving to the vehicle exists in all the potential collision objects according to all the real-time distance information;

if the mobile potential collision object exists, comparing the real-time distance of the mobile potential collision object with a preset safety distance to obtain a comparison result, wherein the real-time distance is data in the real-time distance information;

and obtaining a steering lamp control instruction according to the comparison result, and sending the steering lamp control instruction to a vehicle lamp electronic control unit so that the vehicle lamp electronic control unit can execute corresponding operation.

Optionally, the obtaining a steering lamp control instruction according to the comparison result, and sending the steering lamp control instruction to a vehicle lamp electronic control unit, so that the vehicle lamp electronic control unit executes a corresponding operation, including:

if the real-time distance is smaller than the safe distance, determining the moving direction of the moving potential collision object;

determining first target turn light information according to the moving direction;

and sending a starting instruction to the vehicle lamp electronic control unit according to the first target steering lamp information so that the vehicle lamp electronic control unit can execute the starting operation of the first target steering lamp.

Optionally, the determining the first target turn signal information according to the moving direction includes:

determining upper left turn light information and rear left turn light information when the moving direction is to move to the left side of the vehicle;

correspondingly, the sending a starting instruction to the vehicle lamp electronic control unit according to the first target turn signal information so that the vehicle lamp electronic control unit can execute the starting operation of the first target turn signal comprises:

and sending the starting instruction to the vehicle lamp electronic control unit according to the upper left steering lamp information and the rear left steering lamp information so that the vehicle lamp electronic control unit can start the upper left steering lamp and the rear left steering lamp.

Optionally, the sending a turn signal lamp control command to a vehicle lamp electronic control unit according to the comparison result, so that the vehicle lamp electronic control unit executes a corresponding operation, including:

if the real-time distance is greater than the safe distance, determining a second target turn light corresponding to the moving potential collision object;

sending a switch state request of the second target steering lamp to the vehicle lamp electronic control unit;

and when the received switch state sent by the vehicle lamp electronic control unit is an on state, sending a closing instruction to the vehicle lamp electronic control unit so that the vehicle lamp electronic control unit can execute the closing operation of the second target steering lamp.

Optionally, before obtaining the real-time distance information between the vehicle and all potential collisions in the surroundings, the method further includes:

after detecting that the vehicle OBD interface is accessed, sending a VIN code reading instruction to a vehicle OBD module, so that the vehicle OBD module can obtain VIN code information according to the VIN code reading instruction;

reading the VIN code information fed back by the vehicle OBD module;

determining a vehicle type corresponding to the vehicle according to the VIN code information;

obtaining the diagnosis function information of the vehicle lamp electronic control unit corresponding to the vehicle type from a diagnosis protocol file;

establishing a communication link with the vehicle lamp electronic control unit by utilizing an OBD bus according to the diagnosis function information;

sending a system activation command to the vehicle lamp electronic control unit;

and receiving successful activation information fed back by the vehicle lamp electronic control unit.

Optionally, the distance measuring device is a plurality of ultrasonic sensors.

Optionally, the method further includes:

the stop operation is read to stop the alert operation.

In a second aspect, the present application discloses a vehicle monitoring device comprising:

the real-time distance information acquisition module is used for acquiring real-time distance information of all potential collision objects around the vehicle, which is sent by the distance measuring equipment;

the judging module is used for judging whether a moving potential collision object moving to the vehicle exists in all the potential collision objects according to all the real-time distance information;

the comparison module is used for comparing the real-time distance of the mobile potential collision object with a preset safety distance if the mobile potential collision object exists, so as to obtain a comparison result, wherein the real-time distance is data in the real-time distance information;

and the steering lamp control instruction sending module is used for obtaining a steering lamp control instruction according to the comparison result and sending the steering lamp control instruction to the vehicle lamp electronic control unit so that the vehicle lamp electronic control unit can execute corresponding operation.

Optionally, the turn light control instruction sending module includes:

a moving direction determining unit, configured to determine a moving direction of the moving potential collision object if the real-time distance is smaller than the safe distance;

the first target turning light information determining unit is used for determining first target turning light information according to the moving direction;

and the starting instruction sending unit is used for sending a starting instruction to the vehicle lamp electronic control unit according to the first target steering lamp information so that the vehicle lamp electronic control unit can execute the starting operation of the first target steering lamp.

Optionally, the first target turn signal information determining unit includes:

a determination subunit configured to determine, when the moving direction is to move to the left side of the vehicle, upper left turn light information and rear left turn light information;

correspondingly, the starting instruction sending unit includes:

and the starting instruction sending subunit is used for sending the starting instruction to the vehicle lamp electronic control unit according to the upper left turn lamp information and the rear left turn lamp information so that the vehicle lamp electronic control unit can start the upper left turn lamp and the rear left turn lamp.

Optionally, the turn light control instruction sending module includes:

the second target turn light determining unit is used for determining a second target turn light corresponding to the moving potential collision object if the real-time distance is greater than the safe distance;

the switch state request sending unit is used for sending a switch state request of the second target steering lamp to the vehicle lamp electronic control unit;

and the turning-off instruction sending unit is used for sending a turning-off instruction to the vehicle lamp electronic control unit when the received switching state sent by the vehicle lamp electronic control unit is an on state, so that the vehicle lamp electronic control unit can execute the turning-off operation of the second target steering lamp.

Optionally, the method further includes:

the VIN code reading instruction sending module is used for sending a VIN code reading instruction to the vehicle OBD module after detecting that the vehicle OBD interface is accessed, so that the vehicle OBD module can obtain VIN code information according to the VIN code reading instruction;

the VIN code information acquisition module is used for reading the VIN code information fed back by the vehicle OBD module;

the vehicle type determining module is used for determining a vehicle type corresponding to the vehicle according to the VIN code information;

the diagnostic function information obtaining module is used for obtaining diagnostic function information of the vehicle lamp electronic control unit corresponding to the vehicle type from a diagnostic protocol file;

the communication link establishing module is used for establishing a communication link with the vehicle lamp electronic control unit by utilizing an OBD bus according to the diagnosis function information;

the activation command sending module is used for sending a system activation command to the vehicle lamp electronic control unit;

and the successful activation information receiving module is used for receiving the successful activation information fed back by the vehicle lamp electronic control unit.

Optionally, the method further includes:

and the stopping module is used for reading the stopping operation so as to stop the warning operation.

In a third aspect, the present application discloses an electronic device, comprising:

a memory for storing a computer program;

a processor for implementing the following steps when executing the computer program: acquiring real-time distance information of all potential collision objects around the vehicle, which is sent by the distance measuring equipment; judging whether a moving potential collision object moving to the vehicle exists in all the potential collision objects according to all the real-time distance information; if the mobile potential collision object exists, comparing the real-time distance of the mobile potential collision object with a preset safety distance to obtain a comparison result, wherein the real-time distance is data in the real-time distance information; and obtaining a steering lamp control instruction according to the comparison result, and sending the steering lamp control instruction to a vehicle lamp electronic control unit so that the vehicle lamp electronic control unit can execute corresponding operation.

Optionally, when the processor executes the computer subprogram stored in the memory, the following steps may be specifically implemented: if the real-time distance is smaller than the safe distance, determining the moving direction of the moving potential collision object; determining first target turn light information according to the moving direction; and sending a starting instruction to the vehicle lamp electronic control unit according to the first target steering lamp information so that the vehicle lamp electronic control unit can execute the starting operation of the first target steering lamp.

Optionally, when the processor executes the computer subprogram stored in the memory, the following steps may be specifically implemented: determining upper left turn light information and rear left turn light information when the moving direction is to move to the left side of the vehicle; and sending the starting instruction to the vehicle lamp electronic control unit according to the upper left steering lamp information and the rear left steering lamp information so that the vehicle lamp electronic control unit can start the upper left steering lamp and the rear left steering lamp.

Optionally, when the processor executes the computer subprogram stored in the memory, the following steps may be specifically implemented: if the real-time distance is greater than the safe distance, determining a second target turn light corresponding to the moving potential collision object; sending a switch state request of the second target steering lamp to the vehicle lamp electronic control unit; and when the received switch state sent by the vehicle lamp electronic control unit is an on state, sending a closing instruction to the vehicle lamp electronic control unit so that the vehicle lamp electronic control unit can execute the closing operation of the second target steering lamp.

Optionally, when the processor executes the computer subprogram stored in the memory, the following steps may be specifically implemented: after detecting that the vehicle OBD interface is accessed, sending a VIN code reading instruction to a vehicle OBD module, so that the vehicle OBD module can obtain VIN code information according to the VIN code reading instruction; reading the VIN code information fed back by the vehicle OBD module; determining a vehicle type corresponding to the vehicle according to the VIN code information; obtaining the diagnosis function information of the vehicle lamp electronic control unit corresponding to the vehicle type from a diagnosis protocol file; establishing a communication link with the vehicle lamp electronic control unit by utilizing an OBD bus according to the diagnosis function information; sending a system activation command to the vehicle lamp electronic control unit; and receiving successful activation information fed back by the vehicle lamp electronic control unit.

Optionally, when the processor executes the computer subprogram stored in the memory, the following steps may be specifically implemented: the stop operation is read to stop the alert operation.

In a fourth aspect, the present application discloses a monitoring system comprising:

the distance measuring equipment is used for acquiring real-time distance information of all potential collision objects around the vehicle;

the electronic equipment is used for acquiring the real-time distance information; judging whether a moving potential collision object moving to the vehicle exists in all the potential collision objects according to all the real-time distance information; if the mobile potential collision object exists, comparing the real-time distance of the mobile potential collision object with a preset safety distance to obtain a comparison result; and sending a steering lamp control command to the vehicle lamp electronic control unit according to the comparison result so that the vehicle lamp electronic control unit can execute corresponding operation.

In a fifth aspect, the present application discloses a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of: acquiring real-time distance information of all potential collision objects around the vehicle, which is sent by the distance measuring equipment; judging whether a moving potential collision object moving to the vehicle exists in all the potential collision objects according to all the real-time distance information; if the mobile potential collision object exists, comparing the real-time distance of the mobile potential collision object with a preset safety distance to obtain a comparison result, wherein the real-time distance is data in the real-time distance information; and obtaining a steering lamp control instruction according to the comparison result, and sending the steering lamp control instruction to a vehicle lamp electronic control unit so that the vehicle lamp electronic control unit can execute corresponding operation.

Optionally, when executed by a processor, the computer subprogram stored in the computer-readable storage medium may specifically implement the following steps: if the real-time distance is smaller than the safe distance, determining the moving direction of the moving potential collision object; determining first target turn light information according to the moving direction; and sending a starting instruction to the vehicle lamp electronic control unit according to the first target steering lamp information so that the vehicle lamp electronic control unit can execute the starting operation of the first target steering lamp.

Optionally, when executed by a processor, the computer subprogram stored in the computer-readable storage medium may specifically implement the following steps: determining upper left turn light information and rear left turn light information when the moving direction is to move to the left side of the vehicle; and sending the starting instruction to the vehicle lamp electronic control unit according to the upper left steering lamp information and the rear left steering lamp information so that the vehicle lamp electronic control unit can start the upper left steering lamp and the rear left steering lamp.

Optionally, when executed by a processor, the computer subprogram stored in the computer-readable storage medium may specifically implement the following steps: if the real-time distance is greater than the safe distance, determining a second target turn light corresponding to the moving potential collision object; sending a switch state request of the second target steering lamp to the vehicle lamp electronic control unit; and when the received switch state sent by the vehicle lamp electronic control unit is an on state, sending a closing instruction to the vehicle lamp electronic control unit so that the vehicle lamp electronic control unit can execute the closing operation of the second target steering lamp.

Optionally, when executed by a processor, the computer subprogram stored in the computer-readable storage medium may specifically implement the following steps: after detecting that the vehicle OBD interface is accessed, sending a VIN code reading instruction to a vehicle OBD module, so that the vehicle OBD module can obtain VIN code information according to the VIN code reading instruction; reading the VIN code information fed back by the vehicle OBD module; determining a vehicle type corresponding to the vehicle according to the VIN code information; obtaining the diagnosis function information of the vehicle lamp electronic control unit corresponding to the vehicle type from a diagnosis protocol file; establishing a communication link with the vehicle lamp electronic control unit by utilizing an OBD bus according to the diagnosis function information; sending a system activation command to the vehicle lamp electronic control unit; and receiving successful activation information fed back by the vehicle lamp electronic control unit.

Optionally, when executed by a processor, the computer subprogram stored in the computer-readable storage medium may specifically implement the following steps: the stop operation is read to stop the alert operation.

The application provides a vehicle monitoring method, comprising: acquiring real-time distance information of all potential collision objects around the vehicle, which is sent by the distance measuring equipment; judging whether all the potential collision objects in the periphery have the potential moving collision objects moving towards the vehicle or not according to all the real-time distance information; if the mobile potential collision object exists, comparing the real-time distance of the mobile potential collision object with a preset safety distance to obtain a comparison result, wherein the real-time distance is data in the real-time distance information; and obtaining a steering lamp control instruction according to the comparison result, and sending the steering lamp control instruction to the vehicle lamp electronic control unit so that the vehicle lamp electronic control unit can execute corresponding operation.

Therefore, the method and the device can judge whether the movable potential collision object moving towards the vehicle exists or not by monitoring the real-time distance information of the potential collision object around the vehicle, and when the movable potential collision object exists, the real-time distance and the preset safety distance of the movable potential collision object are monitored in real time, and the turn light control instruction is sent to the vehicle light electronic control unit, so that the vehicle light electronic control unit can control the turn-on and turn-off of the corresponding turn light, the early warning of surrounding pedestrians or vehicles is realized, and the vehicle loss caused by rubbing of the vehicle and the like in a static state or a reversing state is avoided.

The application also provides a vehicle monitoring device, an electronic device and a computer readable storage medium, all have above-mentioned beneficial effect, and no longer give unnecessary details here.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.

FIG. 1 is a flow chart of a vehicle monitoring method provided by an embodiment of the present application;

FIG. 2 is a flow chart of another vehicle monitoring method provided by an embodiment of the present application;

FIG. 3 is a flow chart of another vehicle monitoring method provided by an embodiment of the present application;

FIG. 4 is a flow chart of another vehicle monitoring method provided by an embodiment of the present application;

FIG. 5 is a flow chart of another vehicle monitoring method provided by an embodiment of the present application;

FIG. 6 is a schematic structural diagram of a vehicle monitoring device according to an embodiment of the present disclosure;

fig. 7 is a block diagram of an electronic device according to an embodiment of the present disclosure;

fig. 8 is a block diagram of another electronic device according to an embodiment of the present disclosure.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all 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 application.

When the vehicle is in a static state or a reversing state, a scratch may occur due to unnoticed vehicles beside the vehicle, pedestrians, bicycles and the like, so that the loss of the vehicle is caused. Based on the foregoing technical problem, this embodiment provides a vehicle monitoring method, which determines whether there is a moving potential collision object moving to a vehicle by monitoring real-time distance information of the potential collision object around the vehicle, and when there is the moving potential collision object, sends a turn signal control instruction to a vehicle light electronic control unit by monitoring the real-time distance of the moving potential collision object and the preset safety distance in real time, so that the vehicle light electronic control unit controls to turn on and off a corresponding turn signal, thereby implementing early warning on surrounding pedestrians or vehicles, and avoiding vehicle loss caused by vehicle scratch and the like in a static state or a reverse state, specifically referring to fig. 1, where fig. 1 is a flowchart of the vehicle monitoring method provided in this embodiment of the present application, and specifically includes:

s101, acquiring real-time distance information of all potential collision objects around the vehicle sent by the distance measuring equipment.

The embodiment does not limit the distance measuring equipment and the number of the distance measuring equipment, and a user can customize the setting. The distance measuring device may be an ultrasonic sensor, a camera distance measuring device. When the distance measuring equipment is an ultrasonic sensor, the distance of pedestrians or potential collision objects around the vehicle is monitored by using the ultrasonic sensor, mainly by using the ultrasonic principle, ultrasonic waves are generated by a probe arranged on the vehicle, the vertical distance between the vehicle body and the object of the vehicle is calculated by the ultrasonic waves encountering the signals reflected by the object, and the distance data can be transmitted to a vehicle-mounted diagnosis system in a wired or wireless way, wherein the vehicle-mounted diagnosis system can be an OBD device, the number of the ultrasonic sensors can be 2, 3, 4, 5 and the like, the installation position of the ultrasonic sensor on the vehicle is not limited in the embodiment, a user can install the distance measuring equipment in a customized way as long as the real-time distance information of the potential collision objects around the vehicle can be obtained, for example, when the number of the ultrasonic sensors is 4, the distance measuring equipment can be installed on four sides of the vehicle, at this moment, each ultrasonic sensor monitors real-time distance information of a potential collision object corresponding to the side face and the vehicle, certainly, when the vehicle is seen as a rectangle, four ultrasonic sensors can be installed at four right angles, an ultrasonic sensor a, an ultrasonic sensor b, an ultrasonic sensor c and an ultrasonic sensor d can be arranged in sequence, at this moment, the four side faces can be monitored by using two ultrasonic sensors, the ultrasonic sensor a and the ultrasonic sensor b monitor the first side face, the ultrasonic sensor b and the ultrasonic sensor c monitor the second side face, the ultrasonic sensor c and the ultrasonic sensor d monitor the third side face, and the ultrasonic sensor d and the ultrasonic sensor a monitor the fourth side face. When the range unit is the range unit of making a video recording, not restricting the model and the quantity of the range unit of making a video recording, the user can self-define the setting, can refer to ultrasonic sensor to the mounted position of the range unit of making a video recording on the vehicle, and this embodiment is no longer repeated. It will be appreciated that the above-described,

the distance measuring device calculates the actual distance between the vehicle and all the surrounding potential collision objects, namely real-time distance information, records the distance data between the vehicle and other surrounding potential collision objects, and then sends the distance data to the vehicle-mounted diagnosis system, so that the vehicle-mounted diagnosis system executes the steps S102-S104.

S102, judging whether a moving potential collision object moving towards the vehicle exists in all the surrounding potential collision objects according to all the real-time distance information.

And judging the real-time distance information of the potential collision objects in all directions according to an algorithm, and if the potential collision objects move towards the direction of the vehicle at present, finding that the distance from the vehicle is closer and closer through the distance record, and indicating that the vehicle moves towards the direction of the vehicle. The determination method is not limited in this embodiment, and may be that when there is a potential collision object, the distance from the vehicle at the first time is m, and after a certain time interval, the distance from the vehicle at the second time is n, and m > n, at this time, it is verified that the potential collision object moves toward the vehicle, and the potential collision object is determined as a moving potential collision object; of course, it is also possible that when there is a potential collision at the third time at a distance p from the vehicle, at a later time at a distance q from the vehicle at the fourth time, and the difference distance obtained by p-q is greater than the distance threshold, the potential collision is proved to be moving toward the vehicle, and the potential collision is determined to be a moving potential collision.

S103, if the mobile potential collision object exists, comparing the real-time distance of the mobile potential collision object with a preset safety distance to obtain a comparison result, wherein the real-time distance is data in the real-time distance information.

Of course, if the number of the moved potential collision objects is 5, the corresponding real-time distances are 5, and at this time, the real-time distances are sequentially compared with the preset safety distance to obtain a comparison result.

The present embodiment does not limit the preset safe distance, which may be 5m, 3m, or 2m, as long as the purpose of the present embodiment can be achieved.

The embodiment does not limit the comparison manner, and may compare the magnitude of the two, for example, the real-time distance information of the mobile potential collision object is compared with the preset safety distance, so as to obtain the comparison result, where the comparison result includes that the real-time distance information is greater than the preset safety distance, the real-time distance information is less than the preset safety distance, and the real-time distance information is equal to the preset safety distance. The comparison mode can also compare a difference value obtained by subtracting the real-time distance from the real-time preset safety distance, and compare the difference value with the target difference value to obtain a comparison result, wherein the comparison result comprises that the difference value is larger than the target difference value, the difference value is smaller than the target difference value, and the difference value is equal to the target difference value.

And S104, obtaining a steering lamp control instruction according to the comparison result, and sending the steering lamp control instruction to the vehicle lamp electronic control unit so that the vehicle lamp electronic control unit can execute corresponding operation.

In an achievable real-time mode, when the comparison result shows that the real-time distance information is greater than the preset safe distance, the corresponding steering lamp is in an off state, and therefore the steering lamp control instruction is an instruction of the corresponding steering lamp in the off state and is sent to a vehicle lamp electronic control unit (vehicle lamp ECU), so that the vehicle lamp ECU realizes the off of the corresponding vehicle lamp; when the comparison result shows that the real-time distance information is smaller than the preset safe distance, the corresponding steering lamp is in an on state, so that the steering lamp control instruction is an instruction of the corresponding steering lamp on state and is sent to a vehicle lamp electronic control unit (namely, a vehicle lamp ECU), and the vehicle lamp ECU can realize the on of the corresponding vehicle lamp; and when the comparison result shows that the real-time distance information is equal to the preset safe distance, the corresponding steering lamp can be in an on state or an off state.

In another practical implementation manner, when the comparison result is that the difference is smaller than the target difference, the corresponding turn signal lamp is in an off state, and therefore the turn signal lamp control instruction is an instruction of the corresponding turn signal lamp off state and is sent to a lamp electronic control unit, namely, a lamp ECU, so that the lamp ECU realizes the turning-off of the corresponding lamp; when the difference is larger than the target difference, the corresponding steering lamp is in an on state, so that the steering lamp control instruction is an instruction of the corresponding steering lamp on state and is sent to a vehicle lamp electronic control unit (namely a vehicle lamp ECU), so that the vehicle lamp ECU realizes the on of the corresponding vehicle lamp; when the comparison result is that the difference is equal to the target difference, the corresponding turn signal lamp may be in an on state or an off state.

Based on the technical scheme, the embodiment judges whether the movable potential collision object moving towards the vehicle exists by monitoring the real-time distance information of the potential collision object around the vehicle, and when the movable potential collision object exists, the real-time distance and the preset safety distance of the movable potential collision object are monitored in real time, and a steering lamp control command is sent to the vehicle lamp electronic control unit, so that the vehicle lamp electronic control unit controls the turn-on and turn-off of the corresponding steering lamp, the early warning of surrounding pedestrians or vehicles is realized, and the vehicle loss caused by scratch of the vehicle and the like in a static state or a reversing state is avoided.

Referring to fig. 2, fig. 2 is a flowchart of another vehicle monitoring method provided in the embodiment of the present application, including:

s201, acquiring real-time distance information of the vehicle and all potential collision objects around, which is sent by the distance measuring equipment.

S202, judging whether a moving potential collision object moving towards the vehicle exists in all the potential collision objects in the surroundings according to the real-time distance information.

S203, if the mobile potential collision object exists, comparing the real-time distance of the mobile potential collision object with a preset safety distance to obtain a comparison result, wherein the real-time distance is data in the real-time distance information.

Please refer to the above embodiments specifically, which will not be described in detail in this embodiment.

And S204, if the real-time distance is smaller than the preset safety distance, determining the moving direction of the potential collision object.

When the real-time distance is smaller than the preset safety distance, the determination of the moving direction may be performed by using information of the distance measuring device, for example, when the real-time distance of the moving potential collision object a is smaller than the preset safety distance, the ID of the distance measuring device sending the real-time distance determines that the installation position of the distance measuring device is the first side surface, and then the moving direction of the moving potential collision object is determined to be a direction toward the first side surface. Of course, the present embodiment may also be implemented in other manners, which will not be described in detail herein. It can be understood that, in the embodiment, the real-time distance and the safe distance are directly compared in size, so that the algorithm is simple, and the system operation pressure is reduced.

And S205, determining first target turn light information according to the moving direction.

The moving direction corresponds to the turn signals one to one, generally, the turn signals include a front left turn signal, a rear left turn signal, a front right turn signal and a rear right turn signal, when the moving direction faces the left side of the vehicle, the first target turn signal information may be any one of the flicker of the front left turn signal, the flicker of the rear left turn signal, the flicker of the front left turn signal and the rear left turn signal, and the flicker of the front left turn signal, the rear left turn signal, the front right turn signal and the rear right turn signal.

And S206, sending a starting instruction to the vehicle lamp electronic control unit according to the first target steering lamp information so that the vehicle lamp electronic control unit can execute the starting operation of the first target steering lamp.

Based on the technical scheme, the embodiment utilizes a mode of directly comparing the real-time distance with the safe distance, the algorithm is simple, and the system operation pressure is reduced.

The present embodiment provides a vehicle monitoring method, referring to fig. 3 specifically, fig. 3 is a flowchart of another vehicle monitoring method provided in the present embodiment, including:

s301, acquiring real-time distance information of all potential collision objects around the vehicle sent by the distance measuring equipment.

S302, judging whether a moving potential collision object moving towards the vehicle exists in all the potential collision objects in the surroundings according to the real-time distance information.

And S303, if the mobile potential collision object exists, comparing the real-time distance of the mobile potential collision object with a preset safety distance to obtain a comparison result, wherein the real-time distance is data in the real-time distance information.

And S304, if the real-time distance is smaller than the preset safety distance, determining the moving direction of the potential collision object.

S305, when the moving direction is towards the left side of the vehicle, determining left upper steering lamp information and left rear steering lamp information;

s306, sending a starting instruction to the vehicle lamp electronic control unit according to the upper left steering lamp information and the rear left steering lamp information, so that the vehicle lamp electronic control unit can start the upper left steering lamp and the rear left steering lamp.

Based on the technical scheme, the embodiment judges whether the movable potential collision object moving towards the vehicle exists by monitoring the real-time distance information of the potential collision object around the vehicle, and when the movable potential collision object exists, the real-time distance and the preset safety distance of the movable potential collision object are monitored in real time, and a steering lamp control command is sent to the vehicle lamp electronic control unit, so that the vehicle lamp electronic control unit controls the turn-on and turn-off of the corresponding steering lamp, the early warning of surrounding pedestrians or vehicles is realized, and the vehicle loss caused by scratch of the vehicle and the like in a static state or a reversing state is avoided.

Based on the foregoing embodiments, the present embodiment provides a vehicle monitoring method, and specifically please refer to fig. 4, where fig. 4 is a flowchart of another vehicle monitoring method provided in the embodiments of the present application, including:

s401, obtaining real-time distance information of the vehicle and all potential collision objects around, which is sent by the distance measuring equipment.

S402, judging whether the moving potential collision objects moving towards the vehicle exist in all the surrounding potential collision objects according to the real-time distance information.

And S403, if the mobile potential collision object exists, comparing the real-time distance of the mobile potential collision object with a preset safety distance to obtain a comparison result, wherein the real-time distance is data in the real-time distance information.

And S404, if the real-time distance is greater than the preset safety distance, determining a second target steering lamp corresponding to the moving potential collision object.

And S405, sending a switch state request of the second target steering lamp to the vehicle lamp electronic control unit.

And S406, when the received switch state sent by the lamp electronic control unit is an on state, sending a closing instruction to the lamp electronic control unit so that the lamp electronic control unit can execute the closing operation of the second target steering lamp.

When the real-time distance is greater than the preset safety distance, the second target steering lamp corresponding to the potential collision object is determined to be moved, and the state of the second target steering lamp is in an off state, so that unnecessary warning is reduced, and energy waste is avoided. At the moment, if the on state is acquired, a closing instruction is sent to the electronic control unit of the vehicle lamp.

Based on above-mentioned technical scheme, this embodiment is through when the real-time distance is outside predetermineeing safe distance, guarantees that the indicator that corresponds is the less unnecessary warning of off-state to the waste of the energy has been avoided.

Based on the foregoing embodiments, the present embodiment provides a vehicle monitoring method, and specifically please refer to fig. 5, where fig. 5 is a flowchart of another vehicle monitoring method provided in the embodiments of the present application, including:

and after detecting that the vehicle OBD interface is accessed, sending a VIN code reading instruction to the vehicle OBD module so that the vehicle OBD module can obtain VIN code information according to the VIN code reading instruction.

The OBD device is provided with an LINUX or ANDROID operating system, so that a lower computer program can be operated in the OBD device, and communication can be carried out through a hardware driving program and the ranging device to acquire real-time data. In addition, the hardware of the OBD device comprises hardware transceivers of common vehicle protocols such as KWP, CAN, PWM, VPW and the like, and the hardware transceivers CAN communicate with each Electronic Control Unit (ECU) of the vehicle through an OBD interface of the vehicle. The OBD device is inserted into an OBD interface of a vehicle and is powered by the OBD, the No. 16 pin is a power line, the No. 4 pin is a ground wire, and the No. 5 pin is a signal ground wire.

The method comprises the steps that after an OBD device is powered on, a lower computer program automatically runs, VIN code reading commands are sent to a vehicle OBD module firstly, since a protocol of a vehicle cannot be confirmed at first, the VIN code reading commands of each protocol are sent once in sequence until the vehicle OBD module returns VIN information, the common protocols comprise CAN, KWP, ISO9141, PWM and VPW, communication parameters and commands of each protocol are different, and the VIN code reading commands are written in the lower computer program, for example, communication pins of the CAN protocol are 6 and 14, the baud rate is 500K, and the VIN code reading commands are 0x0807df 0209020000000000.

And reading VIN code information fed back by the OBD module of the vehicle.

And the vehicle OBD module returns the VIN code information through a reply command.

And determining the vehicle type corresponding to the vehicle according to the VIN code information.

The VIN code information includes a VIN code, and a specific vehicle type of the vehicle can be analyzed from the 17-byte VIN code, for example, if the VIN code is WDD2210222a253260, it indicates that the vehicle series is a courtesy (BENZ), and the vehicle type is S350.

And obtaining the diagnosis function information of the vehicle lamp electronic control unit corresponding to the vehicle type from the diagnosis protocol file.

And then, according to the analyzed specific vehicle type, the diagnostic protocol file in the OBD device is used for searching the diagnostic function information of the vehicle lamp control system corresponding to the vehicle type. The diagnostic function information mainly comprises a communication pin, a protocol type, a communication baud rate, a system filtering ID, a vehicle lamp opening and closing command and the like of the system.

And establishing a communication link with the electronic control unit of the vehicle lamp by utilizing the OBD bus according to the diagnostic function information.

Firstly, an OBD device establishes a communication link with a vehicle lamp electronic control unit of a vehicle lamp control system through an OBD bus, communication parameters of a transceiver of the OBD device need to be set when connection is established, for example, a protocol type is set to be a CAN type, communication pins are No. 6 and No. 14 pins, a communication baud rate is 500K, a filtering ID of the system is that a sending ID is 0Xde20, and a receiving ID is 0xDE 40.

And sending a system activation command to the electronic control unit of the vehicle lamp.

After a communication link is established through the OBD bus, a system activation command, such as 0x1001, is sent to a vehicle lamp control system ECU, i.e., a vehicle lamp electronic control unit.

And receiving successful activation information fed back by the electronic control unit of the vehicle lamp.

The vehicle lamp control system ECU returns 0x5001 to indicate that the system is successfully activated.

And acquiring real-time distance information of the vehicle and all potential collision objects around, which is sent by the distance measuring equipment.

The OBD device can record distance data between the current vehicle and other surrounding objects according to information transmitted by the ultrasonic sensors in real time, namely, real-time distance information between the vehicle and all potential collision objects around, which is sent by the distance measuring equipment, is obtained.

And judging whether the moving potential collision objects moving to the vehicle exist in all the surrounding potential collision objects according to all the real-time distance information.

Then, the object distance in each direction is judged according to an algorithm to see whether an object currently moves towards the direction of the vehicle.

And if the mobile potential collision object exists, comparing the real-time distance of the mobile potential collision object with a preset safety distance to obtain a comparison result, wherein the real-time distance is data in the real-time distance information.

And obtaining a steering lamp control instruction according to the comparison result, and sending the steering lamp control instruction to the vehicle lamp electronic control unit so that the vehicle lamp electronic control unit can execute corresponding operation.

If the comparison result is that the mobile potential collision object is moving towards the vehicle and the distance between the mobile potential collision object and the vehicle is less than the preset safety distance, it needs to determine which lamps of the vehicle are to be turned on for warning according to the direction that the mobile potential collision object moves towards the vehicle, for example, if an object moves from the left side of the vehicle, a front and rear turn light on the left side of the vehicle needs to be turned on for warning.

The OBD device sends a command to turn on the left front and rear turn signal lamps to the vehicle lamp control system ECU, for example, the command to turn on the left front turn signal lamp is 0x2f090801, and the command to turn on the left rear turn signal lamp is 0x2f0a0801.

After receiving the command, the ECU of the vehicle lamp control system can turn on and flash the left front steering lamp and the left rear steering lamp of the vehicle to warn.

The OBD device determines the distance data transmitted from each ultrasonic sensor in real time.

If no object is found to be moving within the safe distance, which indicates that there is no danger at present, a command is sent to the vehicle lamp control system ECU to turn off the corresponding turn signals, such as the front left turn signal and the rear left turn signal which have been turned on before, and it is now necessary to turn off the two turn signals, such as a command 0x2f090800 to turn off the front left turn signal and a command 0x2f0a0800 to turn off the rear left turn signal. And the vehicle lamp control system ECU turns off the corresponding steering lamp and stops flashing after receiving the command. The whole distance monitoring and judging is carried out in real time, and corresponding operation is executed according to the judging result.

In one achievable real-time approach, further comprising: the stop operation is read to stop the alert operation. The reading may be by detecting that the STOP button is pressed or that the OBD device is unplugged from the OBD interface and no longer monitored and operated. By the mode, the operation is convenient, and the actual requirements of users are met.

Referring to fig. 6, fig. 6 is a schematic structural diagram of a vehicle monitoring device provided in an embodiment of the present application, where the vehicle monitoring device provided in the embodiment of the present application and the vehicle monitoring method described above are referred to in correspondence, and includes:

the real-time distance information acquisition module 610 is used for acquiring real-time distance information of all potential collision objects around the vehicle, which is sent by the distance measuring equipment;

the judging module 620 is configured to judge whether a moving potential collision object moving to the vehicle exists in all the surrounding potential collision objects according to all the real-time distance information;

a comparing module 630, configured to compare the real-time distance of the mobile potential collision object with a preset safety distance if the mobile potential collision object exists, to obtain a comparison result, where the real-time distance is data in the real-time distance information;

and a turn signal lamp control instruction sending module 640, configured to obtain a turn signal lamp control instruction according to the comparison result, and send the turn signal lamp control instruction to the car light electronic control unit, so that the car light electronic control unit executes a corresponding operation.

Based on the technical scheme, the embodiment judges whether the movable potential collision object moving towards the vehicle exists by monitoring the real-time distance information of the potential collision object around the vehicle, and when the movable potential collision object exists, the real-time distance and the preset safety distance of the movable potential collision object are monitored in real time, and a steering lamp control command is sent to the vehicle lamp electronic control unit, so that the vehicle lamp electronic control unit controls the turn-on and turn-off of the corresponding steering lamp, the early warning of surrounding pedestrians or vehicles is realized, and the vehicle loss caused by scratch of the vehicle and the like in a static state or a reversing state is avoided.

Optionally, the turn signal lamp control instruction sending module 640 includes:

the moving direction determining unit is used for determining the moving direction of the potential collision object if the real-time distance is smaller than the preset safety distance;

the first target turn light information determining unit is used for determining first target turn light information according to the moving direction;

and the starting instruction sending unit is used for sending a starting instruction to the vehicle lamp electronic control unit according to the first target steering lamp information so that the vehicle lamp electronic control unit can execute the starting operation of the first target steering lamp.

Optionally, the first target turn signal information determining unit includes:

a determination subunit, configured to determine, when the moving direction is to move to the left side of the vehicle, upper left turn light information and rear left turn light information;

correspondingly, the starting instruction sending unit comprises:

and the starting instruction sending subunit is used for sending a starting instruction to the vehicle lamp electronic control unit according to the upper left steering lamp information and the rear left steering lamp information so that the vehicle lamp electronic control unit can start the upper left steering lamp and the rear left steering lamp.

Optionally, the turn signal lamp control instruction sending module 640 includes:

the second target steering lamp determining unit is used for determining a second target steering lamp corresponding to the mobile potential collision object if the real-time distance is greater than the preset safety distance;

the switch state request sending unit is used for sending a switch state request of the second target steering lamp to the vehicle lamp electronic control unit;

and the turn-off command sending unit is used for sending a turn-off command to the lamp electronic control unit when the received switch state sent by the lamp electronic control unit is an on state, so that the lamp electronic control unit executes the turn-off operation of the second target steering lamp.

Optionally, the method further includes:

the VIN code reading instruction sending module is used for sending a VIN code reading instruction to the vehicle OBD module after detecting that the vehicle OBD interface is accessed, so that the vehicle OBD module can obtain VIN code information according to the VIN code reading instruction;

the VIN code information acquisition module is used for reading VIN code information fed back by the vehicle OBD module;

the vehicle type determining module is used for determining a vehicle type corresponding to the vehicle according to the VIN code information;

the diagnostic function information obtaining module is used for obtaining diagnostic function information of the vehicle lamp electronic control unit corresponding to the vehicle type from the diagnostic protocol file;

the communication link establishing module is used for establishing a communication link with the vehicle lamp electronic control unit by utilizing an OBD bus according to the diagnosis function information;

the activation command sending module is used for sending a system activation command to the vehicle lamp electronic control unit;

and the successful activation information receiving module is used for receiving the successful activation information fed back by the vehicle lamp electronic control unit.

Optionally, the method further includes:

and the stopping module is used for reading the stopping operation so as to stop the warning operation.

Since the embodiment of the vehicle monitoring device portion corresponds to the embodiment of the vehicle monitoring method portion, please refer to the description of the embodiment of the vehicle monitoring method portion, which is not repeated here.

The present application further provides an electronic device, referring to fig. 7, where fig. 7 is a structural diagram of an electronic device provided in an embodiment of the present application, including:

a memory 100 for storing a computer program;

the processor 200, when executing the computer program, may implement the steps provided by the above embodiments.

Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. The processor 200 provides the computing and control capabilities for the electronic device and, when executing the computer program stored in the memory 100, may perform the following steps: acquiring real-time distance information of all potential collision objects around the vehicle, which is sent by the distance measuring equipment; judging whether all the potential collision objects in the periphery have the potential moving collision objects moving towards the vehicle or not according to all the real-time distance information; if the mobile potential collision object exists, comparing the real-time distance of the mobile potential collision object with a preset safety distance to obtain a comparison result, wherein the real-time distance is data in the real-time distance information; and obtaining a steering lamp control instruction according to the comparison result, and sending the steering lamp control instruction to the vehicle lamp electronic control unit so that the vehicle lamp electronic control unit can execute corresponding operation.

Based on the technical scheme, the embodiment judges whether the movable potential collision object moving towards the vehicle exists by monitoring the real-time distance information of the potential collision object around the vehicle, and when the movable potential collision object exists, the real-time distance and the preset safety distance of the movable potential collision object are monitored in real time, and a steering lamp control command is sent to the vehicle lamp electronic control unit, so that the vehicle lamp electronic control unit controls the turn-on and turn-off of the corresponding steering lamp, the early warning of surrounding pedestrians or vehicles is realized, and the vehicle loss caused by scratch of the vehicle and the like in a static state or a reversing state is avoided.

In some specific embodiments, when the processor 200 executes the computer subprogram stored in the memory 100, the following steps can be implemented: if the real-time distance is smaller than the preset safety distance, determining the moving direction of the potential collision object; determining first target turn light information according to the moving direction; and sending a starting instruction to the vehicle lamp electronic control unit according to the first target steering lamp information so that the vehicle lamp electronic control unit can execute the starting operation of the first target steering lamp.

In some specific embodiments, when the processor 200 executes the computer subprogram stored in the memory 100, the following steps can be implemented: when the moving direction is to move towards the left side of the vehicle, determining left upper steering lamp information and left rear steering lamp information; and sending a starting instruction to the vehicle lamp electronic control unit according to the upper left steering lamp information and the rear left steering lamp information so that the vehicle lamp electronic control unit can start the upper left steering lamp and the rear left steering lamp.

In some specific embodiments, when the processor 200 executes the computer subprogram stored in the memory 100, the following steps can be implemented: if the real-time distance is greater than the preset safety distance, determining a second target steering lamp corresponding to the moving potential collision object; sending a switch state request of a second target steering lamp to the vehicle lamp electronic control unit; and when the received switch state sent by the lamp electronic control unit is an on state, sending a closing instruction to the lamp electronic control unit so that the lamp electronic control unit executes the closing operation of the second target steering lamp.

In some specific embodiments, when the processor 200 executes the computer subprogram stored in the memory 100, the following steps can be implemented: after detecting that an OBD interface of a vehicle is accessed, sending a VIN code reading instruction to a vehicle OBD module, so that the vehicle OBD module can obtain VIN code information according to the VIN code reading instruction; reading VIN code information fed back by the OBD module of the vehicle; determining a vehicle type corresponding to the vehicle according to the VIN code information; obtaining the diagnosis function information of the vehicle lamp electronic control unit corresponding to the vehicle type from the diagnosis protocol file; establishing a communication link with the vehicle lamp electronic control unit by utilizing the OBD bus according to the diagnosis function information; sending a system activation command to a vehicle lamp electronic control unit; and receiving successful activation information fed back by the electronic control unit of the vehicle lamp.

In some specific embodiments, when the processor 200 executes the computer subprogram stored in the memory 100, the following steps can be implemented: the stop operation is read to stop the alert operation.

Since the embodiment of the electronic device portion corresponds to the embodiment of the vehicle monitoring method portion, please refer to the description of the embodiment of the vehicle monitoring method portion for the embodiment of the electronic device portion, which is not repeated here.

On the basis of the foregoing embodiment, as a preferred implementation, referring to fig. 8, fig. 8 is a structural diagram of another electronic device provided in an embodiment of the present application, where the electronic device further includes:

and an input interface 300 connected to the processor 200, for acquiring computer programs, parameters and instructions imported from the outside, and storing the computer programs, parameters and instructions into the memory 100 under the control of the processor 200. The input interface 300 may be connected to an input device for receiving parameters or instructions manually input by a user. The input device may be a touch layer covered on a display screen, or a button, a track ball or a touch pad arranged on a terminal shell, or a keyboard, a touch pad or a mouse, etc.

And a display unit 400 connected to the processor 200 for displaying data transmitted by the processor 200. The display unit 400 may be a display screen on a PC, a liquid crystal display screen, or an electronic ink display screen.

And a network port 500 connected to the processor 200 for performing communication connection with each external terminal device. The communication technology adopted by the communication connection can be a wired communication technology or a wireless communication technology, such as a mobile high definition link (MHL) technology, a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity (WiFi), a bluetooth communication technology, a low power consumption bluetooth communication technology, an ieee802.11 s-based communication technology, and the like.

The application also discloses a monitoring system, includes:

the distance measuring equipment is used for acquiring real-time distance information of all potential collision objects around the vehicle;

the electronic equipment is used for acquiring real-time distance information; judging whether all the potential collision objects in the periphery have the potential moving collision objects moving towards the vehicle or not according to all the real-time distance information; if the mobile potential collision object exists, comparing the real-time distance of the mobile potential collision object with a preset safety distance to obtain a comparison result; and sending a steering lamp control command to the vehicle lamp electronic control unit according to the comparison result so that the vehicle lamp electronic control unit can execute corresponding operation.

Based on the technical scheme, the embodiment judges whether the movable potential collision object moving towards the vehicle exists by monitoring the real-time distance information of the potential collision object around the vehicle, and when the movable potential collision object exists, the real-time distance and the preset safety distance of the movable potential collision object are monitored in real time, and a steering lamp control command is sent to the vehicle lamp electronic control unit, so that the vehicle lamp electronic control unit controls the turn-on and turn-off of the corresponding steering lamp, the early warning of surrounding pedestrians or vehicles is realized, and the vehicle loss caused by scratch of the vehicle and the like in a static state or a reversing state is avoided.

Since the embodiment of the monitoring system portion corresponds to the embodiment of the vehicle monitoring method portion, please refer to the description of the embodiment of the vehicle monitoring method portion, which is not repeated herein.

The present application also discloses a computer-readable storage medium having a computer program stored thereon, which, when executed, may implement the steps provided by the above-described embodiments. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. The storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of: acquiring real-time distance information of all potential collision objects around the vehicle, which is sent by the distance measuring equipment; judging whether all the potential collision objects in the periphery have the potential moving collision objects moving towards the vehicle or not according to all the real-time distance information; if the mobile potential collision object exists, comparing the real-time distance of the mobile potential collision object with a preset safety distance to obtain a comparison result, wherein the real-time distance is data in the real-time distance information; and obtaining a steering lamp control instruction according to the comparison result, and sending the steering lamp control instruction to the vehicle lamp electronic control unit so that the vehicle lamp electronic control unit can execute corresponding operation.

Based on the technical scheme, the embodiment judges whether the movable potential collision object moving towards the vehicle exists by monitoring the real-time distance information of the potential collision object around the vehicle, and when the movable potential collision object exists, the real-time distance and the preset safety distance of the movable potential collision object are monitored in real time, and a steering lamp control command is sent to the vehicle lamp electronic control unit, so that the vehicle lamp electronic control unit controls the turn-on and turn-off of the corresponding steering lamp, the early warning of surrounding pedestrians or vehicles is realized, and the vehicle loss caused by scratch of the vehicle and the like in a static state or a reversing state is avoided.

In some specific embodiments, the computer subprogram stored in the computer readable storage medium, when executed by the processor, may implement the following steps: if the real-time distance is smaller than the preset safety distance, determining the moving direction of the potential collision object; determining first target turn light information according to the moving direction; and sending a starting instruction to the vehicle lamp electronic control unit according to the first target steering lamp information so that the vehicle lamp electronic control unit can execute the starting operation of the first target steering lamp.

In some specific embodiments, the computer subprogram stored in the computer readable storage medium, when executed by the processor, may implement the following steps: when the moving direction is to move towards the left side of the vehicle, determining left upper steering lamp information and left rear steering lamp information; and sending a starting instruction to the vehicle lamp electronic control unit according to the upper left steering lamp information and the rear left steering lamp information so that the vehicle lamp electronic control unit can start the upper left steering lamp and the rear left steering lamp.

In some specific embodiments, the computer subprogram stored in the computer readable storage medium, when executed by the processor, may implement the following steps: if the real-time distance is greater than the preset safety distance, determining a second target steering lamp corresponding to the moving potential collision object; sending a switch state request of a second target steering lamp to the vehicle lamp electronic control unit; and when the received switch state sent by the lamp electronic control unit is an on state, sending a closing instruction to the lamp electronic control unit so that the lamp electronic control unit executes the closing operation of the second target steering lamp.

In some specific embodiments, the computer subprogram stored in the computer readable storage medium, when executed by the processor, may implement the following steps: after detecting that an OBD interface of a vehicle is accessed, sending a VIN code reading instruction to a vehicle OBD module, so that the vehicle OBD module can obtain VIN code information according to the VIN code reading instruction; reading VIN code information fed back by the OBD module of the vehicle; determining a vehicle type corresponding to the vehicle according to the VIN code information; obtaining the diagnosis function information of the vehicle lamp electronic control unit corresponding to the vehicle type from the diagnosis protocol file; establishing a communication link with the vehicle lamp electronic control unit by utilizing the OBD bus according to the diagnosis function information; sending a system activation command to a vehicle lamp electronic control unit; and receiving successful activation information fed back by the electronic control unit of the vehicle lamp.

In some specific embodiments, the computer subprogram stored in the computer readable storage medium, when executed by the processor, may implement the following steps: the stop operation is read to stop the alert operation.

Since the embodiment of the computer-readable storage medium portion corresponds to the embodiment of the vehicle monitoring method portion, please refer to the description of the embodiment of the vehicle monitoring method portion for the embodiment of the computer-readable storage medium portion, which is not repeated here.

The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.

Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.

The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

A vehicle monitoring method, a vehicle monitoring device, a monitoring system, an electronic device, and a computer-readable storage medium provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种节能型汽车刹车灯

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!