[go: up one dir, main page]

CN114201198A - Equipment drive configuration method and device under embedded system - Google Patents

Equipment drive configuration method and device under embedded system Download PDF

Info

Publication number
CN114201198A
CN114201198A CN202111474685.XA CN202111474685A CN114201198A CN 114201198 A CN114201198 A CN 114201198A CN 202111474685 A CN202111474685 A CN 202111474685A CN 114201198 A CN114201198 A CN 114201198A
Authority
CN
China
Prior art keywords
driver
drive
embedded system
data
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111474685.XA
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.)
Suzhou Changfeng Aviation Electronics Co Ltd
Original Assignee
Suzhou Changfeng Aviation Electronics 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 Suzhou Changfeng Aviation Electronics Co Ltd filed Critical Suzhou Changfeng Aviation Electronics Co Ltd
Priority to CN202111474685.XA priority Critical patent/CN114201198A/en
Publication of CN114201198A publication Critical patent/CN114201198A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

本发明提供一种嵌入式系统下的设备驱动配置方法及配置装置,包括:配置包含由设备驱动参数数据集的驱动数据包;于配置端配置引导系统端启动的启动引导器,该启动引导器引导系统端启动并对驱动数据包进行响应;为启动引导器配置数据处理模块,该数据处理模块对驱动数据包进行解析处理;于系统端配置驱动解析模块,该驱动解析模块提取驱动参数;设备上电后,执行启动引导器,将驱动数据包发送并存储至系统内存中;执行包含驱动的系统镜像,其驱动解析模块提取驱动参数,再对设备进行配置,其能够在设备或者设备的驱动需要更新时,降低驱动开发及调试更新的门槛,简化嵌入式系统设备驱动配置过程。

Figure 202111474685

The present invention provides a device driver configuration method and a configuration device under an embedded system, including: configuring a driver data package including a device-driven parameter data set; Guide the system side to start and respond to the driver data packet; configure a data processing module for the bootstrap device, the data processing module parses and processes the driver data packet; configures a driver analysis module on the system side, and the driver analysis module extracts the driving parameters; equipment; After power-on, execute the boot loader to send and store the driver data packet in the system memory; execute the system image including the driver, and its driver parsing module extracts the driver parameters, and then configures the device, which can be used in the device or the device's driver. When updating is required, the threshold for driver development and debugging updates is lowered, and the embedded system device driver configuration process is simplified.

Figure 202111474685

Description

Equipment drive configuration method and device under embedded system
Technical Field
The invention relates to the technical field of embedded systems, in particular to a device driver configuration method and a device driver configuration device for loading and modifying device driver parameters under an embedded system.
Background
The key component of the embedded system development environment is based on an embedded real-time operating system. The real-time operating system (RTOS) is an operating system which can quickly respond to and process the change of equipment time or data, the processing result can control the production process within the specified time, and the real-time operating system can schedule all available resources to complete real-time tasks and control all the real-time tasks to run coordinately.
In the prior art, the driving method of multiple devices adapted to an embedded system is to preset driving parameters of the multiple devices and to implement loading of the drivers in a system image compiling manner. When the bus interface on the device changes and the driving parameters need to be modified to enable the interface to work normally, the prior art adopting the driving mode can only modify the preset values of the driving parameters one by one again, and then input the driving parameters into the nonvolatile system of the embedded system in a burning mode after the system is recompiled. It can be seen that, in the driving mode, modification when the driving parameters are changed is very inconvenient, and in actual processing, modification and compiling of the preset values of the parameters have very high requirements on operators. Therefore, the existing device parameter-driven development and modification mode has high development and debugging difficulty and poor system universality.
For example. The VxWork in the center of the prior art is widely applied by good continuous development capability, a high-performance kernel and a friendly user development environment. As with the previous problem, when a device needs to be replaced or a bus interface of the device is changed, the driving source code of the device needs to be modified accordingly. In the drive configuration of the Vxwork-based embedded system, the drive file after the system image is compiled cannot be modified. When a problem occurs, the file still needs to be modified and then recompiled and burned in a complicated process.
In view of the above, the prior art should be improved to solve the above technical problems in the development manner and modification manner driven by the technical field of embedded systems.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides the equipment drive configuration method and the equipment drive configuration device under the embedded system, which can reduce the thresholds of drive development and debugging update and simplify the drive configuration process of the embedded system when equipment or equipment drive needs to be updated.
In order to solve the above technical problem, the present invention adopts a device driver configuration method under an embedded system, the method is used for configuring driver parameters for a device in the embedded system, and the driver configuration method includes the following steps: step S1, before the device is powered on, configuring a custom type driver packet at a configuration end, where the driver packet includes a data set composed of at least one set of device name, driver name, and parameter data of the device; a step S2 of configuring a boot system-side boot loader at the configuration side, where the boot loader boots the system side boot and responds to the drive packet; step S3, configuring a data processing module for the boot loader, where the data processing module responds to the driving data packet and performs parsing processing on the driving data packet to obtain driving parameters of the device, and stores the driving parameters according to a parameter address given by the system; step S4, configuring a driving parsing module at the system end, where the driving parsing module addresses the storage area of the embedded system according to a parameter address given by the system and extracts the driving parameter; step S5, after the device is powered on, executing the boot loader, and sending and storing the drive data packet to a memory of the embedded system; and step S6, executing a system image including a drive at the system end, executing the drive analysis module, and extracting the drive parameter, where the system image configures the device according to the device name, the drive name, and the parameter data included in the drive parameter.
As a preferable aspect of the present invention, the drive configuration method further includes: when the device and/or the driving parameters of the device need to be updated, the data set in the driving data packet is modified at the configuration end, and then the device is configured according to the sequence from step S5 to step S6.
Further preferably, in step S1, the data set of the driving data packet includes a start identifier and an end identifier, wherein the device name, the driving name and the parameter data are separated by using a first separator.
As a further preferable mode of the present invention, in step S3, before the step of performing parsing processing on the driving packet by the data processing module, the step of: configuring an entry function through a debugging serial port tool, wherein the data processing module in the first starting guider is triggered through the entry function; and after triggering, the data processing module analyzes the driving data packet to obtain the driving parameters of the equipment and then stores the driving parameters to the parameter address.
Still further preferably, in step S5, the boot loader sends and stores the driving data packet to an offset address in an embedded system memory;
and executing the data processing module, analyzing the driving data packet to obtain the driving parameters, and storing the driving parameters into an offset address of a nonvolatile memory bank under the embedded system.
As still further preferable in this solution, the step of parsing the driver package by the data processing module specifically includes: and extracting the drive data packet from the offset address of the memory of the embedded system, judging the starting identifier and the ending identifier of the drive data packet, analyzing at least one group of the equipment name, the drive name and the parameter data through the separator, and storing the equipment name, the drive name and the parameter data into the offset address of the nonvolatile memory bank.
Still more preferably, in step S5, the step of sending the driving data packet by the boot loader is specifically: and the first starting director sends a serial port type or network port type transmission command and sends the driving data packet to an offset address of a memory of the system end.
Still preferably, the present invention further includes: when the boot loader is started, if the data processing module is not matched with the driving data packet needing to be responded, the driving setting module adopts preset driving parameters.
In a second aspect of the present invention, a driver configuration apparatus under an embedded system is provided, where the configuration apparatus includes: the starting guide device is used for guiding the system end to start; the data processing module is used for responding to a driving data packet of a configuration end to obtain driving parameters in the driving data packet and storing the driving parameters into a parameter address; a drive resolution module that extracts the drive parameter from the parameter address; and the drive setting module configures the equipment according to the equipment name, the drive name and the parameter data contained in the drive parameters.
A third aspect of the present invention provides an electronic device, including: one or more processors; and a memory associated with the one or more processors for storing program instructions which, when read and executed by the one or more processors, perform the method of the first aspect of the invention.
Compared with the prior art, the invention has the following beneficial technical effects due to the adoption of the technical scheme:
in the preferred embodiment of the invention, the start-up guidance of the embedded system is configured, so that the start-up of the system end system mirror image is realized through the start-up guidance, and during the start-up guidance, a predefined driving data packet is obtained, and the driving data packet is analyzed to obtain at least one group of device names, driving names and parameter data contained in a data set of the driving data packet; and after the system mirror image is started, extracting a driving parameter formed by the equipment name, the driving name and the parameter data, and performing driving configuration on the equipment at the system end according to the driving parameter. Therefore, when the system side equipment or the drive parameters of the equipment are changed, or the equipment or the drive parameters of the equipment are required to be updated, the drive source codes do not need to be modified again under the same requirements of the prior art, then the system is compiled and burned, the predefined drive data packet only needs to be directly modified at the configuration end, then the system mirror image is enabled to obtain the modified drive data packet again by starting the boot, and the equipment is updated according to the updated drive parameters.
Drawings
Fig. 1 is a diagram illustrating a framework structure of a device driver configuration method under an embedded system according to a preferred embodiment of the present invention;
fig. 2 is a flowchart illustrating a flow of a device driver configuration method under an embedded system according to a preferred embodiment of the present invention.
Detailed Description
Embodiments of a device driver configuration method and configuration apparatus under an embedded system according to the present invention will be described below with reference to the accompanying drawings. Those of ordinary skill in the art will recognize that the described embodiments can be modified in various different ways, without departing from the spirit and scope of the present invention. Accordingly, the drawings and description are illustrative in nature and not intended to limit the scope of the claims. Furthermore, in the present description, the drawings are not to scale and like reference numerals refer to like parts.
It should be noted that, in the embodiments of the present invention, the expressions "first" and "second" are used to distinguish two entities with the same name but different names or different parameters, and it is understood that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and the descriptions thereof in the following embodiments are omitted.
In the prior art, when the device of the embedded system or the driver of the device changes, the driver source code of the embedded system needs to be modified, and then the embedded system can identify and drive the device in a recompilation and burning manner. Obviously, this approach makes the device driver configuration of the embedded system very inconvenient. The idea of solving the technical problem in the preferred embodiment of the present invention includes:
1) configuring a starting guide for the system mirror image, and guiding to start the embedded system through the starting guide;
2) on the basis of starting guidance, a bridge and a medium for bearing equipment driving parameters are configured between a configuration end and a system end, when an embedded system is guided to start, the bridge acquires and identifies the predefined medium, and the equipment is configured according to the driving parameters in the medium, so that when the equipment or the driving parameters of the equipment change, only the medium for bearing the equipment driving parameters needs to be modified at the configuration end, and then the system is restarted by starting guidance, and the modified driving parameters can be sent to the embedded system;
3) the drive analysis module of the embedded system is improved, so that when the system is preferentially selected to be started, a medium which is used for guiding and sending the bearing equipment drive parameters is started, and the equipment is driven and configured according to the drive parameters in the medium.
Based on the idea, the invention provides a device driver configuration method and a device under an embedded system. Referring to fig. 1, fig. 1 is a schematic diagram illustrating a framework structure of a device driver configuration method under an embedded system according to a preferred embodiment of the invention. As shown in FIG. 1, in the preferred embodiment, the configuration framework includes a custom file 100, a boot loader 200, and an embedded system 300. The start guide 200 is used to guide the start of the embedded system, and meanwhile, a file processing module 201 corresponding to the custom file 100 is configured in the start guide 200, and the file processing module 201 can respond to the custom file 100 and analyze the file content. The startup director 200 sends the custom file 100 to the memory of the embedded system in the process of booting the embedded system, and at the same time, executes the file processing module 201, and the file processing module 201 extracts the custom file from the memory of the embedded system according to the address given by the system, analyzes the custom file to obtain the driving parameters, then stores the driving parameters into the nonvolatile memory of the embedded system, reconfigures so that the analysis module in the embedded system extracts the driving parameters stored in the nonvolatile memory from the parameter area of the nonvolatile memory, and then implements the driving configuration of the device according to the analyzed file content.
It can be seen that in the preferred embodiment, the custom file 100 is also the medium of the aforementioned solution, and the bridge is a linear process from the custom file 100 to the file processing module and then to the parsing module based on boot.
In actual configuration, the custom file can be regarded as a drive data packet containing drive parameters. The driver data package contains at least one data set containing a set of driver parameters for at least one device of the embedded system. For example, in the preferred embodiment, the data set includes the device name, driver name, and parameter data for a single device. It should be understood that in other embodiments of the present invention, the driving parameters contained in the driving data packet should be adapted according to the type of the peripheral device, and multiple sets of driving parameters of a single device may be contained in one driving data packet, or multiple sets of device drivers may be configured in one driving data packet. The preferred embodiment of the present invention should not be limited by the type of custom file, and the number of device and/or drive parameters contained in the custom file.
The boot may be a boot configured at the configuration end, or a functional module with a boot function. For example, in a preferred embodiment of the present invention, a boot loader is configured to boot the embedded system, and when the embedded system is started, the boot loader sends the custom file to the memory of the embedded system through a serial port or a network interface command, and executes a data processing module included in the boot loader, that is, the file processing module may respond to the driver data packet, that is, the custom file, and analyze the data set in the custom file according to a composition manner or an encryption manner of the custom file, so as to obtain at least one set of device name, driver name, and parameter data of at least one device included in the data set. And then, the data processing module stores the device name, the drive name and the parameter data obtained by analysis into a nonvolatile memory bank at the system end along with the starting of the embedded system.
And the drive analysis module of the embedded system extracts analysis data from the nonvolatile memory bank at the system end, checks the validity of the analysis data and performs drive configuration on equipment according to the analysis data.
Based on this framework, the drive configuration process of the preferred embodiment of the present invention is specifically described. Fig. 2 is a flowchart illustrating a flow of a device driver configuration method under an embedded system according to a preferred embodiment of the present invention. In the preferred embodiment, the device driver configuration method under the embedded system includes the following steps: step S1, before the device is powered on, configuring a custom type driver packet at a configuration end, where the driver packet includes a data set composed of at least one set of device name, driver name, and parameter data of the device; a step S2 of configuring a boot system-side boot loader at the configuration side, where the boot loader boots the system side boot and responds to the drive packet; step S3, configuring a data processing module for the boot loader, where the data processing module responds to the driving data packet and performs parsing processing on the driving data packet to obtain driving parameters of the device, and stores the driving parameters according to a parameter address given by the system; step S4, configuring a driving parsing module at the system end, where the driving parsing module addresses the storage area of the embedded system according to a parameter address given by the system and extracts the driving parameter; step S5, after the device is powered on, executing the boot loader, and sending and storing the drive data packet to a memory of the embedded system; and step S6, executing a system image including a drive at the system end, executing the drive analysis module, and extracting the drive parameter, where the system image configures the device according to the device name, the drive name, and the parameter data included in the drive parameter.
Let us say the drive packet. For the configuration of the driving data packet, the following problems need to be solved:
1) how to include and distinguish individual data in the data set of the drive packet;
2) how to enable the data processing module to correctly identify the driving data packet and realize quick response to the driving data packet;
3) how the data processing module can extract the driving parameters contained in the driving data packet after identifying the driving data packet.
In view of the above problem, in the preferred embodiment, first, the data set in the driving data packet includes a start identifier and an end identifier for identification and response, when the start boot guides the embedded system to start, the data processing module in the start boot identifies the driving data packet according to the start identifier and implements response, and then determines the length of the driving data packet according to the end identifier. The plurality of driving parameters in the data set are separated by preset separators, or the plurality of driving parameters are combined according to a preset encryption mode. For example, in the preferred embodiment of the present invention, the start flag may be <0xf1f1f1f1>, and the end flag may be <0xf1f1f1f >, respectively, the external name of each device is included in "()", the driving name and the parameter value are separated by colon, and the parameter values are separated by semicolon. Correspondingly, the data processing module distinguishes the plurality of driving parameters according to the separators, or decrypts the encrypted driving parameters according to a preset key, so that the equipment name, the driving name and the specific driving parameters are analyzed from the driving data packet.
For convenience of description, the data obtained by the data processing module and including the device name, the driving name, and the parameter data are collectively referred to as driving parameters. And then, after the data processing module analyzes the obtained driving parameters, the driving parameters are stored in a nonvolatile memory bank of the embedded system along with the starting of the system mirror image of the embedded system and are stored according to the parameter address given by the system. Here, the parameter address given by the system may be any address location configured not to conflict with the storage address of other programs and data in the current platform, but usually, an offset address on the nonvolatile memory bank of the embedded system is selected as the parameter storage area.
The drive analysis module in the embedded system preferably addresses the parameter address given by the system according to the starting guide so as to extract the drive parameters stored in the system. And finally, a drive setting module of the embedded system sets the equipment according to the drive parameters.
Accordingly, another aspect of the present invention provides a configuration apparatus for executing the device driver configuration method under the embedded system, where the configuration apparatus includes: the starting guide device is used for guiding the system end to start; the data processing module is used for responding to a driving data packet of a configuration end to obtain driving parameters in the driving data packet and storing the driving parameters into a parameter address; a drive resolution module that extracts the drive parameter from the parameter address; and the drive setting module configures the equipment according to the equipment name, the drive name and the parameter data contained in the drive parameters. In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from the memory, or installed from the ROM. The computer program, when executed by a processor, performs the above-described functions defined in the methods of embodiments of the present application.
It should be noted that the computer readable medium of the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the foregoing.
Examples
In this embodiment of the present invention, a concrete implementation of the drive configuration method of the present invention is schematically described by way of example.
In this embodiment, Vxworks is used as an embedded system, and the boot loader is a BootLoader configured at the configuration end. Creating a custom file, containing the name, the driving parameters and the parameter values of the equipment, and writing the custom file into:
<0xf1f1f1f1> (device name) drive name: a parameter value of 1; a parameter value of 2; <0xf1f1f1f >.
And adding a data processing module in the BootLoader, wherein the module responds to the user-defined file according to a preset initial identifier and a preset termination identifier. Under Vxworks, an entry function is configured in a debugging serial port tool, such as tera term, and a data processing module is triggered by inputting the entry function.
In the sending process, if a command of a serial port class transmission file is adopted, a tera term supporting a Y modem protocol is adopted, a load command is adopted in a debugging serial port, and after an address is input, a user-defined file is selected to be sent after being displayed; if the command of the file is transmitted by using the internet access class, a tftpd32 transmission tool supporting protocols such as tftp is used. Inputting 'tftp DrvParam.Txt' and a parameter address given by a system, and transferring the file to the parameter address.
And then, calling an entry function to trigger the data processing module. And after triggering, the data processing module analyzes the user-defined file, reads a file header and file contents, searches and identifies the equipment name, and sends the parameters positioned behind the peripheral name and the numerical values corresponding to the parameters to the offset address of the nonvolatile memory of the embedded system.
Then, the boot loader is started to boot the system mirror image of the embedded system, the drive analysis module of the embedded system reads the name of the corresponding device from the offset address of the nonvolatile memory bank, and if the name of the corresponding device exists, the drive parameters are configured. And if the equipment does not exist, performing drive configuration according to a default value.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1.一种嵌入式系统下的设备驱动配置方法,该方法用于在嵌入式系统中为设备配置驱动参数,其特征在于,所述驱动配置方法包括如下步骤:1. a device driver configuration method under an embedded system, the method is used for device configuration drive parameters in an embedded system, it is characterized in that, described drive configuration method comprises the steps: 所述设备上电前,于配置端配置自定义类型的驱动数据包的步骤S1,所述驱动数据包中包含由所述设备的至少一组设备名称、驱动名称以及参数数据构成的数据集;Before the device is powered on, the step S1 of configuring a driver data package of a user-defined type at the configuration end, where the driver data package includes a data set consisting of at least one group of device names, driver names and parameter data of the device; 于配置端配置引导系统端启动的启动引导器的步骤S2,该启动引导器引导所述系统端启动并对所述驱动数据包进行响应;The step S2 of configuring a startup bootstrap booted by the system end on the configuration end, the bootstrap bootstrap booting the system end to boot and responding to the drive data packet; 为所述启动引导器配置数据处理模块的步骤S3,该数据处理模块响应所述驱动数据包并对其进行解析处理,以得到所述设备的驱动参数,并按照系统给定的参数地址进行存储;Step S3 of configuring a data processing module for the startup guide, the data processing module responds to the drive data packet and parses it to obtain the drive parameters of the device, and store them according to the parameter address given by the system ; 于系统端配置驱动解析模块的步骤S4,该驱动解析模块根据系统给定的参数地址对所述嵌入式系统的存储区域进行寻址,并提取所述驱动参数;Step S4 of configuring a drive analysis module on the system side, the drive analysis module addresses the storage area of the embedded system according to the parameter address given by the system, and extracts the drive parameters; 所述设备上电后,执行所述启动引导器,将所述驱动数据包发送并存储至嵌入式系统的内存中的步骤S5;After the device is powered on, execute the boot guide, and send and store the drive data packet in the embedded system memory in step S5; 于系统端执行包含驱动的系统镜像,并执行所述驱动解析模块,提取所述驱动参数,所述系统镜像按照所述驱动参数中包含的设备名称、驱动名称以及参数数据对所述设备进行配置的步骤S6。Execute the system image including the driver on the system side, and execute the driver analysis module to extract the driver parameters, and the system image configures the device according to the device name, driver name and parameter data contained in the driver parameters. step S6. 2.根据权利要求1所述的嵌入式系统下的设备驱动配置方法,其特征在于,所述驱动配置方法还包括:2. The device driver configuration method under the embedded system according to claim 1, wherein the driver configuration method further comprises: 当所述设备和/或所述设备的所述驱动参数需要更新时,于所述配置端修改所述驱动数据包内的所述数据集,再按照步骤S5至步骤S6的顺序对所述设备进行配置。When the device and/or the drive parameters of the device need to be updated, modify the data set in the drive data package at the configuration end, and then update the device in the order of step S5 to step S6 to configure. 3.根据权利要求2所述的嵌入式系统下的设备驱动配置方法,其特征在于,在所述步骤S1中,所述驱动数据包的所述数据集中,包括起始标识和终止标识,其中,3. The device driver configuration method under the embedded system according to claim 2, characterized in that, in the step S1, the data set of the driver data packet includes a start identifier and a termination identifier, wherein , 所述设备名称、驱动名称以及参数数据按采用第一分隔符进行分隔。The device name, driver name and parameter data are separated by the first separator. 4.根据权利要求3所述的嵌入式系统下的设备驱动配置方法,其特征在于,在所述步骤S3中,在所述启动引导器中,所述数据处理模块对所述驱动数据包进行解析处理的步骤之前还包括:4. The device driver configuration method under the embedded system according to claim 3, characterized in that, in the step S3, in the startup guide, the data processing module executes the drive data packet The steps of parsing processing also include: 通过调试串口工具配置入口函数的步骤,所述第一启动引导器内的所述数据处理模块通过所述入口函数进行触发;The step of configuring the entry function by debugging the serial port tool, the data processing module in the first startup guide is triggered through the entry function; 触发后,所述数据处理模块对所述驱动数据包进行解析处理,得到所述设备的驱动参数后将其存储至所述参数地址。After being triggered, the data processing module parses and processes the driving data packet, obtains the driving parameters of the device, and stores them in the parameter address. 5.根据权利要求4所述的嵌入式系统下的设备驱动配置方法,其特征在于,5. the device driver configuration method under the embedded system according to claim 4, is characterized in that, 在所述步骤S5中,所述启动引导器将所述驱动数据包发送并存储至嵌入式系统内存的偏移地址中;In the step S5, the start-up guide sends and stores the drive data packet in the offset address of the embedded system memory; 执行所述数据处理模块,对所述驱动数据包进行解析处理,以得到所述驱动参数后,存储至所述嵌入式系统下非易失存储体的偏移地址中。The data processing module is executed to parse and process the drive data packets to obtain the drive parameters, and then store the drive parameters in the offset address of the non-volatile memory bank under the embedded system. 6.根据权利要求5所述的嵌入式系统下的设备驱动配置方法,其特征在于,所述数据处理模块对所述驱动包进行解析的步骤具体为:6. The device driver configuration method under the embedded system according to claim 5, wherein the step that the data processing module parses the driver package is specifically: 所述数据处理模块从所述嵌入式系统内存的偏移地址中提取所述驱动数据包,并判断其的所述起始标识和终止标识,再通过所述分隔符,解析至少一组所述设备名称、驱动名称以及参数数据,并将所述设备名称、驱动名称以及参数数据存储至所述非易失存储体的偏移地址内。The data processing module extracts the drive data packet from the offset address of the embedded system memory, and judges its start and end identifiers, and then parses at least one set of the device name, driver name and parameter data, and store the device name, driver name and parameter data in the offset address of the non-volatile memory bank. 7.根据权利要求6所述的嵌入式系统下的设备驱动配置方法,其特征在于,在所述步骤S5中,所述启动引导器发送所述驱动数据包的步骤具体为:7. The device driver configuration method under the embedded system according to claim 6, wherein, in the step S5, the step of the start-up guide sending the drive data packet is specifically: 所述第一启动引导器发送串口类或网口类传输命令,将所述驱动数据包发送至所述系统端的内存中。The first startup guide sends a serial port type or network port type transmission command, and sends the drive data packet to the memory of the system side. 8.根据权利要求1至7任一项所述的嵌入式系统下的设备驱动配置方法,其特征在于,还包括:8. The device driver configuration method under the embedded system according to any one of claims 1 to 7, characterized in that, further comprising: 当执行所述启动引导器时,若所述数据处理模块未匹配到需要响应的所述驱动数据包,则驱动设置模块采用预设驱动参数。When executing the startup guide, if the data processing module does not match the driving data packet that needs to be responded to, the driving setting module adopts preset driving parameters. 9.一种嵌入式系统下的驱动配置装置,其特征在于,所述配置装置包括:9. A drive configuration device under an embedded system, wherein the configuration device comprises: 启动引导器,该启动引导器用于引导系统端启动;Start the bootloader, which is used to boot the system side to start; 数据处理模块,该数据处理模块用于对配置端的驱动数据包进行响应,以得到所述驱动数据包内的驱动参数,并将所述驱动参数存储至参数地址内;a data processing module, the data processing module is used to respond to the driving data packet of the configuration end to obtain the driving parameters in the driving data packet, and store the driving parameters in the parameter address; 驱动解析模块,该驱动解析模块从所述参数地址提取所述驱动参数;a drive parsing module, which extracts the drive parameter from the parameter address; 驱动设置模块,驱动设置模块按照驱动参数中包含的设备名称、驱动名称以及参数数据对设备进行配置。The drive setting module configures the device according to the device name, the driver name and the parameter data contained in the drive parameters. 10.一种电子设备,其特征在于,包括:10. An electronic device, comprising: 一个或多个处理器;以及one or more processors; and 与所述一个或多个处理器关联的存储器,所述存储器用于存储程序指令,所述程序指令在被所述一个或多个处理器读取执行时,执行如权利要求1-8中任一所述的方法。memory associated with the one or more processors, the memory is used to store program instructions, the program instructions, when read and executed by the one or more processors, execute any of claims 1-8. a described method.
CN202111474685.XA 2021-12-03 2021-12-03 Equipment drive configuration method and device under embedded system Pending CN114201198A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111474685.XA CN114201198A (en) 2021-12-03 2021-12-03 Equipment drive configuration method and device under embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111474685.XA CN114201198A (en) 2021-12-03 2021-12-03 Equipment drive configuration method and device under embedded system

Publications (1)

Publication Number Publication Date
CN114201198A true CN114201198A (en) 2022-03-18

Family

ID=80650796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111474685.XA Pending CN114201198A (en) 2021-12-03 2021-12-03 Equipment drive configuration method and device under embedded system

Country Status (1)

Country Link
CN (1) CN114201198A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115243309A (en) * 2022-06-24 2022-10-25 北京奕斯伟计算技术股份有限公司 Driving system and method for embedded Internet of things equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020083427A1 (en) * 2000-12-26 2002-06-27 Chen-Pang Li Embedded system capable of rapidly updating software and method for rapidly updating software of embedded system
CN102662717A (en) * 2012-04-27 2012-09-12 深圳市掌讯通讯设备有限公司 Bootstrap starting method of embedded system
US20160004545A1 (en) * 2014-04-30 2016-01-07 Huawei Technologies Co., Ltd. Method and embedded device for loading driver
CN106951257A (en) * 2017-03-24 2017-07-14 济南浪潮高新科技投资发展有限公司 A kind of implementation method for starting WinCE with Uboot_CDROM
CN113238819A (en) * 2021-07-09 2021-08-10 成都菁蓉联创科技有限公司 Dynamic loading method and system of drive file suitable for U-Boot

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020083427A1 (en) * 2000-12-26 2002-06-27 Chen-Pang Li Embedded system capable of rapidly updating software and method for rapidly updating software of embedded system
CN102662717A (en) * 2012-04-27 2012-09-12 深圳市掌讯通讯设备有限公司 Bootstrap starting method of embedded system
US20160004545A1 (en) * 2014-04-30 2016-01-07 Huawei Technologies Co., Ltd. Method and embedded device for loading driver
CN106951257A (en) * 2017-03-24 2017-07-14 济南浪潮高新科技投资发展有限公司 A kind of implementation method for starting WinCE with Uboot_CDROM
CN113238819A (en) * 2021-07-09 2021-08-10 成都菁蓉联创科技有限公司 Dynamic loading method and system of drive file suitable for U-Boot

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115243309A (en) * 2022-06-24 2022-10-25 北京奕斯伟计算技术股份有限公司 Driving system and method for embedded Internet of things equipment

Similar Documents

Publication Publication Date Title
CN103412769B (en) External card parameter configuration, equipment and system
CN109492181B (en) Page jump method, device, computer equipment and storage medium
US9525706B2 (en) Apparatus and method for diagnosing malicious applications
US10747872B1 (en) System and method for preventing malware evasion
US9301164B2 (en) Method, system, and terminal for performing system update between mobile communication terminals
US8171502B2 (en) Methods, devices and computer program products for automatically installing device drivers from a peripheral device onto a host computer
CN111581095B (en) Barrier-free service-based self-starting USB debugging method, device and storage medium
CN101896889B (en) Radio terminal, radio terminal nonvolatile memory, and diagnosis information fail-safe storage method
CN108241496B (en) Smooth upgrading method and device for application program
RU2635271C2 (en) Method of categorizing assemblies and dependent images
EP3190537A1 (en) Protection method and device for application data
CN113360379A (en) Program testing method and program testing device
WO2016054880A1 (en) Apk file application expanding method and device
CN113761482A (en) Program code protection method and device
CN113434230A (en) Jump control method and device for H5 page, storage medium and electronic device
CN113391796A (en) Construction method, device, equipment and medium of integrated development environment
CN117891766A (en) Driving method, device, equipment and storage medium compatible with serial communication module
CN111708553A (en) Terminal and system for background updating of desktop mirror image
CN105320529A (en) Boot method and device based on NAND-Flash double-boot guidance
CN114201198A (en) Equipment drive configuration method and device under embedded system
CN110187872A (en) A BIOS development method, system, electronic equipment, and storage medium
CN108234174B (en) Method and device for managing virtual network functions
CN113760244A (en) Method and system for realizing multiple entrances and multiple interfaces based on C language mode
CN103198003A (en) Control method for wireless communication device
CN112835597A (en) Upgrade method, device, server, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220318