Drive development method, device, equipment, medium and product of swan mongolian system

The graphical editing interface simplifies HDF driver development and generates HDF driver code files, solving the cumbersome problems of the driver development process in the existing technology, and improving development efficiency and maintainability.

CN118916022APending Publication Date: 2024-11-08HUNAN KAIHONG ZHIGU DIGITAL IND DEV CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411065952.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The development process of existing HDF drivers is cumbersome and requires configuration and code writing in multiple directories, making it difficult to achieve efficient development and maintenance.

Method used

Provide a driver development method for Hongmeng system. Through the graphical editing interface, including information configuration area, code editing area and driver generation control, it receives basic configuration and code modification operations, generates HDF driver code files, reduces code-level operations, and reduces development difficulty. .

Benefits of technology

Improve development efficiency and maintainability, simplify business logic editing through visual interactive interfaces, decouple complex HDF-driven development process, and reduce the workload of developers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916022A_ABST
    Figure CN118916022A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a drive development method, device, equipment, medium and product of a swan mongolian system.The method comprises the steps that after a drive development application is started, a graphical editing interface used for HDF drive development is displayed; receiving a basic configuration operation on the information configuration area, and displaying a to-be-modified drive framework code in the code editing area; receiving a modification operation on a to-be-modified driving framework code in the code editing area, and determining code modification information formed after the modification operation; and in response to a trigger operation on the drive generation control, generating an HDF drive code file of the swan gap system according to the code modification information. By means of the method, the fixed configuration is visualized, a visual interface is provided for a user, the user only needs to conduct simple parameter modification, drive code development can be achieved, code-level operation is reduced, development difficulty is lowered, development efficiency can be improved, and maintainability can be enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a driver development method, device, equipment, medium and product for a Hongmeng system. Background Art

[0002] HDF (Harmony Driver Fundation) driver development provides developers with a unified set of interfaces and mechanisms to simplify the driver development and integration process. Through the HDF driver framework, developers can develop high-quality drivers more efficiently and conveniently. HDF driver development on the Harmony operating system requires familiarity with the entire HDF driver framework, and configuration and code writing in many directories of the Harmony operating system software development kit (SDK). The whole process is relatively cumbersome.

[0003] The visual configuration tool (HDF Configuration Source, HCS) in the prior art only supports HCS file preview and editing, and has the characteristics of two-way binding of visual configuration and HCS file content, and synchronous update display. However, HDF driver development is not only HCS configuration, but also driver business code development, driver loading, driver service management, and driver message distribution. HDF driver development cannot be achieved based on HCS tools. Therefore, a driver development method is needed to solve the above problems. Summary of the invention

[0004] The present invention provides a driver development method, device, equipment, medium and product for a Hongmeng system, which reduces code-level operations and reduces development difficulty, which not only helps to improve development efficiency but also enhances maintainability.

[0005] In a first aspect, an embodiment of the present invention provides a driver development method for a Hongmeng system, including:

[0006] After the driver development application is started, a graphical editing interface for HDF driver development is displayed, wherein the graphical editing interface includes an information configuration area, a code editing area, and a driver generation control;

[0007] Receive basic configuration operations on the information configuration area, and display the driver framework code to be modified in the code editing area;

[0008] Receiving a modification operation on the driver framework code to be modified in the code editing area, and determining code modification information formed after the modification operation;

[0009] In response to the triggering operation of the driver generation control, an HDF driver code file of the Hongmeng system is generated according to the code modification information.

[0010] In a second aspect, an embodiment of the present invention provides a driver development device for a Hongmeng system, including:

[0011] An interface display module, used to display a graphical editing interface for HDF driver development after the driver development application is started, wherein the graphical editing interface includes an information configuration area, a code editing area, and a driver generation control;

[0012] A configuration receiving module, used to receive basic configuration operations on the information configuration area, and display the driver framework code to be modified in the code editing area;

[0013] A modification receiving module, used for receiving a modification operation on the driver framework code to be modified in the code editing area, and determining code modification information formed after the modification operation;

[0014] The file generation module is used to generate the HDF driver code file of the Hongmeng system in response to the triggering operation of the driver generation control and according to the code modification information.

[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, including:

[0016] at least one processor; and a memory communicatively coupled to the at least one processor;

[0017] Among them, the memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the driver development method of the Hongmeng system as described in the first aspect embodiment.

[0018] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the driver development method of the Hongmeng system as described in the embodiment of the first aspect.

[0019] In a fifth aspect, an embodiment of the present invention further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the driver development method of the Hongmeng system as described in the embodiment of the first aspect.

[0020] The embodiment of the present invention provides a driver development method, device, equipment, medium and product for Hongmeng system, the method comprising: first, after the driver development application is started, a graphical editing interface for HDF driver development is displayed, the graphical editing interface includes an information configuration area, a code editing area and a driver generation control; secondly, a basic configuration operation on the information configuration area is received, and the driver framework code to be modified is displayed in the code editing area; then, a modification operation on the driver framework code to be modified in the code editing area is received, and the code modification information formed after the modification operation is determined; finally, in response to the trigger operation on the driver generation control, the HDF driver code file of Hongmeng system is generated according to the code modification information. Different from the existing HDF driver development, which requires configuration and code writing in many directories of the software development kit, resulting in the whole driver development process being cumbersome, the above technical solution visualizes the fixed configuration and provides a visual interface to the user. The user only needs to make simple parameter modifications to realize the driver code development, and performs fewer code-level operations, which reduces the development difficulty, which not only helps to improve development efficiency but also enhances maintainability. Automatically generate and configure the development code through HDF driver; realize the editing and configuration of business logic in the visual interactive interface, decouple the complex HDF driver development, and users do not need too much experience restrictions, which reduces the workload of developers and improves work efficiency.

[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0023] Figure 1 A flowchart of a driver development method for a Hongmeng system provided in Embodiment 1 of the present invention;

[0024] Figure 2 An example diagram of a graphical editing interface in the execution of a driver development method for a Hongmeng system provided in the first embodiment of the present invention;

[0025] Figure 3 Another example diagram of a graphical editing interface in the execution of a driver development method of a Hongmeng system provided in the first embodiment of the present invention;

[0026] Figure 4 A schematic diagram of the structure of a driver development device for a Hongmeng system provided in Embodiment 2 of the present invention;

[0027] Figure 5 A schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "original", "target", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any other variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] Embodiment 1

[0031] Figure 1 The present invention provides a flowchart of a driver development method for a Hongmeng system provided in the first embodiment of the present invention. The method can be applied to the case of developing a driver for the Hongmeng system. The method can be executed by a driver development device for the Hongmeng system. The device can be implemented in the form of hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the driver development method of the Hongmeng system provided in the first embodiment may specifically include the following steps:

[0032] S101. After the driver development application is started, a graphical editing interface for HDF driver development is displayed.

[0033] The graphical editing interface includes an information configuration area, a code editing area, and a driver generation control.

[0034] The driver development method of the Hongmeng system provided in this embodiment can be integrated into an application, which is recorded as a driver development application. The driver development application can be regarded as a driver development tool for the Hongmeng system. This tool is composed of two parts: the front-end interface and the back-end code generation. The complex HDF driver development is decoupled, and the tool is presented to the user in the form of a driver development application. The user can implement the HDF driver development of the Hongmeng system by performing simple interactive operations based on the front-end interface provided by the driver development application. Specifically, when the user needs to develop or modify the HDF driver of the Hongmeng system, the driver development application can be started. For example, the driver development application can be double-clicked to trigger the operation or right-clicked to open the operation to start the driver development application, and no specific restrictions are made here. Correspondingly, after starting the driver development application, the interface after the driver development application is started will be displayed. The interface is laid out in a graphical manner, and the interface is recorded as a graphical editing interface. Subsequently, the HDF driver development of the Hongmeng system can be implemented based on simple editing operations on the graphical editing interface.

[0035] In this embodiment, the front-end graphical editing interface is used to collect basic information for HDF driver development and data processing of the selected hardware chip. The back-end code generation system is based on the open source Hongmeng system HDF driver development framework, converts the information collected by the front-end graphical editing interface into an HDF driver file, and automatically adds it to the directory corresponding to the Hongmeng system software toolkit. This step is used to provide a graphical editing interface to the user.

[0036] Preferably, the information configuration area includes a path editing item, a device parameter configuration item, a driver type selection item, a driver template selection item, and a driver name editing item. The information configuration area specifically displays which editing items can be set in the development stage according to actual conditions, including but not limited to the editing items described above. Among them, the path editing item is used to select the path of the Hongmeng system software development kit and fill in the Hongmeng system software development kit directory. The device parameter configuration item is used to fill in the corresponding brand name, device model and other parameter names. The driver type selection item is used to select the driver type, such as the sensor type, etc. The driver template selection item is used to select the driver template, such as the acceleration template, etc. The driver name editing item is used to fill in the driver name.

[0037] S102: receiving basic configuration operations on the information configuration area, and displaying the driver framework code to be modified in the code editing area.

[0038] In this embodiment, after the graphical editing interface is displayed, the user can perform some information configuration on the information configuration area, and record these configurations as basic configuration operations on the information configuration area. Based on the visual graphical editing interface tool, the corresponding steps are performed on the tool interface, and finally the HDF driver is automatically generated in the directory corresponding to the Hongmeng system software development kit.

[0039] Preferably, the basic configuration operations include path adding operations on path editing items, parameter adding operations on device parameter configuration items, selection operations on drive type selection items, selection operations on drive template selection items, and editing operations on drive name editing items.

[0040] Among them, the path adding operation for the path editing item is to select the path of the Hongmeng system software development kit and fill in the directory of the Hongmeng system software development kit. Correspondingly, the directory of the Hongmeng system software development kit will also be displayed in the information configuration area. The parameter adding operation for the device parameter configuration item is to fill in the corresponding parameters such as the brand name and device model. The brand name and device model indicate which directories of the software development kit the generated HDF driver code file should be stored in. The selection operation for the driver type selection item is to select the driver type. Different functions correspond to different driver types, and different driver types correspond to different driver templates. The selection operation for the driver template selection item is to select a driver template. Exemplarily, the camera driver, the sensor driver for automatic screen rotation in the horizontal and vertical screens, and the sensor driver for automatic screen rotation also include an acceleration sensor, a gravity sensor, etc., and the acceleration sensor corresponds to a driver template, and the gravity sensor corresponds to a driver template. For example, you can select the driver template corresponding to the acceleration sensor under the sensor type. The editing operation of the driver name editing item is to fill in the driver name.

[0041] Specifically, when the user completes the basic configuration operation on the information configuration area, the execution subject receives the basic configuration operation on the information configuration area, thereby obtaining the basic configuration information formed by the basic configuration operation. Then, the selected HDF driver template is obtained from the basic configuration information to generate a code snippet, and the part of the driver framework business code that needs to be modified is displayed on the front end. The part of the driver framework business code to be modified is recorded as the driver framework code to be modified, and the area on the graphical editing interface that displays the driver framework code to be modified is recorded as the code editing area.

[0042] S103: receiving a modification operation on the driver framework code to be modified in the code editing area, and determining code modification information formed after the modification operation.

[0043] In this embodiment, the user modifies the driver framework code to be modified according to the hardware chip manual that needs to be adapted, such as chip initialization control, data processing, etc.

[0044] The above steps are all configured in the front-end interface. Users do not need to pay attention to the HDF driver development framework of the Hongmeng system. They only need to modify the necessary sample code in the interface. Finally, the back-end generates the HDF driver framework code based on the information collected by the front-end interface. Specifically, this step receives the modification operation of the driver framework code to be modified in the code editing area. The bottom layer parses these modification operations to determine the code modification information formed after the modification operation.

[0045] S104. In response to the triggering operation of the driver generation control, an HDF driver code file of the Hongmeng system is generated according to the code modification information.

[0046] The driver generation control can be specifically understood as a control for generating HDF driver code. When the user completes the modification operation of the driver framework code to be modified in the code editing area, the driver generation control is further triggered. This step is used to respond to the triggering operation of the driver generation control, based on the code modification information, that is, the modification code fragment is combined with the HDF driver template to generate a corresponding driver file, which is recorded as an HDF driver code file.

[0047] For example, Figure 2 An example diagram of a graphical editing interface in the execution of a driver development method of a Hongmeng system provided in the first embodiment of the present invention, such as Figure 2 As shown, the graphical editing interface 2 includes an information configuration area 21, a code editing area 22 and a driver generation control 23. The information configuration area 21 includes a path editing item, a device parameter configuration item (including brand name and device model), a driver type selection item, a driver template selection item and a driver name editing item. The user's operation process can be described as: perform basic configuration operations on the information configuration area 21, and accordingly, the driver framework code to be modified will be displayed in the code editing area 22; then modify the driver framework code to be modified in the code editing area 22; finally, trigger the driver generation control 23 to generate the HDF driver code file of the Hongmeng system.

[0048] It should be noted that the above technical solution realizes the configuration and generation of driver code in a visual modeling way on a graphical interface. Users can quickly develop the HDF driver of the Harmony system, which is conducive to the simplification and popularization of HDF driver development of the Harmony system.

[0049] The embodiment of the present invention provides a driver development method for the Hongmeng system. Different from the existing HDF driver development, which requires configuration and code writing in many directories of the software development kit, resulting in the whole driver development process being cumbersome, the above technical solution visualizes the fixed configuration and provides a visual interface to the user. The user only needs to make simple parameter modifications to implement driver code development, and performs fewer code-level operations, which reduces the development difficulty. This not only helps to improve development efficiency but also enhances maintainability. Through the automatic generation and configuration of the HDF driver development code, the editing and configuration of business logic in the visual interactive interface is realized, and the complex HDF driver development is decoupled. Users do not need too many experience restrictions, which reduces the workload of developers and improves work efficiency.

[0050] As a first optional embodiment of the embodiment of the present invention, based on the above embodiment, the step of determining the driver framework code to be modified can be optimized, specifically including:

[0051] a1) Obtaining the selected drive type and the selected drive template from the basic configuration information formed after the configuration operation is performed on the information configuration area.

[0052] In this embodiment, after the configuration operation is performed on the information configuration area, corresponding configuration information is formed based on the configuration operation and recorded as basic configuration information. Then, the configured drive type and drive template are obtained from the basic configuration information and recorded as the selected drive type and the selected drive template, respectively. Exemplarily, assuming that the configured drive template is the acceleration drive template under the sensor drive type, the sensor drive type is recorded as the selected drive type, and the acceleration drive template is recorded as the selected drive template.

[0053] b1) Based on the selected driver type and the selected driver template, a pre-built HDF driver template set is searched to obtain a target HDF driver template corresponding to the selected driver type and the selected driver template.

[0054] In this embodiment, different HDF driver templates corresponding to different driver types are pre-built, and these HDF driver templates are stored as an HDF driver template set. After obtaining the selected driver type and the selected driver template from the basic configuration information, the HDF driver template set is queried to obtain the target HDF driver template corresponding to the selected driver type and the selected driver template.

[0055] c1) Generate a code snippet from the target HDF driver template, and obtain the driver framework code to be modified from the code snippet.

[0056] Specifically, the selected target HDF driver template is converted to generate a code snippet, and the part of the driver framework business code that needs to be modified is used as the driver framework code to be modified. It can be considered that which part of the code snippets generated by different HDF driver templates needs to be modified is pre-set.

[0057] The above technical solution specifies the steps for determining the driver framework code to be modified, and provides basic data for displaying the driver framework code to be modified in the code editing area.

[0058] As a second optional embodiment of the embodiment of the present invention, based on the above embodiment, the graphical editing interface can be optimized to further include a configuration file editing area. After receiving a basic configuration operation on the information configuration area, the method further includes:

[0059] a2) Display the HCS configuration components to be modified in the configuration file editing area.

[0060] In this embodiment, the graphical editing interface also includes a configuration file editing area for configuring HCS components. Figure 3 Another example diagram of a graphical editing interface in the execution of a driver development method of a Hongmeng system provided in the first embodiment of the present invention, such as Figure 3 As shown, the graphical editing interface 2 also includes a configuration file editing area 24, which supports the import, compilation, and export functions of the HCS configuration components.

[0061] b2) receiving a component editing operation on the HCS configuration component to be modified in the configuration file editing area, and generating target configuration file information.

[0062] The component editing operation is to select the HCS configuration component in the configuration file editing area and to perform personalized configuration of the HCS configuration component.

[0063] Specifically, select the HCS configuration component and edit the personalized configuration of the HCS in the component, such as completing the configuration of initialization, enabling, disabling, etc. in the HCS according to the hardware chip manual.

[0064] The above technical solution adds a configuration file editing area and implements the editing operation of the HCS configuration component.

[0065] As a third optional embodiment of the embodiments of the present invention, on the basis of the above embodiments, the steps of generating the HDF driver code file of the Harmony system according to the code modification information can be optimized, including: adding the code modification information to the target HDF driver template to generate the HDF driver code file of the Harmony system.

[0066] Specifically, the code modification information is added to the target HDF driver template, that is, the modified code snippet in the front-end interface is combined with the HDF driver template to generate the corresponding driver file, which is recorded as the HDF driver code file of the Hongmeng system.

[0067] The above technical solution concretizes the steps of generating the HDF driver code file of the Hongmeng system and realizes the generation of the back-end driver code file.

[0068] As a fourth optional embodiment of the embodiment of the present invention, on the basis of the above embodiment, the method can be optimized to also include: naming the HDF driver code file of the Hongmeng system with the target driver name and storing it in the target directory of the target development package path.

[0069] The target driver name, target directory, and target development kit path are included in the basic configuration information.

[0070] In this embodiment, after the HDF driver code file of the Hongmeng system is generated, the HDF driver code file of the Hongmeng system will be placed in the directory corresponding to the Hongmeng operating system's software development kit, and the corresponding configuration modification of the HDF driver development will be completed. Select the path of the Hongmeng system software development kit for the path editing item, and fill in the Hongmeng system's software development kit directory. This information is the target development kit path. The parameter addition operation for the device parameter configuration item is to fill in the corresponding brand name, device model and other parameters. The brand name and device model indicate which directories of the software development kit the generated HDF driver code file should be stored in, which is equivalent to a public directory. This information is the target directory. The editing operation for the driver name editing item is to fill in the driver name, and this information is the target driver name.

[0071] The above technical solution realizes the automatic storage function of the HDF driver code files of the Hongmeng system.

[0072] Embodiment 2

[0073] Figure 4 This is a schematic diagram of the structure of a driver development device for a Hongmeng system provided in Embodiment 2 of the present invention. The device can be used for driver development of the Hongmeng system. The driver development device for the Hongmeng system can be configured in an electronic device, such as Figure 4 As shown, the device includes: an interface display module 31, a configuration receiving module 32, a modification receiving module 33 and a file generating module 34; wherein,

[0074] The interface display module 31 is used to display a graphical editing interface for HDF driver development after the driver development application is started, wherein the graphical editing interface includes an information configuration area, a code editing area, and a driver generation control;

[0075] A configuration receiving module 32, used to receive basic configuration operations on the information configuration area, and display the driver framework code to be modified in the code editing area;

[0076] The modification receiving module 33 is used to receive the modification operation of the driver framework code to be modified in the code editing area, and determine the code modification information formed after the modification operation;

[0077] The file generation module 34 is used to generate the HDF driver code file of the Hongmeng system in response to the triggering operation of the driver generation control and according to the code modification information.

[0078] The above technical solution is different from the existing HDF driver development, which requires configuration and code writing in many directories of the software development kit, making the entire driver development process more cumbersome. The above technical solution visualizes the fixed configuration and provides a visual interface to the user. The user only needs to make simple parameter modifications to realize driver code development, and performs fewer code-level operations, which reduces the development difficulty. This not only helps to improve development efficiency but also enhances maintainability. Through the automatic generation and configuration of HDF driver development code; the editing and configuration of business logic in the visual interactive interface is realized, and the complex HDF driver development is decoupled. Users do not need too much experience restrictions, reducing the workload of developers and improving work efficiency.

[0079] Optionally, the information configuration area includes a path editing item, a device parameter configuration item, a driver type selection item, a driver template selection item, and a driver name editing item;

[0080] Basic configuration operations include path adding operations for path editing items, parameter adding operations for device parameter configuration items, selection operations for drive type selection items, selection operations for drive template selection items, and editing operations for drive name editing items.

[0081] Optionally, the device further includes a module for determining a code to be modified, configured to:

[0082] Obtaining the selected drive type and the selected drive template from the basic configuration information formed after the configuration operation is performed on the information configuration area;

[0083] Based on the selected driver type and the selected driver template, searching for a pre-built HDF driver template set to obtain a target HDF driver template corresponding to the selected driver type and the selected driver template;

[0084] Generate a code snippet from the target HDF driver template, and obtain the driver framework code to be modified from the code snippet.

[0085] Optionally, the device further includes a file configuration module, and the graphical editing interface further includes a configuration file editing area, which is used to:

[0086] Display the HCS configuration components to be modified in the configuration file editing area;

[0087] Receive a component editing operation for a to-be-modified HCS configuration component in a configuration file editing area, and generate target configuration file information. The component editing operation is to select an HCS configuration component in the configuration file editing area and to perform personalized configuration on the HCS configuration component.

[0088] Optionally, the file generation module is specifically used to:

[0089] Add the code modification information to the target HDF driver template to generate the HDF driver code file of the Hongmeng system.

[0090] Optionally, the device further comprises a storage module, configured to:

[0091] The HDF driver code file of the Hongmeng system is named after the target driver and stored in the target directory of the target development package path. The target driver name, target directory and target development package path are included in the basic configuration information.

[0092] The driver development device for the Hongmeng system provided in an embodiment of the present invention can execute the driver development method for the Hongmeng system provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0093] Embodiment 3

[0094] Figure 5 A schematic diagram of the structure of an electronic device provided for Embodiment 3 of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0095] like Figure 5As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0096] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0097] Processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. Processor 41 performs the various methods and processes described above, such as the driver development method of the Hongmeng system.

[0098] In some embodiments, the driver development method of the Hongmeng system may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the driver development method of the Hongmeng system described above may be executed. Alternatively, in other embodiments, the processor 41 may be configured to execute the driver development method of the Hongmeng system in any other appropriate manner (e.g., by means of firmware).

[0099] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0100] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0101] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0102] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0103] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0104] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0105] An embodiment of the present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements the driver development of the Hongmeng system provided in any embodiment of the present invention.

[0106] In the process of implementation, the computer program product can be written in one or more programming languages ​​or a combination thereof to perform the computer program code for the operation of the present disclosure, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0107] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0108] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A driver development method for Hongmeng system, characterized in that: include: After the driver development application is started, a graphical editing interface for HDF driver development is displayed, wherein the graphical editing interface includes an information configuration area, a code editing area, and a driver generation control; Receive basic configuration operations on the information configuration area, and display the driver framework code to be modified in the code editing area; Receiving a modification operation on the driver framework code to be modified in the code editing area, and determining code modification information formed after the modification operation; In response to the triggering operation of the driver generation control, an HDF driver code file of the Hongmeng system is generated according to the code modification information.

2. The method according to claim 1, characterized in that The information configuration area includes a path editing item, a device parameter configuration item, a drive type selection item, a drive template selection item and a drive name editing item; The basic configuration operations include a path adding operation on the path editing item, a parameter adding operation on the device parameter configuration item, a selection operation on the drive type selection item, a selection operation on the drive template selection item, and an editing operation on the drive name editing item.

3. The method according to claim 2, characterized in that The step of determining the driver framework code to be modified includes: Acquire the selected drive type and the selected drive template from the basic configuration information formed after the configuration operation is performed on the information configuration area; Based on the selected driver type and the selected driver template, searching for a pre-built HDF driver template set to obtain a target HDF driver template corresponding to the selected driver type and the selected driver template; The target HDF driver template generates a code snippet, and the driver framework code to be modified is obtained from the code snippet.

4. The method according to claim 1, characterized in that The graphical editing interface also includes a configuration file editing area, and after receiving a basic configuration operation on the information configuration area, further includes: Displaying the HCS configuration component to be modified in the configuration file editing area; A component editing operation for a to-be-modified HCS configuration component in the configuration file editing area is received, and target configuration file information is generated, wherein the component editing operation is to select an HCS configuration component in the configuration file editing area and to perform personalized configuration on the HCS configuration component.

5. The method according to claim 3, characterized in that: The generating of the HDF driver code file of the Hongmeng system according to the code modification information includes: Add the code modification information to the target HDF driver template to generate the HDF driver code file of the Hongmeng system.

6. The method according to claim 3 or 5, characterized in that: Also includes: The HDF driver code file of the Hongmeng system is named with the target driver name and stored in the target directory of the target development package path. The target driver name, target directory and target development package path are included in the basic configuration information.

7. A driver development device for Hongmeng system, characterized in that: include: An interface display module, used to display a graphical editing interface for HDF driver development after the driver development application is started, wherein the graphical editing interface includes an information configuration area, a code editing area, and a driver generation control; A configuration receiving module, used to receive basic configuration operations on the information configuration area, and display the driver framework code to be modified in the code editing area; A modification receiving module, used for receiving a modification operation on the driver framework code to be modified in the code editing area, and determining code modification information formed after the modification operation; The file generation module is used to generate the HDF driver code file of the Hongmeng system in response to the triggering operation of the driver generation control and according to the code modification information.

8. An electronic device, characterized in that: include: at least one processor; and a memory communicatively coupled to the at least one processor; In which, the memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the driver development method of the Hongmeng system as described in any one of claims 1-6.

9. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions, when executed by a computer processor, are used to execute the driver development method for the Hongmeng system as described in any one of claims 1-6.

10. A computer program product, characterized in that The computer program product includes a computer program, which, when executed by a processor, implements the driver development method for the Hongmeng system according to any one of claims 1-6.

Citation Information

Cited By

  • Industrial gap controller and working method thereof

    CN121455042A