Controller coding information writing / reading method and system

By combining the Canoe software platform with terminal devices, the automatic writing/reading of controller coding information is realized using the CAPL programming language, which solves the problem of difficulty in quickly obtaining controller information when there is no host computer, and improves the efficiency of information reading and the ability to continuously send messages.

CN120602252AInactive Publication Date: 2025-09-05BEIJING HUANXIN ZHIDONG TECHNOLOGY CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202510719557.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-09-05
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, it is difficult to quickly obtain controller information when there is no host computer, and manual code transmission is inefficient and cannot meet the demand for rapid and continuous transmission of multiple frames of messages.

Method used

The CANoe software platform is used to connect to the terminal device, and the program is written in the CAPLS programming language. The CAN communication device is used to send message-related requests and read command signals for the controller coding information to realize automatic writing/reading of the controller coding information.

Benefits of technology

It realizes the rapid acquisition of controller information without a host computer, improves the efficiency of information reading, and meets the needs of fast and continuous sending of multiple frame messages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120602252A_ABST
    Figure CN120602252A_ABST
Patent Text Reader

Abstract

The invention provides a controller coding information writing / reading method and system. The method comprises the steps that a canoe software platform is connected with terminal equipment and a controller; the canoe software platform loads and runs the preset code file to realize information interaction with the controller so as to send a message related request of controller coding information and a reading command signal to a bus through can communication equipment; writing a program by using a capl programming language through the terminal equipment, and uploading the compiled capl program to the canoe software platform as a script; based on the script, a reading module and a writing module for the controller coding information are arranged on the terminal equipment in a key triggering mode, and automatic writing / reading of the controller coding information is achieved by clicking a key. According to the method and the device, capl codes are automatically written by virtue of a canoe platform to interact with the controller, so that the required controller information is obtained or a specific test is carried out.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of controller information reading, and in particular to a controller coded information writing / reading method and system. Background Art

[0002] Currently, when developing a new controller, if you want to read specific controller information (such as the boot version number, hardware version number, software version number, and torque test data), you need to develop a host computer specifically for the controller to read it. Developing a host computer takes a long time, and when the host computer is not yet available, it is impossible to quickly obtain controller information. Or when performing specific tests, the host computer may not have this function.

[0003] To address this issue, manually sending a specific code can retrieve certain information. However, manual transmission can easily lead to forgetting the message ID and content, and if the amount of information to be read is large, efficiency can be very low, potentially taking one or several hours. Furthermore, some specific information requires sending multiple frames continuously within tens of milliseconds, which is impossible with manual transmission. Summary of the Invention

[0004] To this end, the present invention provides a controller coding information writing / reading method and system, aiming to solve the technical problem in the prior art that it is difficult to quickly obtain controller information when there is no host computer.

[0005] To achieve the above objectives, the present invention adopts the following technical solutions:

[0006] According to a first aspect of the present invention, the present invention provides a method for writing / reading code information of a controller, the method comprising:

[0007] Connect the canoe software platform to the terminal device and the controller respectively;

[0008] The canoe software platform loads and runs the preset code file to implement information interaction with the controller, so as to send the message-related request and read command signal of the controller encoding information to the bus through the can communication device;

[0009] Using the terminal device, writing a program in the CAPL programming language, and uploading the written CAPL program to the Canoe software platform as a script;

[0010] Based on the script, a reading module and a writing module for the controller coding information are set on the terminal device in the form of button triggering, and the controller coding information is automatically written / read by clicking the button.

[0011] Furthermore, the method further comprises:

[0012] The preset code file is debugged and modified through the terminal device to test the controller and obtain corresponding test data information.

[0013] Furthermore, before the controller's message-related request and read command signal are sent to the bus through the CAN communication device, the method further includes:

[0014] The CAN protocol uses the event / cycle format to define message-related requests and read command signals for the controller's coded information.

[0015] Furthermore, based on the script, setting a reading module and a writing module for the controller coding information in the form of key triggering on the terminal device includes:

[0016] Setting a write module, a read module and a reset module in the GUI interface of the canoe software platform, and implementing the corresponding functions of each module based on the script of the canoe software platform;

[0017] The write module includes a code input box and a write code operation button; the read module includes a code display box and a read code operation button; and the reset module includes a reset button.

[0018] Furthermore, the code input box is used to input code data; and / or,

[0019] The write code operation button is used to confirm writing of the code data; and / or,

[0020] The read code operation button is used to confirm reading of the coded data; and / or,

[0021] The code display frame is used to display code data; and / or,

[0022] The reset button is used to control the controller to return to an initial state.

[0023] Furthermore, the automatic writing / reading of the controller coding information by clicking a button includes:

[0024] In response to a click on the read code operation button, the Canoe program reads the signal list / matrix information of the CAN protocol; the signal list / matrix information includes specific signals required for reading the code to accommodate different signal requirements of different vehicle models;

[0025] Sending a message instruction ID in the form of event / cycle to obtain the encoding through the canoe software platform;

[0026] The hexadecimal coded data is read through the message instruction ID command, and the coded data is written into a specific document.

[0027] Furthermore, the automatic writing / reading of the controller coding information by clicking a button also includes:

[0028] In response to a click on the write code operation button, the MATLAB program writes the signal list / matrix information of the CAN protocol; the signal list / matrix information includes specific signals required for write code to accommodate different signal requirements of different vehicle models;

[0029] Using the corresponding ID message in the capl program to write the hexadecimal message data, sending the ID message request command containing the coded data through the canoe software platform to request writing the coded data;

[0030] If the controller feeds back that the coding is allowed to be written, the coding data is written into the controller.

[0031] Furthermore, the method further comprises:

[0032] If the controller feedback indicates that the code writing is not allowed, check whether the ID message request command is correct and / or whether the CAN communication is normal.

[0033] Furthermore, after writing the coded data via the ID message, the method further includes:

[0034] The controller sends a Write_Success message in response to success, and the GUI interface displays that the write is successful.

[0035] According to a second aspect of the present invention, a controller coding information writing / reading system is provided, the system comprising: a canoe software platform and a terminal device; the canoe software platform comprises a canoe hardware device and canoe software; the canoe hardware device is connected to the controller; the canoe software is connected to the terminal device;

[0036] The canoe software platform is used to load and run the preset code file to implement information interaction with the controller, so as to send the message-related request and read command signal of the controller encoding information to the bus through the can communication device;

[0037] The terminal device is used to write a program using the CAPEL programming language, and upload the written CAPEL program to the Canoe software platform as a script;

[0038] The terminal device is further used to set a reading module and a writing module for the controller coding information in the form of key triggering based on the script, and realize automatic writing / reading of the controller coding information by clicking a key.

[0039] The present invention adopts the above technical solution and has at least the following beneficial effects:

[0040] Through the solution of the present invention, the Canoe software platform is connected to the terminal device and the controller respectively; the Canoe software platform loads and runs the preset code file to realize information interaction with the controller, so as to send the message-related request and read command signal of the controller coding information to the bus through the CAN communication device; through the terminal device, a program is written using the CAPEL programming language, and the written CAPEL program is uploaded to the Canoe software platform as a script; based on the script, a reading module and a writing module for the controller coding information are set in the form of button triggering on the terminal device, and the controller coding information is automatically written / read by clicking the button. In this way, the CAPEL code is written by the Canoe platform to interact with the controller, obtain the required controller information or perform specific tests.

[0041] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0043] Figure 1 A schematic flow chart of a controller coding information writing / reading method provided by the first embodiment of the present invention is shown;

[0044] Figure 2 A schematic flow chart of a controller coding information writing / reading method provided by a second embodiment of the present invention is shown;

[0045] Figure 3 A schematic flow chart of a controller coding information writing / reading method provided by a third embodiment of the present invention is shown;

[0046] Figure 4 A schematic structural diagram of a controller coding information writing / reading system provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0047] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0048] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, the elements defined by the phrase "comprising..." do not exclude the presence of other identical elements in the process, method, article, or device comprising the elements.

[0049] The embodiment of the present invention provides a controller coding information writing / reading method. For existing controllers, when the host computer has not yet been developed or is not yet available, the method uses self-set code to send and receive messages with the controller, forming a "question and answer" form to read the available information of the controller, solving the technical problem of the need to adapt to the diagnostic program and develop corresponding diagnostic equipment in traditional technologies with high costs. Figure 1 As shown, it may at least include the following steps S101 to S104:

[0050] Step S101: Connect the canoe software platform to the terminal device and the controller respectively.

[0051] In this embodiment of the present invention, the Canoe software platform includes Canoe hardware devices for connecting to a real vehicle bus and Canoe software for installation and deployment. The Canoe hardware devices connect to a controller via a bus, while the Canoe software connects to a terminal device. A terminal device is a mobile device, such as a laptop, that allows users to program and perform read and write operations.

[0052] In step S102, the canoe software platform loads and runs the preset code file to implement information interaction with the controller, so as to send the message-related request and read command signal of the controller coding information to the bus through the can communication device.

[0053] Pre-written code files are used to implement information exchange between the Canoe software platform and the controller. In practice, the CAN protocol uses an event / cycle format to define message requests and read command signals for the controller's coded information. These messages are then sent to the bus via the CAN communication device. This allows for information exchange with the controller over the bus.

[0054] Step S103: Write a program in the CAPEL programming language through the terminal device, and upload the completed CAPEL program to the Canoe software platform as a script.

[0055] It can be understood that the capl program in the embodiment of the present invention is written by professionals according to the controller coding information writing / reading requirements, and serves as the underlying support for the operator to write / read the controller coding information with one click.

[0056] Step S104: Based on the script, a reading module and a writing module for the controller coding information are set on the terminal device in the form of button triggering, and the controller coding information is automatically written / read by clicking the button.

[0057] The embodiment of the present invention is based on the Canoe software platform and a development script using the Capl editing language, thereby achieving the purpose of conveniently writing and reading the internal coding information of the controller. Specifically, a write module, a read module, and a reset module can be set up in the Canoe software platform's GUI interface, and the corresponding functions of each module can be implemented based on the Canoe software platform's script. The write module includes a code input box and a write code operation button; the read module includes a code display box and a read code operation button; and the reset module includes a reset button. The code input box is used to enter coded data; the write code operation button is used to confirm the writing of coded data; the read code operation button is used to confirm the reading of coded data; the code display box is used to display the coded data; and the reset button is used to control the controller to return to its initial state.

[0058] That is to say, in actual operation, you can enter the coding data in the coding input box, click the write coding operation button, and the GUI will display that the writing is successful, and the coding operation for the controller can be completed; click the read coding operation button, and the coding data will be displayed in the writing display box, and the coding reading operation for the controller can be completed.

[0059] In an alternative embodiment, if Figure 2As shown, the Canoe software platform loads and runs a preset code file. After establishing information exchange with the controller, professionals can write a CAPL program based on their needs. The terminal device can respond to the operator's keystroke trigger to run the CAPL program to obtain information or perform tests. Furthermore, professionals can repeatedly debug and modify the preset code file through the terminal device to test the controller and obtain corresponding test data information.

[0060] In an optional embodiment, when executing the read and write operations of the controller coding information: in response to a click on the read coding operation button, the embodiment of the present invention causes the Canoe program to read the signal list / matrix information of the CAN protocol, which includes the specific signals required for reading the coding to accommodate the different signal requirements of different vehicle models; sends a message instruction ID in the form of event / cycle to obtain the coding; then reads the hexadecimal coded data through the message instruction ID command, writes the coded data to a specific document, and displays it in the coding display box. It can be understood that if the coding information of the controller is read successfully, the document contains the message data of the corresponding ID.

[0061] Furthermore, if Figure 3 As shown, in response to a click operation on the write coding operation button, the embodiment of the present invention writes the signal list / matrix information of the CAN protocol in the MATLAB program. The signal list / matrix information includes the specific signals required for writing coding to adapt to the different signal requirements of different vehicle models; the corresponding ID message in the CAP1 program is used to write the hexadecimal message data, and the ID message request command containing the coding data is sent through the CANoe software platform to request the writing of the coding data; and then the coding information is written through the message (the written coding data is Data1). It should be noted that in the "request to write coding data" step, it is determined whether the controller feedback allows writing coding. If the controller feedback allows writing coding, the coding data is written to the controller; if the controller feedback does not allow writing coding, check whether the ID message request command is correct and / or whether the CAN communication is normal. After writing the coding data through the ID message, the controller sends a successful response Write_Success message, and the GUI interface displays a successful write.

[0062] As an example, the code to read the controller encoding information is as follows:

[0063]

[0064]

[0065]

[0066]

[0067] Split the string according to the specified delimiter similar to the python split function

[0068]

[0069]

[0070]

[0071] The embodiment of the present invention provides a controller coding information writing / reading method and system, which respectively connects the Canoe software platform to the terminal device and the controller; the Canoe software platform loads and runs a preset code file to realize information interaction with the controller, so as to send the message-related request and read command signal of the controller coding information to the bus through the CAN communication device; through the terminal device, a program is written in the CAPEL programming language, and the written CAPEL program is uploaded to the Canoe software platform as a script; based on the script, a reading module and a writing module for the controller coding information are set in the form of key triggering on the terminal device, and the controller coding information is automatically written / read by clicking the key. Through the present invention, the controller is read and tested in the form of CAPEL code. It only needs to connect the computer to the controller or the whole vehicle, run the written CAPEL code through the Canoe operation, read the corresponding controller information, and perform specific tests on the controller. It can realize that a large amount of required controller information and automatic testing can be automatically completed with one click, with high flexibility, and the code can be modified flexibly according to the idea to complete the test.

[0072] Further, as Figure 1 The specific implementation of the present invention provides a controller encoding information writing / reading system, such as Figure 4 As shown, the system may include: a canoe software platform 410 and a terminal device 420; the canoe software platform 410 includes a canoe hardware device and a canoe software; the canoe hardware device is connected to a controller; the canoe software is connected to the terminal device 420;

[0073] The canoe software platform 410 can be used to load and run preset code files to implement information interaction with the controller, so as to send message-related requests and read command signals of the controller's coded information to the bus through the CAN communication device (CAN transceiver / CAN / controller);

[0074] The terminal device 420 can be used to write programs using the CAPL programming language and upload the written CAPL program to the Canoe software platform 410 as a script;

[0075] The terminal device 420 can also be used to set a reading module and a writing module for the controller coding information in the form of key triggering based on a script, and realize automatic writing / reading of the controller coding information by clicking a key.

[0076] Optionally, the terminal device 420 may also be used to debug and modify a preset code file to test the controller and obtain corresponding test data information.

[0077] Optionally, the Canoe software platform 410 can also be used to define message-related requests and read command signals for controller encoding information in the form of event / cycle in the CAN protocol before sending the controller's message-related requests and read command signals to the bus through the CAN communication device.

[0078] Optionally, the canoe software platform 410 can also be used to set a write module, a read module, and a reset module in the GUI interface, and implement the corresponding functions of each module based on the script of the canoe software platform;

[0079] Wherein, the writing module includes a code input box and a write code operation button; the reading module includes a code display box and a read code operation button; the reset module includes a reset button; the code input box is used to input code data; and / or,

[0080] The write code operation button is used to confirm writing of the code data; and / or,

[0081] The read code operation button is used to confirm reading of the code data; and / or,

[0082] The code display frame is used to display the code data; and / or,

[0083] The reset button is used to restore the controller to its initial state.

[0084] Optionally, the canoe software platform 410 can also be used to respond to a click operation on the read code operation button, and the Canoe program reads the signal list / matrix information of the CAN protocol; the signal list / matrix information includes specific signals required to read the code to adapt to the different signal requirements of different vehicle models; sends a message instruction ID in the event / cycle format to obtain the code; reads the hexadecimal encoded data through the message instruction ID command, and writes the encoded data into a specific document.

[0085] Optionally, the canoe software platform 410 can also be used to respond to a click operation on the write coding operation button, and the MATLAB program writes the signal list / matrix information of the CAN protocol; the signal list / matrix information includes specific signals required for writing coding to adapt to the different signal requirements of different vehicle models; use the corresponding ID message in the capl program to write hexadecimal message data, and send an ID message request command containing the coding data to request the writing of the coding data; if the controller feedback allows writing of the coding, the coding data is written to the controller.

[0086] Optionally, the canoe software platform 410 can also be used to check whether the ID message request command is correct and / or whether the CAN communication is normal if the controller feedback does not allow the code to be written.

[0087] Optionally, the canoe software platform 410 may also be configured to receive a Write_Success message from the controller after the encoded data is written via the ID message;

[0088] Optionally, the terminal device 420 may also be configured to write the coded data via an ID message, and then display on a GUI interface that the writing is successful.

[0089] It should be noted that for other corresponding descriptions of the functional modules involved in the controller coding information writing / reading system provided in the embodiment of the present invention, reference can be made to Figures 1 to 3 The corresponding description of the method shown will not be repeated here.

[0090] Those skilled in the art will clearly understand that the specific working processes of the systems, devices, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and for the sake of brevity, they will not be further described here.

[0091] In addition, the functional units in various embodiments of the present invention may be physically independent of each other, or two or more functional units may be integrated together, or all functional units may be integrated into a single processing unit. The above-mentioned integrated functional units may be implemented in the form of hardware, software, or firmware.

[0092] Those skilled in the art will understand that if the integrated functional unit is implemented in the form of software and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can essentially or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, which includes a number of instructions for enabling a computing device (such as a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention when running the instructions. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0093] Alternatively, all or part of the steps of implementing the aforementioned method embodiments may be accomplished by hardware associated with program instructions (such as a computing device such as a personal computer, a server, or a network device), and the program instructions may be stored in a computer-readable storage medium. When the program instructions are executed by a processor of a computing device, the computing device executes all or part of the steps of the method described in each embodiment of the present invention.

[0094] 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 above embodiments, those skilled in the art should understand that within the spirit and principles of the present invention, they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some or all of the technical features therein. However, these modifications or replacements do not deviate from the scope of protection of the present invention.

Claims

1. A controller coding information writing / reading method, characterized in that: The method comprises: Connect the canoe software platform to the terminal device and the controller respectively; The canoe software platform loads and runs the preset code file to implement information interaction with the controller, so as to send the message-related request and read command signal of the controller encoding information to the bus through the can communication device; Using the terminal device, writing a program in the CAPL programming language, and uploading the written CAPL program to the Canoe software platform as a script; Based on the script, a reading module and a writing module for the controller coding information are set on the terminal device in the form of button triggering, and the controller coding information is automatically written / read by clicking the button.

2. The method according to claim 1, characterized in that The method further comprises: The preset code file is debugged and modified through the terminal device to test the controller and obtain corresponding test data information.

3. The method according to claim 1, characterized in that Before sending the message-related request and the read command signal of the controller to the bus through the CAN communication device, the method further includes: The CAN protocol uses the event / cycle format to define message-related requests and read command signals for the controller's coded information.

4. The method according to claim 1, wherein The step of setting a reading module and a writing module for the controller coding information on the terminal device in a key-triggered manner based on the script includes: Setting a write module, a read module and a reset module in the GUI interface of the canoe software platform, and implementing the corresponding functions of each module based on the script of the canoe software platform; The write module includes a code input box and a write code operation button; the read module includes a code display box and a read code operation button; and the reset module includes a reset button.

5. The method according to claim 4, characterized in that The code input box is used to input code data; and / or, The write code operation button is used to confirm writing of the code data; and / or, The read code operation button is used to confirm reading of the coded data; and / or, The code display frame is used to display code data; and / or, The reset button is used to control the controller to return to an initial state.

6. The method according to claim 5, characterized in that The automatic writing / reading of controller coding information by clicking a button includes: In response to a click on the read code operation button, the Canoe program reads the signal list / matrix information of the CAN protocol; the signal list / matrix information includes specific signals required for reading the code to accommodate different signal requirements of different vehicle models; Sending a message instruction ID in the form of event / cycle to obtain the encoding through the canoe software platform; The hexadecimal coded data is read through the message instruction ID command, and the coded data is written into a specific document.

7. The method according to claim 5, characterized in that The automatic writing / reading of the controller coding information by clicking a button also includes: In response to a click on the write code operation button, the MATLAB program writes the signal list / matrix information of the CAN protocol; the signal list / matrix information includes specific signals required for write code to accommodate different signal requirements of different vehicle models; Using the corresponding ID message in the capl program to write hexadecimal message data, sending an ID message request command containing coded data through the canoe software platform to request writing of the coded data; If the controller feeds back that the coding is allowed to be written, the coding data is written into the controller.

8. The method according to claim 7, characterized in that The method further comprises: If the controller feedback indicates that the code writing is not allowed, check whether the ID message request command is correct and / or whether the CAN communication is normal.

9. The method according to claim 7, characterized in that After writing the coded data via the ID message, the method further includes: The controller sends a Write_Success message in response to success, and the GUI interface displays that the write is successful.

10. A controller code information writing / reading system, characterized in that: The system includes: a canoe software platform and a terminal device; the canoe software platform includes a canoe hardware device and canoe software; the canoe hardware device is connected to the controller; the canoe software is connected to the terminal device; The canoe software platform is used to load and run the preset code file to implement information interaction with the controller, so as to send the message-related request and read command signal of the controller encoding information to the bus through the can communication device; The terminal device is used to write a program using the CAPEL programming language, and upload the written CAPEL program to the Canoe software platform as a script; The terminal device is further used to set a reading module and a writing module for the controller coding information in the form of key triggering based on the script, and realize automatic writing / reading of the controller coding information by clicking a key.

Citation Information

Patent Citations

  • Automobile controller coding information writing and reading method based on Matlab software

    CN111638874A

  • Automobile instrument cluster testing method and system

    CN112527653A

  • CAPL code automatic generation method and system and automobile

    CN113094029A

  • Method for automatically clearing and reading read ECU versions of whole vehicle DTC

    CN113985849A

  • Automobile controller testing method and system based on ECU-TEST

    CN114063603A