CN116166314A - Version information query method and device of controller, processor and electronic equipment - Google Patents

Version information query method and device of controller, processor and electronic equipment Download PDF

Info

Publication number
CN116166314A
CN116166314A CN202310027589.3A CN202310027589A CN116166314A CN 116166314 A CN116166314 A CN 116166314A CN 202310027589 A CN202310027589 A CN 202310027589A CN 116166314 A CN116166314 A CN 116166314A
Authority
CN
China
Prior art keywords
target
version
information
controller
version number
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.)
Withdrawn
Application number
CN202310027589.3A
Other languages
Chinese (zh)
Inventor
钟宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ainuowei Suzhou New Energy Technology Co ltd
Original Assignee
Ainuowei Suzhou New Energy Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ainuowei Suzhou New Energy Technology Co ltd filed Critical Ainuowei Suzhou New Energy Technology Co ltd
Priority to CN202310027589.3A priority Critical patent/CN116166314A/en
Publication of CN116166314A publication Critical patent/CN116166314A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application provides a version information query method, device, processor and electronic equipment of a controller, wherein the method comprises the following steps: under the condition that the terminal is communicated with the target controller, responding to a first preset operation acted on a target node, displaying an initial interface comprising a first operation area and a second operation area, wherein the target node is a test node of the target controller established by CANoe software of the terminal, and the current version information comprises the version information of Bootloader; controlling the target controller to enter EOL mode in response to a second predetermined operation acting on the first operation region; in the case that the target controller enters the EOL mode, responding to a third preset operation acting on the second operation area to obtain current version information; and displaying the current version information in the second operation area. The method and the device solve the problem of lacking a query mode of Bootloader version numbers.

Description

Version information query method and device of controller, processor and electronic equipment
Technical Field
The application relates to the technical field of charging piles, in particular to a version information query method and device of a controller, a computer readable storage medium, a processor and electronic equipment.
Background
At this time, many vehicle factories' ECU (Electronic Control Unit ) products have a normal operation mode and an EOL (End Of Life) down-line operation mode. These factories will all make EOL final tests on products produced by themselves. The final purpose of EOL detection is to make a final process check for the product, including information such as the function, version number, factory setting, etc. of the product, so as to prevent customer complaints and even personal safety problems caused by product failure. The checking of the version number of the product is a necessary check, which relates to whether the product is successfully written or whether the satisfactory version is written.
It is known that EOL detects a version number by reading it by DID (Data Identifier) in UDS (Unified Diagnostic services, unified diagnostic service), but most factories read a software version number. Typically, the product software needs to be written after a Bootloader boot has been executed. The Bootloader of this Bootloader is also version number, and it needs to be checked for version number. Especially when the brushing process has a problem, the Bootloader of the product needs to be optimized and changed, and the change of the Bootloader version is involved; or if there is a product returned from the client, it is necessary to check which version the Bootloader belongs to, which time period to perform the writing operation or production, to confirm the point of time when the problem occurs. However, the prior art lacks a query way for Bootloader version numbers.
Disclosure of Invention
The main objective of the present application is to provide a method, an apparatus, a computer readable storage medium, a processor and an electronic device for querying version information of a controller, so as to at least solve the problem that a Bootloader version number query mode is lacking in the prior art.
In order to achieve the above object, according to one aspect of the present application, there is provided a version information query method of a controller, including: in the case that a terminal communicates with a target controller, displaying an initial interface including a first operation area and a second operation area in response to a first predetermined operation acting on a target node, wherein the target node is a test node of the target controller established by CANoe (CAN open environment, bus development Environment) software of the terminal, the first operation area is an area for operating an EOL mode of the target controller, and the second operation area is an area for operating current version information of the target controller, and the current version information includes version information of a Bootloader; controlling the target controller to enter the EOL mode in response to a second predetermined operation acting on the first operation region; obtaining the current version information in response to a third predetermined operation acting on the second operation area under the condition that the target controller enters the EOL mode; and displaying the current version information in the second operation area.
Optionally, the first operation area includes a first selection identifier and a first indicator light identifier for entering the EOL mode, and controlling the target controller to enter the EOL mode in response to a second predetermined operation acting on the first operation area includes: responding to the second preset operation acting on the first selection identifier, and sending a first request message to the target controller, wherein the first request message is a message for controlling the target controller to enter the EOL mode; and under the condition that a first response message fed back by the target controller is received, the first indicator lamp mark is lightened, and the first response message is a message representing that the target controller enters the EOL mode.
Optionally, the second operation area includes a second selection identifier for querying current version information, and the obtaining the current version information in response to a third predetermined operation acting on the second operation area includes: transmitting a second request message for reading the current version information to the target controller in response to the third predetermined operation acting on the second selection identifier; receiving a second response message of the target controller, wherein the second response message carries information representing the current version information; and determining the current version information according to the second response message.
Optionally, determining the current version information according to the second response message includes: analyzing the second response message to obtain a target version number, wherein the target version number is the current version number of the target controller; determining whether a history version number identical to the target version number exists in the history information according to the target version number and the history information, wherein the history information comprises a plurality of history version numbers of the target controller and release dates of the history version numbers, and the history version number is one of the history version numbers; when the history version number exists in the history information, determining that the release date corresponding to the history version number is a target release date of the target version number, determining a version state of the target version number according to the target release date and a plurality of release dates, determining that the version state is a new version when the target release date is the latest of a plurality of release dates, and determining that the version state is an old version when the target release date is not the latest of a plurality of release dates; in the event that the history version number is not present in the history information, the version state of the target version number is determined to be an unclear state.
Optionally, the second operation area further includes a first display area for displaying a version number, a second display area for displaying the release date, and a plurality of second indicator identifiers, where the second indicator identifiers correspond to the version states one by one, and the displaying the current version information in the second operation area includes: displaying the target version number in the first display area; displaying the target release date in the second display area when the history version number exists in the history information; and according to the version state, the corresponding second indicator lamp mark is lightened.
Optionally, parsing the second response message to obtain a target version number includes: intercepting a plurality of hexadecimal byte information representing a target version number from the second response message, wherein the target version number is the version number of the target controller; converting the plurality of hexadecimal byte information into corresponding ASCII (American Standard Code for Information Interchange ) code; and calling a character string splicing function to splice a plurality of ASCII codes into a character string representing the target version number.
Optionally, in response to a first predetermined operation acting on the target node, displaying an initial interface including a first operation region and a second operation region, including: in response to the first predetermined operation, displaying the initial interface including the first operation region, the second operation region, and a third operation region including a third selection identifier, a plurality of third display regions, and a plurality of fourth display regions, the method further comprising: responding to a fourth preset operation acted on the third selection identifier, and acquiring a plurality of historical version numbers and a corresponding plurality of release dates; the history version numbers are displayed in one-to-one correspondence in the third display areas, and the release dates are displayed in one-to-one correspondence in the fourth display areas.
Optionally, before responding to the first predetermined operation acting on the target node, the method further comprises: establishing a CAN (Controller Area Network ) communication connection between the terminal and the target controller; adding an initial node in the CANoe software, and configuring a CAPL (Communication Access Programming Language ) browser and a panel of the initial node; and correlating the configured CAPL browser with the configured panel to obtain the test node.
According to another aspect of the present application, there is provided a version information query apparatus of a controller, including: the first display unit is used for responding to a first preset operation acted on a target node under the condition that a terminal is communicated with a target controller, displaying an initial interface comprising a first operation area and a second operation area, wherein the target node is a test node of the target controller established by CANoe software of the terminal, the first operation area is an area for operating an EOL mode of the target controller, the second operation area is an area for operating current version information of the target controller, and the current version information comprises version information of Bootloader; a control unit for controlling the target controller to enter the EOL mode in response to a second predetermined operation acting on the first operation region; an obtaining unit configured to obtain the current version information in response to a third predetermined operation acting on the second operation area in a case where the target controller enters the EOL mode; and the second display unit is used for displaying the current version information in the second operation area.
According to still another aspect of the present application, there is provided a computer readable storage medium, where the computer readable storage medium includes a stored program, and when the program runs, controls a device in which the computer readable storage medium is located to perform any one of the methods.
According to yet another aspect of the present application, there is provided a processor for running a program, wherein the program when run performs any one of the methods.
According to another aspect of the present application, there is also provided an electronic apparatus including: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any of the methods.
By applying the technical scheme, under the condition that the terminal is communicated with the target controller, firstly, according to a first preset operation on a target node of the target controller established by CANoe software of the terminal, displaying an initial interface, wherein the initial interface comprises a first operation area for operating an EOL mode of the target controller and a second operation area for operating current version information comprising a Bootloader version; then, according to a second predetermined operation acting on the first operation region, controlling the target controller to enter the EOL mode; under the condition that the target controller enters an EOL mode, obtaining current version information according to a third preset operation acted on the second operation area; and finally, displaying the obtained current version information in a second operation area. According to the method and the device, the test node of the target controller is built through CANoe software, the current version information of the target controller is read and displayed in the second operation area in response to the operation acting on the test node, the inquiry of the version information of the controller is realized, and the problem that the inquiry mode of Bootloader version numbers is lacking in the prior art is solved. Through the method and the device, operators can intuitively see the version information of the controller, and the version information does not need to be queried from other files, so that the working efficiency is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1 is a block diagram showing a hardware configuration of a mobile terminal for performing a version information query method of a controller according to an embodiment of the present application;
fig. 2 is a flow chart illustrating a method for querying version information of a controller according to an embodiment of the present application;
FIG. 3 illustrates a schematic view of a first operating region provided in accordance with an embodiment of the present application;
FIG. 4 illustrates a schematic diagram of a second operational area provided in accordance with an embodiment of the present application;
FIG. 5 illustrates a schematic diagram of a third operational area provided in accordance with an embodiment of the present application;
fig. 6 shows a network architecture diagram of a charging pile provided according to an embodiment of the present application;
fig. 7 shows a schematic diagram of a terminal establishing a connection with a target controller according to an embodiment of the present application;
fig. 8 shows a block diagram of a version information query device of a controller according to an embodiment of the present application.
Wherein the above figures include the following reference numerals:
102. a processor; 104. a memory; 106. a transmission device; 108. an input-output device; 200. a first selection identifier; 201. a first indicator light mark; 202. sixth character information; 203. seventh character information; 204. a second selection identifier; 205. a first display area; 206. a second display area; 207. a second indicator light identification; 208. eighth character information; 209. ninth character information; 210. the cross character information; 211. eleventh character information; 212. twelfth character information; 300. a third selection identifier; 301. a third display area; 302. a fourth display area; 303. first character information; 304. second character information; 305. third character information; 306. fourth character information; 307. fifth character information.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and in the drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As described in the background art, in order to solve the problem, embodiments of the present application provide a method, an apparatus, a computer readable storage medium, a processor, and an electronic device for querying version information of a controller.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a version information query method of a controller according to an embodiment of the present invention. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting on the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store computer programs, such as software programs of application software and modules, such as computer programs corresponding to the method for displaying device information in the embodiment of the present invention, and the processor 102 executes the computer programs stored in the memory 104 to perform various functional applications and data processing, i.e., implement the method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In the present embodiment, a version information query method of a controller operating on a mobile terminal, a computer terminal, or a similar computing device is provided, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different from that herein.
Fig. 2 is a flowchart of a version information query method of a controller according to an embodiment of the present application. As shown in fig. 2, the method comprises the steps of:
step S201, in the case that a terminal communicates with a target controller, displaying an initial interface including a first operation area as shown in FIG. 3 and a second operation area as shown in FIG. 4 in response to a first predetermined operation acting on a target node, wherein the target node is a test node of the target controller established by CANoe software of the terminal, the first operation area is an area for operating an EOL mode of the target controller, and the second operation area is an area for operating current version information of the target controller, and the current version information includes version information of Bootloader;
Specifically, the target controller is any one of a plurality of ECUs of the charging stake, as shown in fig. 6, the plurality of ECUs includes EMS (Energy Management System ), BMU (Battery Management System, battery management unit), CCU (Cooperative control unit, slave unit), SECC (Supply Equipment Communication Controller, supply device communication controller), CMU (Cell Monitor System, unit monitoring unit), AC/CD (Alternating Current/Direct Current) converter, DC/DC (Direct Current/Direct Current) converter, and T-BOX (Telematics BOX). The ECUs communicate with each other through CAN or CANFD. The baud rate of communications varies from ECU to ECU. Each ECU has a normal operating mode and EOL mode. The first predetermined operation includes one of a single click, a double click, a long press, a slide, and a box selection.
Of course, the current version information is not limited to the version information of Bootloader, but may be other software and hardware version information of the controller.
According to an exemplary embodiment of the present application, in response to a first predetermined operation acting on a target node, displaying an initial interface including a first operation region and a second operation region, includes: in response to the first predetermined operation, displaying the initial interface including the first operation region, the second operation region, and a third operation region as shown in fig. 5, the third operation region including a third selection identifier 300, a plurality of third display regions 301, and a plurality of fourth display regions 302, the method further comprising: acquiring a plurality of the history version numbers and a corresponding plurality of the release dates in response to a fourth predetermined operation acting on the third selection identifier 300; the history version numbers are displayed in one-to-one correspondence in each of the third display areas 301, and the release dates are displayed in one-to-one correspondence in each of the fourth display areas 302. According to the first preset operation, an initial interface comprising a first operation area, a second operation area and a third operation area is displayed, and then according to preset operation on a third selection mark of the third operation area, all version numbers and corresponding release dates of the target controller are obtained, and the version information is displayed in a display area corresponding to the third operation area, so that operators can conveniently check the version numbers and the corresponding release dates of all stages of the target controller.
In addition, in addition to the third selection identifier, the plurality of third display areas and the plurality of fourth display areas, as shown in fig. 5, the third operation area further includes first character information 303, second character information 304, third character information 305, a plurality of fourth character information 306 and a plurality of fifth character information 307, where the first character information 303 is located at one side of the third selection identifier 300, the first character information 303 is character information indicating a function of the third selection identifier 300, such as "display XXX all history version and release date", the second character information 304 is located at one side of the third display area 301, the second character information 304 is used to indicate that the corresponding third display area 301 is an area of a version number of the display controller, the third character information 305 is located at one side of the fourth display area 302, the third character information 305 is used to indicate a release date of the corresponding version number of the display controller, the second character information 304 is located at one side of the fourth display area 306, the fourth character information 306 is located at the other side of the fourth display area 301, and the remaining one side of the fourth display area is used to indicate a release date of the fourth version number of the display controller, and the remaining display area is used to indicate a version number of the fourth display area 301.
In an actual application process, the fourth predetermined operation includes one of single click, double click, long press, sliding and box selection. The third selection identifier may be a checkbox or other selection identifiers. The third display area and the fourth display area may be displayed on the initial interface in a text box form, or may be displayed on the initial interface in other forms.
To further solve the problem of lack of query means for the version number of the controller in the prior art, in another specific embodiment of the present application, before responding to the first predetermined operation acting on the target node, the method further includes: as shown in fig. 7, establishing a CAN communication connection between the terminal and the target controller; adding an initial node in the CANoe software, and configuring a CAPL browser and a panel of the initial node; and correlating the configured CAPL browser with the configured panel to obtain the test node. The version information of the controller is subjected to change management through the CAPL script and the panel form, so that a test interface is obtained, the read version information of the controller can be intuitively displayed through the panel, the inquiry of the version number is further realized, the release information of the version is not required to be inquired from other files, and the working efficiency of operators is further improved.
It should be noted that, in general, EOL off-line detection is to detect power supplied by a single controller, and the scheme is based on a certain ECU in the whole pile.
Step S202 of controlling the target controller to enter the EOL mode in response to a second predetermined operation acting on the first operation region;
specifically, as shown in fig. 3, the first operation area includes a first selection identifier 200 for entering the EOL mode and a first indicator lamp identifier 201, where the first selection identifier may be a checkbox or may be another selection identifier, and the first indicator lamp identifier has two states of on and off, and the first indicator lamp identifier is on when the target controller enters the EOL mode. The second predetermined operation may include one of a single click, a double click, a long click, a slide, and a box selection.
In addition to the first selection identifier and the first indicator light identifier, as shown in fig. 3, the first operation area further includes sixth character information 202 and seventh character information 203, where the sixth character information 202 is located on one side of the first selection identifier 200 and is used to illustrate the function of the first selection identifier 200, and if the sixth character information is "XXX controller enters EOL mode", the seventh character information 203 is located on one side of the first indicator light identifier 201 and is used to illustrate the meaning represented by the first indicator light identifier 201 being lit, and the seventh character information may be "XXX controller enters EOL successfully".
To further facilitate an operator determining whether a target controller has entered EOL mode, in one alternative, controlling the target controller to enter EOL mode in response to a second predetermined operation acting on the first operating region includes: responding to the second preset operation acting on the first selection identifier, and sending a first request message to the target controller, wherein the first request message is a message for controlling the target controller to enter the EOL mode; and under the condition that a first response message fed back by the target controller is received, the first indicator lamp mark is lightened, and the first response message is a message representing that the target controller enters the EOL mode. According to a second preset operation, a first request message for controlling the target controller to enter the EOL mode is sent to the target controller, so that the target controller responds to the first request message to enter the EOL mode and returns a first response message for successfully entering the EOL mode.
In practical applications, the first selection identifier and the first indicator light identifier are designed as system variables. Using an on sysvar function in the CAPL script, responsive to the system variable, the corresponding CAPL script processing logic is 1 upon detecting that the first selection identifier is checked. And when the first response message is detected, setting the CAPL script logic of the first indicator lamp identification to be 1, and immediately turning on the first indicator lamp identification to indicate that the EOL mode is successfully entered.
In a specific embodiment, sending a first request message to the target controller includes: periodically sending a first sub-request message to the target controller; under the condition that a first sub-response message fed back by the target controller in response to the first sub-request message is received, canceling the transmission of the first sub-request message, and starting to periodically transmit a second sub-request message to the target controller; and under the condition that a second sub-response message fed back by the target controller in response to the second sub-request message is received, canceling the transmission of the second sub-request message, and starting to periodically transmit a third sub-request message. And under the condition that a first response message fed back by the target controller is received, the first indicator lamp mark is lightened, and the method comprises the following steps: and under the condition that a third sub-response message fed back by the target controller in response to the third sub-request message is received, the first indicator lamp identifier is lightened.
The following are illustrated: in the case that the target controller is a T-BOX, three frames of messages need to be sent to the T-BOX, and when each frame of messages is responded correctly, the T-BOX enters EOL mode. The corresponding message is as follows:
transmitting first frame message
ID:18E002F1h CT:10000DLC:8
Data:55h 41h 46h 43h 33h 01h FFh DCh
After the transmission is finished, under the condition that the feedback message 1 is received:
ID:18E0F102h Data:55h 41h 46h 43h 33h AAh FFh 77h
cancelling the transmission of the first frame message and transmitting the second frame message:
ID:18E002F1h CT:10000DLC:8
Data:55h 41h 46h 43h 33h 02h FFh DFh
after the transmission is finished, under the condition that the feedback message 2 is received:
ID:18E0F102h Data:55h 41h 46h 43h 33h BBh FFh 66h
canceling the sending of the second frame message and sending a third frame message:
ID:18E002F1h CT:10000DLC:8
Data:55h 41h 46h 43h 33h 03h FFh DEh
after the transmission is finished, under the condition that the PC receives the feedback message 3:
ID:18E0F102h Data:55h 41h 46h 43h 33h CCh FFh 11h
indicating successful entry into EOL mode.
And when the first selection identifier is detected to be checked, the corresponding CAPL script processing logic is 1, and then a first frame message is sent. Then using an on message function to respond to the message 18E0F102h, and sending a second frame sending message when detecting that the message content is the feedback message 1; when detecting that the message content is feedback message 2, sending a third frame sending message; when detecting that the message content is feedback message 3, the CAPL script logic of the first indicator lamp identification is set to be 1, the lamp is immediately electrically turned on, and the EOL mode is successfully entered. When not hooked, the lamp logic processes to 0 in CAPL, and the lamp remains off, meaning no message is sent out and the EOL mode is not entered.
Step S203, in the case that the target controller enters the EOL mode, responding to a third preset operation acted on the second operation area to obtain the current version information;
specifically, as shown in fig. 4, the second operation area includes a second selection identifier 204 for querying the current version information, the second operation area further includes a first display area 205 for displaying a version number, a second display area 206 for displaying the release date, and a plurality of second indicator light identifiers 207, the second indicator light identifiers 207 correspond to version states of new version, old version, and unclear state one by one, and the third predetermined operation may include one of a single click, a double click, a long click, a slide, and a box. The second selection identifier may be a check box or other selection identifiers, the first display area and the second display area may be text boxes, and may be displayed on a panel in other formats, and the second indicator identifier has two states of on and off, where when the second indicator identifier is on, the current version information is indicated to be the version state corresponding to the second indicator identifier.
In addition to the information, as shown in fig. 4, the second operation area further includes eighth character information 208, ninth character information 209, tenth character information 210, eleventh character information 211, and a plurality of twelfth character information 212, where the eighth character information 208 is located at one side of the second selection identifier 204 and is used to describe a function of the second selection identifier 204, and if the eighth character information 208 is "XXX controller version number read"; the ninth character information 209 is located at one side of the first display area 205, the ninth character information 209 is used for explaining that the first display area 205 is an area for displaying a current version number of the controller, the third character information 210 is located at one side of the second display area 206, and the third character information 210 is used for explaining that the corresponding second display area 206 is an area for displaying an issue date of the current version number of the controller; the eleventh character information 211 is located on the same side of the plurality of second indicator light identifiers 207, and is used for explaining meaning represented by the lighting of the second indicator light identifiers 207, the eleventh character information 211 may be "new and old version judgment", the twelfth character information 212 is located on one side of the second indicator light identifiers 207 in a one-to-one correspondence manner, and the twelfth character information is an explanation of the version state.
In an alternative, the obtaining the current version information in response to a third predetermined operation acting on the second operation area includes: transmitting a second request message for reading the current version information to the target controller in response to the third predetermined operation acting on the second selection identifier; receiving a second response message of the target controller, wherein the second response message carries information representing the current version information; and determining the current version information according to the second response message. And by operating the second selection identifier, the version information of the target controller including the current version of the Bootloader can be inquired and obtained, and the effect of inquiring the version information more simply and conveniently is further realized.
And the second selection identifier, the first display area, the second display area and the three first indicator lamp identifiers are processed into system variables, and when the second selection identifier is checked, the second selection identifier is correspondingly processed into logic 1 in the CAPL script, and an instruction for reading the current version number is started to be sent.
Further, determining the current version information according to the second response message includes: analyzing the second response message to obtain a target version number, wherein the target version number is the current version number of the target controller; determining whether a history version number identical to the target version number exists in the history information according to the target version number and the history information, wherein the history information comprises a plurality of history version numbers of the target controller and release dates of the history version numbers, and the history version number is one of the history version numbers; when the history version number exists in the history information, determining that the release date corresponding to the history version number is a target release date of the target version number, determining a version state of the target version number according to the target release date and a plurality of release dates, determining that the version state is a new version when the target release date is the latest of a plurality of release dates, and determining that the version state is an old version when the target release date is not the latest of a plurality of release dates; in the event that the history version number is not present in the history information, the version state of the target version number is determined to be an unclear state.
In the embodiment, the release date corresponding to the current version number is determined by comparing the queried current version number with a plurality of historical version numbers, so that when a problem occurs, the problem can be positioned by tracing the release time to the occurrence time of the software and hardware problem; in addition, the embodiment determines the version state of the queried current version number, and displays the version state of the current version number in a corresponding mode of lighting the second indicator lamp mark, so that the release date and the lamp lighting condition can judge whether the software or hardware version of the controller which is read currently is the release version, the new version, the old version or the unclear state, and an operator can know whether the software or hardware version of the current version needs to be refreshed into other versions. In addition, when the version state is an unclear state, the software and hardware version information of the query process or the controller is described to have problems, so that the problem tracing is facilitated.
According to another embodiment of the present application, parsing the second response message to obtain a target version number includes: intercepting a plurality of hexadecimal byte information representing a target version number from the second response message, wherein the target version number is the version number of the target controller; converting the byte information of a plurality of hexadecimal systems into corresponding ASCII codes; and calling a character string splicing function to splice a plurality of ASCII codes into a character string representing the target version number. Because the APCL script does not support the character string format, the information about the target version number in the response message is spliced and converted into a character string by calling a function, so that the character string is displayed in a corresponding display area.
Step S204, displaying the current version information in the second operation area.
According to another optional embodiment of the present application, displaying the current version information in the second operation area includes: displaying the target version number in the first display area; displaying the target release date in the second display area when the history version number exists in the history information; and according to the version state, the corresponding second indicator lamp mark is lightened.
In another specific embodiment, the third display area and the fourth display area are three, and as shown in fig. 5, the third selection identifier, the third display area and the fourth display area are all set as system variables. In the case where the target controller is a T-BOX, global variable string arrays 1,2,3,4,5,6 are defined in the caps script. The following are provided:
1.char TBOXnew[11]="TBOX0E01R2";
2.char TBOXnewdate[11]="2022-12-01";
3.char TBOXold01[11]="TBOX0E01R1";
4.char TBOXold01date[11]="2022-11-01";
5.char TBOXold02[11]="TBOX0E01R0";
6.char TBOXold02date[11]="2022-10-01";
wherein 1,3,5 correspond to Bootloader history version numbers, and the sequence is from new to old; and 2,4 and 6 correspond to the release date of the Bootloader history version number, and correspond to 1,3 and 5 in sequence from new to old.
When the third selection mark is checked, checking is processed into logic 1 in the CAPL script; once 1 is set, 1 to 6 are respectively processed into character strings (processed by a custom function), and then assigned to a third display area and a fourth display area corresponding to the system variable for display, namely:
1 and 2 show the latest published Bootloader version number and release date
3 and 4 show the Bootloader version number and release date of the next new release (previous version)
5 and 6 show the oldest published Bootloader version number and release date (initial version)
So far, the Bootloader history version and the release date are successfully displayed;
in the case that the target controller is a T-BOX, the specific process of sending the second request message for reading the current version information to the target controller may be as follows:
the following messages are sent:
ID:18E002F1h CT:10000DLC:8
Data:55h 10h 80h 10h FFh FFh FFh FFh
the T-BOX receives the instruction and sequentially responds to three frames of messages which form a second response message, wherein the IDs of the three frames of messages are 18E0F102h, so that a terminal running the method of the application can determine that the messages of the three IDs all carry current version number information:
Data1:55h 10h 80h 01h X1h X2h X3h X4h
Data2:55h 10h 80h 02h X5h X6h X7h X8h
Data3:55h 10h 80h 03h X9h X10h FFh FFh
firstly intercepting 10 bytes of X1-X10 in the message, converting hexadecimal into ASCII codes through a self-defined transcoding function, splicing the ASCII codes into character strings through a character string splicing function of CAPL, and then transmitting the character strings to a first display area system variable corresponding to a T-BOX Bootloader version number to display the currently read T-BOX Bootloader version number;
comparing the currently read T-BOX Bootloader version number with the character strings 1,3 and 5 by using a character string comparison function in CAPL;
If the character string 2 is the same as 1, the character string 2 is transmitted to the system variable of the first display area corresponding to the release date of the version, and meanwhile, the second indicator lamp identification logic corresponding to the new version is processed to be 1 in the CAPL script, and the lamp is lighted. Informing an operator that the current version is the latest version;
if the character string 4 is the same as 3, the character string 4 is transmitted to the system variable of the first display area corresponding to the release date of the version, and meanwhile, the second indicator lamp identification logic corresponding to the old version is processed to be 1 in the CAPL script, and the lamp is lighted. Informing an operator that the current version is the previous version;
if the character string 6 is the same as 5, the character string is transmitted to the system variable of the first display area corresponding to the release date of the version, and meanwhile, the second indicator lamp identification logic corresponding to the old version is processed to be 1 in the CAPL script, and the lamp is lighted. Informing the operator that the current version is the original version.
And if the currently read T-BOX Bootloader version number is not read in 1,3 and 5, processing the second indication lamp identification logic corresponding to the unclear state into 1 in the CAPL script, and turning on the lamp. The operator is informed that the current version is not in the historical version and needs to check whether the version is correct or whether the controller is correct.
In the embodiment of the application, the target controller enters the EOL mode by means of the custom message and reads the current version information including the version information of the Bootloader instead of the UDS-based diagnosis method, and for non-diagnosis engineers, the user does not need to know about UDS related knowledge, and the graphical interface is operated, so that the user can simply and conveniently inquire the current version information of the Bootloader.
With the embodiment, in the case that the terminal communicates with the target controller, firstly, according to a first predetermined operation acting on the target node of the target controller established by using the CANoe software of the terminal, displaying an initial interface including a first operation area for operating the EOL mode of the target controller and a second operation area for operating the current version information including the Bootloader version; then, according to a second predetermined operation acting on the first operation region, controlling the target controller to enter the EOL mode; under the condition that the target controller enters an EOL mode, obtaining current version information according to a third preset operation acted on the second operation area; and finally, displaying the obtained current version information in a second operation area. According to the method and the device, the test node of the target controller is built through CANoe software, the current version information of the target controller is read and displayed in the second operation area in response to the operation acting on the test node, the inquiry of the version information of the controller is realized, and the problem that the inquiry mode of Bootloader version numbers is lacking in the prior art is solved. Through the method and the device, operators can intuitively see the version information of the controller, and the version information does not need to be queried from other files, so that the working efficiency is improved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a version information query device of the controller, and it is to be noted that the version information query device of the controller in the embodiment of the application can be used for executing the version information query method for the controller provided in the embodiment of the application. The device is used for implementing the embodiments and the preferred embodiments, and is not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The following describes a version information query device of a controller provided in an embodiment of the present application.
Fig. 8 is a schematic diagram of a version information query device of a controller according to an embodiment of the present application. As shown in fig. 8, the apparatus includes:
A first display unit 10 for displaying an initial interface including a first operation area as shown in fig. 3 and a second operation area as shown in fig. 4 in response to a first predetermined operation acting on a target node, the target node being a test node of the target controller established using CANoe software of the terminal, the first operation area being an area for operating EOL mode of the target controller, and the second operation area being an area for operating current version information of the target controller, the current version information including version information of Bootloader, in case the terminal communicates with the target controller;
specifically, the target controller is any one of a plurality of ECUs of the charging pile, and as shown in FIG. 6, the plurality of ECUs include a EMS, BMU, CCU, SECC, CMU, AC/CD converter, a DC/DC converter and a T-BOX. The ECUs communicate with each other through CAN or CANFD. The baud rate of communications varies from ECU to ECU. Each ECU has a normal operating mode and EOL mode. The first predetermined operation includes one of a single click, a double click, a long press, a slide, and a box selection.
Of course, the current version information is not limited to the version information of Bootloader, but may be other software and hardware version information of the controller.
According to an exemplary embodiment of the present application, the first display unit includes: a first display module, configured to display, in response to the first predetermined operation, the initial interface including the first operation area, the second operation area, and a third operation area as shown in fig. 5, where the third operation area includes a third selection identifier 300, a plurality of third display areas 301, and a plurality of fourth display areas 302, and the apparatus further includes: an obtaining unit, configured to obtain a plurality of the history version numbers and a corresponding plurality of the release dates in response to a fourth predetermined operation acting on the third selection identifier 300; the third display unit is configured to display the history version numbers in a one-to-one correspondence in each of the third display areas 301, and display the release dates in a one-to-one correspondence in each of the fourth display areas 302. According to the first preset operation, an initial interface comprising a first operation area, a second operation area and a third operation area is displayed, and then according to preset operation on a third selection mark of the third operation area, all version numbers and corresponding release dates of the target controller are obtained, and the version information is displayed in a display area corresponding to the third operation area, so that operators can conveniently check the version numbers and the corresponding release dates of all stages of the target controller.
In addition, in addition to the third selection identifier, the plurality of third display areas and the plurality of fourth display areas, as shown in fig. 5, the third operation area further includes first character information 303, second character information 304, third character information 305, a plurality of fourth character information 306 and a plurality of fifth character information 307, where the first character information 303 is located at one side of the third selection identifier 300, the first character information 303 is character information indicating a function of the third selection identifier 300, such as "display XXX all history version and release date", the second character information 304 is located at one side of the third display area 301, the second character information 304 is used to indicate that the corresponding third display area 301 is an area of a version number of the display controller, the third character information 305 is located at one side of the fourth display area 302, the third character information 305 is used to indicate a release date of the corresponding version number of the display controller, the second character information 304 is located at one side of the fourth display area 306, the fourth character information 306 is located at the other side of the fourth display area 301, and the remaining one side of the fourth display area is used to indicate a release date of the fourth version number of the display controller, and the remaining display area is used to indicate a version number of the fourth display area 301.
In an actual application process, the fourth predetermined operation includes one of single click, double click, long press, sliding and box selection. The third selection identifier may be a checkbox or other selection identifiers. The third display area and the fourth display area may be displayed on the initial interface in a text box form, or may be displayed on the initial interface in other forms.
In order to further solve the problem of lack of query manners of version numbers of controllers in the prior art, in another specific embodiment of the present application, the apparatus further includes: an establishing unit for establishing a CAN communication connection of the terminal with the target controller before responding to a first predetermined operation acting on the target node; the adding unit is used for adding an initial node in the CANoe software and configuring a CAPL browser and a panel of the initial node; and the association unit is used for associating the configured CAPL browser with the configured panel to obtain the test node. The version information of the controller is subjected to change management through the CAPL script and the panel form, so that a test interface is obtained, the read version information of the controller can be intuitively displayed through the panel, the inquiry of the version number is further realized, the release information of the version is not required to be inquired from other files, and the working efficiency of operators is further improved.
It should be noted that, in general, EOL off-line detection is to detect power supplied by a single controller, and the scheme is based on a certain ECU in the whole pile.
A control unit 20 for controlling the target controller to enter the EOL mode in response to a second predetermined operation acting on the first operation region;
specifically, as shown in fig. 3, the first operation area includes a first selection identifier 200 for entering the EOL mode and a first indicator lamp identifier 201, where the first selection identifier may be a checkbox or may be another selection identifier, and the first indicator lamp identifier has two states of on and off, and the first indicator lamp identifier is on when the target controller enters the EOL mode. The second predetermined operation may include one of a single click, a double click, a long click, a slide, and a box selection.
In addition to the first selection identifier and the first indicator light identifier, as shown in fig. 3, the first operation area further includes sixth character information 202 and seventh character information 203, where the sixth character information 202 is located on one side of the first selection identifier 200 and is used to illustrate the function of the first selection identifier 200, and if the sixth character information is "XXX controller enters EOL mode", the seventh character information 203 is located on one side of the first indicator light identifier 201 and is used to illustrate the meaning represented by the first indicator light identifier 201 being lit, and the seventh character information may be "XXX controller enters EOL successfully".
To further facilitate the operator in determining whether the target controller has entered EOL mode, in one alternative the control unit comprises: the first sending module is used for responding to the second preset operation acted on the first selection identifier and sending a first request message to the target controller, wherein the first request message is a message for controlling the target controller to enter the EOL mode; and the first illumination module is used for illuminating the first indicator lamp identifier under the condition of receiving a first response message fed back by the target controller, wherein the first response message is a message for representing the target controller to enter the EOL mode. According to a second preset operation, a first request message for controlling the target controller to enter the EOL mode is sent to the target controller, so that the target controller responds to the first request message to enter the EOL mode and returns a first response message for successfully entering the EOL mode.
In practical applications, the first selection identifier and the first indicator light identifier are designed as system variables. Using an on sysvar function in the CAPL script, responsive to the system variable, the corresponding CAPL script processing logic is 1 upon detecting that the first selection identifier is checked. And when the first response message is detected, setting the CAPL script logic of the first indicator lamp identification to be 1, and immediately turning on the first indicator lamp identification to indicate that the EOL mode is successfully entered.
In a specific embodiment, the first sending module includes: the sending submodule is used for periodically sending a first sub-request message to the target controller; the first cancellation sub-module is used for canceling the transmission of the first sub-request message and starting to periodically transmit a second sub-request message to the target controller under the condition that a first sub-response message fed back by the target controller in response to the first sub-request message is received; and the second cancellation sub-module is used for canceling the transmission of the second sub-request message and starting to periodically transmit a third sub-request message under the condition that a second sub-response message fed back by the target controller in response to the second sub-request message is received. The first lighting module includes: and the lighting sub-module is used for lighting the first indicator lamp identifier under the condition that a third sub-response message fed back by the target controller in response to the third sub-request message is received.
The following are illustrated: in the case that the target controller is a T-BOX, three frames of messages need to be sent to the T-BOX, and when each frame of messages is responded correctly, the T-BOX enters EOL mode. The corresponding message is as follows:
transmitting first frame message
ID:18E002F1h CT:10000DLC:8
Data:55h 41h 46h 43h 33h 01h FFh DCh
After the transmission is finished, under the condition that the feedback message 1 is received:
ID:18E0F102h Data:55h 41h 46h 43h 33h AAh FFh 77h
cancelling the transmission of the first frame message and transmitting the second frame message:
ID:18E002F1h CT:10000DLC:8
Data:55h 41h 46h 43h 33h 02h FFh DFh
after the transmission is finished, under the condition that the feedback message 2 is received:
ID:18E0F102h Data:55h 41h 46h 43h 33h BBh FFh 66h
canceling the sending of the second frame message and sending a third frame message:
ID:18E002F1h CT:10000DLC:8
Data:55h 41h 46h 43h 33h 03h FFh DEh
after the transmission is finished, under the condition that the PC receives the feedback message 3:
ID:18E0F102h Data:55h 41h 46h 43h 33h CCh FFh 11h
indicating successful entry into EOL mode.
And when the first selection identifier is detected to be checked, the corresponding CAPL script processing logic is 1, and then a first frame message is sent. Then using an on message function to respond to the message 18E0F102h, and sending a second frame sending message when detecting that the message content is the feedback message 1; when detecting that the message content is feedback message 2, sending a third frame sending message; when detecting that the message content is feedback message 3, the CAPL script logic of the first indicator lamp identification is set to be 1, the lamp is immediately electrically turned on, and the EOL mode is successfully entered. When not hooked, the lamp logic processes to 0 in CAPL, and the lamp remains off, meaning no message is sent out and the EOL mode is not entered.
An obtaining unit 30, configured to obtain the current version information in response to a third predetermined operation acting on the second operation area in a case where the target controller enters the EOL mode;
specifically, as shown in fig. 4, the second operation area includes a second selection identifier 204 for querying the current version information, the second operation area further includes a first display area 205 for displaying a version number, a second display area 206 for displaying the release date, and a plurality of second indicator light identifiers 207, the second indicator light identifiers 207 correspond to version states of new version, old version, and unclear state one by one, and the third predetermined operation may include one of a single click, a double click, a long click, a slide, and a box. The second selection identifier may be a check box or other selection identifiers, the first display area and the second display area may be text boxes, and may be displayed on a panel in other formats, and the second indicator identifier has two states of on and off, where when the second indicator identifier is on, the current version information is indicated to be the version state corresponding to the second indicator identifier.
In addition to the information, as shown in fig. 4, the second operation area further includes eighth character information 208, ninth character information 209, tenth character information 210, eleventh character information 211, and a plurality of twelfth character information 212, where the eighth character information 208 is located at one side of the second selection identifier 204 and is used to describe a function of the second selection identifier 204, and if the eighth character information 208 is "XXX controller version number read"; the ninth character information 209 is located at one side of the first display area 205, the ninth character information 209 is used for explaining that the first display area 205 is an area for displaying a current version number of the controller, the third character information 210 is located at one side of the second display area 206, and the third character information 210 is used for explaining that the corresponding second display area 206 is an area for displaying an issue date of the current version number of the controller; the eleventh character information 211 is located on the same side of the plurality of second indicator light identifiers 207, and is used for explaining meaning represented by the lighting of the second indicator light identifiers 207, the eleventh character information 211 may be "new and old version judgment", the twelfth character information 212 is located on one side of the second indicator light identifiers 207 in a one-to-one correspondence manner, and the twelfth character information is an explanation of the version state.
In an alternative, the obtaining unit includes: a second sending module, configured to send a second request packet for reading the current version information to the target controller in response to the third predetermined operation acting on the second selection identifier; the receiving module is used for receiving a second response message of the target controller, wherein the second response message carries information representing the current version information; and the determining module is used for determining the current version information according to the second response message. And by operating the second selection identifier, the version information of the target controller including the current version of the Bootloader can be inquired and obtained, and the effect of inquiring the version information more simply and conveniently is further realized.
And the second selection identifier, the first display area, the second display area and the three first indicator lamp identifiers are processed into system variables, and when the second selection identifier is checked, the second selection identifier is correspondingly processed into logic 1 in the CAPL script, and an instruction for reading the current version number is started to be sent.
Further, the determining module includes: the analysis submodule is used for analyzing the second response message to obtain a target version number, wherein the target version number is the current version number of the target controller; a first determining submodule, configured to determine whether a history version number identical to the target version number exists in the history information according to the target version number and the history information, where the history information includes a plurality of history version numbers of the target controller and release dates of the history version numbers, and the history version number is one of the history version numbers; a second determining submodule, configured to determine, when the history version number exists in the history information, that the release date corresponding to the history version number is a target release date of the target version number, determine, according to the target release date and a plurality of release dates, a version state of the target version number, determine, when the target release date is a latest one of the release dates, that the version state is a new version, and determine, when the target release date is not a latest one of the release dates, that the version state is an old version; and a third determining submodule, configured to determine that the version state of the target version number is an unclear state if the history version number does not exist in the history information.
In the embodiment, the release date corresponding to the current version number is determined by comparing the queried current version number with a plurality of historical version numbers, so that when a problem occurs, the problem can be positioned by tracing the release time to the occurrence time of the software and hardware problem; in addition, the embodiment determines the version state of the queried current version number, and displays the version state of the current version number in a corresponding mode of lighting the second indicator lamp mark, so that the release date and the lamp lighting condition can judge whether the software or hardware version of the controller which is read currently is the release version, the new version, the old version or the unclear state, and an operator can know whether the software or hardware version of the current version needs to be refreshed into other versions. In addition, when the version state is an unclear state, the software and hardware version information of the query process or the controller is described to have problems, so that the problem tracing is facilitated.
According to another embodiment of the present application, the parsing sub-module is further configured to intercept, from the second response packet, a plurality of hexadecimal byte information characterizing a target version number, where the target version number is a version number of the target controller; the analysis sub-module is further used for converting the byte information of a plurality of hexadecimal systems into corresponding ASCII codes; and calling a character string splicing function to splice a plurality of ASCII codes into a character string representing the target version number. Because the APCL script does not support the character string format, the information about the target version number in the response message is spliced and converted into a character string by calling a function, so that the character string is displayed in a corresponding display area.
And a second display unit 40, configured to display the current version information in the second operation area.
According to another optional embodiment of the present application, the second display unit includes: the second display module is used for displaying the target version number in the first display area; the third display module is used for displaying the target release date in the second display area when the history version number exists in the history information; and the second lighting module is used for lighting the corresponding second indicator lamp identifier according to the version state.
In another specific embodiment, the third display area and the fourth display area are three, and as shown in fig. 5, the third selection identifier, the third display area and the fourth display area are all set as system variables. In the case where the target controller is a T-BOX, global variable string arrays 1,2,3,4,5,6 are defined in the caps script. The following are provided:
1.char TBOXnew[11]="TBOX0E01R2";
2.char TBOXnewdate[11]="2022-12-01";
3.char TBOXold01[11]="TBOX0E01R1";
4.char TBOXold01date[11]="2022-11-01";
5.char TBOXold02[11]="TBOX0E01R0";
6.char TBOXold02date[11]="2022-10-01";
wherein 1,3,5 correspond to Bootloader history version numbers, and the sequence is from new to old; and 2,4 and 6 correspond to the release date of the Bootloader history version number, and correspond to 1,3 and 5 in sequence from new to old.
When the third selection mark is checked, checking is processed into logic 1 in the CAPL script; once 1 is set, 1 to 6 are respectively processed into character strings (processed by a custom function), and then assigned to a third display area and a fourth display area corresponding to the system variable for display, namely:
1 and 2 show the latest published Bootloader version number and release date
3 and 4 show the Bootloader version number and release date of the next new release (previous version)
5 and 6 show the oldest published Bootloader version number and release date (initial version)
So far, the Bootloader history version and the release date are successfully displayed;
in the case that the target controller is a T-BOX, the specific process of sending the second request message for reading the current version information to the target controller may be as follows:
the following messages are sent:
ID:18E002F1h CT:10000DLC:8
Data:55h 10h 80h 10h FFh FFh FFh FFh
the T-BOX receives the instruction and sequentially responds to three frames of messages which form a second response message, wherein the IDs of the three frames of messages are 18E0F102h, so that a terminal running the device of the application can determine that the messages of the three IDs all carry current version number information:
Data1:55h 10h 80h 01h X1h X2h X3h X4h
Data2:55h 10h 80h 02h X5h X6h X7h X8h
Data3:55h 10h 80h 03h X9h X10h FFh FFh
firstly intercepting 10 bytes of X1-X10 in the message, converting hexadecimal into ASCII codes through a self-defined transcoding function, splicing the ASCII codes into character strings through a character string splicing function of CAPL, and then transmitting the character strings to a first display area system variable corresponding to a T-BOX Bootloader version number to display the currently read T-BOX Bootloader version number;
Comparing the currently read T-BOX Bootloader version number with the character strings 1,3 and 5 by using a character string comparison function in CAPL;
if the character string 2 is the same as 1, the character string 2 is transmitted to the system variable of the first display area corresponding to the release date of the version, and meanwhile, the second indicator lamp identification logic corresponding to the new version is processed to be 1 in the CAPL script, and the lamp is lighted. Informing an operator that the current version is the latest version;
if the character string 4 is the same as 3, the character string 4 is transmitted to the system variable of the first display area corresponding to the release date of the version, and meanwhile, the second indicator lamp identification logic corresponding to the old version is processed to be 1 in the CAPL script, and the lamp is lighted. Informing an operator that the current version is the previous version;
if the character string 6 is the same as 5, the character string is transmitted to the system variable of the first display area corresponding to the release date of the version, and meanwhile, the second indicator lamp identification logic corresponding to the old version is processed to be 1 in the CAPL script, and the lamp is lighted. Informing the operator that the current version is the original version.
And if the currently read T-BOX Bootloader version number is not read in 1,3 and 5, processing the second indication lamp identification logic corresponding to the unclear state into 1 in the CAPL script, and turning on the lamp. The operator is informed that the current version is not in the historical version and needs to check whether the version is correct or whether the controller is correct.
In the embodiment of the application, the target controller enters the EOL mode by means of the custom message and reads the current version information including the version information of the Bootloader instead of the UDS-based diagnosis method, and for non-diagnosis engineers, the user does not need to know about UDS related knowledge, and the graphical interface is operated, so that the user can simply and conveniently inquire the current version information of the Bootloader.
With the embodiment, in the case that the terminal communicates with the target controller, displaying, by the first display unit, an initial interface including a first operation area for operating an EOL mode of the target controller and a second operation area for operating current version information including Bootloader version according to a first predetermined operation acting on a target node of the target controller established using CANoe software of the terminal; controlling, by the control unit, the target controller to enter the EOL mode according to a second predetermined operation acting on the first operation region; under the condition that the target controller enters an EOL mode, the current version information is obtained through an obtaining unit according to a third preset operation acted on the second operation area; and displaying the obtained current version information in a second operation area through a second display unit. According to the method and the device, the test node of the target controller is built through CANoe software, the current version information of the target controller is read and displayed in the second operation area in response to the operation acting on the test node, the inquiry of the version information of the controller is realized, and the problem that the inquiry mode of Bootloader version numbers is lacking in the prior art is solved. Through the method and the device, operators can intuitively see the version information of the controller, and the version information does not need to be queried from other files, so that the working efficiency is improved.
The version information query device of the controller comprises a processor and a memory, wherein the first display unit, the control unit, the obtaining unit, the second display unit and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions. The modules are all located in the same processor; alternatively, the modules may be located in different processors in any combination.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, and the problem that the query mode of Bootloader version numbers is lacking in the prior art is at least solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a computer readable storage medium, which comprises a stored program, wherein when the program runs, equipment where the computer readable storage medium is located is controlled to execute a version information query method of a controller.
Specifically, the version information query method of the controller includes:
step S201, in the case that a terminal communicates with a target controller, an initial interface including a first operation area and a second operation area is displayed in response to a first preset operation acting on a target node, wherein the target node is a test node of the target controller established by CANoe software of the terminal, the first operation area is an area for operating EOL mode of the target controller, the second operation area is an area for operating current version information of the target controller, and the current version information comprises version information of Bootloader;
specifically, the target controller is any one of a plurality of ECUs of the charging pile, and the plurality of ECUs comprise a EMS, BMU, CCU, SECC, CMU, AC/CD converter, a DC/DC converter and a T-BOX. The ECUs communicate with each other through CAN or CANFD. The baud rate of communications varies from ECU to ECU. Each ECU has a normal operating mode and EOL mode. The first predetermined operation includes one of a single click, a double click, a long press, a slide, and a box selection.
Step S202 of controlling the target controller to enter the EOL mode in response to a second predetermined operation acting on the first operation region;
Specifically, the first operation area includes a first selection identifier entering the EOL mode and a first indicator light identifier, where the first selection identifier may be a checkbox or may be other selection identifiers, the first indicator light identifier has two states of on and off, and the first indicator light identifier is on when the target controller enters the EOL mode. The second predetermined operation may include one of a single click, a double click, a long click, a slide, and a box selection.
Step S203, in the case that the target controller enters the EOL mode, responding to a third preset operation acted on the second operation area to obtain the current version information;
specifically, the second operation area includes a second selection identifier for querying the current version information, the second operation area further includes a first display area for displaying a version number, a second display area for displaying the release date, and a plurality of second indicator light identifiers, the second indicator light identifiers are in one-to-one correspondence with version states of a new version, an old version, and an unclear state, and the third predetermined operation may include one of a single click, a double click, a long press, a slide, and a frame. The second selection identifier may be a check box or other selection identifiers, the first display area and the second display area may be text boxes, and may be displayed on a panel in other formats, and the second indicator identifier has two states of on and off, where when the second indicator identifier is on, the current version information is indicated to be the version state corresponding to the second indicator identifier.
Step S204, displaying the current version information in the second operation area.
Optionally, the first operation area includes a first selection identifier and a first indicator light identifier for entering the EOL mode, and controlling the target controller to enter the EOL mode in response to a second predetermined operation acting on the first operation area includes: responding to the second preset operation acting on the first selection identifier, and sending a first request message to the target controller, wherein the first request message is a message for controlling the target controller to enter the EOL mode; and under the condition that a first response message fed back by the target controller is received, the first indicator lamp mark is lightened, and the first response message is a message representing that the target controller enters the EOL mode.
Optionally, the second operation area includes a second selection identifier for querying current version information, and the obtaining the current version information in response to a third predetermined operation acting on the second operation area includes: transmitting a second request message for reading the current version information to the target controller in response to the third predetermined operation acting on the second selection identifier; receiving a second response message of the target controller, wherein the second response message carries information representing the current version information; and determining the current version information according to the second response message.
Optionally, determining the current version information according to the second response message includes: analyzing the second response message to obtain a target version number, wherein the target version number is the current version number of the target controller; determining whether a history version number identical to the target version number exists in the history information according to the target version number and the history information, wherein the history information comprises a plurality of history version numbers of the target controller and release dates of the history version numbers, and the history version number is one of the history version numbers; when the history version number exists in the history information, determining that the release date corresponding to the history version number is a target release date of the target version number, determining a version state of the target version number according to the target release date and a plurality of release dates, determining that the version state is a new version when the target release date is the latest of a plurality of release dates, and determining that the version state is an old version when the target release date is not the latest of a plurality of release dates; in the event that the history version number is not present in the history information, the version state of the target version number is determined to be an unclear state.
Optionally, the second operation area further includes a first display area for displaying a version number, a second display area for displaying the release date, and a plurality of second indicator identifiers, where the second indicator identifiers correspond to the version states one by one, and the displaying the current version information in the second operation area includes: displaying the target version number in the first display area; displaying the target release date in the second display area when the history version number exists in the history information; and according to the version state, the corresponding second indicator lamp mark is lightened.
Optionally, parsing the second response message to obtain a target version number includes: intercepting a plurality of hexadecimal byte information representing a target version number from the second response message, wherein the target version number is the version number of the target controller; converting the byte information of a plurality of hexadecimal systems into corresponding ASCII codes; and calling a character string splicing function to splice a plurality of ASCII codes into a character string representing the target version number.
Optionally, in response to a first predetermined operation acting on the target node, displaying an initial interface including a first operation region and a second operation region, including: in response to the first predetermined operation, displaying the initial interface including the first operation region, the second operation region, and a third operation region including a third selection identifier, a plurality of third display regions, and a plurality of fourth display regions, the method further comprising: responding to a fourth preset operation acted on the third selection identifier, and acquiring a plurality of historical version numbers and a corresponding plurality of release dates; the history version numbers are displayed in one-to-one correspondence in the third display areas, and the release dates are displayed in one-to-one correspondence in the fourth display areas.
Optionally, before responding to the first predetermined operation acting on the target node, the method further comprises: establishing CAN communication connection between the terminal and the target controller; adding an initial node in the CANoe software, and configuring a CAPL browser and a panel of the initial node; and correlating the configured CAPL browser with the configured panel to obtain the test node.
The embodiment of the invention provides a processor which is used for running a program, wherein the version information query method of the controller is executed when the program runs.
Specifically, the Bootloader version information query method of the controller comprises the following steps:
step S201, in the case that a terminal communicates with a target controller, an initial interface including a first operation area and a second operation area is displayed in response to a first preset operation acting on a target node, wherein the target node is a test node of the target controller established by CANoe software of the terminal, the first operation area is an area for operating EOL mode of the target controller, the second operation area is an area for operating current version information of the target controller, and the current version information comprises version information of Bootloader;
Specifically, the target controller is any one of a plurality of ECUs of the charging pile, and the plurality of ECUs comprise a EMS, BMU, CCU, SECC, CMU, AC/CD converter, a DC/DC converter and a T-BOX. The ECUs communicate with each other through CAN or CANFD. The baud rate of communications varies from ECU to ECU. Each ECU has a normal operating mode and EOL mode. The first predetermined operation includes one of a single click, a double click, a long press, a slide, and a box selection.
Step S202 of controlling the target controller to enter the EOL mode in response to a second predetermined operation acting on the first operation region;
specifically, the first operation area includes a first selection identifier entering the EOL mode and a first indicator light identifier, where the first selection identifier may be a checkbox or may be other selection identifiers, the first indicator light identifier has two states of on and off, and the first indicator light identifier is on when the target controller enters the EOL mode. The second predetermined operation may include one of a single click, a double click, a long click, a slide, and a box selection.
Step S203, in the case that the target controller enters the EOL mode, responding to a third preset operation acted on the second operation area to obtain the current version information;
Specifically, the second operation area includes a second selection identifier for querying the current version information, the second operation area further includes a first display area for displaying a version number, a second display area for displaying the release date, and a plurality of second indicator light identifiers, the second indicator light identifiers are in one-to-one correspondence with version states of a new version, an old version, and an unclear state, and the third predetermined operation may include one of a single click, a double click, a long press, a slide, and a frame. The second selection identifier may be a check box or other selection identifiers, the first display area and the second display area may be text boxes, and may be displayed on a panel in other formats, and the second indicator identifier has two states of on and off, where when the second indicator identifier is on, the current version information is indicated to be the version state corresponding to the second indicator identifier.
Step S204, displaying the current version information in the second operation area.
Optionally, the first operation area includes a first selection identifier and a first indicator light identifier for entering the EOL mode, and controlling the target controller to enter the EOL mode in response to a second predetermined operation acting on the first operation area includes: responding to the second preset operation acting on the first selection identifier, and sending a first request message to the target controller, wherein the first request message is a message for controlling the target controller to enter the EOL mode; and under the condition that a first response message fed back by the target controller is received, the first indicator lamp mark is lightened, and the first response message is a message representing that the target controller enters the EOL mode.
Optionally, the second operation area includes a second selection identifier for querying current version information, and the obtaining the current version information in response to a third predetermined operation acting on the second operation area includes: transmitting a second request message for reading the current version information to the target controller in response to the third predetermined operation acting on the second selection identifier; receiving a second response message of the target controller, wherein the second response message carries information representing the current version information; and determining the current version information according to the second response message.
Optionally, determining the current version information according to the second response message includes: analyzing the second response message to obtain a target version number, wherein the target version number is the current version number of the target controller; determining whether a history version number identical to the target version number exists in the history information according to the target version number and the history information, wherein the history information comprises a plurality of history version numbers of the target controller and release dates of the history version numbers, and the history version number is one of the history version numbers; when the history version number exists in the history information, determining that the release date corresponding to the history version number is a target release date of the target version number, determining a version state of the target version number according to the target release date and a plurality of release dates, determining that the version state is a new version when the target release date is the latest of a plurality of release dates, and determining that the version state is an old version when the target release date is not the latest of a plurality of release dates; in the event that the history version number is not present in the history information, the version state of the target version number is determined to be an unclear state.
Optionally, the second operation area further includes a first display area for displaying a version number, a second display area for displaying the release date, and a plurality of second indicator identifiers, where the second indicator identifiers correspond to the version states one by one, and the displaying the current version information in the second operation area includes: displaying the target version number in the first display area; displaying the target release date in the second display area when the history version number exists in the history information; and according to the version state, the corresponding second indicator lamp mark is lightened.
Optionally, parsing the second response message to obtain a target version number includes: intercepting a plurality of hexadecimal byte information representing a target version number from the second response message, wherein the target version number is the version number of the target controller; converting the byte information of a plurality of hexadecimal systems into corresponding ASCII codes; and calling a character string splicing function to splice a plurality of ASCII codes into a character string representing the target version number.
Optionally, in response to a first predetermined operation acting on the target node, displaying an initial interface including a first operation region and a second operation region, including: in response to the first predetermined operation, displaying the initial interface including the first operation region, the second operation region, and a third operation region including a third selection identifier, a plurality of third display regions, and a plurality of fourth display regions, the method further comprising: responding to a fourth preset operation acted on the third selection identifier, and acquiring a plurality of historical version numbers and a corresponding plurality of release dates; the history version numbers are displayed in one-to-one correspondence in the third display areas, and the release dates are displayed in one-to-one correspondence in the fourth display areas.
Optionally, before responding to the first predetermined operation acting on the target node, the method further comprises: establishing CAN communication connection between the terminal and the target controller; adding an initial node in the CANoe software, and configuring a CAPL browser and a panel of the initial node; and correlating the configured CAPL browser with the configured panel to obtain the test node.
The embodiment of the invention provides a terminal, which comprises a processor, a memory and a program stored on the memory and capable of running on the processor, wherein the processor realizes at least the following steps when executing the program:
step S201, in the case that a terminal communicates with a target controller, an initial interface including a first operation area and a second operation area is displayed in response to a first preset operation acting on a target node, wherein the target node is a test node of the target controller established by CANoe software of the terminal, the first operation area is an area for operating EOL mode of the target controller, the second operation area is an area for operating current version information of the target controller, and the current version information comprises version information of Bootloader;
Step S202 of controlling the target controller to enter the EOL mode in response to a second predetermined operation acting on the first operation region;
step S203, in the case that the target controller enters the EOL mode, responding to a third preset operation acted on the second operation area to obtain the current version information;
step S204, displaying the current version information in the second operation area.
The electronic device herein may be a terminal device such as a server, PC, PAD, mobile phone, etc.
Optionally, the first operation area includes a first selection identifier and a first indicator light identifier for entering the EOL mode, and controlling the target controller to enter the EOL mode in response to a second predetermined operation acting on the first operation area includes: responding to the second preset operation acting on the first selection identifier, and sending a first request message to the target controller, wherein the first request message is a message for controlling the target controller to enter the EOL mode; and under the condition that a first response message fed back by the target controller is received, the first indicator lamp mark is lightened, and the first response message is a message representing that the target controller enters the EOL mode.
Optionally, the second operation area includes a second selection identifier for querying current version information, and the obtaining the current version information in response to a third predetermined operation acting on the second operation area includes: transmitting a second request message for reading the current version information to the target controller in response to the third predetermined operation acting on the second selection identifier; receiving a second response message of the target controller, wherein the second response message carries information representing the current version information; and determining the current version information according to the second response message.
Optionally, determining the current version information according to the second response message includes: analyzing the second response message to obtain a target version number, wherein the target version number is the current version number of the target controller; determining whether a history version number identical to the target version number exists in the history information according to the target version number and the history information, wherein the history information comprises a plurality of history version numbers of the target controller and release dates of the history version numbers, and the history version number is one of the history version numbers; when the history version number exists in the history information, determining that the release date corresponding to the history version number is a target release date of the target version number, determining a version state of the target version number according to the target release date and a plurality of release dates, determining that the version state is a new version when the target release date is the latest of a plurality of release dates, and determining that the version state is an old version when the target release date is not the latest of a plurality of release dates; in the event that the history version number is not present in the history information, the version state of the target version number is determined to be an unclear state.
Optionally, the second operation area further includes a first display area for displaying a version number, a second display area for displaying the release date, and a plurality of second indicator identifiers, where the second indicator identifiers correspond to the version states one by one, and the displaying the current version information in the second operation area includes: displaying the target version number in the first display area; displaying the target release date in the second display area when the history version number exists in the history information; and according to the version state, the corresponding second indicator lamp mark is lightened.
Optionally, parsing the second response message to obtain a target version number includes: intercepting a plurality of hexadecimal byte information representing a target version number from the second response message, wherein the target version number is the version number of the target controller; converting the byte information of a plurality of hexadecimal systems into corresponding ASCII codes; and calling a character string splicing function to splice a plurality of ASCII codes into a character string representing the target version number.
Optionally, in response to a first predetermined operation acting on the target node, displaying an initial interface including a first operation region and a second operation region, including: in response to the first predetermined operation, displaying the initial interface including the first operation region, the second operation region, and a third operation region including a third selection identifier, a plurality of third display regions, and a plurality of fourth display regions, the method further comprising: responding to a fourth preset operation acted on the third selection identifier, and acquiring a plurality of historical version numbers and a corresponding plurality of release dates; the history version numbers are displayed in one-to-one correspondence in the third display areas, and the release dates are displayed in one-to-one correspondence in the fourth display areas.
Optionally, before responding to the first predetermined operation acting on the target node, the method further comprises: establishing CAN communication connection between the terminal and the target controller; adding an initial node in the CANoe software, and configuring a CAPL browser and a panel of the initial node; and correlating the configured CAPL browser with the configured panel to obtain the test node.
The present application also provides a computer program product adapted to perform a program initialized with at least the following method steps when executed on a data processing device:
step S201, in the case that a terminal communicates with a target controller, an initial interface including a first operation area and a second operation area is displayed in response to a first preset operation acting on a target node, wherein the target node is a test node of the target controller established by CANoe software of the terminal, the first operation area is an area for operating EOL mode of the target controller, the second operation area is an area for operating current version information of the target controller, and the current version information comprises version information of Bootloader;
Step S202 of controlling the target controller to enter the EOL mode in response to a second predetermined operation acting on the first operation region;
step S203, in the case that the target controller enters the EOL mode, responding to a third preset operation acted on the second operation area to obtain the current version information;
step S204, displaying the current version information in the second operation area.
The device herein may be a server, PC, PAD, cell phone, etc.
Optionally, the first operation area includes a first selection identifier and a first indicator light identifier for entering the EOL mode, and controlling the target controller to enter the EOL mode in response to a second predetermined operation acting on the first operation area includes: responding to the second preset operation acting on the first selection identifier, and sending a first request message to the target controller, wherein the first request message is a message for controlling the target controller to enter the EOL mode; and under the condition that a first response message fed back by the target controller is received, the first indicator lamp mark is lightened, and the first response message is a message representing that the target controller enters the EOL mode.
Optionally, the second operation area includes a second selection identifier for querying current version information, and the obtaining the current version information in response to a third predetermined operation acting on the second operation area includes: transmitting a second request message for reading the current version information to the target controller in response to the third predetermined operation acting on the second selection identifier; receiving a second response message of the target controller, wherein the second response message carries information representing the current version information; and determining the current version information according to the second response message.
Optionally, determining the current version information according to the second response message includes: analyzing the second response message to obtain a target version number, wherein the target version number is the current version number of the target controller; determining whether a history version number identical to the target version number exists in the history information according to the target version number and the history information, wherein the history information comprises a plurality of history version numbers of the target controller and release dates of the history version numbers, and the history version number is one of the history version numbers; when the history version number exists in the history information, determining that the release date corresponding to the history version number is a target release date of the target version number, determining a version state of the target version number according to the target release date and a plurality of release dates, determining that the version state is a new version when the target release date is the latest of a plurality of release dates, and determining that the version state is an old version when the target release date is not the latest of a plurality of release dates; in the event that the history version number is not present in the history information, the version state of the target version number is determined to be an unclear state.
Optionally, the second operation area further includes a first display area for displaying a version number, a second display area for displaying the release date, and a plurality of second indicator identifiers, where the second indicator identifiers correspond to the version states one by one, and the displaying the current version information in the second operation area includes: displaying the target version number in the first display area; displaying the target release date in the second display area when the history version number exists in the history information; and according to the version state, the corresponding second indicator lamp mark is lightened.
Optionally, parsing the second response message to obtain a target version number includes: intercepting a plurality of hexadecimal byte information representing a target version number from the second response message, wherein the target version number is the version number of the target controller; converting the byte information of a plurality of hexadecimal systems into corresponding ASCII codes; and calling a character string splicing function to splice a plurality of ASCII codes into a character string representing the target version number.
Optionally, in response to a first predetermined operation acting on the target node, displaying an initial interface including a first operation region and a second operation region, including: in response to the first predetermined operation, displaying the initial interface including the first operation region, the second operation region, and a third operation region including a third selection identifier, a plurality of third display regions, and a plurality of fourth display regions, the method further comprising: responding to a fourth preset operation acted on the third selection identifier, and acquiring a plurality of historical version numbers and a corresponding plurality of release dates; the history version numbers are displayed in one-to-one correspondence in the third display areas, and the release dates are displayed in one-to-one correspondence in the fourth display areas.
Optionally, before responding to the first predetermined operation acting on the target node, the method further comprises: establishing CAN communication connection between the terminal and the target controller; adding an initial node in the CANoe software, and configuring a CAPL browser and a panel of the initial node; and correlating the configured CAPL browser with the configured panel to obtain the test node.
It will be appreciated by those skilled in the art that the modules or steps of the invention described may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code that is executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
From the above description, it can be seen that the embodiments described herein achieve the following technical effects:
1) In the method of the present application, when the terminal communicates with the target controller, firstly, according to a first predetermined operation on a target node of the target controller established by using CANoe software of the terminal, displaying an initial interface, wherein the initial interface comprises a first operation area for operating an EOL mode of the target controller and a second operation area for operating current version information comprising Bootloader version; then, according to a second predetermined operation acting on the first operation region, controlling the target controller to enter the EOL mode; under the condition that the target controller enters an EOL mode, obtaining current version information according to a third preset operation acted on the second operation area; and finally, displaying the obtained current version information in a second operation area. According to the method and the device, the test node of the target controller is built through CANoe software, the current version information of the target controller is read and displayed in the second operation area in response to the operation acting on the test node, the inquiry of the version information of the controller is realized, and the problem that the inquiry mode of Bootloader version numbers is lacking in the prior art is solved. Through the method and the device, operators can intuitively see the version information of the controller, and the version information does not need to be queried from other files, so that the working efficiency is improved.
2) In the above device of the present application, in the case that the terminal communicates with the target controller, displaying, by the first display unit, an initial interface according to a first predetermined operation acting on a target node of the target controller established using CANoe software of the terminal, the initial interface including a first operation area for operating an EOL mode of the target controller and a second operation area for operating current version information including a Bootloader version; controlling, by the control unit, the target controller to enter the EOL mode according to a second predetermined operation acting on the first operation region; under the condition that the target controller enters an EOL mode, the current version information is obtained through an obtaining unit according to a third preset operation acted on the second operation area; and displaying the obtained current version information in a second operation area through a second display unit. According to the method and the device, the test node of the target controller is built through CANoe software, the current version information of the target controller is read and displayed in the second operation area in response to the operation acting on the test node, the inquiry of the version information of the controller is realized, and the problem that the inquiry mode of Bootloader version numbers is lacking in the prior art is solved. Through the method and the device, operators can intuitively see the version information of the controller, and the version information does not need to be queried from other files, so that the working efficiency is improved.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (12)

1. A version information query method of a controller, comprising:
in the case that a terminal communicates with a target controller, displaying an initial interface including a first operation area and a second operation area in response to a first predetermined operation acting on a target node, wherein the target node is a test node of the target controller established by CANoe software of the terminal, the first operation area is an area for operating an EOL mode of the target controller, and the second operation area is an area for operating current version information of the target controller, and the current version information includes version information of Bootloader;
controlling the target controller to enter the EOL mode in response to a second predetermined operation acting on the first operation region;
obtaining the current version information in response to a third predetermined operation acting on the second operation area under the condition that the target controller enters the EOL mode;
And displaying the current version information in the second operation area.
2. The method of claim 1, wherein the first operating region includes a first selection indicator and a first indicator light indicator to enter the EOL mode, the controlling the target controller to enter the EOL mode in response to a second predetermined operation acting on the first operating region comprising:
responding to the second preset operation acting on the first selection identifier, and sending a first request message to the target controller, wherein the first request message is a message for controlling the target controller to enter the EOL mode;
and under the condition that a first response message fed back by the target controller is received, the first indicator lamp mark is lightened, and the first response message is a message representing that the target controller enters the EOL mode.
3. The method of claim 1, wherein the second operation area includes a second selection identifier that queries for current version information, and wherein obtaining the current version information in response to a third predetermined operation acting on the second operation area includes:
transmitting a second request message for reading the current version information to the target controller in response to the third predetermined operation acting on the second selection identifier;
Receiving a second response message of the target controller, wherein the second response message carries information representing the current version information;
and determining the current version information according to the second response message.
4. The method of claim 3, wherein determining the current version information from the second response message comprises:
analyzing the second response message to obtain a target version number, wherein the target version number is the current version number of the target controller;
determining whether a history version number identical to the target version number exists in the history information according to the target version number and the history information, wherein the history information comprises a plurality of history version numbers of the target controller and release dates of the history version numbers, and the history version number is one of the history version numbers;
when the history version number exists in the history information, determining that the release date corresponding to the history version number is a target release date of the target version number, determining a version state of the target version number according to the target release date and a plurality of release dates, determining that the version state is a new version when the target release date is the latest of a plurality of release dates, and determining that the version state is an old version when the target release date is not the latest of a plurality of release dates;
In the event that the history version number is not present in the history information, the version state of the target version number is determined to be an unclear state.
5. The method of claim 4, wherein the second operation region further comprises a first display region for displaying a version number, a second display region for displaying the release date, and a plurality of second indicator light identifiers, the second indicator light identifiers being in one-to-one correspondence with the version status, the displaying the current version information in the second operation region comprising:
displaying the target version number in the first display area;
displaying the target release date in the second display area when the history version number exists in the history information;
and according to the version state, the corresponding second indicator lamp mark is lightened.
6. The method of claim 4, wherein parsing the second response message to obtain a target version number comprises:
intercepting a plurality of hexadecimal byte information representing a target version number from the second response message, wherein the target version number is the version number of the target controller;
Converting the byte information of a plurality of hexadecimal systems into corresponding ASCII codes;
and calling a character string splicing function to splice a plurality of ASCII codes into a character string representing the target version number.
7. The method of claim 4, wherein the step of determining the position of the first electrode is performed,
in response to a first predetermined operation acting on the target node, displaying an initial interface including a first operation region and a second operation region, comprising: displaying the initial interface including the first operation region, the second operation region, and a third operation region including a third selection flag, a plurality of third display regions, and a plurality of fourth display regions in response to the first predetermined operation,
the method further comprises the steps of:
responding to a fourth preset operation acted on the third selection identifier, and acquiring a plurality of historical version numbers and a corresponding plurality of release dates;
the history version numbers are displayed in one-to-one correspondence in the third display areas, and the release dates are displayed in one-to-one correspondence in the fourth display areas.
8. The method according to any one of claims 1 to 7, wherein prior to responding to the first predetermined operation acting on the target node, the method further comprises:
Establishing CAN communication connection between the terminal and the target controller;
adding an initial node in the CANoe software, and configuring a CAPL browser and a panel of the initial node;
and correlating the configured CAPL browser with the configured panel to obtain the test node.
9. A version information query apparatus of a controller, comprising:
the first display unit is used for responding to a first preset operation acted on a target node under the condition that a terminal is communicated with a target controller, displaying an initial interface comprising a first operation area and a second operation area, wherein the target node is a test node of the target controller established by CANoe software of the terminal, the first operation area is an area for operating an EOL mode of the target controller, the second operation area is an area for operating current version information of the target controller, and the current version information comprises version information of Bootloader;
a control unit for controlling the target controller to enter the EOL mode in response to a second predetermined operation acting on the first operation region;
An obtaining unit configured to obtain the current version information in response to a third predetermined operation acting on the second operation area in a case where the target controller enters the EOL mode;
and the second display unit is used for displaying the current version information in the second operation area.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run controls a device in which the computer readable storage medium is located to perform the method according to any one of claims 1 to 8.
11. A processor for running a program, wherein the program when run performs the method of any one of claims 1 to 8.
12. An electronic device, comprising: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the method of any of claims 1-8.
CN202310027589.3A 2023-01-09 2023-01-09 Version information query method and device of controller, processor and electronic equipment Withdrawn CN116166314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310027589.3A CN116166314A (en) 2023-01-09 2023-01-09 Version information query method and device of controller, processor and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310027589.3A CN116166314A (en) 2023-01-09 2023-01-09 Version information query method and device of controller, processor and electronic equipment

Publications (1)

Publication Number Publication Date
CN116166314A true CN116166314A (en) 2023-05-26

Family

ID=86412639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310027589.3A Withdrawn CN116166314A (en) 2023-01-09 2023-01-09 Version information query method and device of controller, processor and electronic equipment

Country Status (1)

Country Link
CN (1) CN116166314A (en)

Similar Documents

Publication Publication Date Title
CN105511448A (en) Integrated automotive diagnostic instrument and diagnosing method thereof
US20220374226A1 (en) Ota differential upgrade method and system of master-slave architecture
EP4046831A1 (en) Tire pressure sensing system
KR20210113155A (en) LED display update configuration method, receiving card, LED display module and LED display
CN116166314A (en) Version information query method and device of controller, processor and electronic equipment
CN109982284B (en) Communication system and method for line inspection
CN112835611A (en) Vehicle electric inspection configuration method and device and server
CN116155720A (en) CAN data acquisition remote configuration method in T-BOX
EP4258102A1 (en) Programming method and apparatus for tire pressure sensing apparatus, and replacement method and apparatus for tire pressure sensing apparatus
US10310840B2 (en) Computer system, method of managing transmission of software with computer system, program therefor, and recording medium
CN113535202B (en) Charging pile upgrading method, upgrading device and charging pile system
TW202024825A (en) Industrial internet of things system and data processing device thereof that comprises a communication module, a storage module that stores an identification data and a set of operation rules corresponding to the part, and a processing module
CN110445784B (en) Display method and device of operation data and energy system
CN111679834B (en) Automatic burning system and method for internet of things module
CN113542333B (en) Method for monitoring vehicle signals
KR101937798B1 (en) System and method for adaptively applying external monitoring system to energy storage system
KR20090005457A (en) Intelligent dtc monitoring system and method
KR20180057377A (en) Terminal, system and method for PTO power delivery monitoring using the same
CN113128710A (en) Fault detection method and device for emergency lamp, storage medium and electronic device
CN114172974B (en) Protocol conversion method, device and system
US20220224130A1 (en) Method For Analyzing A Charging Process Of An Electrical Energy Storage Apparatus By A Charging Apparatus
CN115001961A (en) Screen information management method, device and system
CN114244427B (en) Method and device for checking optical fiber network port resource and computer readable medium
CN116560698B (en) Online automatic brushing method for flexible intelligent production line of motorcycle
CN113682964B (en) Equipment parameter management and recovery method, platform, device, crane and system

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20230526