Driving method, electronic device, storage medium and program product

By configuring the operating mode of the drive components to half-bridge or full-bridge mode, the cost and complexity problems when driving multiple DC motors are solved, and a more cost-effective driving method is achieved.

CN120281220APending Publication Date: 2025-07-08CONTINENTAL AUTOMOTIVE R & D (CHONGQING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510379364.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-27
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

When driving multiple DC motors, the prior art requires the same number of half-bridge or full-bridge circuits/chips, resulting in increased costs, and independent control of each motor requires separate control logic, increasing system complexity.

Method used

By detecting the drive command of the driven component, the operating mode of the drive component is configured to be half-bridge or full-bridge mode, the driving information is determined using the configuration table, and the driving component is controlled to drive the driven component in half-bridge or full-bridge mode, so that limited driving equipment can control more driven components.

Benefits of technology

It reduces hardware costs, simplifies system complexity, meets different driving requirements, and realizes the use of limited driving equipment to control more driven components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120281220A_ABST
    Figure CN120281220A_ABST
Patent Text Reader

Abstract

The invention relates to the field of electric driving, and discloses a driving method, electronic equipment, a storage medium and a program product. The driving method comprises the steps that a driving instruction of a driven part is detected, driving information and driving parts corresponding to the driven part are determined based on a configuration table, and the driving information is at least used for indicating the number of the driving parts and the number of driving devices where the driving parts are located. Based on the driving information, working modes of the driving components are configured, the number of the driving components is indicated to be two corresponding to the driving information, the two driving components are located on the two driving devices respectively, and the working mode of each driving component in the two driving components is configured to be a half-bridge mode; and controlling the driving component to drive the driven component based on the working mode of the driving component. Therefore, more driven parts (such as a direct current motor) can be controlled by using limited driving equipment, and the hardware cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electric drive, and particularly relates to a drive method, an electronic device, a storage medium, and a program product. Background Art

[0002] Currently, a simple half-bridge circuit / chip or full-bridge circuit / chip is usually used to drive a DC motor. However, when driving multiple DC motors, the same number of half-bridge circuits / chips or full-bridge circuits / chips is usually required, which may lead to an increase in cost. Moreover, if each DC motor needs to be independently controlled, separate control logic also needs to be designed for each DC motor, resulting in an increase in system complexity. Summary of the Invention

[0003] To solve the above technical problems, embodiments of the present application provide a drive method, an electronic device, a storage medium, and a program product. The following introduces the present application from multiple aspects, and the implementation manners and beneficial effects of the following multiple aspects can be referred to each other.

[0004] In a first aspect, an embodiment of the present application provides a drive method, which includes: detecting a drive instruction of a driven component, and determining drive information and a drive component corresponding to the driven component based on a configuration table, where the drive information is at least used to indicate the number of drive components and the number of drive devices where the drive components are located. Then, based on the drive information, configure the working mode of the drive component. Specifically, corresponding to the drive information indicating that the number of drive components is two and the two drive components are respectively located in two drive devices, configure the working mode of each of the two drive components as a half-bridge mode; corresponding to the drive information indicating that the number of drive components is one and the single drive component is located in a single drive device, configure the working mode of the single drive component as a full-bridge mode; and based on the working mode of the drive component, control the drive component to drive the driven component.

[0005] In this way, the drive method provided by the present application can realize combining two drive components respectively located in two drive devices to control a driven component (such as a DC motor), so that more driven components can be controlled by using limited drive devices, thereby reducing the hardware cost.

[0006] In a possible implementation of the first aspect, corresponding to the number of driving components being two, the driving device includes at least one of a half-bridge chip, a half-bridge circuit, a full-bridge chip, a full-bridge circuit, and a multi-phase driving circuit; corresponding to the number of driving components being one, the driving device includes a full-bridge chip or a full-bridge circuit. Configuring the working mode of each of the two driving components as a half-bridge mode respectively includes: corresponding to the driving information indicating that the number of driving components is two and the two driving components are respectively located in two driving devices, configuring the working modes of the two driving devices as half-bridge modes respectively; corresponding to the driving information indicating that the number of driving components is two and the two driving components are located in a single driving device, configuring the working mode of the single driving device as a half-bridge mode.

[0007] In a possible implementation of the first aspect, the above-mentioned setting of the working mode of the driving component based on the driving information further includes: after configuring the working mode of the driving component, recording the configured working mode in a configuration table.

[0008] In a possible implementation of the first aspect, the above-mentioned controlling the driving component to drive the driven component based on the working mode of the driving component includes: when it is determined based on the configuration table that the working mode of the driving component has been configured, controlling the driving component to drive the driven component based on the working mode of the driving component.

[0009] In a possible implementation of the first aspect, controlling the driving component to drive the driven component based on the working mode of the driving component includes: corresponding to the driving information indicating that the number of driving components is one, using a first command to control the driving component to drive the driven component; corresponding to the driving information indicating that the number of driving components is two, using a second command to control the driving component to drive the driven component.

[0010] In a possible implementation of the first aspect, the first command includes an independent full-bridge command, and the second command includes a non-independent full-bridge command; wherein, the independent full-bridge command is used to instruct a single driving component to drive the driven component in a full-bridge mode, and the non-independent full-bridge command is used to instruct two driving components to drive the driven component in a half-bridge mode respectively.

[0011] In a possible implementation of the first aspect, the above-mentioned driven component includes a DC motor stator-rotor assembly or a DC motor body.

[0012] In a second aspect, an embodiment of the present application provides an electronic device, which includes a memory and a processor. Among them, the memory is used to store one or more programs; the processor is used to execute the one or more programs so that the electronic device implements the driving method in the above-mentioned first aspect and any possible implementation of the first aspect.

[0013] In a third aspect, an embodiment of the present application provides a readable storage medium, on which instructions are stored. When the instructions are executed on an electronic device, the electronic device is caused to execute the driving method in the above-mentioned first aspect and any possible implementation of the first aspect.

[0014] In a fourth aspect, an embodiment of the present application provides a program product. When the program product is executed on an electronic device, the electronic device is caused to implement the driving method in the above-mentioned first aspect and any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 According to some embodiments of the present application, a flowchart of a driving method is shown;

[0016] Figure 2 According to some embodiments of the present application, a system architecture of an electronic device is shown;

[0017] Figure 3 According to some embodiments of the present application, a flowchart of an initialization stage of a driving method is shown;

[0018] Figure 4 According to some embodiments of the present application, a flowchart of a control logic implementation stage of a driving method is shown. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0019] Illustrative embodiments of the present application include, but are not limited to, a driving method, an electronic device, a storage medium, and a program product. The driving method of the present application will be introduced below in conjunction with specific embodiments.

[0020] As described above, when using a simple half-bridge chip / circuit or full-bridge chip / circuit to drive multiple DC motors, usually the same number of half-bridge chips / circuits or full-bridge chips / circuits as the number of DC motors is required, which may lead to an increase in cost. Moreover, if each DC motor needs to be independently controlled, separate control logic needs to be designed for each DC motor, which may lead to an increase in the complexity of the system.

[0021] In addition, using a simple half-bridge chip / circuit or full-bridge chip / circuit also cannot meet special driving requirements. For example, using a simple full-bridge chip / circuit cannot drive a circuit composed of a special mechanical structure, such as a circuit that requires three half-bridge driving components to drive.

[0022] In view of this, an embodiment of the present application provides a driving method. In this method, when a driving instruction for a driven component is detected, the driving information and driving components corresponding to the driven component are determined based on a configuration table, where the driving information is at least used to indicate the number of driving components and the number of driving devices where the driving components are located; based on the driving information, the working modes of the driving components are configured, where, corresponding to the driving information indicating that the number of driving components is two and the two driving components are respectively located in two driving devices, the working mode of each of the two driving components is configured as a half-bridge mode; corresponding to the driving information indicating that the number of driving components is one and the single driving component is located in a single driving device, the working mode of the single driving component is configured as a full-bridge mode; based on the working modes of the driving components, the driving components are controlled to drive the driven component.

[0023] It should be noted that the present application does not limit the number of driving components, and the number of driving components is determined by the driven component to be driven. For example, for a three-phase brushless DC motor, three driving components are required to drive the motor. Through the driving method provided by the embodiment of the present application, when the driving information indicates that there are three driving components, the working modes of the three driving components can be configured as half-bridge modes, and then based on the working modes of the three driving components, they are controlled to drive the driven component. In this way, the driving of a circuit composed of a special mechanical structure can be realized.

[0024] In this way, through the driving method provided by the present application, it is possible to realize the combined control of a driven component (such as a DC motor) using two driving components respectively located in two driving devices (such as a half-bridge chip / circuit or a full-bridge chip / circuit), so that more driven components can be controlled using limited driving devices, thereby reducing the hardware cost.

[0025] The following Figure 1 shown in the flowchart introduces a driving method provided by an embodiment of the present application. As Figure 1 shown, the method includes:

[0026] S101, Detect a driving instruction for a driven component.

[0027] In some alternative implementation manners, when a user drives a driven component through an electronic device, the electronic device can detect a driving instruction for the driven component.

[0028] S102, Determine the driving information and driving components corresponding to the driven component based on a configuration table, where the driving information is at least used to indicate the number of driving components and the number of driving devices where the driving components are located.

[0029] In some alternative implementations, after the electronic device detects a driving instruction for a driven component, it determines the driving information and the driving component corresponding to the driven component based on a configuration table, where the driving information is at least used to indicate the number of driving components and the number of driving devices where the driving components are located.

[0030] Specifically, developers can pre-configure the driving information and the driving component for the driven component in advance, and record the configured driving information and the driving component corresponding to the driven component in the configuration table. During the process of driving the driven component, the electronic device can obtain the configuration table and determine the driving information and the driving component corresponding to the driven component to be driven based on the configuration table.

[0031] S103: Configure the working mode of the driving component based on the driving information.

[0032] In some alternative implementations, corresponding to the driving information indicating that the number of driving components is two and the two driving components are respectively located in two driving devices, the working mode of each of the two driving components is configured as a half-bridge mode. Corresponding to the driving information indicating that the number of driving components is two and the two driving components are located in a single driving device, the working mode of each of the two driving components is also configured as a half-bridge mode. Corresponding to the driving information indicating that the number of driving components is single and when the driving component is located in a single driving device, the working mode of the driving component is configured as a full-bridge mode.

[0033] It can be understood that when the driving component is not configured with a working mode, it is in a high-impedance state and cannot directly send a command signal to control the driving component to drive the driven component. It is necessary to configure the working mode for the driving component in advance. When the number of driving components is two, both of the two driving components are half-bridge driving components, and the working mode of the half-bridge driving component is the half-bridge mode. When the number of driving components is single, the single driving component is a full-bridge driving component, and the working mode of the full-bridge driving component is the full-bridge mode. Moreover, a single full-bridge driving component can drive the driven component, and when two half-bridge driving components are combined, they can achieve the function of a single full-bridge driving component.

[0034] In some alternative implementations, corresponding to the number of driving components being two, the driving device includes at least one of a half-bridge chip, a half-bridge circuit, a full-bridge chip, a full-bridge circuit, a multi-phase driving chip, and a multi-phase driving circuit, where the full-bridge chip / circuit includes two half-bridge driving components, and the multi-phase driving chip / circuit includes at least two half-bridge driving components. Corresponding to the number of driving components being single, the driving device includes a full-bridge chip or a full-bridge circuit.

[0035] It can be understood that when there are two driving components, both of the two driving components are half-bridge driving components. The two half-bridge driving components can be respectively located on two half-bridge chips / circuits, full-bridge chips / circuits, multi-phase driving chips / circuits, or can be located on the same full-bridge chip / circuit or multi-phase driving chip / circuit. When there is a single driving component, the single driving component is a full-bridge driving component. The full-bridge driving component can only be located on one full-bridge chip / circuit and the full-bridge chip / circuit includes an indivisible full-bridge driving component. The full-bridge chip / circuit can also be called an independent full-bridge chip / circuit, and the driving component in the full-bridge chip / circuit can also be called an independent full-bridge driving component.

[0036] In some alternative embodiments, corresponding to the driving information indicating that the number of driving components is two and the two driving components are respectively located on two driving devices, the working modes of the two driving devices are respectively configured as half-bridge modes. Corresponding to the driving information indicating that the number of driving components is two and the two driving components are located on a single driving device, the working mode of the single driving device is configured as a half-bridge mode.

[0037] It can be understood that when configuring the working mode for the driving component, the working mode of the driving device where the driving component is located can also be directly configured. If the number of driving components is single and the single driving component is located on a single driving device, the single driving device can be configured as a full-bridge mode.

[0038] In some alternative implementation manners, after the working mode of the driving component is configured, the configured working mode is recorded in a configuration table.

[0039] It can be understood that after the working mode of the driving component is configured, the configured working mode needs to be recorded in the configuration table. Through the configuration table, it can be determined whether the working mode of the driving component has been configured.

[0040] S104, based on the working mode of the driving component, control the driving component to drive the driven component.

[0041] In some alternative implementation manners, when it is determined based on the configuration table that the working mode of the driving component has been configured, based on the working mode of the driving component, control the driving component to drive the driven component.

[0042] It can be understood that only when the working mode of the driving component has been configured can the driving component be controlled to control the driven component.

[0043] In some alternative implementation manners, corresponding to the driving information indicating that the number of driving components is single, use a first command to control the single driving component to drive the driven component. Corresponding to the driving information indicating that the number of driving components is two, use a second command to control the two driving components to drive the driven component.

[0044] It can be understood that if the number of driving components is different, the commands used to control the driving components to drive the driven components are also different. In the embodiments of the present application, the commands used to control the driving components need to be determined according to the chips or circuits used in actual applications. When different chips or circuits are used, different commands are adopted.

[0045] In some alternative implementation manners, the first command may include an independent full-bridge command, and the second command may include a non-independent full-bridge command. Among them, the independent full-bridge command is used to instruct a single driving component to drive the driven component in a full-bridge mode, and the non-independent full-bridge command is used to instruct two driving components to drive the driven component in a half-bridge mode respectively.

[0046] In some alternative implementation manners, the driven component includes a DC motor stator-rotor assembly or a DC motor body.

[0047] In some alternative implementation manners, the driven component may also be a three-phase brushless DC motor, and the number of corresponding driving components is three. The three driving components may be respectively located in three different driving devices. For example, one driving component is located in a half-bridge chip, one driving component is located in a full-bridge chip, and the other driving component is located in another full-bridge chip. Or, the three driving components may also be respectively located in two different driving devices. For example, one driving component is located in a half-bridge chip, and the other two driving components are located in a full-bridge chip or a multi-phase driving chip. Or, the three driving components may also be located in a multi-phase driving chip. The present application does not limit the number of driving components.

[0048] In this way, the driving method provided by the embodiments of the present application can control more driven components with limited driving devices, reducing the hardware cost. And by combining the use of multiple driving components, different driving requirements can be met.

[0049] Next, in combination with Figure 2 , a system architecture of an electronic device will be introduced.

[0050] As Figure 2 shown, the electronic device adopts a hierarchical architecture, which is divided into an application layer, a functional logic abstraction layer, and a physical interface layer. Among them, the application layer includes an abstract interface, which is a unified entity object interface abstracted from different driving devices. The functional logic abstraction layer is used to integrate the control logics of different driving devices. The physical interface layer is used to interface with the hardware and provides function implementation interfaces or configurations supported by the driving devices for different driving devices. For example, it can provide function implementation interfaces of a half-bridge circuit, a half-bridge chip, a full-bridge circuit, and a full-bridge chip.

[0051] It can be understood that the physical interface layer only provides the physical interface and does not implement the control logic. The application layer provides a consistent object operation interface, which can ensure compatibility with different drive devices. When the user controls the motor, the application in the electronic device can be used to access the abstract interface, and the user only needs to select the device to be driven (such as a DC motor) in the interface of the application and configure the relevant parameters to achieve the drive of the device without considering the control logic of different drive components.

[0052] The following combines Figure 3 and Figure 4 The flowchart shown to introduce a driving method provided by an embodiment of the present application. For ease of understanding, the following takes the driving device as a chip and the driven component as the DC motor body as an example for illustration. The method may include an initialization stage and a control logic implementation stage. In the initialization stage, mainly different chips are configured into the correct working mode or state, and in the control logic implementation stage, mainly based on the configured working mode, the chip is controlled to drive the DC motor.

[0053] As Figure 3 shown, the initialization stage includes:

[0054] S301, determine whether the drive component is an independent full-bridge drive component.

[0055] In some alternative implementation manners, after the electronic device detects the drive instruction of the DC motor, first based on the configuration table, the drive component corresponding to the DC motor to be driven is determined, and it is judged whether the drive component is an independent full-bridge drive component. If the judgment result is yes, that is, the drive component is an independent full-bridge drive component, execute S302; if the judgment result is no, that is, the drive component is not an independent full-bridge drive component, execute S303.

[0056] It can be understood that the configuration table includes the drive information corresponding to the DC motor. According to the drive information, it can be judged whether the drive component corresponding to the DC motor to be driven is an independent full-bridge drive component, that is, to judge whether the drive component is a single drive component and is located on a single full-bridge chip.

[0057] S302, configure the working mode of the full-bridge drive component in the corresponding chip according to the configuration table.

[0058] In some alternative implementation manners, after the electronic device determines that the drive component is an independent full-bridge drive component, it configures the working mode of the full-bridge drive component in the corresponding chip according to the configuration table, and configures the working mode of the drive component as the full-bridge mode.

[0059] It can be understood that when the drive component is an independent full-bridge drive component, there is only one full-bridge drive component in the chip corresponding to the drive component, and the working mode of the full-bridge drive component in the chip can be directly configured.

[0060] S303, Determine whether the driving component is a cross-chip combination.

[0061] In some alternative implementation manners, after the electronic device determines that the driving component is not an independent full-bridge driving component, it continues to determine whether the driving component is a cross-chip combination. If the determination result is negative, that is, the number of the driving components is two and the two driving components are respectively located in two driving chips, S304 is executed. If the determination result is positive, that is, the number of the driving components is two and the two driving components are located in the same driving chip, S305 is executed.

[0062] It can be understood that the driving component not being an independent full-bridge driving component means that the number of the driving components is two and they are two half-bridge driving components.

[0063] S304, Configure the working modes of the two half-bridge driving components of the same chip according to the configuration table.

[0064] In some alternative implementation manners, after the electronic device determines that the driving component is not a cross-chip combination, it configures the working modes of the two half-bridge driving components of the same chip according to the configuration table, and configures the working modes of the two half-bridge driving components as half-bridge modes.

[0065] It can be understood that the chip can be a full-bridge chip including two half-bridge driving components, or a multi-phase driving chip including at least two half-bridge driving components.

[0066] S305, Configure the working modes of the two half-bridge driving components of the corresponding two chips according to the configuration table respectively.

[0067] In some alternative implementation manners, after the electronic device determines that the driving component is a cross-chip combination, it configures the working modes of the two half-bridge driving components of the corresponding two chips according to the configuration table respectively, and configures the working modes of the two half-bridge driving components as half-bridge modes.

[0068] It can be understood that after the electronic device determines that the driving component is a cross-chip combination, it can determine which chips the driving components are respectively located in according to the configuration table, and then configure the working modes of the corresponding half-bridge driving components in the corresponding chips. When the number of the driving components is two, one driving component can be located in one half-bridge chip, and the other driving component can be located in another half-bridge chip or a full-bridge chip or a multi-phase driving chip.

[0069] S306, Update the configuration result to the configuration table.

[0070] In some alternative implementation manners, after the electronic device configures the working modes of the driving components, it can update the configuration result to the configuration table.

[0071] It can be understood that when a working mode is configured for the driving component and the driving component is in the working mode, i.e., driving the DC motor, the operation of the driving component is terminated (in this case, the driving component will be converted to a high-impedance state), and the working mode is configured for the driving component again.

[0072] As Figure 4 shown, the control logic implementation stage includes:

[0073] S401, determine whether the parameters are legal.

[0074] In some alternative implementation manners, the electronic device first determines whether the parameters are legal. Here, the parameters are the parameters set by the user when driving the DC motor through the electronic device, and may include, for example, the duty cycle, the direction of the DC motor, the braking mode, etc. If the parameters are legal, it indicates that the parameters set by the user are correct, and the control process can continue to execute S402; if the parameters are not legal, it indicates that the parameters set by the user are incorrect, the current control process is ended, and an error message can also be returned to the user to prompt the user which parameters are set incorrectly.

[0075] It can be understood that parameters such as the duty cycle, the direction of the DC motor, and the braking mode have certain setting rules. When the parameters do not conform to the setting rules, it indicates that the parameters are not legal. For example, for the duty cycle, it usually cannot be greater than 100; for the direction of the DC motor, it usually includes the forward direction and the reverse direction; for the braking mode, it usually includes high braking and low braking.

[0076] S402, determine whether the driving component has been initialized.

[0077] In some alternative implementation manners, after the electronic device determines that the parameters are legal, it can continue to determine whether the driving component has been initialized. If the electronic device determines according to the configuration table that the driving component has been configured with a working mode, for example, the working mode is not the high-impedance state but the half-bridge mode or the full-bridge mode, it can be determined that the driving component has been initialized, and S403 is executed. If the electronic device determines according to the configuration table that the driving component has not been configured with a working mode, i.e., the working mode is the high-impedance state, it can be determined that the driving component has not been initialized, and the current control process is ended.

[0078] S403, determine whether the driving component is an independent full-bridge driving component.

[0079] In some alternative implementation manners, after the electronic device determines that the driving component has been configured with a working mode, it can continue to determine whether the driving component is an independent full-bridge driving component.

[0080] S404, process using the independent full-bridge command.

[0081] In some alternative implementations, the electronic device determines that the driving component is an independent full-bridge driving component, and uses independent full-bridge command processing to instruct the driving component to drive the DC motor in full-bridge mode.

[0082] S405, use non-independent full-bridge command processing.

[0083] In some alternative implementations, the electronic device determines that the driving component is not an independent full-bridge driving component, and uses non-independent full-bridge command processing to instruct the driving component to drive the DC motor in half-bridge mode.

[0084] The driving method provided by the embodiments of the present application can implement controlling a DC motor using two driving components respectively located on two chips, so that more DC motors can be controlled using limited chips, and the hardware cost can be reduced.

[0085] It can be understood that when the driving devices are two non-independent full-bridge chips, through the driving method provided by the embodiments of the present application, these two non-independent full-bridge chips can be used to drive four DC motors.

[0086] Exemplarily, when the first full-bridge chip includes a first half-bridge driving component and a second half-bridge driving component, and the second full-bridge chip includes a third half-bridge driving component and a fourth half-bridge driving component, the driving components of the first DC motor can be configured as the first half-bridge driving component and the second half-bridge driving component, the driving components of the second DC motor can be configured as the first half-bridge driving component and the third half-bridge driving component, the driving components of the third DC motor can be configured as the second half-bridge driving component and the third half-bridge driving component, and the driving components of the fourth DC motor can be configured as the third half-bridge driving component and the fourth half-bridge driving component. In this way, it is possible to use two non-independent full-bridge chips to drive four DC motors.

[0087] It can be understood that the above-mentioned first DC motor and the fourth DC motor can be controlled and driven simultaneously, and the second DC motor and the third DC motor can be controlled and driven simultaneously.

[0088] The embodiments of the present application further provide an electronic device, which includes a memory and a processor. Among them, the memory is used to store one or more programs; the processor is used to execute the one or more programs so that the electronic device implements the driving method in any of the above alternative implementations.

[0089] The embodiments of the present application further provide a readable storage medium, on which instructions are stored. When the instructions are executed on an electronic device, the electronic device is caused to execute the driving method in any of the above alternative implementations.

[0090] An embodiment of the present application also provides a program product. When the program product is executed on an electronic device, it enables the electronic device to implement the driving method in any of the above optional implementation manners. Among them, the program product can be written in the C language.

[0091] The method provided by the embodiment of the present application can be applied to any electronic device, including but not limited to a mobile station (MS), a mobile terminal (MT), etc. For example, the electronic device can be a mobile phone, a smart TV, a tablet computer (Pad), a desktop computer, a laptop computer, a terminal in industrial control, a terminal in self-driving, etc. The embodiment of the present application does not limit the specific form of the electronic device.

[0092] The embodiments disclosed in the present application can be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memories and / or storage elements), at least one input device, and at least one output device.

[0093] The program code can be applied to the input instructions to execute the various functions described in the present application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purpose of the present application, the processing system includes any system having a processor such as, for example, a digital signal processor, a microcontroller, an application-specific integrated circuit, or a microprocessor.

[0094] The program code can be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system. When needed, the program code can also be implemented in assembly language or machine language. In fact, the mechanism described in the present application is not limited to the scope of any specific programming language. In any case, the language can be a compiled language or an interpreted language.

[0095] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more transient or non-transient machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed via a network or via other computer-readable media. Thus, machine-readable media may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to, floppy disks, optical disks, optical discs, magneto-optical discs, read-only memories, random access memories, erasable programmable read-only memories, electrically erasable programmable read-only memories, magnetic or optical cards, flash memory, or tangible machine-readable memories for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) in the form of electrical, optical, acoustic, or other propagated signals using the Internet. Thus, machine-readable media includes any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).

[0096] In the drawings, some structural or method features may be shown in a particular arrangement and / or order. However, it should be understood that such a particular arrangement and / or ordering may not be required. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. Additionally, the inclusion of a structural or method feature in a particular figure does not imply that such a feature is required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0097] It should be noted that each unit / module mentioned in the device embodiments of the present application is a logical unit / module. Physically, a logical unit / module may be a physical unit / module, may be a part of a physical unit / module, or may also be implemented as a combination of multiple physical units / module. The physical implementation manner of these logical units / modules themselves is not the most important. The combination of the functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above device embodiments.

[0098] It should be noted that in the examples and description of this application, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising one" does not exclude the existence of additional identical elements in the process, method, article or device comprising the element.

[0099] Although this application has been illustrated and described by reference to certain embodiments thereof, those of ordinary skill in the art should understand that various changes can be made thereto in form and detail without departing from the scope of this application.

Claims

1. A driving method, characterized in that, including: detecting a driving instruction of a driven component; determining driving information and a driving component corresponding to the driven component based on a configuration table, where the driving information is at least used to indicate the number of the driving components and the number of driving devices where the driving components are located; configuring an operating mode of the driving component based on the driving information, where corresponding to the driving information indicating that the number of the driving components is two and the two driving components are respectively located in two driving devices, configuring the operating mode of each of the two driving components as a half-bridge mode; corresponding to the driving information indicating that the number of the driving components is one and the single driving component is located in a single driving device, configuring the operating mode of the single driving component as a full-bridge mode; controlling the driving component to drive the driven component based on the operating mode of the driving component.

2. The method according to claim 1, wherein corresponding to the number of the driving components being two, the driving device includes at least one of a half-bridge chip, a half-bridge circuit, a full-bridge chip, a full-bridge circuit, a multi-phase driving chip, and a multi-phase driving circuit; corresponding to the number of the driving components being one, the driving device includes a full-bridge chip or a full-bridge circuit; The configuring the operating mode of each of the two driving components as a half-bridge mode respectively includes: corresponding to the driving information indicating that the number of the driving components is two and the two driving components are respectively located in two driving devices, configuring the operating modes of the two driving devices as half-bridge modes respectively; corresponding to the driving information indicating that the number of the driving components is two and the two driving components are located in a single driving device, configuring the operating mode of the single driving device as a half-bridge mode.

3. The method according to claim 1 or 2, characterized in that, The configuring the operating mode of the driving component based on the driving information further includes: after configuring the operating mode of the driving component, recording the configured operating mode in the configuration table.

4. The method according to claim 3, wherein The controlling the driving component to drive the driven component based on the operating mode of the driving component includes: when it is determined based on the configuration table that the operating mode of the driving component has been configured, controlling the driving component to drive the driven component based on the operating mode of the driving component.

5. The method according to claim 1, wherein The controlling the driving component to drive the driven component based on the operating mode of the driving component includes: corresponding to the driving information indicating that the number of the driving components is one, controlling the single driving component to drive the driven component by using a first command; corresponding to the driving information indicating that the number of the driving components is two, controlling the two driving components to drive the driven component by using a second command.

6. The method according to claim 5, wherein The first command includes an independent full-bridge command, and the second command includes a non-independent full-bridge command; where the independent full-bridge command is used to instruct the single driving component to drive the driven component in a full-bridge mode; the non-independent full-bridge command is used to instruct the two driving components to drive the driven component in a half-bridge mode respectively.

7. The method according to claim 1, wherein The driven component includes a DC motor stator-rotor assembly or a DC motor body.

8. An electronic device, characterized in that, including a memory and a processor, where The memory is configured to store one or more programs; The processor is configured to execute the one or more programs to cause the electronic device to implement the driving method according to any one of claims 1 to 7.

9. A readable storage medium, characterized in that, Instructions are stored on the readable storage medium, and when executed on the electronic device, cause the electronic device to execute the driving method according to any one of claims 1 to 7.

10. A program product, characterized in that, When the program product is executed on the electronic device, it causes the electronic device to implement the driving method according to any one of claims 1 to 7.