Controller local network controlling system and detection thereof and adjustment method
Technical field
The present invention relates to a kind of controller local network controlling system, relate in particular to controller local network controlling system and detection and adjustment method that electronic device in the vehicle of controller local area network (CAN:controller area network) agreement is adopted in integrated management.
Background technology
Originally controller local area network is the serial network communication modes that proposes in order to be applied to the automobile industry field, also be widely used in all industrial fields at present except being applied to automotive field, the basic controller local area network network architecture that is applied to automotive field as shown in Figure 1.As shown in Figure 1, the controller local area network network system has a plurality of nodes (node), and being provided with the Controller Area Network BUS 1 that is used to transmit various message, a plurality of electric control gears (ECU-Electronic Control Unit) 2 that are connected in Controller Area Network BUS 1 each node, these a plurality of electric control gears 2 carry out corresponding work by each node transmission/reception message.
The message that is used for the controller local area network network system does not comprise the address information of transmitter side or receiver side, and only comprises the identifier of receiver side.
In view of the above, Controller Area Network BUS 1 distributes intrinsic identifier (or identifier) for respectively a plurality of electric control gears 2 that are connected in a plurality of nodes according to the controller local area network agreement.Because this content belongs to known technology, thereby omits its detailed description.
And, after the message that the electric control gear that is connected in Controller Area Network BUS 1 each node obtains to be transmitted by Controller Area Network BUS 1, confirm whether receive by the identifier of acquisition message, if the identifier of message is identical with the identifier of self, then receives the message that is obtained and carry out corresponding work as input message.
Each electric control gear of aforesaid controller local area network network system confirms whether carry out operate as normal by controller local network controlling system as shown in Figure 2.
The functional block diagram of the controller local network controlling system that Fig. 2 is provided for the foundation prior art.
As shown in Figure 2, existing controller local network controlling system comprise Controller Area Network BUS 1, be separately positioned on the memory 2a of a plurality of electric control gears 2 inside and operation control module 2b, Controller Area Network BUS with USB (USB) 3, be arranged on detector 4 inside detection module 4a, detect with memory 4b and user interface section 4c.
The memory 2a of electric control gear 2 storage is used to drive the data of working procedure and the working procedure of operation control module 2b.
Controller Area Network BUS 1 is used to transmit the message from each electric control gear 2 or 3 outputs of slave controller local area network bus usefulness USB.
If the message that the operation control module 2b of electric control gear 2 receives corresponding to self by Controller Area Network BUS 1, then driving is stored in the interior working procedure of memory 2a and works according to the message that is received.Especially, when receiving detect-message, work, and generate the test results report message of reflection working result, again to Controller Area Network BUS 1 output according to detect-message by Controller Area Network BUS 1.
Controller Area Network BUS USB 3 physical connection Controller Area Network BUS 1 and outside detector 4, and will output to detector 4 by the message that Controller Area Network BUS 1 transmits, will be sent on the Controller Area Network BUS 1 by the message of detector 4 outputs again.
The detection module 4a of detector 4 is used to detect the operating state of each electric control gear 2 that is connected in Controller Area Network BUS 1.For this reason, detection module 4a makes the user can select the electric control gear 2 that need detect by user interface section 4c, when the user selects the electric control gear 2 that need detect, then produce the detect-message that comprises appointed electric control gear 2 identifiers and to Controller Area Network BUS with USB 3 outputs.And, the slave controller local area network bus receives after the test results report message with USB 3, confirm by analyzing whether specific electric control gear 2 carries out operate as normal, simultaneously by user interface section 4c output testing result, and will be stored in to detect and be updated to present testing result with 2 testing results of the electric control gear among the memory 4b.
The detection of detector 4 is given a plurality of electric control gears 2 memory allocated zones respectively with memory 4b, and the testing result of storing corresponding electric control gear 2 (or identifier) in each storage area.
The user interface section 4c of detector 4 comprises supervising device (not shown), audio devices (not shown) and key input apparatus (not shown), thereby can make the user carry out identification on the audio visual, and the electric control gear 2 that makes the user can select the operational mode of detector 4 and need to detect by key input apparatus by supervising device and audio devices.
According to the controller local network controlling system that aforesaid prior art provided, by detector 4, and utilize detector 4 to confirm whether a plurality of electric control gears that are connected in the controller local area network network system carry out operate as normal to controller local area network network system connection outside.
But,, only stay in whether affirmation carries out operate as normal by a plurality of electric control gears of Controller Area Network BUS 1 connection degree according to the controller local network controlling system that prior art provided.
Therefore, when the electric control gear of confirming error running and when debugging, need be from the electric control gear of car body explode error operation, and the electric control gear that separates is connected on the special control device with debugging routine, revise the working procedure of electric control gear thus.
Therefore, when debugging the electric control gear of error running, existing needs the more time and the problem of expense.
Summary of the invention
The object of the present invention is to provide a kind of by utilizing Controller Area Network BUS to confirm can correct mistakes when whether carrying out operate as normal controller local network controlling system and the detection and the adjustment method of electric control gear of operation of each electric control gear.
According to controller local network controlling system provided by the present invention, comprise: the Controller Area Network BUS that is used to transmit message to achieve these goals; The a plurality of electric control gears that have working procedure respectively, to be used for when receiving the request that detects operation by described Controller Area Network BUS, detect the described working procedure that is had respectively and whether carry out operate as normal, when receiving the commissioning test request, respectively the working procedure that is had is stored as again the working procedure that transmits by described Controller Area Network BUS by described Controller Area Network BUS; Detector with all working procedures of each described a plurality of electric control gear, to be used for when detecting, need the described working procedure of the described electric control gear of detection to confirm whether described working procedure carries out operate as normal by operation, and when having the described electric control gear of error running, obtain described error running electric control gear described working procedure and send it to described Controller Area Network BUS; The Controller Area Network BUS interface unit is to be used for described Controller Area Network BUS of physical connection and described detector.
According to controller local area network network system provided by the present invention, comprise: the Controller Area Network BUS that is used to transmit message to achieve these goals; Be connected in described Controller Area Network BUS and have a plurality of electric control gears of intrinsic identifier and working procedure respectively, to be used for when receiving the request that detects operation by described Controller Area Network BUS, detect the described working procedure that is had respectively and whether carry out operate as normal, and when receiving the commissioning test request, respectively the working procedure that is had is stored as again the working procedure that transmits by described Controller Area Network BUS by described Controller Area Network BUS; And, described electric control gear further comprises debugging module, to be used for when receiving the working procedure that contains with the identifier same identifier of described electric control gear by described Controller Area Network BUS, the working procedure that is had in the described electric control gear being stored as the described working procedure that receives again.
To achieve these goals according to the adjustment method of controller local network controlling system provided by the present invention, comprise step: initializes memory, being used to making described detector grasp the identifier of each described a plurality of electric control gear, and to the working procedure of inner each described a plurality of electric control gear of memory stores; Working procedure is provided, being used to make described detector by reading the working procedure that described memory obtains the electric control gear of needs debugging, and the working procedure of described acquisition is converted to after the message with the described electric control gear identifier that needs debugging to described Controller Area Network BUS output; The commissioning test program, being used for making described electric control gear with the identifier same identifier that is comprised with described message to obtain new working procedure from the described message that transmits by described Controller Area Network BUS, and will be described new working procedure is stored again as the working procedure of inside.
To achieve these goals according to the detection and the adjustment method of controller local network controlling system provided by the present invention, comprise step: initializes memory, being used to making described detector grasp the identifier of each described a plurality of electric control gear, and to the working procedure of inner each described a plurality of electric control gear of memory stores; Request detection, during with the described electric control gear that is used for detecting when designated needs, described detector generates the message that comprises appointed described electric control gear identifier and ask described detection operation, and to described Controller Area Network BUS output; Detect, being used to make described electric control gear response to detect operation, and generating and be used to reflect the message of testing result and to described Controller Area Network BUS output by the described message that described Controller Area Network BUS transmits with identifier same identifier of being comprised with described message; Obtain working procedure, to be used to making described detector reception and analysis be used to reflect the message of described testing result, when in a single day the electric control gear that carries out described detection is confirmed to be error running, obtain to carry out the working procedure of the electric control gear of described detection by the memory of reading described detector inside; Provide working procedure, to export to described Controller Area Network BUS after the message that is used to make described detector be converted to described electric control gear identifier by working procedure with needs debugging with described acquisition; The commissioning test program, being used for making described electric control gear with the identifier same identifier that is comprised with described message to obtain new working procedure from the described message that transmits by described Controller Area Network BUS, and will be described new working procedure is stored again as the working procedure of inside.
Description of drawings
Fig. 1 is the schematic diagram of the general controller local area network network architecture of expression;
Fig. 2 is for being used to illustrate the functional block diagram of the controller local network controlling system detection method that provides according to prior art;
Fig. 3 is the functional block diagram that is used to illustrate according to controller local network controlling system provided by the present invention;
Fig. 4 is used to illustrate according to the detection of controller local network controlling system provided by the present invention and the flow chart of adjustment method.
Embodiment
Below, controller local network controlling system that present invention will be described in detail with reference to the accompanying is provided and detection thereof and adjustment method.
Fig. 3 is the functional block diagram that is used to illustrate according to controller local network controlling system provided by the present invention.As shown in Figure 3, similar according to controller local network controlling system provided by the present invention and Fig. 2, comprise Controller Area Network BUS 1, a plurality of electric control gear 5, Controller Area Network BUS USB 3 and detector 6 equally, and each electric control gear 5 further comprises debugging module 5a, and detector 6 further comprises debugging module 6a and debugging memory 6b.
Therefore, put on the label identical at the structure identical among Fig. 3 and the inscape of carrying out identical operation, and omit its detailed description with Fig. 2 with Fig. 2.
The debugging module 5a of electric control gear 5 is used to correct mistakes the module of electric control gear 5 working procedures of operation.Therefore, debugging module 5a receives these message when slave controller local area network bus 1 transmits when comprising with self a plurality of debugging message of identifier same identifier, and obtains the data of working procedure and working procedure by the debugging message that combination is received.And, the Data Update that is stored in existing working procedure in the memory 2a and working procedure is the new working procedure that obtains and the data of working procedure.
The debugging module 6a of detector 6 is used for revising the working procedure of the electric control gear 5 of a plurality of electric control gear 5 error runnings.In more detail, debugging module 6a read detect with among the memory 4b corresponding to the testing result of each electric control gear 5 (or identifier), and show testing result, so that the user grasps the electric control gear 5 of error running by user interface section 4c.And, when selecting the electric control gear 5 of needs debugging, the user discerns this instruction, and read debugging and obtain data with memory 6b corresponding to the working procedure and the working procedure of appointed electric control gear 5, and the data of the working procedure that obtained and this working procedure are converted to after a plurality of debugging messages a plurality of debugging messages from USB 3 outputs to Controller Area Network BUS that changed with.
At this moment, debugging message comprises the identifier of the electric control gear 5 of error running, and observes the message frame form of controller local area network agreement.
The debugging of detector 6 uses memory 6b to each a plurality of electric control gears 5 memory allocated zone, and storage is used to drive the working procedure of electric control gear 5 operation control module 2b and the data of this working procedure in each storage area.
The user interface section 4c of detector 6 has supervising device (not shown), audio devices (not shown) and key input apparatus (not shown), thereby can make the state of identification detector 6 operating states and a plurality of electric control gear 5 on user's audio visual, and the electric control gear 5 that makes the user can select detection operation, the commissioning test of detector 6 and need to detect by key input apparatus by supervising device and audio devices.
Fig. 4 is used for the detection of controller local network controlling system of key diagram 3 and the flow chart of adjustment method.
At first, detector 6 is connected to Controller Area Network BUS with on the USB 3, grasp is connected in the identifier of each a plurality of electric control gear 5 on the Controller Area Network BUS 1, with the area dividing of debugging with memory 6b is the storage area that corresponds respectively to the electric control gear of being grasped 5, and storage is used to drive corresponding electric control gear 5 (or each identifier) working procedure of operation control module 2b and the data of working procedure in the storage area of each division.And, after the testing result of each a plurality of electric control gear 5 of detector 6 initialization, be stored in and detect with among the memory 4b.Finish the initialization operation (step S1) of detector 6 thus.
And, whether detector 6 selects detecting pattern (step S2) by user interface section 4c supervisory user, if the electric control gear 5 (step S3) that the user selects detecting pattern and selects to detect, then drive detection module 4a and produce the detect-message that contains electric control gear 5 identifiers that need detect, and export this message (step S4) with USB 3 and Controller Area Network BUS 1 to Controller Area Network BUS.
In a plurality of electric control gears 5 of total Controller Area Network BUS 1, electric control gear 5 with the identical identifier of the identifier that comprised with detect-message receives detect-message, and drives operation control module 2b and detect operation (step S5) corresponding to the detect-message that is received.
Move if finish to detect, then generate the test results report message that reflection detects operation result, and export these message (step S6) with USB 3 to Controller Area Network BUS 1 and Controller Area Network BUS.
The detection module 4a of detector 6 receives test results report message by Controller Area Network BUS with USB 3, and analyze the test results report message (step S7) received, by user interface section 4c output testing result, and will be stored in the testing result that detects with the electric control gear 5 of memory 4b and be updated to the present testing result that is obtained when confirming then whether the electric control gear 5 detect carries out operate as normal.
Analyzing and testing is the result of report message as a result, if the electric control gear that detects 5 is identified normally work (step S8), then enters step S3 once more and detects other electric control gears 5; If confirm electric control gear 5 error runnings, then whether detector 6 selects debugging module (step S9) by user interface section 4c supervisory user.
Monitored results, if the user selects debugging module, then detector 6 read debugging with in the storage area of memory 6b corresponding to the storage area of the electric control gear 5 that will debug, thereby the working procedure of the electric control gear 5 that acquisition need be debugged and the data of working procedure.And, the working procedure that obtained and the data of working procedure are converted to a plurality of debugging messages, and the debugging message of being changed with USB 3 and Controller Area Network BUS 1 output to Controller Area Network BUS (step S10).
Be connected in a plurality of electric control gears 5 of Controller Area Network BUS 1, electric control gear 5 debugging module 5a with the identifier same identifier that is comprised with debugging message receive debugging message, and the debugging message that received of combination and obtain the data (step S11) of working procedure and working procedure.
And, the debugging module 5a of electric control gear 5 substitutes the data of the working procedure be stored in the memory and working procedure and the data of storing the working procedure and the working procedure of new acquisition, and generates and be used to notify the successful debugging success message of debugging and output to Controller Area Network BUS usefulness USB 3 and Controller Area Network BUS 1 (step S12).
When the debugging module 6a of detector 6 receives the debugging success message by Controller Area Network BUS with USB 3, confirm successfully to have revised the working procedure (step S13) of the electric control gear of debugging 5, and finish detection and adjustment method according to controller local network controlling system provided by the present invention.
In sum,, thereby a plurality of electric control gears can be installed under the state of vehicle and detect and commissioning test owing to can transmitting detect-message and debugging message according to controller local network controlling system provided by the present invention and detection thereof and adjustment method by Controller Area Network BUS.
Though be described with reference to the preferred embodiments of the present invention above, but should be understood that under the situation that does not break away from thought of the present invention that claim puts down in writing and scope, the technical staff of the technical field of the invention can carry out various modifications and changes to the present invention.
Controller local network controlling system provided by the present invention and detection thereof and adjustment method confirm by utilizing Controller Area Network BUS whether each electric control gear carries out operate as normal, the working procedure of the electric control gear of the operation that can correct mistakes simultaneously.
Therefore, the present invention reduces the required time and the expense of electric control gear of debugging error running significantly.