Automatic uploading method and device of abnormal data, electronic equipment and storage medium
By collecting and uploading abnormal information to the cloud for classification processing in the central control screen of the car, the problem of inconvenient log information storage space occupation and analysis is solved, and fast and reliable abnormal data analysis is achieved.
Patent Information
- Application Number
- CN202411121463.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-12-27
AI Technical Summary
In the prior art, the log information storage of the central control screen of the automobile takes up a lot of space, and it is inconvenient to capture and trace back, making it difficult to analyze abnormal situations in a timely manner.
When an abnormality occurs in a vehicle control setting item, it collects and encapsulates the exception information, uploads it to the cloud through the network for classification processing and analysis, and uses the queue mechanism to ensure data reliability, and preprocess and classifies abnormal data in the cloud.
It solves the problems of storage space occupation, inconvenience in crawling and cumbersome backtracking, reduces the workload of developers, and quickly analyzes abnormal data through cloud preprocessing.
Smart Images

Figure CN119211218A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle computer software technology, and in particular to an automatic uploading method for abnormal data, an automatic uploading device for abnormal data, an electronic device and a storage medium. Background Art
[0002] With the development of electric and intelligent connected vehicles, the automotive industry is facing a trend of increasingly close and complex integration of software and hardware. The settings application of the car's central control screen also contains many settings related to vehicle control. This places high demands on safety and reliability. Developers must discover and solve problems in a timely manner during the trial production stage; after mass production and delivery, they can also quickly solve problems encountered by consumers and reduce the impact of abnormal conditions on consumers. Analyzing the log information when abnormal conditions occur is the key to solving the problem. Therefore, it becomes very important to obtain the log information when abnormal conditions occur in a timely manner.
[0003] The common processing method at present is to use logd in the code to print log information, continuously output the full amount of log information to the log file and compress it, store it in the car system, and clear it regularly. This method consumes a lot of storage space and needs to be captured from the car system, which causes inconvenience to users and developers. If it is not captured in time, the log information may have been cleared, making it more difficult to analyze. Summary of the invention
[0004] The purpose of the present invention is to provide a method, device, electronic device and storage medium for automatically uploading abnormal data, which can quickly solve the problems of large storage space occupation, inconvenient capture and cumbersome time tracing caused by the log method.
[0005] The present invention provides the following scheme:
[0006] According to one aspect of the present invention, a method for automatically uploading abnormal data is provided, and the method for automatically uploading abnormal data comprises:
[0007] Collect abnormal information when the user operates the vehicle control setting items abnormally;
[0008] Upload the abnormal information to the cloud via the network in a packaged manner;
[0009] Classify and process abnormal information through the cloud, and analyze problems through abnormal information in the cloud.
[0010] Optionally, the collection operation of exception information is implemented in the public class of each vehicle control setting item.
[0011] Optionally, the abnormal information includes: abnormal information that the vehicle controller feeds back an invalid signal, and abnormal information that the vehicle controller does not feed back an invalid signal.
[0012] Optionally, collect exception information when an exception occurs when the user operates the vehicle control setting item, including:
[0013] Trigger the anomaly detection module logic;
[0014] Collect function information such as the name of the problematic setting item, whether the communication with the controller is normal, and whether the controller is abnormal;
[0015] To actively obtain the current time, current gear and speed information, vehicle VIN code, software and hardware versions and other vehicle information, and encapsulate this information into JSON.
[0016] Optionally, the abnormal information is uploaded to the cloud via the network in a packaged manner, including:
[0017] Implement a queue to store the sent JSON data;
[0018] Establish network communication with the cloud and use the vehicle network for data transmission.
[0019] Optionally, the abnormal information is uploaded to the cloud via the network in a packaged manner, and also includes:
[0020] When there is data in the queue, it is uploaded to the cloud in the order of the queue;
[0021] When there is no network or weak network environment, resulting in timeout of communication with the cloud, the data will be temporarily stored;
[0022] After receiving the notification of successful network connection, re-establish the connection and continue to transmit the temporarily stored data.
[0023] Optionally, classify and process the abnormal information through the cloud, and analyze the problem through the abnormal information in the cloud, including:
[0024] Set up preset conditions for application in the cloud processing module;
[0025] The cloud processing module receives the abnormal data uploaded by the information uploading module;
[0026] Determine whether the abnormal data meets the preset conditions;
[0027] If the preset conditions are met, the abnormal data is classified as a non-abnormal scenario;
[0028] Classify by whether the controller fails;
[0029] Provide data prompts.
[0030] According to two aspects of the present invention, there is provided an automatic uploading device for abnormal data, the automatic uploading device for abnormal data comprising:
[0031] A collection unit, used to collect abnormal information when an abnormality occurs when a user operates a vehicle control setting item;
[0032] An uploading unit, used to upload the abnormal information to the cloud via the network in a packaged manner;
[0033] The classification processing unit is used to classify and process the abnormal information through the cloud, and analyze the problems through the abnormal information in the cloud.
[0034] According to three aspects of the present invention, there is provided an electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0035] A computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method for automatically uploading abnormal data.
[0036] According to four aspects of the present invention, a computer-readable storage medium is provided, comprising: a computer program executable by an electronic device is stored therein, and when the computer program runs on the electronic device, the electronic device executes the steps of the method for automatically uploading abnormal data.
[0037] Through the above scheme, the following beneficial technical effects are obtained:
[0038] Solve the problems of large storage space occupation, inconvenient crawling, and cumbersome time tracing caused by the log method, so that the problem can be solved quickly;
[0039] At the same time, the present invention can also pre-process part of the information through the cloud, filter out some invalid exceptions, and reduce the workload of developers. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a flowchart of a method for automatically uploading abnormal data provided by one or more embodiments of the present invention.
[0041] Figure 2 It is a flow chart of the collection operation in the method for automatically uploading abnormal data provided by one or more embodiments of the present invention.
[0042] Figure 3 The present invention is a flowchart of an upload operation in a method for automatically uploading abnormal data provided by one or more embodiments of the present invention.
[0043] Figure 4The present invention is a flowchart of an upload operation in a method for automatically uploading abnormal data provided by one or more embodiments of the present invention.
[0044] Figure 5 It is a flow chart of the classification processing operation in the automatic uploading method of abnormal data provided by one or more embodiments of the present invention.
[0045] Figure 6 It is a flow chart of the collection operation in the method for automatically uploading abnormal data provided by one or more embodiments of the present invention.
[0046] Figure 7 The present invention is a flowchart of an upload operation in a method for automatically uploading abnormal data provided by one or more embodiments of the present invention.
[0047] Figure 8 It is a flow chart of the classification processing operation in the automatic uploading method of abnormal data provided by one or more embodiments of the present invention.
[0048] Fig. 9 It is a structural diagram of an automatic uploading device for abnormal data provided by one or more embodiments of the present invention.
[0049] Fig.10 is a structural diagram of an electronic device provided by one or more embodiments of the present invention. DETAILED DESCRIPTION
[0050] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] Figure 1 is a flow chart of a method for automatically uploading abnormal data provided by one or more embodiments of the present invention. Figure 1 ,The method for automatically uploading abnormal data includes the following steps:
[0052] S11, collecting abnormal information when an abnormality occurs when a user operates a vehicle control setting item.
[0053] S12, upload the abnormal information to the cloud via the network in a packaged manner.
[0054] S13, classify and process the abnormal information through the cloud, and analyze the problem through the abnormal information in the cloud.
[0055] In the past, most log storage methods stored various log data of vehicle-mounted computer applications locally in the vehicle-mounted computer. Local storage does have certain advantages, that is, it is relatively convenient for users to retrieve locally. However, there are huge difficulties in conducting large-scale analysis of logs. First of all, the logs are stored inside the vehicle-mounted computer of each vehicle, and the log strategy of the local application of the vehicle-mounted computer may not share this part of the data. In addition, there are many different applications on the vehicle-mounted computer, and it is also difficult to extract the desired data from these massive amounts of data.
[0056] To address such issues, the technical solution of the present application adopts a technical solution of local screening, remote uploading, and cloud classification of abnormal data in logs.
[0057] The so-called local screening means that not all log data needs to be uploaded to the cloud. In the technical solution of this application, only when an abnormality occurs, the part of the log data about the abnormal situation will be screened out and uploaded to the cloud.
[0058] Moreover, not all abnormal situations will transmit the corresponding log information to the cloud. Only when the user operates the vehicle control setting items, the corresponding abnormal log information will be uploaded to the cloud.
[0059] In other words, the collection of abnormal information will only be initiated if an abnormality occurs when the user operates the vehicle control setting items.
[0060] Specifically, the above-mentioned abnormal information collection action can be completed by setting a local embedding point locally on the vehicle terminal.
[0061] In particular, if the setting action of the relevant configuration of the vehicle computer is completed through the web page, the corresponding tracking point can be set on the HTTP server to complete the above-mentioned abnormal information collection action.
[0062] There are two types of abnormal information collected, one is that the vehicle controller feeds back an invalid signal, and the other is that the vehicle controller does not feed back an invalid signal.
[0063] If the vehicle controller feeds back an invalid signal, the relevant setting items on the vehicle control interface will be grayed out.
[0064] For example, when the controller is disconnected / damaged or the signal link is interrupted, all setting items related to the signal link on the vehicle setting interface will be grayed out.
[0065] A typical case where the vehicle controller does not feedback an invalid signal is that the user clicks the relevant control item, and the relevant controller does not respond accordingly, that is, it fails to respond. At this time, once the setting item times out, it will rebound to the previous state.
[0066] Regardless of any of the above situations, the corresponding exception information will be collected.
[0067] When performing abnormal information collection, many items are collected. These items include: collecting the name of the problem setting item, whether it communicates normally with the controller, whether the controller is abnormal, and actively obtaining the current time, current gear and speed information, vehicle VIN code, and software and hardware version of the vehicle information.
[0068] The main reason for collecting more data items is to facilitate the later analysis in the cloud. It is understandable that if an exception occurs and only a small amount of data items are collected for this exception, the amount of data that can be used for later analysis actions such as cause investigation and exception statistics will be very small, and it is impossible to give accurate analysis results.
[0069] In addition, in the collection operation, only the original log data is collected, and no processing is performed on the collected original log data. This means that the original data collected in the collection operation is often some unstructured data.
[0070] Next, execute the log data packaging and uploading actions.
[0071] The encapsulation action is to encapsulate the collected raw log data into JSON data with a standard format.
[0072] JSON is a lightweight data interchange format.
[0073] In the process of encapsulating the original log data, since the original collected log data is mostly unstructured data, a large amount of cleaning and correction operations need to be performed.
[0074] After the encapsulation process, the original collected log data is converted into structured JSON data with a unified format.
[0075] Next is the operation of uploading JSON data. In the technical solution of this application, the upload action is a very important action. Because in various operations before the upload action, if there are exceptions or errors, data recovery operations can be performed. The upload action is different from the previous operations. It is a long-distance transmission. Once interference factors occur during the transmission process, the transmission process becomes unreliable and it is difficult to recover the data in the cloud.
[0076] Therefore, in the upload operation, certain safeguards need to be taken for the reliability of the data. In the technical solution of the present application, a queue method is adopted to ensure the reliability of the upload process and the uploaded data.
[0077] Specifically, a queue is set up on the car computer side, and all JSON data that needs to be uploaded must first be added to this queue. When there is data that needs to be transmitted in the queue, if the network is good, the queue will transmit the JSON data to the cloud normally. If there is a problem with the network or the network is not smooth, the queue will suspend the transmission of JSON data and the JSON data will be temporarily stored in the queue.
[0078] After the JSON data is transmitted to the cloud, the cloud needs to classify the JSON data. The above classification operation mainly classifies the attributes of the JSON data itself. Typical classifications include controller failure exception, controller no response exception, known exception that meets the preset conditions, and unknown exception.
[0079] After the abnormal data, that is, the JSON data, is classified, the JSON data can be used to perform corresponding statistical analysis operations on the cause of the abnormality, the time characteristics of the abnormality, and the working condition characteristics of the abnormality. The above statistical analysis operations are all completed in the cloud.
[0080] By executing the above technical solution, the problems of large storage space occupation, inconvenient crawling and cumbersome time tracing caused by the log method are solved.
[0081] Figure 2 1 is a flowchart of a collection operation in a method for automatically uploading abnormal data provided by one or more embodiments of the present invention. Figure 2 , collect exception information when the user operates the vehicle control setting items abnormally, including:
[0082] S21, triggering the abnormality detection module logic.
[0083] S22, this module will collect functional information such as the name of the problem setting item, whether it communicates with the controller normally, and whether the controller is abnormal.
[0084] S23 will also actively obtain vehicle information such as the current time, current gear position and speed, vehicle VIN code, software and hardware versions, and encapsulate this information into JSON.
[0085] The above-mentioned abnormal information collection must first perform an abnormal detection action. Only after abnormal detection can we know which information should be collected and when to collect abnormal information.
[0086] It should be emphasized that not all abnormal information of abnormal items will be collected. Only when there is a problem setting item on the vehicle side, the abnormal information corresponding to the problem setting item will be collected.
[0087] In the embodiment of the present application, the above information collection is completed by setting a embedding point.
[0088] Once the anomaly detection logic is triggered and runs to the pre-set information collection point, the relevant anomaly information collection action will be started.
[0089] The information collected is all related to the problematic settings. This information includes: current time, current gear, vehicle speed information, vehicle VIN code, software and hardware versions. The above information is collectively referred to as vehicle information.
[0090] The acquisition of the information related to the problem setting items mentioned above is the interception of log information, or it is called passive acquisition of information.
[0091] In addition to the passive acquisition of information mentioned above, there is also an active acquisition of information in the system. The so-called active acquisition of information means actively retrieving information from each vehicle controller equipped in the vehicle. Usually, various vehicle controllers store a certain amount of information during operation. By making corresponding inquiries to each vehicle controller, the required relevant information can be obtained.
[0092] Through the above passive acquisition and active retrieval actions, the abnormal information collection action is completed, and the complete collection of relevant information of the problem setting item is achieved.
[0093] Figure 3 1 is a flowchart of an upload operation in a method for automatically uploading abnormal data provided by one or more embodiments of the present invention. Figure 3 , encapsulate the exception information into JSON data, and upload the encapsulated JSON data to the cloud, including:
[0094] S31, implement a queue to store the sent JSON data.
[0095] S32, establish network communication with the cloud and use the vehicle network for data transmission.
[0096] In the technical solution of the present application, the queue is a mechanism to ensure the reliability of JSON data transmission.
[0097] In this mechanism, all JSON data that needs to be sent to the cloud must first be added to the queue. JSON data that is not added to the queue cannot be sent.
[0098] The queue has its own detection mechanism for link connectivity. Only when it detects that the current network is available and the communication link with the cloud is good, will the JSON data saved in the queue be sent.
[0099] Since the above-mentioned queue mechanism is equipped on the vehicle side, the uploading of JSON data on the vehicle side is more reliable. With the guarantee of the queue mechanism, the uploading of JSON data on the vehicle side can adapt to various complex network conditions.
[0100] There are many different options for queue implementation. Typically, the queue mechanism can be implemented by deploying a Kafka message queue on the vehicle side. Of course, in addition to Kafka, there are many other options for message queues, such as RabbitMQ, RocketMQ, ActiveMQ, ZeroMQ, MetaMq, etc.
[0101] For the implementation of the queue, a byte array can also be deployed. The byte array carries the JSON data to be sent. When the JSON data needs to be sent, the JSON data to be sent is taken from the head of the queue, and the data of the subsequent array units is supplemented, and the above-mentioned JSON data sending operation is completed.
[0102] The above queue can also realize the priority sending of sensitive data. For example, in an emergency, a part of the JSON data stored in the queue needs to be sent first. At this time, you can first query the JSON data stored in the queue, find the JSON data that needs to be sent first, and then send the queried JSON data first.
[0103] Further preferably, the efficiency of querying the JSON data content can be improved by pre-establishing an index.
[0104] Figure 4 1 is a flowchart of an upload operation in a method for automatically uploading abnormal data provided by one or more embodiments of the present invention. Figure 4 , encapsulate the exception information into JSON data, and upload the encapsulated JSON data to the cloud, including:
[0105] S41, implement a queue to store the sent JSON data.
[0106] S42, establish network communication with the cloud and use the vehicle network for data transmission.
[0107] S43, when there is data in the queue, it is uploaded to the cloud in the order of the queue.
[0108] S44, when there is no network or weak network environment causing communication with the cloud to time out, the data will be temporarily stored.
[0109] S45, after receiving the notification of successful network connection, re-establish the connection and continue to transmit the temporarily stored data.
[0110] In addition to the implementation method of the queue mechanism, after adopting the queue mechanism, there will be strict restrictions on the order in which JSON data is sent.
[0111] The queue is a first-in, first-out storage mechanism. In the technical solution of the present application, after the queue mechanism is adopted, the sending order of the JSON data also strictly abides by the first-in, first-out rule.
[0112] That is to say, the JSON data generated earlier, that is, the abnormal data, will be transmitted at an earlier time point. In the cloud, the JSON data generated earlier will also be received earlier.
[0113] Moreover, even if the network fails and the network connection needs to be restored, the above-mentioned first-in-first-out rule will still be followed.
[0114] That is to say, if there are some problems with the network, the sending of JSON data in the queue mechanism will be suspended, and the JSON data to be sent will be temporarily stored in the queue. Since the queue itself has a certain storage capacity, the JSON data will not overflow.
[0115] Once the network status is restored, that is, the communication connection with the cloud is restored, the data temporarily stored in the queue will continue to be sent. In this way, the time sequence of the sent data is strictly guaranteed, which facilitates subsequent analysis operations.
[0116] Furthermore, when a network problem occurs, the technical solution of the present application will clearly mark the breakpoint. Due to the clear marking of the breakpoint, after the network is restored, the data that has been transmitted will not be transmitted again, thus avoiding unnecessary data retransmission and saving network bandwidth.
[0117] Figure 5 1 is a flow chart of a classification processing operation in a method for automatically uploading abnormal data provided by one or more embodiments of the present invention. Figure 5 , classify and process abnormal information through the cloud, and analyze problems through abnormal information in the cloud, including:
[0118] S51, classify the abnormal data into corresponding directories respectively.
[0119] S52, implement a browser page on the enterprise intranet to display the classified abnormal data.
[0120] The categories are: controller failure anomaly, controller no response anomaly, known anomaly that meets preset conditions, and unknown anomaly. Among them, the first two are anomalies distinguished by the anomaly detection module logic. The preset condition is the judgment logic added in the cloud. For example, the suspension adjustment function can only be operated when the vehicle is stationary and in P gear. If this function reports an anomaly, it will enter the cloud preset condition judgment. If the judgment logic that does not meet the precondition is hit, it will enter the known anomaly that meets the preset condition. When the user raises a question, he only needs to explain it.
[0121] Storing abnormal data in different directories in the cloud can make the storage of abnormal data more orderly.
[0122] Typically, the abnormal data is classified and stored in four directories: controller failure abnormality, controller no response abnormality, known abnormalities that meet preset conditions, and unknown abnormalities.
[0123] The four types of anomalies are distinguished by judging the preset conditions. Typically, a decision tree can be set up in the cloud, and the preset conditions for distinguishing different categories are set on the branch nodes of the decision tree. When new abnormal data is uploaded, the decision tree is used to detect the newly uploaded abnormal data to determine the category of the newly uploaded abnormal data.
[0124] After the abnormal data is classified and stored in the cloud, some services can be provided to the outside world based on the classified abnormal data. These services can include statistical analysis services, analysis result display services, query services, etc.
[0125] The above services can be implemented through the B-side, that is, completed through the web side.
[0126] Figure 6 A flowchart of the collection operation in a method for automatically uploading abnormal data provided by one or more embodiments of the present invention is shown. Figure 6 , collect exception information when the user operates the vehicle control setting items abnormally, including:
[0127] S61, after the abnormality detection module detects the abnormality, the vehicle controller sends an abnormality message and executes S64.
[0128] S62, the vehicle controller does not send an abnormal message, and the user clicks the setting item.
[0129] S63: The controller times out and does not respond, and then executes S64.
[0130] S64, collecting information related to the setting items.
[0131] S65, collecting vehicle environment information.
[0132] S66, encapsulate the collected information and notify the information upload module.
[0133] In by Figure 6 In the illustrated embodiment, there are two conditions for starting the related abnormal information collection operation. The two conditions are: the controller sends abnormal information, and the other is that the controller does not respond after the user clicks the setting item.
[0134] If any of the two conditions is met, the collection of abnormal information will be started. The collection of abnormal information includes: the collection of information related to the setting items and the collection of information about the vehicle environment.
[0135] The information related to the setting item includes: the name of the setting item where the exception occurs, the current system version number, etc.
[0136] The vehicle computer environment information includes: vehicle computer system name and vehicle computer system version number.
[0137] Figure 7 A flowchart of an upload operation in a method for automatically uploading abnormal data provided by one or more embodiments of the present invention is shown. Figure 7 , encapsulate the exception information into JSON data, and upload the encapsulated JSON data to the cloud, including:
[0138] S71, receiving data, and establishing a storage queue for the received data.
[0139] S72, determining whether the communication with the cloud is successful.
[0140] S73, if the communication with the cloud is successful, the data is uploaded to the cloud.
[0141] S74, if the communication with the cloud fails, the data is temporarily stored in the storage queue.
[0142] S75, when the communication connection is successful, uploading the above stored in the storage queue to the cloud.
[0143] Figure 8 A flowchart showing the classification processing operation in a method for automatically uploading abnormal data provided by one or more embodiments of the present invention is shown. Figure 8 , classify and process abnormal information through the cloud, and analyze problems through abnormal information in the cloud, including:
[0144] S81, setting a preset condition to be applied in the cloud processing module.
[0145] S82, the cloud processing module receives the abnormal data uploaded by the information uploading module.
[0146] S83, determining whether the abnormal data meets the preset conditions.
[0147] S84: If the preset condition is met, the abnormal data is classified as a non-abnormal scenario and S86 is executed.
[0148] S85, classify the controller according to whether it is failed, and execute S86.
[0149] S86, providing data prompts.
[0150] The above classification process of abnormal information is based on the classification process of preset conditions.
[0151] Typically, exception information is divided into four categories: controller failure exception, controller no response exception, known exception that meets preset conditions, and unknown exception. They are stored in corresponding directories respectively.
[0152] like Fig. 9 As shown, the present invention also provides an automatic uploading device for abnormal data, comprising:
[0153] The collecting unit 91 is used to collect abnormal information when an abnormality occurs when a user operates a vehicle control setting item.
[0154] The uploading unit 92 is used to upload the abnormal information to the cloud via the network in a packaged manner.
[0155] The classification processing unit 93 is used to classify and process the abnormal information through the cloud, and analyze the problem through the abnormal information in the cloud.
[0156] It is worth noting that although only some basic functional modules are disclosed in the embodiments of the present invention, it does not mean that the composition of the present system is limited to the above basic functional modules. On the contrary, what the present embodiment wants to express is that on the basis of the above basic functional modules, those skilled in the art can arbitrarily add one or more functional modules in combination with the prior art to form an infinite number of embodiments or technical solutions. In other words, the present system is open rather than closed. Just because the present embodiment only discloses individual basic functional modules, it cannot be considered that the protection scope of the claims of the present invention is limited to the disclosed basic functional modules. At the same time, for the convenience of description, the above devices are described in terms of functions and are described separately in various units and modules. Of course, when implementing the present invention, the functions of each unit and module can be implemented in the same or one or more software and / or hardware.
[0157] like Fig.10 As shown, the present invention also provides an electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method for automatically uploading abnormal data.
[0158] Fig.10 Schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Fig.10 The electronic device provided in the embodiment of the present invention includes: one or more processors 1010 and a memory 1020; the processor 1010 in the electronic device may be one or more, Fig.10 A processor 1010 is taken as an example; the memory 1020 is used to store one or more programs; the one or more programs are executed by the one or more processors 1010, so that the one or more processors 1010 implement the automatic uploading method of abnormal data as described in any one of the embodiments of the present invention.
[0159] The electronic device may further include: an input device 1030 and an output device 1040 .
[0160] The processor 1010, memory 1020, input device 1030 and output device 1040 in the electronic device can be connected via a bus or other means. Fig.10 The example of connecting through bus is taken in the following.
[0161] The memory 1020 in the electronic device is a computer-readable storage medium that can be used to store one or more programs, which can be software programs, computer executable programs, and modules, such as program instructions / modules corresponding to the method for automatically uploading abnormal data provided in the embodiment of the present invention. The processor 1010 executes various functional applications and data processing of the electronic device by running the software programs, instructions, and modules stored in the memory 1020, that is, the method for automatically uploading abnormal data in the above method embodiment is implemented.
[0162] The memory 1020 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1020 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 1020 may further include a memory remotely arranged relative to the processor 1010, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0163] The input device 1030 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 1040 may include a display device such as a display screen.
[0164] The present invention also provides a computer-readable storage medium storing a computer program executable by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of the method for automatically uploading abnormal data.
[0165] Specifically, the computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0166] The present invention also provides a vehicle, wherein the vehicle is provided with the automatic uploading device for abnormal data as described above.
[0167] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for automatically uploading abnormal data, characterized in that: The method for automatically uploading abnormal data includes: Collect abnormal information when the user operates the vehicle control setting items abnormally; Upload the abnormal information to the cloud via the network in a packaged manner; Classify and process abnormal information through the cloud, and analyze problems through abnormal information in the cloud.
2. The method according to claim 1, characterized in that: The collection of exception information is implemented in the public class of each vehicle control setting item.
3. The method according to claim 1, characterized in that The abnormal information includes: abnormal information that the vehicle controller feeds back an invalid signal, and abnormal information that the vehicle controller does not feed back an invalid signal.
4. The method according to claim 1, characterized in that: Collect exception information when an exception occurs when the user operates the vehicle control setting items, including: Trigger the anomaly detection module logic; Collect function information such as the name of the problematic setting item, whether the communication with the controller is normal, and whether the controller is abnormal; Actively obtain vehicle information such as current time, current gear and speed information, vehicle VIN code, software and hardware versions, and encapsulate this information into JSON.
5. The method according to claim 4, characterized in that The abnormal information is uploaded to the cloud via the network in a packaged manner, including: Implement a queue to store the sent JSON data; Establish network communication with the cloud and use the vehicle network for data transmission.
6. The method according to claim 5, characterized in that The abnormal information is uploaded to the cloud via the network in a packaged manner, including: When there is data in the queue, it is uploaded to the cloud in the order of the queue; When there is no network or weak network environment, resulting in timeout of communication with the cloud, the data will be temporarily stored; After receiving the notification of successful network connection, re-establish the connection and continue to transmit the temporarily stored data.
7. The method according to claim 1, characterized in that Classify and process abnormal information through the cloud, and analyze problems through abnormal information in the cloud, including: Set up preset conditions for application in the cloud processing module; The cloud processing module receives the abnormal data uploaded by the information uploading module; Determine whether the abnormal data meets the preset conditions; If the preset conditions are met, the abnormal data is classified as a non-abnormal scenario; Classify by whether the controller fails; Provide data prompts.
8. An automatic uploading device for abnormal data, characterized in that: The automatic uploading device of abnormal data comprises: A collection unit, used to collect abnormal information when an abnormality occurs when a user operates a vehicle control setting item; An uploading unit, used to upload the abnormal information to the cloud via the network in a packaged manner; The classification processing unit is used to classify and process the abnormal information through the cloud, and analyze the problems through the abnormal information in the cloud.
9. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of any one of the methods described in claims 1 to 7.
10. A computer-readable storage medium, characterized in that: It stores a computer program executable by an electronic device, and when the computer program runs on the electronic device, the electronic device executes the steps of the method described in any one of claims 1 to 7.
