Intelligent monitoring method and system for environment in vehicle, storage medium and processing terminal

文档序号:1825326 发布日期:2021-11-12 浏览:22次 中文

阅读说明:本技术 一种车内环境智能监测方法、系统、存储介质、处理终端 (Intelligent monitoring method and system for environment in vehicle, storage medium and processing terminal ) 是由 李磊 宋柏 于 2021-08-03 设计创作,主要内容包括:本发明属于车载智能控制技术领域,公开了一种车内环境智能监测方法、系统、存储介质、处理终端,包括车内环境智能控制模块监测;车内环境各参数阈值检测;检测车内是否有乘客;车内环境异常本地告警;在云端对车内环境参数分析处理;车内环境异常远程告警;车内环境远程调节;车内环境智能控制系统的应急处理。本发明有效降低了车内环境智能监测系统占用的计算资源,降低工程的复杂度,提升工程代码的可复用性,可用于智能车载系统中的环境监测部分;通过将车内环境参数分析的一系列处理放在云端进行,节省了车载资源的消耗,同时云端的算力较高可以进行更加丰富的参数分析和处理,提升了用户的体验。(The invention belongs to the technical field of vehicle-mounted intelligent control, and discloses a method and a system for intelligently monitoring an in-vehicle environment, a storage medium and a processing terminal, which comprise monitoring by an in-vehicle environment intelligent control module; detecting threshold values of various parameters of the environment in the vehicle; detecting whether passengers exist in the vehicle; local alarm of abnormal environment in the vehicle; analyzing and processing environmental parameters in the vehicle at the cloud end; remote alarming for abnormal environment in the vehicle; remotely adjusting the environment in the vehicle; and (5) emergency treatment of an intelligent control system of the environment in the vehicle. The invention effectively reduces the computing resources occupied by the intelligent monitoring system of the environment in the vehicle, reduces the complexity of the engineering, improves the reusability of the engineering code, and can be used for the environment monitoring part in the intelligent vehicle-mounted system; a series of processing of environmental parameter analysis in the vehicle is carried out at the cloud end, so that the consumption of vehicle-mounted resources is saved, meanwhile, the computing power of the cloud end is high, richer parameter analysis and processing can be carried out, and the user experience is improved.)

1. An intelligent monitoring method for an in-vehicle environment is characterized by comprising the following steps:

step one, monitoring an in-vehicle environment intelligent control module: the system starts to work after the vehicle-mounted end is electrified and started, firstly, the environment in the vehicle is detected through a detection system based on the RTOS, and the obtained data are transmitted to a vehicle-mounted control system;

step two, detecting threshold values of various parameters of the environment in the vehicle: judging whether the environmental parameters in the vehicle meet the standard or not by the vehicle internal environment intelligent module based on the RTOS in a local mode and a remote mode, if the current vehicle internal environmental parameters are detected to be kept normal, continuing to execute the first step, and if not, executing the third step;

step three, detecting whether passengers exist in the vehicle: the intelligent control module for the environment in the vehicle based on the RTOS confirms whether a passenger is in the vehicle or not through a pressure sensor under a seat; if the passenger is detected in the vehicle, performing a step four, and if the passenger is detected not in the vehicle, performing a step five;

step four, local alarm of abnormal environment in the vehicle: when the life safety of passengers is endangered by the environment in the automobile, the intelligent control module of the environment in the automobile firstly reminds the passengers in the automobile by voice and informs the passengers of the operation required by the passengers in the automobile;

analyzing and processing the environmental parameters in the vehicle at the cloud: synchronizing the in-vehicle environment parameters transmitted to the cloud end in the step one to a mobile phone APP end by a server of the cloud end, and prompting a user of a correct processing mode according to abnormal parameters in the environment;

step six, remotely alarming the abnormal environment in the vehicle: in the fourth step, the vehicle-mounted environment intelligent control module sends a short message notice to the vehicle owner through the GSM module, and the remote alarm is a more comprehensive message which is strongly pushed by the cloud to the mobile phone of the user to be analyzed, so that the vehicle owner is prompted to carry out a safety operation step;

seventhly, remotely adjusting the environment in the vehicle: the RTOS-based intelligent control module for the in-vehicle environment supports a user to switch on and off and adjust functions of opening a vehicle window, using an air conditioner, exchanging fresh air and the like of a vehicle through a mobile phone APP through connection of a vehicle machine;

step eight, emergency treatment of the intelligent control system of the environment in the vehicle: if the car owner and the passengers in the car are not processed in time, the vehicle is directly controlled by the vehicle-mounted passenger life intelligent module; after the vehicle-mounted passenger life intelligent module carries out emergency treatment, the mode of treatment and the HTTP protocol of result utilization RTOS are uploaded to the cloud, and the APP is recorded after being analyzed by the cloud server and synchronously pushed to the car owner.

2. The intelligent monitoring method for the in-vehicle environment according to claim 1, wherein the monitoring by the intelligent in-vehicle environment control module specifically comprises:

1) the environment monitoring is in charge of monitoring the detection of parameters such as temperature, humidity and harmful gas concentration in the vehicle, and the intelligent control module for the environment in the vehicle comprises a temperature and humidity sensor, a CO sensor and CO2Sensors, formaldehyde sensors;

2) and data are uploaded, the data are transmitted to the vehicle-mounted control system through the vehicle internal environment intelligent module based on the RTOS, the vehicle-mounted control system performs data display and wireless transmission, and meanwhile, the HTTP protocol of the RTOS is uploaded to the cloud for management.

3. The intelligent monitoring method for the environment in the vehicle according to claim 1, wherein in the threshold detection of each parameter of the environment in the vehicle, if the vehicle-mounted system is in an online state, after the environment data in the vehicle is successfully uploaded, a data analysis result of a cloud is continuously requested, and whether the current environment parameter in the vehicle meets a standard or not is judged; if the vehicle-mounted system is in an off-line state, a locally preset environment parameter standard needs to be inquired, and whether the current environment parameter in the vehicle meets the standard or not is judged.

4. The intelligent monitoring method for the environment in the vehicle according to claim 1, wherein in the local alarm for the abnormal environment in the vehicle, if the environment in the vehicle does not change after the time threshold is exceeded, the short message early warning is performed on the vehicle owner through a GSM module, and meanwhile, the step five is skipped; and if the passengers operate the vehicle, so that the environmental parameters in the vehicle tend to be normal, skipping to the first step, continuing to monitor the environment in the vehicle, and continuously uploading the data to the cloud.

5. The intelligent monitoring method for the environment in the vehicle as claimed in claim 1, wherein in the remote regulation for the environment in the vehicle, if the vehicle owner performs remote processing on the vehicle through the APP, the first step is skipped, the environment in the vehicle is continuously monitored, and the data is continuously uploaded to the cloud; and if the owner does not perform any processing on the vehicle through the APP, continuing to the step eight.

6. The intelligent monitoring method for the environment inside the vehicle according to claim 1, wherein during the emergency treatment of the intelligent control system for the environment inside the vehicle, if the CO and the CO inside the vehicle exist, the emergency treatment is performed2Or if the formaldehyde content is too high, the vehicle window is directly opened and the fresh air exchange function is started; if the temperature and the humidity in the vehicle are too high, the air conditioner in the vehicle is directly turned on to reduce the temperature and perform the dehumidification function.

7. An intelligent monitoring system for an in-vehicle environment, which implements the intelligent monitoring method for an in-vehicle environment according to any one of claims 1 to 6, the intelligent monitoring system for an in-vehicle environment comprising:

the in-vehicle environment detection module is used for detecting the in-vehicle environment parameters through a plurality of sensors with different functions;

the parameter threshold detection module is used for judging whether the environmental parameters in the vehicle meet the standard in a local mode or a remote mode;

the personnel detection module is used for confirming whether passengers exist in the vehicle through the pressure sensor under the seat;

the early warning module is used for carrying out voice reminding on passengers in the vehicle when the environment in the vehicle is abnormal and sending a short message notice to a vehicle owner through the GSM module;

the parameter processing module is used for analyzing and processing the environmental parameters in the vehicle at the cloud end;

and the remote adjusting module is used for remotely switching and adjusting the functions of the vehicle through the mobile phone APP.

8. A computer program product stored on a computer readable medium, comprising a computer readable program for providing a user input interface for applying the intelligent in-vehicle environment monitoring method according to any one of claims 1 to 6 when executed on an electronic device.

9. A computer-readable storage medium storing instructions which, when executed on a computer, cause the computer to apply the intelligent in-vehicle environment monitoring method according to any one of claims 1 to 6.

10. An information data processing terminal, characterized in that the information data processing terminal is used for realizing the intelligent monitoring method for the environment in the vehicle as claimed in any one of claims 1 to 6.

Technical Field

The invention belongs to the technical field of vehicle-mounted intelligent control, and particularly relates to an intelligent monitoring method, system, storage medium and processing terminal for an in-vehicle environment.

Background

At present: with the development of economy and technology, the quality of life of people is gradually improvedIncreasing numbers of private cars are increasing, but with the exposure of various potential safety hazards, an incomplete statistic shows that on average in the united states, 1 child is lost every 9 days. High temperature, oxygen deficiency, CO poisoning and the like can all cause the occurrence of fatal accidents of passengers in the vehicle. The temperature in the vehicle can be rapidly increased to above 60 ℃ in less than 20min under the direct sunlight of 32 ℃ in summer. The high temperature can also cause leather or plastic materials such as cushion in the automobile to release harmful gases such as formaldehyde and the like, thus harming the health of passengers. If the interior of the vehicle is in a closed environment for a long time, CO2Too high a concentration may cause driver distress, and even syncope to cause traffic accidents.

A UDS diagnosis-based vehicle operation data real-time acquisition platform is proposed and designed in a paper 'design and implementation of a vehicle operation data real-time acquisition system' in the prior art, a PIC35 controller and a TJA1050 are adopted to build two paths of CAN communication modules, and an upper computer controls data acquisition, display and storage. However, the method mainly aims at the requirements of reliability, safety, comfort and the like of the vehicle, collects vehicle operation data and analyzes the driving style according to the data, environmental parameters in the vehicle are not collected, and the safety of a user is not fully considered.

In the thesis "research and implementation of vehicle operation monitoring system" in the prior art, the overall structure of the system is analyzed, a core hardware module and a software module of a vehicle-mounted terminal are designed and implemented, a database and a software system of a monitoring center are analyzed and designed, and data communication between the vehicle-mounted terminal and the monitoring center is implemented. The system has high reusability, is mainly designed aiming at the architecture of the vehicle-mounted terminal, is complex in architecture, loads all logics on Windows CE, has high engineering complexity, consumes large vehicle-mounted resources and has high cost.

Through the above analysis, the problems and defects of the prior art are as follows:

(1) the existing vehicle monitoring system does not collect environmental parameters in the vehicle and does not fully consider the safety of users.

(2) The existing vehicle monitoring system has the disadvantages of complex structure, high engineering complexity, high consumption of vehicle-mounted resources and high cost.

The difficulty in solving the above problems and defects is: the vehicle internal environment monitoring system has more parameters, so the complexity of the related environment monitoring system is high at present, the realization difficulty is high, and the system needs to be supported on a vehicle-mounted system, so that the system needs to be ensured to be light enough, otherwise, other modules of the vehicle-mounted system can be interfered.

The significance of solving the problems and the defects is as follows: for the safety problem of vehicles, the collection of environmental data in the vehicles is a very important link. If the problem of environmental data acquisition in the vehicle is solved, the vehicle-mounted safety system can be improved, so that people can be helped to avoid the problems of suffocation and the like caused by toxic gas in the vehicle and oxygen deficiency in the vehicle.

Disclosure of Invention

Aiming at the problems in the prior art, the invention provides an intelligent monitoring method, a system, a storage medium and a processing terminal for an in-vehicle environment.

The invention is realized in this way, and an intelligent monitoring method for the environment in the vehicle comprises the following steps:

step one, monitoring an in-vehicle environment intelligent control module: the system starts to work after the vehicle-mounted end is electrified and started, firstly, the environment in the vehicle is detected through a detection system based on the RTOS, and the obtained data are transmitted to a vehicle-mounted control system;

and starting a system, starting the environmental parameter acquisition work in the vehicle as a necessary condition, and facilitating the subsequent work progress.

Step two, detecting threshold values of various parameters of the environment in the vehicle: judging whether the environmental parameters in the vehicle meet the standard or not by the vehicle internal environment intelligent module based on the RTOS in a local mode and a remote mode, if the current vehicle internal environmental parameters are detected to be kept normal, continuing to execute the first step, and if not, executing the third step;

the RTOS system is started, the HTTP protocol of the RTOS is utilized by the remote monitoring method as a lightweight system, the RTOS can conveniently utilize a network to transmit a current scene, basic conditions are provided for networking real-time monitoring of the environment in the automobile, people can know the current environment in the automobile in real time and the safety of a driver is protected, and the local detection process is used as a bottom-catching scheme for monitoring the environment in the automobile.

Step three, detecting whether passengers exist in the vehicle: the intelligent control module for the environment in the vehicle based on the RTOS confirms whether a passenger is in the vehicle or not through a pressure sensor under a seat; if the passenger is detected in the vehicle, performing a step four, and if the passenger is detected not in the vehicle, performing a step five;

the system integrates the passenger monitoring system, and can ensure that the system makes more reasonable processing schemes under different situations that passengers exist in the vehicle and passengers do not exist in the vehicle, so that the system is more intelligent and humanized.

Step four, local alarm of abnormal environment in the vehicle: when the life safety of passengers is endangered by the environment in the automobile, the intelligent control module of the environment in the automobile firstly reminds the passengers in the automobile by voice and informs the passengers of the operation required by the passengers in the automobile;

the step ensures that when the environment in the vehicle is abnormal, the local module gives an alarm at the first time, so that passengers in the vehicle can obtain messages at the first time to process the messages.

Analyzing and processing the environmental parameters in the vehicle at the cloud: synchronizing the in-vehicle environment parameters transmitted to the cloud end in the step one to a mobile phone APP end by a server of the cloud end, and prompting a user of a correct processing mode according to abnormal parameters in the environment;

the environmental parameters in the vehicle are timely transmitted to the cloud end, so that the working personnel can timely find abnormal conditions of the vehicle under the condition of conditional monitoring at the rear end, and conditions are provided for subsequent remote warning or remote rescue under the extreme condition.

Step six, remotely alarming the abnormal environment in the vehicle: in the fourth step, the vehicle-mounted environment intelligent control module sends a short message notice to the vehicle owner through the GSM module, and the remote alarm is a more comprehensive message which is strongly pushed by the cloud to the mobile phone of the user to be analyzed, so that the vehicle owner is prompted to carry out a safety operation step;

when there is not driver or passenger in the car, if the environment has also taken place unusually in the car, then need help people in time to avoid the potential safety hazard through the mode of remote suggestion, prevented the emergence of harm.

Seventhly, remotely adjusting the environment in the vehicle: the RTOS-based intelligent control module for the in-vehicle environment supports a user to switch on and off and adjust functions of opening a vehicle window, using an air conditioner, exchanging fresh air and the like of a vehicle through a mobile phone APP through connection of a vehicle machine;

in order to ensure that the internal environment parameters of the vehicle can be remotely controlled, the invention provides an intelligent control module for the internal environment of the vehicle, which supports the function of a user or a service manufacturer for processing the abnormal internal environment parameters of the vehicle at the cloud end.

Step eight, emergency treatment of the intelligent control system of the environment in the vehicle: if the car owner and the passengers in the car are not processed in time, the vehicle is directly controlled by the vehicle-mounted passenger life intelligent module; after the vehicle-mounted passenger life intelligent module carries out emergency treatment, the mode of treatment and the HTTP protocol of result utilization RTOS are uploaded to the cloud, and the APP is recorded after being analyzed by the cloud server and synchronously pushed to the car owner.

By adding the intelligent environment processing module, the invention further ensures that when the environment in the vehicle is in emergency, the invention can process the emergency in time, help the driver and the passenger to get rid of danger and draw the attention of the staff of the service manufacturer.

Further, the monitoring of the in-vehicle environment intelligent control module specifically comprises:

1) the intelligent control module of the environment in the vehicle comprises a temperature and humidity sensor, a CO2 sensor and a formaldehyde sensor;

2) and data are uploaded, the data are transmitted to the vehicle-mounted control system through the vehicle internal environment intelligent module based on the RTOS, the vehicle-mounted control system performs data display and wireless transmission, and meanwhile, the HTTP protocol of the RTOS is uploaded to the cloud for management.

Further, in the detection of each parameter threshold value of the in-vehicle environment, if the vehicle-mounted system is in an online state, after the in-vehicle environment data is successfully uploaded, a data analysis result of a cloud end is continuously requested, and whether the current in-vehicle environment parameter meets the standard or not is judged; if the vehicle-mounted system is in an off-line state, a locally preset environment parameter standard needs to be inquired, and whether the current environment parameter in the vehicle meets the standard or not is judged.

Further, in the local alarm of the abnormal environment in the vehicle, if the environment in the vehicle does not change after the time threshold is exceeded, the short message early warning is carried out on the vehicle owner through the GSM module, and meanwhile, the step five is skipped; and if the passengers operate the vehicle, so that the environmental parameters in the vehicle tend to be normal, skipping to the first step, continuing to monitor the environment in the vehicle, and continuously uploading the data to the cloud.

Further, in the remote regulation of the environment in the vehicle, if the vehicle owner carries out remote processing on the vehicle through the APP, the first step is skipped, the environment in the vehicle is continuously monitored, and data are continuously uploaded to the cloud; and if the owner does not perform any processing on the vehicle through the APP, continuing to the step eight.

Further, in the emergency treatment of the intelligent control system for the environment in the automobile, if the content of CO, CO2 or formaldehyde in the automobile is too high, the window is directly opened and the fresh air exchange function is started; if the temperature and the humidity in the vehicle are too high, the air conditioner in the vehicle is directly turned on to reduce the temperature and perform the dehumidification function.

Another object of the present invention is to provide an intelligent monitoring system for an in-vehicle environment, comprising:

the in-vehicle environment detection module is used for detecting the in-vehicle environment parameters through a plurality of sensors with different functions;

the parameter threshold detection module is used for judging whether the environmental parameters in the vehicle meet the standard in a local mode or a remote mode;

the personnel detection module is used for confirming whether passengers exist in the vehicle through the pressure sensor under the seat;

the early warning module is used for carrying out voice reminding on passengers in the vehicle when the environment in the vehicle is abnormal and sending a short message notice to a vehicle owner through the GSM module;

the parameter processing module is used for analyzing and processing the environmental parameters in the vehicle at the cloud end;

and the remote adjusting module is used for remotely switching and adjusting the functions of the vehicle through the mobile phone APP.

By combining all the technical schemes, the invention has the advantages and positive effects that:

(1) the invention realizes the whole intelligent monitoring system of the environment in the vehicle by utilizing the RTOS, and has simple module and clear structure. The method is characterized in that the whole vehicle environment intelligent monitoring system project is developed on an RTOS (real time operating system), the system is modularized, a series of processing and conversion such as reading of environment data in a bare computer program mode are avoided, and meanwhile, the main logic of the vehicle environment intelligent monitoring system is placed behind an abnormal vehicle environment alarm event by utilizing an event processing mechanism of the RTOS. Compared with the traditional method, the method avoids a mechanism of waiting for the abnormal triggering of the environment in the vehicle through continuous polling, improves the resource utilization rate for the single chip microcomputer, improves the expandability and maintainability of the whole intelligent monitoring system for the environment in the vehicle for engineering projects, and can be used in a rapid iteration mode in the face of richer vehicle-mounted environment.

(2) According to the invention, a series of processing for analyzing the environmental parameters in the vehicle is carried out in the cloud. The HTTP framework with the RTOS open source is utilized to send the environmental parameter information in the vehicle to the cloud for processing, the player plays the audio data returned by the cloud, and the vehicle-mounted system executes the instruction information. Compared with the traditional method, the calculation-intensive operations such as local environment parameter analysis and offline voice broadcast are avoided, the consumption of vehicle-mounted resources is reduced, meanwhile, the calculation power of the cloud is high, richer parameter analysis and processing can be carried out, and the user experience is improved.

Drawings

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

Fig. 1 is a flowchart of an intelligent monitoring method for an in-vehicle environment according to an embodiment of the present invention.

Fig. 2 is a schematic diagram of an intelligent monitoring method for an environment in a vehicle according to an embodiment of the present invention.

Fig. 3 is a schematic structural diagram of an intelligent monitoring system for an in-vehicle environment according to an embodiment of the present invention.

Detailed Description

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

In order to solve the problems in the prior art, the invention provides an intelligent monitoring method, a system, a storage medium and a processing terminal for an in-vehicle environment, and the invention is described in detail with reference to the attached drawings.

As shown in fig. 1, the method for intelligently monitoring an environment in a vehicle according to an embodiment of the present invention includes:

s101, monitoring by an intelligent control module of the environment in the vehicle: after the vehicle-mounted end is powered on and started, the System starts to work, firstly, the environment in the vehicle is detected through a detection System based on a Real Time Operating System (RTOS), and the obtained data is transmitted to a vehicle-mounted control System;

s102, detecting threshold values of various parameters of the environment in the vehicle: judging whether the environmental parameters in the vehicle meet the standard or not by the vehicle internal environment intelligent module based on the RTOS in a local mode and a remote mode, if the current vehicle internal environmental parameters are detected to be kept normal, continuing to execute the step S101, otherwise, executing the step S103;

s103, detecting whether passengers exist in the vehicle: the intelligent control module for the environment in the vehicle based on the RTOS confirms whether a passenger is in the vehicle or not through a pressure sensor under a seat; if a passenger is detected in the vehicle, performing step S104, and if no passenger is detected in the vehicle, performing step S105;

s104, local warning of abnormal environment in the vehicle: when the life safety of passengers is endangered by the environment in the automobile, the intelligent control module of the environment in the automobile firstly reminds the passengers in the automobile by voice and informs the passengers of the operation required by the passengers in the automobile;

s105, analyzing and processing the environmental parameters in the vehicle at the cloud: synchronizing the in-vehicle environment parameters transmitted to the cloud in the step S101 to the mobile phone APP terminal by the cloud server, and prompting a user of a correct processing mode according to abnormal parameters in the environment;

s106, remotely warning abnormal environment in the vehicle: in the step S104, the vehicle-mounted environment intelligent control module sends a short message notice to the vehicle owner through the GSM module, and the remote alarm is a more comprehensive message which is strongly pushed by the cloud to the mobile phone of the user to be analyzed, so as to prompt the vehicle owner to carry out a safety operation step;

s107, remotely adjusting the environment in the vehicle: the RTOS-based intelligent control module for the in-vehicle environment supports a user to switch on and off and adjust functions of opening a vehicle window, using an air conditioner, exchanging fresh air and the like of a vehicle through a mobile phone APP through connection of a vehicle machine;

s108, emergency treatment of the intelligent control system of the environment in the vehicle: if the car owner and the passengers in the car are not processed in time, the vehicle is directly controlled by the vehicle-mounted passenger life intelligent module; after the vehicle-mounted passenger life intelligent module carries out emergency treatment, the mode of treatment and the HTTP protocol of result utilization RTOS are uploaded to the cloud, and the APP is recorded after being analyzed by the cloud server and synchronously pushed to the car owner.

The invention is further described with reference to specific embodiments, and as shown in fig. 1, the intelligent monitoring method for the environment in the vehicle provided by the embodiment of the invention specifically includes the following steps:

step 1, monitoring an in-vehicle environment intelligent control module;

the system starts to work after the vehicle-mounted terminal is electrified and started, firstly, the environment in the vehicle is detected through the detection system based on the RTOS, and the obtained data are transmitted to the vehicle-mounted control system.

(1a) The environment monitoring is used for monitoring the detection of parameters such as temperature, humidity, harmful gas concentration and the like in the vehicle, and the module comprises a temperature and humidity sensor, a CO sensor and CO2Sensors, formaldehyde sensors;

the main body of this embodiment is a hardware system loaded with an RTOS, and a software system deployed in the RTOS. The vehicle-mounted terminal selects an ARM9 high-performance development platform based on an S3C2440 microprocessor.

The temperature and humidity sensor is a single bus type DHT22 temperature and humidity sensor with the resolution of 0.1 ℃, the precision of +/-0.5 ℃ and the detection range of minus 40-80 ℃; the CO2 sensor selects a CCS811 CO2 sensor module which has a measurement range of 400-8192 ppm and allows IIC communication with the use temperature of-40-125 ℃; and selecting an MQ-7CO sensor with a detection range of 10-1000 ppm and an MQ-138 gas sensor with a detection range of 5-500 ppm to monitor the concentration of toxic gases such as CO, formaldehyde, benzene and the like in the vehicle, connecting the MQ-7 and the MQ-138 with an 8-bit low-power PCF8591 analog-to-digital conversion module, converting the analog voltage value into a digital signal, and transmitting the digital signal to the vehicle-mounted control system through an IIC interface.

The data processing part starts initialization at first and then sends control information to modules such as a sensor, and the control information comprises codes and checksums of the sensor and the like. And after the lower computer is electrified, the acquired information is sent to the upper computer system according to the received control information.

(1b) The data are uploaded, the data are transmitted to a vehicle-mounted control system through an RTOS-based vehicle internal environment intelligent module, the vehicle-mounted control system performs data display and wireless transmission, and meanwhile, the data are uploaded to a cloud for management by utilizing an HTTP (hyper text transport protocol) protocol of the RTOS;

step 2, detecting threshold values of various parameters of the environment in the vehicle;

judging whether the environmental parameters in the vehicle meet the standard or not by an RTOS-based in-vehicle environmental intelligent module through a local mode and a remote mode;

in the embodiment, after the specific values of the temperature, the CO2 and the formaldehyde are obtained through the sensors after initialization, the specific values are sent to a logic judgment module of a system for processing, the temperature is not higher than 45 ℃, and the formaldehyde content is not higher than 0.08mg/m 3.

(2a) If the vehicle-mounted system is in an online state, after the environment data in the vehicle is successfully uploaded, a data analysis result of the cloud end is continuously requested, and whether the current environment parameters in the vehicle meet the standard or not is judged;

(2b) if the vehicle-mounted system is in an off-line state, a local preset environment parameter standard needs to be inquired, and whether the current environment parameter in the vehicle meets the standard or not is judged;

and (5) if the current environment parameters in the vehicle are detected to be kept normal, continuing to execute the step (1), otherwise, executing the step (3).

Step 3, detecting whether passengers exist in the vehicle;

the intelligent monitoring system needs to detect whether passengers exist in the vehicle or not to perform secondary confirmation in order to prevent false triggering action, and the RTOS-based intelligent control module of the environment in the vehicle can perform confirmation through a pressure sensor under a seat.

The sensor in this embodiment includes the car seat sensor, can let the upper system monitor when the car seat sensor detects someone to in time handle.

(3a) If the passenger in the vehicle is detected, performing (4);

(3b) if no passenger in the vehicle is detected, performing (5);

step 4, locally alarming the abnormal environment in the vehicle;

when the environment in the automobile endangers the life safety of passengers, the intelligent control module of the environment in the automobile firstly can carry out voice reminding on the passengers in the automobile and inform the passengers of the operation which needs to be carried out.

In the embodiment, the alarm notification needs to be performed by playing the voice, the upper logic system judges the abnormal situation of the current environment in the vehicle, and the LM4990 audio player is used, so that in order to improve the stability of audio playing, the local prestored warning tone is played first to guide the driver and the passenger how to handle the situation.

(4a) And (5) if the environment in the vehicle is not changed after the time threshold is exceeded, performing short message early warning on the vehicle owner through the GSM module, and simultaneously skipping to the step (5).

(4b) If the passengers operate the vehicle to ensure that the environmental parameters in the vehicle tend to be normal, skipping to the step (1), continuing to monitor the environment in the vehicle, and continuously uploading data to the cloud;

step 5, analyzing and processing the environmental parameters in the vehicle at the cloud;

and (3) synchronizing the in-vehicle environment parameters transmitted to the cloud end in the step (1) to the mobile phone APP end by the server of the cloud end, and prompting the user of a correct processing mode according to abnormal parameters in the environment.

In this embodiment, a core HTTP library of the RTOS, CoreHTTP, is required to be utilized, and since the RTOS is a lightweight system, too many resources are not consumed when the protocol is utilized to perform internet communication, and when information in the current vehicle is transmitted to the cloud, an analysis result is pushed to the mobile phone APP of the user at the cloud.

Step 6, remotely alarming the abnormal environment in the vehicle;

in the step (4), the vehicle-mounted environment intelligent control module sends a short message notice to a vehicle owner through a GSM module, and the remote alarm is a more comprehensive message which is strongly pushed by a cloud end to a mobile phone of a user to be analyzed, so that the vehicle owner is prompted to carry out a safety operation step;

the remote alarm in the embodiment needs to be carried out in combination with cloud service, the logic codes can be deployed on the cloud server, the in-vehicle environment of the current vehicle is monitored and analyzed in real time, and meanwhile, the in-vehicle environment can be guaranteed to be solved in real time in the APP of the vehicle owner.

Step 7, remotely adjusting the environment in the vehicle;

RTOS-based in-vehicle environment intelligent control module supports the user to open the window through cell-phone APP to the vehicle through the connection of car machine, and the use of air conditioner trades the switch and the adjustment of functions such as new trend.

(7a) If the car owner carries out remote processing on the car through the APP, the step (1) is skipped, the environment in the car is continuously monitored, and data are continuously uploaded to the cloud;

(7b) if the owner does not perform any processing on the vehicle through the APP, continuing to the step (8);

the present embodiment needs to remotely adjust the environment in the vehicle, and the main functions are to control the windows in the vehicle, control the air conditioner, and exchange fresh air by connecting the vehicle-mounted system through the RTOS functional module in the present invention.

Step 8, performing emergency treatment on the intelligent control system of the environment in the vehicle;

if the passengers in the main vehicle and the passengers in the vehicle are not processed in time, the vehicle needs to be directly controlled by the vehicle-mounted passenger life intelligent module;

(8a) if the CO and CO are in the vehicle2Or if the formaldehyde content is too high, the vehicle window is directly opened and the fresh air exchange function is started;

(8b) if the temperature and the humidity in the vehicle are too high, the air conditioner in the vehicle is directly turned on to reduce the temperature and achieve the dehumidification function;

after the on-vehicle passenger life intelligent module carries out emergency treatment, the HTTP agreement that needs to utilize RTOS with the mode of handling and result is uploaded to the high in the clouds, records after the analysis of high in the clouds server, and the APP of car owner is pushed in step again.

Based on the introduction, the scheme of the embodiment solves the problems that the monitoring of each parameter is complex, and the direct action on the vehicle-mounted primary system causes large load and large resource consumption of the vehicle-mounted system. And the Free RTOS lightweight operating system is utilized to carry out logic processing, so that the functional module is ensured to be in a low-energy-consumption processing state, and the excessive consumption of vehicle-mounted energy and the obstruction to a vehicle-mounted system are avoided.

Next, by performing a performance test on the RTOS, an index that can best reflect the real-time performance of the RTOS is selected. Interrupt response delay (Interrupt Service Latency) and periodic Task Scheduling Jitter error (periodic Task Scheduling Jitter) are used as performance indicators.

The interrupt response delay test process adopts a mode of generating external interrupt by a timer period, and the test is carried out once every 1 ms. The TSC time is read at the start of each test (t1) and a timer in the APIC is set to generate a timer interrupt after 1ms (t 2). Due to the interrupt latency, the TSC time is read (t3) immediately after entering the Interrupt Service Routine (ISR). Considering that the time for setting the timer is in the order of nanoseconds, the interruption delay is generally in the order of microseconds, and therefore, the accuracy is not affected. The test results are statistically: the maximum value is 4.69 us; the average value was 1.31 us.

In real-time system applications, periodic tasks are the most common form of application in real-time systems. Under any real-time operating system, due to the problems of interrupt delay, task switching, memory buffering mechanism, etc., the scheduling error of the real-time task is inevitable, and is generally called as time Jitter error (Jitter). The periodic task scheduling time error is a time period from when the timer periodically generates an interrupt until the operating system scheduler selects a real-time task, performs Context Switch (Context Switch), and finally until the real-time task obtains the CPU. The test measures periodic task scheduling error values under light load and heavy load respectively. The task period is set to be 1ms, the number of test points is 900,000, and the test time is 900 seconds. The test results are statistically: the maximum value is 8.11 us; the average value was 2.87 us.

It can be seen that the performance of the current system satisfies the use scenario of the present invention.

It should be noted that the embodiments of the present invention can be realized by hardware, software, or a combination of software and hardware. The hardware portion may be implemented using dedicated logic; the software portions may be stored in a memory and executed by a suitable instruction execution system, such as a microprocessor or specially designed hardware. Those skilled in the art will appreciate that the apparatus and methods described above may be implemented using computer executable instructions and/or embodied in processor control code, such code being provided on a carrier medium such as a disk, CD-or DVD-ROM, programmable memory such as read only memory (firmware), or a data carrier such as an optical or electronic signal carrier, for example. The apparatus and its modules of the present invention may be implemented by hardware circuits such as very large scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., or by software executed by various types of processors, or by a combination of hardware circuits and software, e.g., firmware.

The above description is only for the purpose of illustrating the present invention and the appended claims are not to be construed as limiting the scope of the invention, which is intended to cover all modifications, equivalents and improvements that are within the spirit and scope of the invention as defined by the appended claims.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于车载端的防CO中毒系统

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类