CN116185512A - Drive loading method, device, equipment and medium for PTC driver - Google Patents

Drive loading method, device, equipment and medium for PTC driver Download PDF

Info

Publication number
CN116185512A
CN116185512A CN202310454073.7A CN202310454073A CN116185512A CN 116185512 A CN116185512 A CN 116185512A CN 202310454073 A CN202310454073 A CN 202310454073A CN 116185512 A CN116185512 A CN 116185512A
Authority
CN
China
Prior art keywords
driver
loading
information
verification code
program
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.)
Granted
Application number
CN202310454073.7A
Other languages
Chinese (zh)
Other versions
CN116185512B (en
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.)
Shenzhen Aiwei Electrical Technology Co ltd
Original Assignee
Shenzhen Aiwei Electrical 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 Shenzhen Aiwei Electrical Technology Co ltd filed Critical Shenzhen Aiwei Electrical Technology Co ltd
Priority to CN202310454073.7A priority Critical patent/CN116185512B/en
Publication of CN116185512A publication Critical patent/CN116185512A/en
Application granted granted Critical
Publication of CN116185512B publication Critical patent/CN116185512B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • 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]
    • 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
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/72Electric energy management in electromobility

Abstract

The invention discloses a drive loading method, a device, equipment and a medium for a PTC driver, wherein the method comprises the following steps: receiving an input loading instruction, reading driver information, and carrying out segmentation processing on a pre-stored driver file corresponding to the loading instruction according to segmentation rules to obtain a plurality of program segments; and sequentially transmitting the program segments to the drivers to load the program segments, acquiring a loading verification code corresponding to the transmitted program segments and driver information according to a verification code acquisition rule, verifying whether the loading verification code and the loading information fed back by the drivers pass or not, and if so, continuing to transmit the next program segment. According to the driving loading method for the PTC driver, the loading verification code can be generated, whether the loading information fed back by each driver based on the currently loaded program segment passes or not is verified according to the loading verification code, each driver is ensured to be capable of loading the program segments in sequence independently, and the reliability of loading multiple drivers simultaneously is greatly improved.

Description

Drive loading method, device, equipment and medium for PTC driver
Technical Field
The present invention relates to the field of driver software technologies, and in particular, to a method, an apparatus, a device, and a medium for loading a PTC driver.
Background
In order to realize efficient and accurate control of the circuit device, a driver is required to be assembled on the circuit device, and the circuit device is driven and controlled by the driver, for example, the PTC device (Positive Temperature Coefficient, positive temperature coefficient thermistor) is driven and controlled by the driver. The PTC driver needs to be assembled with a corresponding driver to realize driving control, and the driver can be preloaded into a storage unit of the driver before the PTC driver is used. Therefore, the prior art method has a problem of low reliability when the drivers of a plurality of drivers are loaded simultaneously.
Disclosure of Invention
The embodiment of the invention provides a driving loading method, device, equipment and medium for a PTC (Positive temperature coefficient) driver, which aim to solve the problem of lower reliability when driving programs of a plurality of drivers are loaded simultaneously in the prior art.
In a first aspect, an embodiment of the present invention provides a driving loading method for a PTC driver, where the method is applied to a loading control terminal, where the loading control terminal is connected to a plurality of drivers at the same time to implement transmission of data information, and the method includes:
receiving an input loading instruction and reading driver information corresponding to a connected driver;
carrying out segmentation processing on a pre-stored driver file corresponding to the loading instruction according to a preset segmentation rule to obtain a plurality of corresponding program segments;
sequentially transmitting each program segment to each driver so as to load the program segments into each driver;
acquiring a loading verification code corresponding to the transmitted program segment and the driver information according to a preset verification code acquisition rule;
verifying whether the loading information fed back by each driver passes or not according to the loading verification code;
and if the loading information of the driver passes the verification, transmitting a next program segment corresponding to the current loaded program segment of the driver for loading, and returning to execute the step of acquiring the loading verification code corresponding to the transmitted program segment and the driver information according to a preset verification code acquisition rule until all the program segments are loaded into the driver.
In a second aspect, an embodiment of the present invention further provides a driving loading device for a PTC driver, where the device is configured in a loading control terminal, and the loading control terminal is connected to a plurality of drivers at the same time to implement transmission of data information, and the device includes:
the driver information reading unit is used for receiving the input loading instruction and reading the driver information corresponding to the connected drivers;
the segmentation processing unit is used for carrying out segmentation processing on a pre-stored driver file corresponding to the loading instruction according to a preset segmentation rule to obtain a plurality of corresponding program segments;
a program segment transmission unit, configured to sequentially transmit each program segment to each driver, so as to load the program segment into each driver;
the loading verification code acquisition unit is used for acquiring loading verification codes corresponding to the transmitted program segments and the driver information according to preset verification code acquisition rules;
the loading verification code verification unit is used for verifying whether the loading information fed back by each driver passes or not according to the loading verification code;
and the sending unit is used for sending the next program segment corresponding to the current loaded program segment of the driver to load if the loading information of the driver passes the verification, and returning to execute the step of acquiring the loading verification code corresponding to the sent program segment and the driver information according to the preset verification code acquisition rule until all the program segments are loaded into the driver.
In a third aspect, an embodiment of the present invention further provides a computer device, where the device includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and a processor for implementing the step for driving and loading the PTC driver according to the first aspect when executing the program stored in the memory.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps for driving loading of a PTC driver as described in the first aspect above.
The embodiment of the invention provides a drive loading method, a device, equipment and a medium for a PTC driver, wherein the method comprises the following steps: receiving an input loading instruction, reading driver information, and carrying out segmentation processing on a pre-stored driver file corresponding to the loading instruction according to segmentation rules to obtain a plurality of corresponding program segments; and sequentially transmitting the program segments to the drivers to load the program segments, acquiring a loading verification code corresponding to the transmitted program segments and driver information according to a verification code acquisition rule, verifying whether the loading verification code and the loading information fed back by the drivers pass or not, and if so, continuing to transmit the next program segment. According to the driving loading method for the PTC driver, the loading verification code can be generated, whether the loading information fed back by each driver based on the currently loaded program segment passes or not is verified according to the loading verification code, each driver is ensured to be capable of loading the program segments in sequence independently, and the reliability of loading the driving programs of the plurality of drivers simultaneously is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a method for driving and loading a PTC driver according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an application scenario of a driving loading method for a PTC driver according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a drive loading device for a PTC driver according to an embodiment of the present invention;
fig. 4 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1 and fig. 2, as shown in the drawings, an embodiment of the present invention provides a driving loading method for a PTC driver, where the driving loading method for a PTC driver is applied to a loading control terminal 10, and the loading control terminal 10 is connected to a plurality of drivers 20 at the same time to realize transmission of data information, the drivers 20 are terminal devices for loading driver files, such as PTC drivers, and the loading control terminal 10 is a terminal device for performing loading control of driver files, such as a desktop computer, a notebook computer, a tablet computer, a mobile phone, etc., and the loading control terminal 10 can be connected to a plurality of drivers 20 at the same time to realize transmission of data information. As shown in FIG. 1, the method includes steps S110 to S160.
S110, receiving an input loading instruction, and reading driver information corresponding to the connected drivers.
And receiving an input loading instruction and reading the driver information corresponding to the connected driver. After receiving a loading instruction input by a user, the loading control terminal can read the driver information corresponding to the connected driver, wherein the driver information is the information corresponding to the driver connected with the loading control terminal. The driver information includes information such as a connection address and a driver model of each driver, and each driver corresponds to a connection address.
S120, carrying out segmentation processing on a pre-stored driver file corresponding to the loading instruction according to a preset segmentation rule to obtain a plurality of corresponding program segments.
And carrying out segmentation processing on the pre-stored driver files corresponding to the loading instructions according to preset segmentation rules to obtain a plurality of corresponding program segments. The pre-stored driver file is composed of a plurality of subfiles, such as a file with a BIN format. The loading control terminal can acquire a corresponding pre-stored driver file according to the received loading instruction, and segment the driver file according to a preset segmentation rule to obtain a plurality of program segments. The segmentation rule is a specific rule for carrying out segmentation processing on the driver file.
Specifically, the information such as the name of the loading program and the version of the program can be set in the loading instruction, and the matching can be performed according to the name and the version of the loading program and the program files contained in the preset program file library, so that the driver files corresponding to the name and the version of the loading program are obtained, and the drivers are loaded for the driver files.
In a specific embodiment, step S120 includes the sub-steps of: obtaining the number of drivers from the driver information; calculating the number of segments corresponding to the number of drivers and the number of files in the driver file according to a segment calculation formula in the segment rule; splitting a pre-stored driver file corresponding to the loading instruction in the preset program file library into a plurality of program segments corresponding to the segmentation number according to the segmentation number.
Because the driver information contains the connection addresses, and each connection address corresponds to one driver, the loading control terminal can acquire the connection addresses of which the driver types are matched with the preset types from the driver information, and the acquired connection addresses are used as the driver numbers of the drivers matched with the preset types. The segmentation rule can be configured with a segmentation calculation formula, the number of drivers and the number of files in the driver files are calculated through the segmentation calculation formula to obtain the corresponding segmentation number, and the corresponding driver files are split according to the calculated segmentation number to obtain a plurality of program segments corresponding to the calculated segmentation number. The number of subfiles included in the driver file corresponds to the number of files. Specifically, the corresponding basic file space can be calculated according to the occupied space and the number of segments of the driver file, for example, the occupied space of the driver file is divided by the number of segments to obtain the basic file space, and a plurality of program segments equal to the basic file space are obtained from the program file.
For example, the segmentation calculation formula may be formula (1):
Figure SMS_1
(1);
wherein r is the number of the adapter plates,
Figure SMS_2
in order to round up the calculation symbol, t is the calculated number of segments, and P is the number of files in the driver file.
S130, sequentially transmitting the program segments to each driver so as to load the program segments into each driver.
And sequentially transmitting each program segment to each driver so as to load the program segments into each driver. The loading control terminal transmits all the program segments to the driver in parallel, namely, the loading control terminal can respectively send the same or different program segments to the driver, and the driver loads the received program segments into a storage space of the driver. That is, the loading control terminal loads each program segment into the driver in turn in a segmented loading manner, and when loading of all the program segments is completed in the driver, the loading process of the driver file is completed.
S140, acquiring a loading verification code corresponding to the transmitted program segment and the driver information according to a preset verification code acquisition rule.
And acquiring the loading verification code corresponding to the transmitted program segment and the driver information according to a preset verification code acquisition rule. After the loading control terminal sends a program segment to one driver, the loading verification code corresponding to the driver can be calculated according to the sent program segment and the driver information, and then a corresponding loading verification code can be calculated for each driver by sending the program segment each time. The verification code acquisition rule is a specific rule for processing the program section and the driver information to acquire the loading verification code.
In a specific embodiment, step S140 includes the sub-steps of: acquiring basic information of the transmitted program segment; combining the basic information with the coding values of each driver in the driver coding information corresponding to the driver information to obtain combined information; and converting the combined information according to the verification code acquisition rule to obtain loading verification codes corresponding to the drivers.
Basic information of a program segment sent to a drive can be obtained, wherein the basic information is information for describing basic contents in the program segment, and the basic information is a character string corresponding to a plurality of characters. For example, the basic information includes the number of files in the program segment, the file occupation space of the program segment, and the name of the last file of the program segment.
The driver code information includes the code value of each driver, the basic information of the program section can be combined with the code value of the driver receiving the program section, the code value includes numerical value and/or letter, and the code value can be combined with the basic information to form a new character string.
And converting the combined information according to the verification code acquisition rule, thereby obtaining the loading verification codes corresponding to the drivers. Specifically, the verification code obtaining rule may be a hash operation rule, and the hash operation rule is a secure hash algorithm 256, so as to obtain summary information corresponding to the combined information, and take the summary information as the loading verification code.
In this embodiment, i.e., hash (combined information) =load verification code, if the two sets of combined information are identical, the load verification codes corresponding to the two sets of obtained combined information are identical. For messages of any length (calculated by bit), the SHA256 (secure hash algorithm 256) generates a 32 byte length data, and the SHA256 always treats the message as a bit string. This message digest may be used to verify whether the data has changed, i.e., its integrity, when the message is received.
In a specific embodiment, before the combining the basic information with the encoded values of each driver in the driver encoded information corresponding to the driver information, the method further includes: and distributing the coding value of each driver according to the driver information to obtain the driver coding information.
Before the combined information is acquired, the drivers connected with the loading control terminal can be encoded according to the driver information, specifically, an encoding value can be allocated to the driver corresponding to each connection address according to the connection address in the driver information, the encoding value can be a randomly generated character string, the encoding value can also be a character string correspondingly generated according to the connection address, and because the connection address is uniquely corresponding to each driver, the encoding value correspondingly generated according to the connection address is also uniquely corresponding to the driver.
In a specific embodiment, the combining the basic information and the encoded values of each driver in the driver encoded information corresponding to the driver information to obtain combined information includes: sequentially combining the characters contained in the basic information with the coding values of the drivers to obtain combined information; or, inserting the code value of each driver into the characters contained in the basic information according to the preset character interval number interval to obtain the combined information by combining.
The characters contained in the basic information and the code value of the driver can be combined sequentially, and then the code value is connected in series after the characters contained in the basic information, and the code value and the characters contained in the basic information are combined sequentially to form combined information. The code value of the driver may be inserted into the characters included in the basic information at intervals of a preset number of character intervals, and if the number of the interval characters is 3, one character in the code value is inserted into the characters included in the basic information at intervals of 3 characters, so that the basic information and the code information are combined to form combined information.
S150, verifying whether the loading information fed back by each driver passes or not according to the loading verification code.
And verifying whether the loading information fed back by each driver passes or not according to the loading verification code. After the driver finishes loading the program segments, loading information is fed back to the loading control terminal, wherein the loading information can comprise the number of files loaded corresponding to the loaded program segments, the occupied space of the loaded files and the names of the last files loaded. After receiving the loading information, the loading control terminal can verify whether the loading information of the driver passes or not according to the loading verification code corresponding to the driver.
In a specific embodiment, the steps S1,50 comprise the sub-steps of: acquiring a verification code to be verified, which corresponds to the loading information fed back by the driver, according to the verification code acquisition rule; and verifying whether the verification code to be verified is consistent with the loading verification code or not so as to verify whether the verification code to be verified passes or not.
Specifically, the verification code to be verified corresponding to the loading information may be obtained according to the verification code obtaining rule, and the feedback loading information may be first combined with the encoded value of the driver, where the combination is performed in a manner that is specifically described in the above method. And processing the combined information according to the verification code acquisition rule, correspondingly generating a verification code to be verified, wherein the specific process of generating the verification code to be verified is the same as the specific process of generating the loading verification code.
Then judging whether the verification code to be verified is consistent with the loading verification code of the corresponding driver, if so, obtaining a verification passing result, namely indicating that the loading process of the driver on the current program segment is normal; if the program segments are inconsistent, the result is that verification is not passed, which indicates that the process of loading the current program segments by the driver is abnormal, and the loading process of the driver on the driver files can be terminated. In the process, the driver files can be loaded independently for each driver, whether the loaded program segments in each driver are loaded successfully or not can be verified independently, and the reliability of loading the driver files for a plurality of drivers is improved.
In a specific embodiment, before the verification code to be verified, which corresponds to the loading information fed back by the driver, is obtained according to the verification code obtaining rule, the method further includes: verifying whether feedback interval time corresponding to the loading information is located in a preset time interval or not, wherein the feedback interval time is interval time between a time point of transmitting a program segment and a time point of receiving the fed-back loading information; if the feedback interval time corresponding to the loading information is within a preset time interval, executing the step of acquiring the verification code to be verified, which corresponds to the loading information fed back by the driver, according to the verification code acquisition rule; and if the feedback interval time corresponding to the loading information is not within the preset time interval, verifying that the feedback interval time does not pass.
Before the verification code to be verified is obtained for verification, the feedback interval time corresponding to the loading time can be verified, wherein the feedback interval time is the interval time between the time point of sending the current program segment to the driver and the time point of receiving the loading time fed back by the driver. Whether the feedback interval time is in a preset time interval or not can be judged, if the feedback interval time is in the preset time interval, the speed of loading the current program segment by the driver is normal, and the follow-up steps can be continuously executed; if the feedback interval time is within the preset time interval, the driver is indicated to load the current program segment slowly, and the result obtained at the moment is that verification is failed, and the load control terminal can debug the driver with the slower program segment loading, for example, send a debug instruction to the driver to debug the system, so that the debugged driver can load the program segment efficiently.
And S160, if the loading information of the driver passes the verification, transmitting a next program segment corresponding to the current loaded program segment of the driver to load, and returning to execute the step of acquiring the loading verification code corresponding to the transmitted program segment and the driver information according to a preset verification code acquisition rule until all the program segments are loaded into the driver.
If the loading information of the driver passes the verification, the next program segment corresponding to the currently loaded program segment of the driver is sent to load, and the step S140 is executed again until all the program segments are loaded into the driver. If the loading information of the driver passes the verification, it indicates that the driver has completed the loading process of the current program segment, and the next program segment corresponding to the current loaded program segment may be obtained continuously and sent to the driver, so that the driver continues to load the next program segment, and the step S140 is executed again. And (5) circularly executing the steps S140-S160 until the driver fails in loading the program segments or until the driver finishes loading all the program segments.
According to the driving loading method for the PTC driver, which is provided by the embodiment of the invention, an input loading instruction is received, the driver information is read, and the pre-stored driving program file corresponding to the loading instruction is subjected to segmentation processing according to segmentation rules to obtain a plurality of corresponding program segments; and sequentially transmitting the program segments to the drivers to load the program segments, acquiring a loading verification code corresponding to the transmitted program segments and driver information according to a verification code acquisition rule, verifying whether the loading verification code and the loading information fed back by the drivers pass or not, and if so, continuing to transmit the next program segment. According to the driving loading method for the PTC driver, the loading verification code can be generated, whether the loading information fed back by each driver based on the currently loaded program segment passes or not is verified according to the loading verification code, each driver is ensured to be capable of loading the program segments in sequence independently, and the reliability of loading the driving programs of the plurality of drivers simultaneously is greatly improved.
The embodiment of the invention also provides a drive loading device for the PTC driver, which can be configured in a loading control terminal and is used for executing any embodiment of the drive loading method for the PTC driver. Specifically, referring to fig. 3, fig. 3 is a schematic block diagram of a driving loading device for a PTC driver according to an embodiment of the present invention.
As shown in fig. 3, the drive loading device 100 for the PTC driver includes a driver information reading unit 110, a segment processing unit 120, a program segment transmission unit 130, a load verification code acquisition unit 140, a load verification code verification unit 150, and a transmission unit 160.
The driver information reading unit 110 is configured to receive an input loading instruction, and read driver information corresponding to the connected driver.
The segmentation processing unit 120 is configured to perform segmentation processing on a pre-stored driver file corresponding to the loading instruction according to a preset segmentation rule, so as to obtain a plurality of corresponding program segments.
And a program segment transmission unit 130, configured to sequentially transmit each program segment to each driver, so as to load the program segment into each driver.
And the loading verification code obtaining unit 140 is configured to obtain a loading verification code corresponding to the transmitted program segment and the driver information according to a preset verification code obtaining rule.
And the loading verification code verification unit 150 is used for verifying whether the loading information fed back by each driver passes or not according to the loading verification code.
And the sending unit 160 is configured to send a next program segment corresponding to the currently loaded program segment of the drive to load if the loading information of the drive is verified, and return to executing the step of obtaining the loading verification code corresponding to the sent program segment and the drive information according to the preset verification code obtaining rule until all the program segments are loaded into the drive.
The driving loading device for the PTC driver provided by the embodiment of the invention is applied to the driving loading method for the PTC driver, receives the input loading instruction and reads the driver information, and performs segmentation processing on the pre-stored driving program file corresponding to the loading instruction according to the segmentation rule to obtain a plurality of corresponding program segments; and sequentially transmitting the program segments to the drivers to load the program segments, acquiring a loading verification code corresponding to the transmitted program segments and driver information according to a verification code acquisition rule, verifying whether the loading verification code and the loading information fed back by the drivers pass or not, and if so, continuing to transmit the next program segment. According to the driving loading method for the PTC driver, the loading verification code can be generated, whether the loading information fed back by each driver based on the currently loaded program segment passes or not is verified according to the loading verification code, each driver is ensured to be capable of loading the program segments in sequence independently, and the reliability of loading the driving programs of the plurality of drivers simultaneously is greatly improved.
The above-described drive loading means for the PTC driver may be implemented in the form of a computer program which can be run on a computer device as shown in fig. 4.
Referring to fig. 4, fig. 4 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device may be a load control terminal for performing a drive loading method for the PTC drive to load the drive program file to the drive.
Referring to fig. 4, the computer device 500 includes a processor 502, a memory, and a network interface 505, which are connected by a communication bus 501, wherein the memory may include a storage medium 503 and an internal memory 504.
The storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, may cause the processor 502 to perform a drive loading method for a PTC drive, wherein the storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a drive loading method for a PTC drive.
The network interface 505 is used for network communication, such as providing for transmission of data information, etc. It will be appreciated by those skilled in the art that the architecture shown in fig. 4 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting of the computer device 500 to which the present inventive arrangements may be implemented, and that a particular computer device 500 may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
The processor 502 is configured to execute a computer program 5032 stored in a memory, so as to implement the corresponding functions in the driving loading method for the PTC driver.
Those skilled in the art will appreciate that the embodiment of the computer device shown in fig. 4 is not limiting of the specific construction of the computer device, and in other embodiments, the computer device may include more or less components than those shown, or certain components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may include only a memory and a processor, and in such embodiments, the structure and function of the memory and the processor are consistent with the embodiment shown in fig. 4, and will not be described again.
It should be appreciated that in an embodiment of the invention, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a volatile or nonvolatile computer readable storage medium. The computer readable storage medium stores a computer program which, when executed by a processor, implements the steps involved in the drive loading method for PTC drives described above.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus, device and unit described above may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein. Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units is merely a logical function division, there may be another division manner in actual implementation, or units having the same function may be integrated into one unit, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or elements, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment of the present invention.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention is essentially or part of what contributes to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a computer-readable storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned computer-readable storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. A drive loading method for PTC drives, wherein the method is applied to a loading control terminal which is simultaneously connected with a plurality of drives to realize transmission of data information, the method comprising:
receiving an input loading instruction and reading driver information corresponding to a connected driver;
carrying out segmentation processing on a pre-stored driver file corresponding to the loading instruction according to a preset segmentation rule to obtain a plurality of corresponding program segments;
sequentially transmitting each program segment to each driver so as to load the program segments into each driver;
acquiring a loading verification code corresponding to the transmitted program segment and the driver information according to a preset verification code acquisition rule;
verifying whether the loading information fed back by each driver passes or not according to the loading verification code;
and if the loading information of the driver passes the verification, transmitting a next program segment corresponding to the current loaded program segment of the driver for loading, and returning to execute the step of acquiring the loading verification code corresponding to the transmitted program segment and the driver information according to a preset verification code acquisition rule until all the program segments are loaded into the driver.
2. The drive loading method for PTC driver according to claim 1, wherein the segmenting the pre-stored driver file corresponding to the loading instruction according to a preset segmentation rule, to obtain a corresponding plurality of program segments, comprises:
obtaining the number of drivers from the driver information;
calculating the number of segments corresponding to the number of drivers and the number of files in the driver file according to a segment calculation formula in the segment rule;
splitting a pre-stored driver file corresponding to the loading instruction in the preset program file library into a plurality of program segments corresponding to the segmentation number according to the segmentation number.
3. A drive loading method for a PTC driver according to claim 1 or 2, wherein the acquiring the loading verification code corresponding to the transmitted program section and the driver information according to a preset verification code acquisition rule comprises:
acquiring basic information of the transmitted program segment;
combining the basic information with the coding values of each driver in the driver coding information corresponding to the driver information to obtain combined information;
and converting the combined information according to the verification code acquisition rule to obtain loading verification codes corresponding to the drivers.
4. A drive loading method for a PTC driver according to claim 3, wherein before the combination of the basic information and the encoded values of the respective drivers in the driver encoded information corresponding to the driver information, further comprising:
and distributing the coding value of each driver according to the driver information to obtain the driver coding information.
5. A drive loading method for a PTC driver according to claim 3, wherein the combining the basic information and the encoded values of each driver in the driver encoded information corresponding to the driver information to obtain the combined information comprises:
sequentially combining the characters contained in the basic information with the coding values of the drivers to obtain combined information;
or, inserting the code value of each driver into the characters contained in the basic information according to the preset character interval number interval to obtain the combined information by combining.
6. A drive loading method for PTC drives according to claim 1 or 2, wherein verifying whether the loading information fed back to each drive according to the loading verification code is passed or not comprises:
acquiring a verification code to be verified, which corresponds to the loading information fed back by the driver, according to the verification code acquisition rule;
and verifying whether the verification code to be verified is consistent with the loading verification code or not so as to verify whether the verification code to be verified passes or not.
7. The driving loading method for PTC driver according to claim 6, further comprising, before the verification code to be verified corresponding to the loading information fed back by the driver is obtained according to the verification code obtaining rule:
verifying whether feedback interval time corresponding to the loading information is located in a preset time interval or not, wherein the feedback interval time is interval time between a time point of transmitting a program segment and a time point of receiving the fed-back loading information;
if the feedback interval time corresponding to the loading information is within a preset time interval, executing the step of acquiring the verification code to be verified, which corresponds to the loading information fed back by the driver, according to the verification code acquisition rule;
and if the feedback interval time corresponding to the loading information is not within the preset time interval, verifying that the feedback interval time does not pass.
8. A drive loading device for PTC drivers, the device being disposed in a load control terminal which is simultaneously connected with a plurality of drivers to realize transmission of data information, the device comprising:
the driver information reading unit is used for receiving the input loading instruction and reading the driver information corresponding to the connected drivers;
the segmentation processing unit is used for carrying out segmentation processing on a pre-stored driver file corresponding to the loading instruction according to a preset segmentation rule to obtain a plurality of corresponding program segments;
a program segment transmission unit, configured to sequentially transmit each program segment to each driver, so as to load the program segment into each driver;
the loading verification code acquisition unit is used for acquiring loading verification codes corresponding to the transmitted program segments and the driver information according to preset verification code acquisition rules;
the loading verification code verification unit is used for verifying whether the loading information fed back by each driver passes or not according to the loading verification code;
and the sending unit is used for sending the next program segment corresponding to the current loaded program segment of the driver to load if the loading information of the driver passes the verification, and returning to execute the step of acquiring the loading verification code corresponding to the sent program segment and the driver information according to the preset verification code acquisition rule until all the program segments are loaded into the driver.
9. A computer device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the drive loading method for a PTC driver according to any one of claims 1 to 7 when executing a program stored on a memory.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the drive loading method for a PTC drive according to any of claims 1 to 7.
CN202310454073.7A 2023-04-25 2023-04-25 Drive loading method, device, equipment and medium for PTC driver Active CN116185512B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310454073.7A CN116185512B (en) 2023-04-25 2023-04-25 Drive loading method, device, equipment and medium for PTC driver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310454073.7A CN116185512B (en) 2023-04-25 2023-04-25 Drive loading method, device, equipment and medium for PTC driver

Publications (2)

Publication Number Publication Date
CN116185512A true CN116185512A (en) 2023-05-30
CN116185512B CN116185512B (en) 2023-07-21

Family

ID=86440656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310454073.7A Active CN116185512B (en) 2023-04-25 2023-04-25 Drive loading method, device, equipment and medium for PTC driver

Country Status (1)

Country Link
CN (1) CN116185512B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116521247A (en) * 2023-06-29 2023-08-01 深圳艾为电气技术有限公司 Synchronous loading control method, device, equipment and medium for PTC driver

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030188231A1 (en) * 2002-04-01 2003-10-02 Cronce Paul A. Method for runtime code integrity validation using code block checksums
US20120254995A1 (en) * 2011-03-31 2012-10-04 Mcafee, Inc. System and method for below-operating system trapping and securing loading of code into memory
CN103885775A (en) * 2014-03-21 2014-06-25 贝壳网际(北京)安全技术有限公司 Method and device for obtaining driver file
CN104216791A (en) * 2013-05-30 2014-12-17 上海斐讯数据通信技术有限公司 Flash stored data verifying method
CN107357595A (en) * 2016-05-09 2017-11-17 上海安浦鸣志自动化设备有限公司 A kind of multiple driver firmware online updating system based on bus
WO2019057023A1 (en) * 2017-09-20 2019-03-28 中兴通讯股份有限公司 Data recovery method, sending/receiving apparatus, and computer-readable storage medium
CN113590139A (en) * 2021-03-27 2021-11-02 深圳市世纪创新显示电子有限公司 High-efficiency online software burning device and method for display driver board
CN114616544A (en) * 2020-12-03 2022-06-10 深圳市大疆创新科技有限公司 Firmware data processing method and device
CN114691170A (en) * 2022-03-21 2022-07-01 北京和利时电机技术有限公司 Driver software upgrading method and device, controller and driver

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030188231A1 (en) * 2002-04-01 2003-10-02 Cronce Paul A. Method for runtime code integrity validation using code block checksums
US20120254995A1 (en) * 2011-03-31 2012-10-04 Mcafee, Inc. System and method for below-operating system trapping and securing loading of code into memory
CN104216791A (en) * 2013-05-30 2014-12-17 上海斐讯数据通信技术有限公司 Flash stored data verifying method
CN103885775A (en) * 2014-03-21 2014-06-25 贝壳网际(北京)安全技术有限公司 Method and device for obtaining driver file
CN107357595A (en) * 2016-05-09 2017-11-17 上海安浦鸣志自动化设备有限公司 A kind of multiple driver firmware online updating system based on bus
WO2019057023A1 (en) * 2017-09-20 2019-03-28 中兴通讯股份有限公司 Data recovery method, sending/receiving apparatus, and computer-readable storage medium
CN114616544A (en) * 2020-12-03 2022-06-10 深圳市大疆创新科技有限公司 Firmware data processing method and device
CN113590139A (en) * 2021-03-27 2021-11-02 深圳市世纪创新显示电子有限公司 High-efficiency online software burning device and method for display driver board
CN114691170A (en) * 2022-03-21 2022-07-01 北京和利时电机技术有限公司 Driver software upgrading method and device, controller and driver

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116521247A (en) * 2023-06-29 2023-08-01 深圳艾为电气技术有限公司 Synchronous loading control method, device, equipment and medium for PTC driver
CN116521247B (en) * 2023-06-29 2024-02-23 深圳艾为电气技术股份有限公司 Synchronous loading control method, device, equipment and medium for PTC driver

Also Published As

Publication number Publication date
CN116185512B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
US9875093B2 (en) Rack server device firmware update using network switch
US9430648B2 (en) Method and apparatus for near field communication
CN116185512B (en) Drive loading method, device, equipment and medium for PTC driver
CN109964215B (en) Flow control in remote direct memory access data communications with ring buffer mirroring
CN116166332B (en) Method, device, equipment and medium for parallel loading of compressor driver
CN110224999A (en) Information interacting method, device and storage medium
CN111880740A (en) Data processing method, device, computer system and readable storage medium
CN105468302A (en) Data processing method, apparatus and system
CN111736909B (en) Method and device for starting operating system, computer equipment and storage medium
CN110888603B (en) High concurrency data writing method, device, computer equipment and storage medium
EP3584936A1 (en) Polar code encoding and decoding method, sending device and receiving device
US20230057089A1 (en) Upgrade method, computer system, and remote upgrade device implementing efficient remote upgrade
CN111966287A (en) Data storage method, electronic device and storage medium
CN111258756A (en) Load balancing method and device, computer equipment and readable storage medium
CN112380464A (en) Short link generation method and related equipment
EP2579153A1 (en) Information generation system and method therefor
CN111061693B (en) Method, device and medium for decompressing, separating and compressing file during downloading
CN110532290B (en) Information verification device, method and storage medium based on block chain
CN109308288B (en) Data processing method and device
CN114006819A (en) Detection strategy generation and device, and data transmission method and device
CN110968255B (en) Data processing method, device, storage medium and processor
CN109840080B (en) Character attribute comparison method and device, storage medium and electronic equipment
CN108234216B (en) Method and device for downloading data message
CN106940684A (en) A kind of method and device pressed than feature data
CN105262809A (en) Data backup method and apparatus based on cloud disc

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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 518000, 601, 6th Floor, Tianyun Building, Chongzhi Avenue, Vanke City Community, Bantian Street, Longgang District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Aiwei Electrical Technology Co.,Ltd.

Country or region after: China

Address before: 518000 7f703a, Shenzhou computer building, Madame Curie Avenue, wankecheng community, Bantian street, Longgang District, Shenzhen, Guangdong Province

Patentee before: Shenzhen Aiwei Electrical Technology Co.,Ltd.

Country or region before: China