CN112198863A - Diagnostic function control method, system, storage medium, vehicle-mounted communication box and vehicle - Google Patents
Diagnostic function control method, system, storage medium, vehicle-mounted communication box and vehicle Download PDFInfo
- Publication number
- CN112198863A CN112198863A CN202011009734.8A CN202011009734A CN112198863A CN 112198863 A CN112198863 A CN 112198863A CN 202011009734 A CN202011009734 A CN 202011009734A CN 112198863 A CN112198863 A CN 112198863A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- communication box
- preset
- diagnostic
- mounted communication
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0259—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
- G05B23/0262—Confirmation of fault detection, e.g. extra checks to confirm that a failure has indeed occurred
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24065—Real time diagnostics
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Selective Calling Equipment (AREA)
Abstract
The invention provides a diagnostic function control method, a diagnostic function control system, a storage medium, an on-vehicle communication box and a vehicle, wherein the method comprises the following steps: receiving offline configuration information sent by factory offline detection equipment, wherein the offline configuration information comprises a preset mark value of a preset mark bit; executing corresponding offline configuration actions according to the offline configuration information, wherein the last step of the offline configuration actions is to configure the value of a preset flag bit into a preset flag value from a default flag value, the default flag value is used for indicating that the remote diagnosis function of the vehicle-mounted communication box is closed, and the preset flag value is used for indicating that the remote diagnosis function of the vehicle-mounted communication box is opened; when an access signal of the after-sales diagnostic apparatus is detected, judging whether an online prompt command of preset diagnostic equipment is continuously received; and if so, deactivating the remote diagnosis function of the vehicle-mounted communication box. The invention can well solve the problem of conflict between remote diagnosis and local diagnosis, and avoid EOL offline configuration or after-sale diagnosis failure caused by sudden remote diagnosis.
Description
Technical Field
The invention relates to the technical field of vehicle diagnosis, in particular to a diagnosis function control method, a diagnosis function control system, a storage medium, a vehicle-mounted communication box and a vehicle.
Background
At present, there are more and more Electronic Control Units (ECUs) integrated on the whole vehicle, including a plurality of ECUs important in the power domain, and ECUs related to passenger comfort and appreciation in the vehicle body entertainment information domain, and the like. The ECU with various functions forms a network architecture of the whole vehicle, integrates the functions of the ECU into one vehicle and controls the functions, thereby realizing the functions related to the intellectualized convenience and safety.
With the increase and the high level of each function on the automobile, the diagnosis technology of the automobile has higher requirements, the diagnosis is that each ECU checks the internal self-controlled module, the detected fault is stored in the memory by the corresponding code, and the external part can read the fault code of the ECU by using the diagnostic instrument so as to quickly locate the cause of the fault and help the after-sales maintenance personnel to quickly deal with the fault problem.
With the execution of the national six regulations, a vehicle-mounted communication BOX (T-BOX) becomes a standard. When the EOL (End-of-Line) is offline configured or after-sales diagnosed, when ECU (electronic control unit) flashing, routine control, configuration and the like are executed in many projects, because the remote autonomous diagnosis of the vehicle-mounted communication box is the same as the EOL offline configuration and the physical ID (identity) address used by a diagnostic instrument, diagnosis conflict is caused, the EOL offline configuration or after-sales diagnosis fails, the operation needs to be repeatedly executed again, and the offline and after-sales work efficiency is influenced.
Disclosure of Invention
Based on this, the invention aims to provide a diagnostic function control method, a system, a storage medium, an on-vehicle communication box and a vehicle, so as to solve the technical problems of failure of EOL offline configuration or after-sales diagnosis caused by existing diagnostic conflicts.
The diagnostic function control method is applied to a vehicle-mounted communication box and comprises the following steps:
receiving offline configuration information sent by factory offline detection equipment, wherein the offline configuration information comprises a preset mark value of a preset mark bit;
executing a corresponding offline configuration action according to the offline configuration information, wherein the last step of the offline configuration action is to configure the value of the preset flag bit into the preset flag value from a default flag value, the default flag value represents that the remote diagnosis function of the vehicle-mounted communication box is closed, and the preset flag value represents that the remote diagnosis function of the vehicle-mounted communication box is opened;
when an access signal of the after-sales diagnostic apparatus is detected, judging whether an online prompt command of preset diagnostic equipment is continuously received;
and if so, stopping the remote diagnosis function of the vehicle-mounted communication box.
In addition, the diagnostic function control method according to the above embodiment of the present invention may further have the following additional technical features:
further, after the steps of deactivating the remote diagnosis function of the vehicle-mounted communication box and responding to the diagnosis data acquisition request of the after-sales diagnosis apparatus, the method further comprises the following steps:
and when the preset online prompt command of the diagnostic equipment exceeds the preset time, recovering the remote diagnosis function of the vehicle-mounted communication box.
Further, the step of deactivating the remote diagnosis function of the vehicle-mounted communication box comprises:
acquiring network segment configuration information of a vehicle;
when the CAN network of the vehicle is judged to be a double network segment according to the network segment configuration information, the remote diagnosis function of the vehicle-mounted communication box is directly closed;
and when the CAN network of the vehicle is judged to be four network segments and is diagnosed only through two network segments according to the network segment configuration information, the control gateway does not forward the remote diagnosis command sent by the vehicle-mounted communication box.
Further, after the step that the control gateway does not forward the remote diagnosis command sent by the vehicle-mounted communication box, the method further comprises the following steps:
and controlling the gateway to forward a diagnostic data acquisition request of the after-sales diagnostic apparatus.
Further, the diagnostic function control method further includes:
when the vehicle-mounted communication box is in a preset state, a diagnosis request of any external access equipment is not responded, and an equipment access stopping prompt is sent, wherein the preset state comprises a software upgrading state and a remote diagnosis state.
The diagnostic function control system according to the embodiment of the invention is applied to a vehicle-mounted communication box, and comprises:
the system comprises an information receiving module, a configuration module and a configuration module, wherein the information receiving module is used for receiving offline configuration information sent by factory offline detection equipment, and the offline configuration information comprises a preset mark value of a preset mark bit;
the information configuration module is used for executing corresponding offline configuration actions according to the offline configuration information, the last step of the offline configuration actions is to configure the value of the preset flag bit into the preset flag value from a default flag value, the default flag value represents that the remote diagnosis function of the vehicle-mounted communication box is closed, and the preset flag value represents that the remote diagnosis function of the vehicle-mounted communication box is opened;
the command judgment module is used for judging whether an online prompt command of preset diagnostic equipment is continuously received or not when an access signal of the after-sales diagnostic instrument is detected;
and the diagnosis control module is used for deactivating the remote diagnosis function of the vehicle-mounted communication box when the preset diagnosis equipment online prompt command is continuously received.
In addition, the diagnostic function control system according to the above embodiment of the present invention may further have the following additional technical features:
further, the system further comprises:
and the function starting module is used for recovering the remote diagnosis function of the vehicle-mounted communication box when the preset diagnosis equipment online prompt command exceeds the preset time.
The present invention also proposes a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the diagnostic function control method described above.
The invention also provides a vehicle-mounted communication box which is in network communication with the whole vehicle CAN and comprises a memory, a processor and a computer program which is stored on the memory and CAN run on the processor, wherein the processor realizes the diagnostic function control method when executing the program.
The invention further provides a vehicle which comprises the vehicle-mounted communication box.
Compared with the prior art: by defaulting the remote diagnosis function of the vehicle-mounted communication box to be in a closed state before EOL offline configuration, when factory offline detection equipment is accessed to a CAN network for offline configuration, the phenomenon of mutual conflict between remote diagnosis and EOL offline configuration CAN not occur, EOL offline configuration is ensured to be normally executed, and meanwhile, the value of the marker bit of the remote diagnosis function is configured to be a preset marker value from the default marker value in the last step of EOL offline configuration, so that the remote diagnosis function of the vehicle-mounted communication box is activated, and the remote diagnosis function of the vehicle-mounted communication box is ensured to be started after EOL offline configuration is completed. In addition, when the after-sale diagnostic instrument is accessed to the CAN network for after-sale diagnosis, the on-line prompt command of the diagnostic equipment is continuously sent to inform the vehicle-mounted communication box of the current after-sale diagnosis, so that the vehicle-mounted communication box is deactivated in the remote diagnosis function, the conflict between the after-sale diagnosis and the remote diagnosis function of the vehicle-mounted communication box is avoided, and the normal execution of the after-sale diagnosis is ensured.
Drawings
Fig. 1 is a flowchart of a diagnostic function control method in a first embodiment of the invention;
FIG. 2 is a flow chart of a diagnostic function control method in a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a diagnostic function control system according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a vehicle-mounted communication box according to a fourth embodiment of the invention.
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Several embodiments of the invention are presented in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Example one
Referring to fig. 1, a diagnostic function control method according to a first embodiment of the present invention is shown, which can be applied to a vehicle-mounted communication box of a vehicle, where the vehicle-mounted communication box can be implemented by software and/or hardware, and the method specifically includes steps S01-S03.
Step S01, receiving offline configuration information sent by the factory offline detection device, where the offline configuration information includes a preset flag value of a preset flag bit.
The vehicle diagnosis is generally divided into local diagnosis and remote diagnosis, the local diagnosis is connected with an On-Board Diagnostic (OBD) port of the whole vehicle through an external device, CAN establish communication with each ECU module with Controller Area Network (CAN) communication On the whole vehicle, CAN read faults existing and occurring in history of the ECU and execute a series of related diagnosis operations, and achieves a traditional local diagnosis function. The remote diagnosis means that information transmission and diagnosis between the remote ECU and other ECUs (outside the whole vehicle) are realized through CAN bus communication through a vehicle-mounted communication box module arranged in the vehicle, the fault state of the whole vehicle is detected in real time through a mobile phone APP and background data, and the data are transmitted back to a data processing center through a wireless communication means (GSM/GPRS/3G/4G). If the background monitors that the fault can inform the fault information of the client in time, the client is informed to go to the 4S point for maintenance in time. If the monitored fault is serious, the client can be informed to stop and keep away from the vehicle in time.
Specifically, the external devices include, but are not limited to, a factory offline Test Solution (VCATS) and an after-market diagnostic apparatus. The factory offline detection equipment is used for EOL offline configuration of the vehicles during factory offline production, and the after-sales diagnostic instrument is used for fault diagnosis of the vehicles during after-sales service.
When the configuration is written for the whole vehicle when the factory is off Line, if the vehicle-mounted communication box executes the remote diagnosis function, the remote diagnosis and the local diagnosis are interfered with each other, so that the End-of-Line (EOL) configuration function cannot be normally executed. When the factory offline detection equipment initiates a local diagnosis request to enter an ECU extended diagnosis session and executes a configuration function through secure access, the vehicle-mounted communication box initiates a remote diagnosis request to enter a default mode to upload a fault code and the like, so that the ECU entering the extended mode exits the current state, the factory offline detection equipment fails to execute configuration writing, and the controller replies a negative response. To solve this conflict problem, there are two ways:
when the factory is off-line configured, the vehicle-mounted communication box is made to know that the off-line configuration is being made at the moment, and the function of executing remote diagnosis is not allowed;
and in the second mode, the default of the vehicle-mounted communication box is that the vehicle-mounted communication box does not support the remote diagnosis function, and when the factory is off-line for configuration, the configuration capable of supporting the remote diagnosis is written together.
However, if the first scheme is adopted, the VCATS device needs to send a signal to inform the vehicle-mounted communication box that the VCATS is executing the offline configuration function, and at this time, the remote diagnosis communication is not started, but the current VCATS device does not support the function, and if the first scheme is used, the VCATS device needs to be updated. Therefore, in the second embodiment, specifically, a preset flag is added to the configuration information of the vehicle-mounted communication box, and a default flag value of the preset flag is 0, that is, the default configuration does not support remote diagnosis, and the preset flag is configured to enable remote diagnosis in a unified manner when the factory offline configuration is performed subsequently. Therefore, the factory offline detection device should include the preset flag value of the preset flag bit in the sent offline configuration information, so that when the factory offline detection device communicates with the CAN line through the OBD port, the preset flag value of the preset flag bit CAN be transmitted to the vehicle-mounted communication box module through the CAN line, and the factory offline configuration is completed in the last step, and the value of the preset flag bit is configured from the default flag value to the preset flag value, where the preset flag value may be 1, which represents that the remote diagnosis function is turned on.
And step S02, executing corresponding offline configuration actions according to the offline configuration information, wherein the last step of the offline configuration actions is to configure the value of the preset flag bit into the preset flag value from a default flag value, the default flag value represents that the remote diagnosis function of the vehicle-mounted communication box is closed, and the preset flag value represents that the remote diagnosis function of the vehicle-mounted communication box is opened.
It should be noted that the value of the preset flag is configured to be the preset flag value from the default flag value, that is, the step of configuring 0 to 1 is preferably completed in the last step of the whole factory offline configuration process of the vehicle, that is, the remote diagnosis function of the vehicle-mounted communication box is started in the last step, so that the problem of conflict between the remote diagnosis and the EOL offline diagnosis (the whole factory offline configuration process generally includes the factory offline diagnosis to diagnose the fault before the offline) can be well solved, the EOL offline detection failure due to the sudden remote diagnosis is avoided, the EOL offline detection needs to be repeated for multiple times, and the EOL offline configuration efficiency is improved.
And step S03, when the access signal of the after-sale diagnostic apparatus is detected, judging whether the online prompt command of the preset diagnostic apparatus is continuously received.
And when the online prompting command of the preset diagnosis equipment is continuously received, executing the step S04, otherwise, not operating to continue monitoring.
And step S04, deactivating the remote diagnosis function of the vehicle-mounted communication box.
In specific implementation, when a vehicle breaks down and enters after-sales service, the after-sales diagnostic apparatus CAN be used for communicating with the CAN through the OBD port, so that communication is established with each ECU module with CAN communication on the whole vehicle, faults existing in the ECU and occurring in history CAN be read, a series of related diagnostic operations CAN be executed, and the traditional local diagnostic function is realized.
However, when the after-sales diagnostic apparatus initiates a local diagnostic request to enter the controller extended diagnostic session and passes the security access, if the vehicle-mounted communication box initiates a remote diagnostic request to enter the controller default session, the controller exits the extended diagnostic session, so that the execution of the subsequently initiated special routine function of the after-sales diagnostic apparatus fails, and the controller replies a negative response 7F; or when the vehicle-mounted communication box is executing the remote diagnosis function, each ECU is required to upload the fault codes existing in the ECU to the vehicle-mounted communication box, and the ECU responds to the remote diagnosis request and transmits corresponding fault code information through multiple frames. At the moment, the after-sale diagnostic instrument is connected to the whole vehicle and requires to execute a local diagnosis command, the ECU can continuously execute the operation of uploading fault codes to the vehicle-mounted communication box according to the definition of a transport layer protocol (ISO 15765-2), and the local diagnosis of the diagnostic instrument fails because the local diagnosis requirement sent by the diagnostic instrument is not responded. In order to solve the problem, when the after-sales diagnostic instrument is connected to the whole vehicle and requires to execute a local diagnostic command, a signal needs to be sent to tell the vehicle-mounted communication box that the diagnostic instrument is online, and the remote diagnosis is suspended or quitted by preferentially responding to the command of the diagnostic instrument.
Therefore, in the embodiment, when the after-sale diagnostic apparatus is accessed to the CAN network for after-sale diagnosis, the after-sale diagnostic apparatus continuously sends out the online prompt command of the diagnostic apparatus to notify the vehicle-mounted communication box to currently perform the after-sale diagnosis, so that the vehicle-mounted communication box continuously receives the online prompt command of the diagnostic apparatus after detecting the access signal of the after-sale diagnostic apparatus, and the remote diagnosis function is deactivated.
In summary, in the diagnostic function control method in the above embodiment of the present invention, the remote diagnostic function of the vehicle-mounted communication box is defaulted to the off state before the EOL offline configuration, so that when the factory offline detection device is connected to the CAN network for offline configuration, the remote diagnosis and the EOL offline configuration do not conflict with each other, and the EOL offline configuration is ensured to be normally executed, and meanwhile, the value of the flag bit of the remote diagnostic function is configured as the preset flag value from the default flag value in the last step of the EOL offline configuration, so as to activate the remote diagnostic function of the vehicle-mounted communication box, and ensure that the vehicle-mounted communication box starts the remote diagnostic function after the EOL offline configuration is completed. In addition, when the after-sale diagnostic instrument is accessed to the CAN network for after-sale diagnosis, the on-line prompt command of the diagnostic equipment is continuously sent to inform the vehicle-mounted communication box of the current after-sale diagnosis, so that the vehicle-mounted communication box is deactivated in the remote diagnosis function, the conflict between the after-sale diagnosis and the remote diagnosis function of the vehicle-mounted communication box is avoided, and the normal execution of the after-sale diagnosis is ensured.
Example two
Referring to fig. 2, a diagnostic function control method according to a second embodiment of the present invention is shown, which can be applied to a vehicle-mounted communication box of a vehicle, where the vehicle-mounted communication box can be implemented by software and/or hardware, and the method specifically includes steps S11 to S16.
Step S11, receiving offline configuration information sent by the factory offline detection device, where the offline configuration information includes a preset flag value of a preset flag bit.
And step S12, executing corresponding offline configuration actions according to the offline configuration information, wherein the last step of the offline configuration actions is to configure the value of the preset flag bit into the preset flag value from a default flag value, the default flag value represents that the remote diagnosis function of the vehicle-mounted communication box is closed, and the preset flag value represents that the remote diagnosis function of the vehicle-mounted communication box is opened.
And step S13, when the access signal of the after-sale diagnostic apparatus is detected, judging whether the online prompt command of the preset diagnostic apparatus is continuously received.
And executing steps S14-S16 when the online prompting command of the preset diagnostic equipment is continuously received, or not, continuously monitoring.
And step S14, acquiring network segment configuration information of the vehicle.
Step S15, when the CAN network of the vehicle is judged to be a double network segment according to the network segment configuration information, the remote diagnosis function of the vehicle-mounted communication box is directly closed; and when the CAN network of the vehicle is judged to be four network segments and diagnosis is carried out only through two network segments according to the network segment configuration information, controlling the gateway not to forward a remote diagnosis command sent by the vehicle-mounted communication box, and controlling the gateway to forward a diagnosis data acquisition request of the after-sales diagnosis instrument.
It should be noted that the whole vehicle is generally divided into a single network segment, a double network segment and a four network segment, wherein the network segment refers to that each module on the whole vehicle is divided into a Power CAN (PCAN), an infotainment CAN (BCAN), a Chassis CAN (CCAN) and a T-BOX CAN (TCAN) according to functions; the whole vehicle with double network segments only comprises a power CAN and an infotainment CAN, the T-BOX is directly hung on the infotainment CAN, and the diagnosis equipment CAN directly send a diagnosis online command through a vehicle-mounted diagnosis port OBD directly connected with the power CAN and the infotainment CAN, so that when the CAN network of the vehicle is judged to be the double network segments according to the network segment configuration information, the remote diagnosis function of the T-BOX is directly closed, and the conflict between the remote diagnosis and the after-sale diagnosis is avoided;
the four network segments comprise a power CAN, an infotainment CAN, a chassis CAN and a T-BOX CAN, the interaction between the network segments is transmitted through a gateway GW, the diagnosis of the CCAN and the TCAN is respectively carried out at the PCAN and the BCAN through the GW, the diagnosis equipment continuously sends a diagnosis online command 3E 80 to the PCAN and the BCAN at an OBD port, the GW forwards the diagnosis command to the CCAN and the TCAN and does not forward a remote diagnosis command sent by the T-BOX, thereby avoiding the conflict between the remote diagnosis and the after-sale diagnosis until an online signal of the 3E 80 diagnosis equipment is overtime, and the gateway GW normally forwards a remote diagnosis message of the T-BOX.
And step S16, when the preset diagnosis equipment online prompt command exceeds the preset time, restoring the remote diagnosis function of the vehicle-mounted communication box. Namely, the gateway GW resumes normal forwarding of the remote diagnosis message of the vehicle-mounted communication box.
Further, in some optional embodiments, when the vehicle-mounted communication box is in a preset state, the vehicle-mounted communication box does not respond to any diagnosis request of the external access equipment, and sends out a prompt for stopping equipment access, wherein the preset state comprises a software upgrading state and a remote diagnosis state.
That is, if the remote diagnosis is turned on at this time, when it is detected that the diagnostic device is online, the vehicle-mounted communication box ignores the external Tester device diagnosis request if the vehicle-mounted communication box is already in the OTA mode. Simultaneously prompting the OTA (Over-the-air technology) upgrading in the instrument and the IVI to remind maintenance personnel not to access the Tester equipment; and reminding after-sale maintenance personnel to access the Tester equipment and starting diagnosis communication until the OTA of the vehicle-mounted communication box is upgraded.
EXAMPLE III
Another aspect of the present invention further provides a diagnostic function control system, referring to fig. 3, which is a diagnostic function control system according to a third embodiment of the present invention and is applied to a vehicle-mounted communication box, and the diagnostic function control system includes:
the system comprises an information receiving module 11, a configuration module and a configuration module, wherein the information receiving module is used for receiving offline configuration information sent by factory offline detection equipment, and the offline configuration information comprises a preset mark value of a preset mark bit;
the information configuration module 12 is configured to execute a corresponding offline configuration action according to the offline configuration information, where the last step of the offline configuration action is to configure a value of the preset flag bit from a default flag value to the preset flag value, where the default flag value indicates that the remote diagnosis function of the vehicle-mounted communication box is turned off, and the preset flag value indicates that the remote diagnosis function of the vehicle-mounted communication box is turned on;
the command judgment module 13 is used for judging whether an online prompt command of preset diagnostic equipment is continuously received or not when an access signal of the after-sales diagnostic instrument is detected;
and the diagnosis control module 14 is used for deactivating the remote diagnosis function of the vehicle-mounted communication box when the preset diagnosis equipment online prompt command is continuously received.
Further, in some alternative embodiments of the present invention, the diagnostic function control system further includes:
and the function starting module is used for recovering the remote diagnosis function of the vehicle-mounted communication box when the preset diagnosis equipment online prompt command exceeds the preset time.
Further, in some alternative embodiments of the present invention, the diagnostic control module 14 includes:
the configuration acquisition unit is used for acquiring network segment configuration information of the vehicle;
the first control unit is used for directly closing the remote diagnosis function of the vehicle-mounted communication box when the CAN network of the vehicle is judged to be a double network segment according to the network segment configuration information;
and the second control unit is used for controlling the gateway not to forward the remote diagnosis command sent by the vehicle-mounted communication box when the CAN network of the vehicle is judged to be four network segments and the diagnosis is carried out only through two network segments according to the network segment configuration information.
Further, in some optional embodiments of the present invention, the second control unit is further configured to control the gateway to forward a diagnostic data acquisition request of the after-sales diagnostic apparatus.
Further, in some alternative embodiments of the present invention, the diagnostic function control system further includes:
and the state prompting module is used for not responding to a diagnosis request of any external access equipment and sending a prompt for stopping equipment access when the vehicle-mounted communication box is in a preset state, wherein the preset state comprises a software upgrading state and a remote diagnosis state.
The functions or operation steps of the modules and units when executed are substantially the same as those of the method embodiments, and are not described herein again.
In summary, in the diagnosis function control system in the above embodiment of the present invention, the remote diagnosis function of the vehicle-mounted communication box is defaulted to the off state before the EOL offline configuration, so that when the factory offline detection device is connected to the CAN network for offline configuration, a mutual conflict between the remote diagnosis and the EOL offline configuration does not occur, and the EOL offline configuration is ensured to be normally executed, and meanwhile, the value of the flag bit of the remote diagnosis function is configured as the preset flag value from the default flag value in the last step of the EOL offline configuration, so as to activate the remote diagnosis function of the vehicle-mounted communication box, and ensure that the vehicle-mounted communication box starts the remote diagnosis function after the EOL offline configuration is completed. In addition, when the after-sale diagnostic instrument is accessed to the CAN network for after-sale diagnosis, the on-line prompt command of the diagnostic equipment is continuously sent to inform the vehicle-mounted communication box of the current after-sale diagnosis, so that the vehicle-mounted communication box is deactivated in the remote diagnosis function, the conflict between the after-sale diagnosis and the remote diagnosis function of the vehicle-mounted communication box is avoided, and the normal execution of the after-sale diagnosis is ensured.
Example four
In another aspect of the present invention, referring to fig. 4, a vehicle-mounted communication box according to a fourth embodiment of the present invention is shown, which is in communication with a vehicle-mounted CAN network, and includes a memory 20, a processor 10, and a computer program 30 stored in the memory and executable on the processor, wherein the processor 10 implements the diagnostic function control method as described above when executing the program 30.
The processor 10 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and is used to execute program codes stored in the memory 20 or process data, such as executing an access restriction program.
The memory 20 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 20 may in some embodiments be an internal storage unit of the on-board communication box, for example a hard disk of the on-board communication box. The memory 20 may be an external storage device of the vehicle-mounted communication box in other embodiments, such as a plug-in hard disk provided on the vehicle-mounted communication box, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 20 may also include both an internal storage unit of the in-vehicle communication box and an external storage device. The memory 20 may be used not only to store application software installed in the in-vehicle communication box and various kinds of data, but also to temporarily store data that has been output or will be output.
It should be noted that the configuration shown in fig. 4 is not intended to limit the on-board communication box, and in other embodiments, the on-board communication box may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components may be used.
In summary, in the vehicle-mounted communication box in the above embodiment of the present invention, the remote diagnosis function of the vehicle-mounted communication box is defaulted to the off state before the EOL offline configuration, so that when the factory offline detection device is connected to the CAN network for offline configuration, a mutual conflict between the remote diagnosis and the EOL offline configuration does not occur, and the EOL offline configuration is ensured to be normally executed, and meanwhile, the value of the flag bit of the remote diagnosis function is configured as the preset flag value from the default flag value in the last step of the EOL offline configuration, so as to activate the remote diagnosis function of the vehicle-mounted communication box, and ensure that the vehicle-mounted communication box starts the remote diagnosis function after the EOL offline configuration is completed. In addition, when the after-sale diagnostic instrument is accessed to the CAN network for after-sale diagnosis, the on-line prompt command of the diagnostic equipment is continuously sent to inform the vehicle-mounted communication box of the current after-sale diagnosis, so that the vehicle-mounted communication box is deactivated in the remote diagnosis function, the conflict between the after-sale diagnosis and the remote diagnosis function of the vehicle-mounted communication box is avoided, and the normal execution of the after-sale diagnosis is ensured.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the diagnostic function control method as described above.
The embodiment of the invention also provides a vehicle which comprises the vehicle-mounted communication box in the fourth embodiment.
Those of skill in the art will understand that the logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be viewed as implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A diagnostic function control method applied to a vehicle-mounted communication box, the method comprising:
receiving offline configuration information sent by factory offline detection equipment, wherein the offline configuration information comprises a preset mark value of a preset mark bit;
executing a corresponding offline configuration action according to the offline configuration information, wherein the last step of the offline configuration action is to configure the value of the preset flag bit into the preset flag value from a default flag value, the default flag value represents that the remote diagnosis function of the vehicle-mounted communication box is closed, and the preset flag value represents that the remote diagnosis function of the vehicle-mounted communication box is opened;
when an access signal of the after-sales diagnostic apparatus is detected, judging whether an online prompt command of preset diagnostic equipment is continuously received;
and if so, stopping the remote diagnosis function of the vehicle-mounted communication box.
2. The diagnostic function control method of claim 1, further comprising, after the steps of deactivating the remote diagnostic function of the on-board communication box and responding to a diagnostic data acquisition request of the after-market diagnostic apparatus:
and when the preset online prompt command of the diagnostic equipment exceeds the preset time, recovering the remote diagnosis function of the vehicle-mounted communication box.
3. The diagnostic function control method as set forth in claim 1 or 2, wherein the step of deactivating the remote diagnostic function of the on-vehicle communication box comprises:
acquiring network segment configuration information of a vehicle;
when the CAN network of the vehicle is judged to be a double network segment according to the network segment configuration information, the remote diagnosis function of the vehicle-mounted communication box is directly closed;
and when the CAN network of the vehicle is judged to be four network segments and is diagnosed only through two network segments according to the network segment configuration information, the control gateway does not forward the remote diagnosis command sent by the vehicle-mounted communication box.
4. The diagnostic function control method of claim 3, further comprising, after the step of the control gateway not forwarding the remote diagnostic command issued by the on-board communication box:
and controlling the gateway to forward a diagnostic data acquisition request of the after-sales diagnostic apparatus.
5. The diagnostic function control method of claim 1, further comprising:
when the vehicle-mounted communication box is in a preset state, a diagnosis request of any external access equipment is not responded, and an equipment access stopping prompt is sent, wherein the preset state comprises a software upgrading state and a remote diagnosis state.
6. A diagnostic function control system for use with a vehicle-mounted communication box, the system comprising:
the system comprises an information receiving module, a configuration module and a configuration module, wherein the information receiving module is used for receiving offline configuration information sent by factory offline detection equipment, and the offline configuration information comprises a preset mark value of a preset mark bit;
the information configuration module is used for executing corresponding offline configuration actions according to the offline configuration information, the last step of the offline configuration actions is to configure the value of the preset flag bit into the preset flag value from a default flag value, the default flag value represents that the remote diagnosis function of the vehicle-mounted communication box is closed, and the preset flag value represents that the remote diagnosis function of the vehicle-mounted communication box is opened;
the command judgment module is used for judging whether an online prompt command of preset diagnostic equipment is continuously received or not when an access signal of the after-sales diagnostic instrument is detected;
and the diagnosis control module is used for deactivating the remote diagnosis function of the vehicle-mounted communication box when the preset diagnosis equipment online prompt command is continuously received.
7. The diagnostic function control system of claim 6, further comprising:
and the function starting module is used for recovering the remote diagnosis function of the vehicle-mounted communication box when the preset diagnosis equipment online prompt command exceeds the preset time.
8. An on-board communication box in communication with a vehicle CAN network, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the diagnostic function control method of any one of claims 1 to 5 when executing the program.
9. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing the diagnostic function control method according to any one of claims 1 to 5.
10. A vehicle characterized by comprising the in-vehicle communication box of claim 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011009734.8A CN112198863A (en) | 2020-09-23 | 2020-09-23 | Diagnostic function control method, system, storage medium, vehicle-mounted communication box and vehicle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011009734.8A CN112198863A (en) | 2020-09-23 | 2020-09-23 | Diagnostic function control method, system, storage medium, vehicle-mounted communication box and vehicle |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112198863A true CN112198863A (en) | 2021-01-08 |
Family
ID=74016082
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011009734.8A Pending CN112198863A (en) | 2020-09-23 | 2020-09-23 | Diagnostic function control method, system, storage medium, vehicle-mounted communication box and vehicle |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112198863A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112666921A (en) * | 2020-12-15 | 2021-04-16 | 东风汽车有限公司 | Fault processing method and device for vehicle-mounted control module and vehicle-mounted control module |
CN112817888A (en) * | 2021-02-25 | 2021-05-18 | 深圳市轱辘车联数据技术有限公司 | OBD device state setting method and device, OBD device and storage medium |
CN113115350A (en) * | 2021-03-22 | 2021-07-13 | 江铃汽车股份有限公司 | Offline detection method for T-BOX |
CN113325831A (en) * | 2021-06-24 | 2021-08-31 | 江铃汽车股份有限公司 | Gateway routing method for platform-based automobile flash diagnosis |
CN113438270A (en) * | 2021-05-20 | 2021-09-24 | 江铃汽车股份有限公司 | Automobile message signal sending method and system |
CN114936047A (en) * | 2022-04-21 | 2022-08-23 | 江铃汽车股份有限公司 | Factory setting restoration method and system for IVI (interactive virtual infrastructure) system, electronic equipment and storage medium |
CN115291593A (en) * | 2022-10-08 | 2022-11-04 | 江铃汽车股份有限公司 | Vehicle remote diagnosis method, system, storage medium and equipment |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020103583A1 (en) * | 2001-01-31 | 2002-08-01 | Hiroshi Ohmura | System and method for remote vehicle troubleshooting |
US6677854B2 (en) * | 2001-10-05 | 2004-01-13 | Case, Llc | Remote vehicle diagnostic system |
CN101927738A (en) * | 2010-08-09 | 2010-12-29 | 奇瑞汽车股份有限公司 | Whole vehicle network configuration system and configuration method thereof |
CN102306023A (en) * | 2011-06-20 | 2012-01-04 | 奇瑞汽车股份有限公司 | Online configuration method of automobile controller |
CN104122883A (en) * | 2014-07-14 | 2014-10-29 | 重庆长安汽车股份有限公司 | Automatic automobile controller configuring method |
CN104572141A (en) * | 2013-10-10 | 2015-04-29 | 上海信耀电子有限公司 | Online updating method for guide program of vehicle electric control unit (ECU) |
CN104852947A (en) * | 2014-03-18 | 2015-08-19 | 北汽福田汽车股份有限公司 | CAN network topology structure of vehicle and vehicle using same |
CN105843216A (en) * | 2016-04-26 | 2016-08-10 | 奇瑞汽车股份有限公司 | Method and system for off-line detection of new-energy vehicle |
CN106407066A (en) * | 2016-09-26 | 2017-02-15 | 北京经纬恒润科技有限公司 | An end of line detection method and system for electronic products |
CN107454190A (en) * | 2017-08-30 | 2017-12-08 | 北京新能源汽车股份有限公司 | Network architecture of intelligent networked automobile and automobile |
CN108205308A (en) * | 2017-12-19 | 2018-06-26 | 中国第汽车股份有限公司 | A kind of automated diagnostic tester system based on vehicle body domain controller |
CN108303964A (en) * | 2017-12-28 | 2018-07-20 | 深圳市元征科技股份有限公司 | A kind of network connector and Vehicular diagnostic method |
CN109213131A (en) * | 2018-11-22 | 2019-01-15 | 奇瑞汽车股份有限公司 | Coordination method for automobile fault diagnosis conflict |
CN109624887A (en) * | 2019-01-03 | 2019-04-16 | 苏州同捷汽车工程技术股份有限公司 | A kind of intelligent network connection automobile serial data bus communication control system |
CN110296124A (en) * | 2019-06-03 | 2019-10-01 | 武汉工程大学 | Remote failure diagnosis system and method based on expert system |
CN110380785A (en) * | 2019-08-16 | 2019-10-25 | 青岛海信宽带多媒体技术有限公司 | A kind of digital diagnostic information acquisition methods, device and optical module |
CN111586145A (en) * | 2020-04-30 | 2020-08-25 | 深圳市元征科技股份有限公司 | Vehicle diagnosis method and system, electronic equipment and storage medium |
-
2020
- 2020-09-23 CN CN202011009734.8A patent/CN112198863A/en active Pending
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020103583A1 (en) * | 2001-01-31 | 2002-08-01 | Hiroshi Ohmura | System and method for remote vehicle troubleshooting |
US6677854B2 (en) * | 2001-10-05 | 2004-01-13 | Case, Llc | Remote vehicle diagnostic system |
CN101927738A (en) * | 2010-08-09 | 2010-12-29 | 奇瑞汽车股份有限公司 | Whole vehicle network configuration system and configuration method thereof |
CN102306023A (en) * | 2011-06-20 | 2012-01-04 | 奇瑞汽车股份有限公司 | Online configuration method of automobile controller |
CN104572141A (en) * | 2013-10-10 | 2015-04-29 | 上海信耀电子有限公司 | Online updating method for guide program of vehicle electric control unit (ECU) |
CN104852947A (en) * | 2014-03-18 | 2015-08-19 | 北汽福田汽车股份有限公司 | CAN network topology structure of vehicle and vehicle using same |
CN104122883A (en) * | 2014-07-14 | 2014-10-29 | 重庆长安汽车股份有限公司 | Automatic automobile controller configuring method |
CN105843216A (en) * | 2016-04-26 | 2016-08-10 | 奇瑞汽车股份有限公司 | Method and system for off-line detection of new-energy vehicle |
CN106407066A (en) * | 2016-09-26 | 2017-02-15 | 北京经纬恒润科技有限公司 | An end of line detection method and system for electronic products |
CN107454190A (en) * | 2017-08-30 | 2017-12-08 | 北京新能源汽车股份有限公司 | Network architecture of intelligent networked automobile and automobile |
CN108205308A (en) * | 2017-12-19 | 2018-06-26 | 中国第汽车股份有限公司 | A kind of automated diagnostic tester system based on vehicle body domain controller |
CN108303964A (en) * | 2017-12-28 | 2018-07-20 | 深圳市元征科技股份有限公司 | A kind of network connector and Vehicular diagnostic method |
CN109213131A (en) * | 2018-11-22 | 2019-01-15 | 奇瑞汽车股份有限公司 | Coordination method for automobile fault diagnosis conflict |
CN109624887A (en) * | 2019-01-03 | 2019-04-16 | 苏州同捷汽车工程技术股份有限公司 | A kind of intelligent network connection automobile serial data bus communication control system |
CN110296124A (en) * | 2019-06-03 | 2019-10-01 | 武汉工程大学 | Remote failure diagnosis system and method based on expert system |
CN110380785A (en) * | 2019-08-16 | 2019-10-25 | 青岛海信宽带多媒体技术有限公司 | A kind of digital diagnostic information acquisition methods, device and optical module |
CN111586145A (en) * | 2020-04-30 | 2020-08-25 | 深圳市元征科技股份有限公司 | Vehicle diagnosis method and system, electronic equipment and storage medium |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112666921A (en) * | 2020-12-15 | 2021-04-16 | 东风汽车有限公司 | Fault processing method and device for vehicle-mounted control module and vehicle-mounted control module |
CN112666921B (en) * | 2020-12-15 | 2022-08-26 | 东风汽车有限公司 | Fault processing method and device for vehicle-mounted control module and vehicle-mounted control module |
CN112817888A (en) * | 2021-02-25 | 2021-05-18 | 深圳市轱辘车联数据技术有限公司 | OBD device state setting method and device, OBD device and storage medium |
CN113115350A (en) * | 2021-03-22 | 2021-07-13 | 江铃汽车股份有限公司 | Offline detection method for T-BOX |
CN113438270A (en) * | 2021-05-20 | 2021-09-24 | 江铃汽车股份有限公司 | Automobile message signal sending method and system |
CN113325831A (en) * | 2021-06-24 | 2021-08-31 | 江铃汽车股份有限公司 | Gateway routing method for platform-based automobile flash diagnosis |
CN113325831B (en) * | 2021-06-24 | 2023-01-31 | 江铃汽车股份有限公司 | Gateway routing method for platform-based automobile flash diagnosis |
CN114936047A (en) * | 2022-04-21 | 2022-08-23 | 江铃汽车股份有限公司 | Factory setting restoration method and system for IVI (interactive virtual infrastructure) system, electronic equipment and storage medium |
CN114936047B (en) * | 2022-04-21 | 2024-08-13 | 江铃汽车股份有限公司 | Factory setting restoration method and system for IVI (IVI) system, electronic equipment and storage medium |
CN115291593A (en) * | 2022-10-08 | 2022-11-04 | 江铃汽车股份有限公司 | Vehicle remote diagnosis method, system, storage medium and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112198863A (en) | Diagnostic function control method, system, storage medium, vehicle-mounted communication box and vehicle | |
CN111426984B (en) | OBD module disconnection detection method, OBD vehicle-mounted monitoring terminal and OBD monitoring system | |
US6847864B2 (en) | Vehicular communications system initializing abnormal control unit | |
US10857882B2 (en) | System and method for remotely controlling and monitoring vehicle based on IOT | |
CN113335208B (en) | Reverse image offline configuration method and system, storage medium and computer equipment | |
CN109842676B (en) | Over-the-air control method, electronic equipment, automobile and readable storage medium | |
US12087103B2 (en) | Electronic control unit and non-transitory computer readable medium storing session establishment program | |
CN114815773A (en) | Vehicle diagnosis response method and device, readable storage medium and vehicle gateway | |
CN111447589B (en) | Mobile communication-based monitoring and authorization using method for vehicle-mounted Ethernet diagnosis system | |
CN110203157B (en) | Auxiliary diagnosis device for abnormal battery power failure, server and system comprising auxiliary diagnosis device | |
CN110466450B (en) | Automobile safety detection system | |
CN115047792A (en) | ECU control system for motorcycle | |
JP4124427B2 (en) | Vehicle control apparatus and communication method thereof | |
JP7392544B2 (en) | In-vehicle ECU, program and information processing method | |
CN111988194B (en) | Method and device for diagnosing automobile line | |
CN115393986B (en) | Door unlocking method, domain controller, system, vehicle and storage medium | |
KR101618118B1 (en) | Control system and method for body control module using external device | |
JP3799797B2 (en) | Diagnostic equipment for vehicles | |
KR20220024905A (en) | How to talk to a computer on the vehicle's onboard bus | |
CN113206519A (en) | Vehicle storage battery monitoring method and system | |
CN116241380B (en) | Method and device for adjusting working state of vehicle oil pump and vehicle | |
CN118778611A (en) | Method, device, equipment and storage medium for detecting vehicle dormancy abnormality | |
RU2816885C2 (en) | Method of interacting with computing device on vehicle on-board bus | |
CN114880033B (en) | Screen protection method and device for vehicle-mounted display, storage medium and control equipment | |
CN116980860A (en) | Vehicle-mounted terminal starting detection method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210108 |