Compatible controller, control circuit and control method for switching master machine and slave machine between instruments

Through the control circuit that is compatible with the master-slave switch between the controller and the instrument, the switch control module and the power conversion circuit are used to achieve flexible switching between the controller and the instrument, which solves the problems of limited user interaction and insufficient scalability in the prior art, and realizes efficient resource utilization and flexible interaction.

CN120491536APending Publication Date: 2025-08-15NEW ANANDA DRIVE TECHN SHANGHAI
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510634477.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

The master-slave control method of existing electric bicycle controllers and instruments has problems such as limited user interaction and insufficient scalability, especially when the master-slave switches, the structure needs to be modified, and resources are seriously wasted.

Method used

The control circuit is adopted that compatible with the switching of master and slaves between the controller and instruments, including switching control modules, transistors, power conversion circuits, microcontrollers and shutdown detection modules. The conduction and turn-off of the transistors are controlled through the PSW signal, and flexible switching between the controller and the instrument is realized, reducing structural modifications.

Benefits of technology

It realizes that the controller and instrument do not require structural modification when switching master and slave, has high resource utilization efficiency, supports flexible user interaction and scalability, and reduces resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120491536A_ABST
    Figure CN120491536A_ABST
Patent Text Reader

Abstract

The invention provides a compatible controller, and a control circuit and a control method for switching a master machine and a slave machine between instruments. The control circuit comprises a switch control module which comprises a triode; the first switch is connected between the collector and the emitter of the triode; the power conversion circuit is electrically connected with the collector electrode of the triode; the single chip microcomputer is electrically connected with the power conversion circuit and the base electrode of the triode and outputs a PSW signal to the base electrode of the triode; the shutdown detection module is electrically connected with the single chip microcomputer and the emitting electrode of the triode, obtains the detection voltage of the controller and outputs the corresponding detection voltage to the emitting electrode of the triode; the second switch is connected between the single chip microcomputer and the instrument switch control protection circuit; and the third switch is connected between the instrument switch control protection circuit and the instrument power supply. According to the invention, the compatible controller is a host, and structure modification is not needed when the system is switched.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of motor control, and in particular to a control circuit and a control method for master-slave switching between compatible controllers and instruments. Background Art

[0002] An electric bicycle is a vehicle that incorporates a motor, controller, battery, throttle, brake handles, and other control components, as well as a display instrument system, based on a regular bicycle. With market demand and technological advancements, electric bicycles are becoming increasingly intelligent and multifunctional.

[0003] Patent document CN204506566U discloses an electric bicycle meter, controller, and electric bicycle with touch control functions. In addition to displaying operating parameters such as speed, battery level, and current, users can touch to select the display style, access product manuals, or view fault information. They can also touch to set the controller's rated voltage, speed limit, current limit, and automatic boost parameters. Furthermore, at least one of a navigation and positioning module, a map module, a voice module, a storage module, a wireless communication module, an anti-theft module, a flash module, or other modules can be added, enabling touch-based settings for other functions.

[0004] The aforementioned patent document uses a master control IC module as the host, and the instrument as a slave, receiving control from the master control IC module. The advantages of this control method are: strong real-time performance, the controller directly processes sensor data (such as speed, torque, battery status) and motor control, reducing communication delays and ensuring the real-time performance of important functions (such as power assist response). However, its disadvantages are also very obvious: user interaction is limited: the instrument cannot actively initiate requests, the interaction flexibility is low, and the scalability is insufficient. Adding new peripherals requires coordination with the controller, which may increase its burden. Summary of the Invention

[0005] In view of the defects in the prior art, the object of the present invention is to provide a control circuit and a control method for master-slave switching between compatible controllers and instruments.

[0006] According to the present invention, a control circuit for switching between a compatible controller and a master-slave device among instruments includes:

[0007] Switch control module: including transistor;

[0008] A first switch is connected between the collector and emitter of the transistor;

[0009] Power conversion circuit: electrically connected to the collector of the transistor;

[0010] Single chip microcomputer: electrically connected to the power conversion circuit and the base of the transistor, the single chip microcomputer outputs a PSW signal to the base of the transistor;

[0011] A shutdown detection module is electrically connected to the single chip microcomputer and the emitter of the transistor, obtains the detection voltage of the controller, and outputs the corresponding detection voltage to the emitter of the transistor;

[0012] A second switch: connected between the single chip microcomputer and the instrument switch control protection circuit;

[0013] The third switch: connected between the instrument switch control protection circuit and the instrument power supply.

[0014] Furthermore, the power conversion circuit includes:

[0015] DC-DC circuit: used to convert the battery output voltage into 12V voltage;

[0016] The first LDO circuit is electrically connected to the DC-DC circuit and the single chip microcomputer, and is used to convert the 12V voltage output by the DC-DC circuit into a 3.3V voltage and provide it to the single chip microcomputer.

[0017] Furthermore, when the controller is shut down, the single chip microcomputer controls the transistor to be turned off or on through a PSW signal.

[0018] Furthermore, the power conversion circuit further includes:

[0019] The second LDO circuit is electrically connected to the DC-DC circuit and the single chip microcomputer, and is used to convert the 12V voltage output by the DC-DC circuit into a 5V voltage.

[0020] Furthermore, when the controller is a slave, the first switch is closed and turned on.

[0021] According to a method for controlling master-slave switching between a compatible controller and an instrument provided by the present invention, the method adopts the control circuit for master-slave switching between the compatible controller and the instrument, and the method includes:

[0022] The control method uses the controller as the host and the instrument as the slave: when powered on, the battery output goes to the controller first, and then the controller powers the instrument after it is powered on;

[0023] The control method uses the instrument as the host and the controller as the slave: when powered on, the battery output is transmitted to the instrument through the controller, and the controller is turned on by the instrument.

[0024] Furthermore, in a control method using the controller as the master and the instrument as the slave:

[0025] When the power is turned on, the electric energy output by the battery first reaches the controller, passes through the transistor and the power conversion circuit, and is then input into the microcontroller. The microcontroller maintains the operation of the transistor through the output PSW signal.

[0026] Furthermore, in a control method using the controller as the master and the instrument as the slave:

[0027] When shutting down, the MCU will have a detection voltage. If this detection voltage is the voltage of the power-on state, the MCU will cut off the transistor through the PSW messenger and shut down the controller.

[0028] Furthermore, in a control method in which the instrument is the master and the controller is the slave:

[0029] When powered on, the electric energy output by the battery first reaches the controller, passes through the transistor and the power conversion circuit, and is then input into the single-chip microcomputer, and is transmitted to the instrument through the single-chip microcomputer. The instrument sends a control signal SW to the controller, and by closing and turning on the first switch, the SW control signal is transmitted to the power conversion circuit, which controls the power conversion circuit to output the converted voltage to the single-chip microcomputer. The single-chip microcomputer maintains the operation of the transistor through the PSW signal.

[0030] Furthermore, in a control method in which the instrument is the master and the controller is the slave:

[0031] When shutting down, the MCU will have a detection voltage. If this detection voltage is the voltage of the power-on state, the MCU will cut off the transistor through the PSW messenger, shut down the controller, and disconnect the second and third switches.

[0032] Compared with the prior art, the present invention has the following beneficial effects:

[0033] The present invention realizes compatibility between two systems: a controller as a host and an instrument as a slave, and a controller as a slave and an instrument as a host. No structural modification is required when switching systems, and the same PCBA board can be used, thereby reducing waste of resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Other features, objects and advantages of the present invention will become more apparent upon reading the detailed description of non-limiting embodiments with reference to the following drawings:

[0035] Figure 1 is a block diagram of the control circuit of the present invention;

[0036] Figure 2 This is the power-on sequence when the controller is the host;

[0037] Figure 3 This is the power-on sequence when the instrument is the host. DETAILED DESCRIPTION

[0038] The present invention will be described in detail below with reference to specific embodiments. The following examples will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those skilled in the art, several changes and improvements can be made without departing from the scope of the present invention. These all fall within the scope of protection of the present invention.

[0039] like Figure 1 As shown, the present invention provides a control circuit for switching between a compatible controller and a master-slave device between instruments, including: a switch control module, a first switch, a power conversion circuit, a single-chip microcomputer, a shutdown detection module, an instrument switch control protection circuit, an instrument power supply, a second switch, and a third switch.

[0040] The switch control module uses a transistor, with the first switch connected between the transistor's collector and emitter. The power conversion circuit is electrically connected to the transistor's collector and includes a DC-DC circuit, a first LDO circuit, and a second LDO circuit. The DC-DC circuit converts the battery output voltage to 12V. The first LDO circuit is electrically connected to the DC-DC circuit and the microcontroller, converting the 12V output of the DC-DC circuit to 3.3V and providing it to the microcontroller. The second LDO circuit is electrically connected to the DC-DC circuit and the microcontroller, converting the 12V output of the DC-DC circuit to 5V. The microcontroller is electrically connected to the power conversion circuit and the base of the transistor, outputting a PSW signal to the base of the transistor. The shutdown detection module is electrically connected to the microcontroller and the emitter of the transistor, obtaining the controller's detection voltage and outputting the corresponding detection voltage to the emitter of the transistor. The second switch is connected between the microcontroller and the instrument switch control and protection circuit, and the third switch is connected between the instrument switch control and protection circuit and the instrument power supply.

[0041] like Figure 2 As shown in the figure, in the mode where the controller is the host and the instrument is the slave:

[0042] During power-up, the battery's charge first reaches the controller. In the controller's switch control module, VCC uses a transistor to control the output signal V_CK, which is sent to the DC-DC module. The DC-DC module outputs 12V, which is converted to 5V and 3.3V in the LDO circuit. The 3.3V voltage is then sent to the microcontroller, which then sends a PSW signal to the controller's switch control module to keep the controller operational.

[0043] During shutdown, the MCU detects a voltage called ON / OFF_CK. If this voltage is above the power-on voltage, the MCU uses the PSW signal to close the switching transistor, shutting down the controller. The controller's power supply to the meter consists of a switching section and an overcurrent protection section. During normal operation, the transistor acts as a switch and the MCU's DP_SW signal provides voltage to the meter. In the event of overcurrent, the transistor controls the controller to prevent the meter from receiving voltage, thereby protecting the circuit.

[0044] like Figure 3 As shown, in the mode where the controller is the slave and the instrument is the master:

[0045] During power-up, the battery first supplies power to the controller, which then supplies power to the meter. The meter then powers the controller on via a SW signal. The meter's SW signal is transmitted to the controller's switch control module, which closes the first switch and outputs a SW signal to the DC-DC module. The DC-DC module outputs 12V, which is converted to 5V and 3.3V in the LDO module. The 3.3V voltage is then transmitted to the microcontroller, which then issues a PSW signal to the controller's switch control module to maintain the controller's operation.

[0046] When shutting down, the MCU will have an ON / OFF_CK detection voltage. If this voltage is the voltage in the power-on state, the MCU will send a PSW signal to close the switch transistor and turn it on. The controller will shut down and the second and third switches will be disconnected.

[0047] The present invention also provides a method for controlling master-slave switching between a compatible controller and an instrument, using the above-mentioned control circuit for master-slave switching between the compatible controller and the instrument, the method comprising:

[0048] The control method with the controller as the host and the instrument as the slave: when powered on, the battery output goes to the controller first, and the controller powers the instrument after it is turned on; the control method with the instrument as the host and the controller as the slave: when powered on, the battery output is transmitted to the instrument through the controller, and the controller is turned on by the instrument.

[0049] In the control method with the controller as the master and the instrument as the slave:

[0050] During power-up, the battery's electrical energy first reaches the controller, then passes through transistors and a power conversion circuit before being fed into the microcontroller. The microcontroller maintains the operation of the transistors via the output PSW signal. During shutdown, the microcontroller detects a voltage. If this voltage exceeds the power-on voltage, the microcontroller uses the PSW signal to turn off the transistors, shutting down the controller.

[0051] In a control method using an instrument as the master and a controller as the slave, during power-up, the battery's output energy first reaches the controller, passes through a transistor and a power conversion circuit, and is then input into a microcontroller (MCU). The MCU then transmits this energy to the instrument. The instrument then sends a control signal (SW) to the controller. By closing and turning on the first switch, the SW control signal is transmitted to the power conversion circuit, which controls the power conversion circuit to output the converted voltage to the MCU. The MCU maintains the operation of the transistors via the PSW signal. During shutdown, the MCU detects a voltage. If this voltage is above the power-on voltage, the MCU uses the PSW signal to turn off the transistors, shutting down the controller and opening the second and third switches.

[0052] In the description of this application, it should be understood that the terms "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on this application.

[0053] The above describes specific embodiments of the present invention. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art may make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. The embodiments of this application and the features in the embodiments may be combined with each other in any manner unless there is a conflict.

Claims

1. A control circuit for master-slave switching between compatible controllers and instruments, characterized in that: include: Switch control module: including transistor; A first switch is connected between the collector and emitter of the transistor; Power conversion circuit: electrically connected to the collector of the transistor; Single chip microcomputer: electrically connected to the power conversion circuit and the base of the transistor, the single chip microcomputer outputs a PSW signal to the base of the transistor; A shutdown detection module is electrically connected to the single chip microcomputer and the emitter of the transistor, obtains the detection voltage of the controller, and outputs the corresponding detection voltage to the emitter of the transistor; A second switch: connected between the single chip microcomputer and the instrument switch control protection circuit; The third switch: connected between the instrument switch control protection circuit and the instrument power supply.

2. The control circuit for switching between a compatible controller and a master-slave device among instruments according to claim 1, characterized in that: The power conversion circuit includes: DC-DC circuit: used to convert the battery output voltage into 12V voltage; The first LDO circuit is electrically connected to the DC-DC circuit and the single chip microcomputer, and is used to convert the 12V voltage output by the DC-DC circuit into a 3.3V voltage and provide it to the single chip microcomputer.

3. The control circuit for switching between a compatible controller and a master-slave device among instruments according to claim 1, characterized in that: When the controller is turned off, the single chip microcomputer controls the transistor to be turned off or on through the PSW signal.

4. The control circuit for switching between a compatible controller and a master-slave device among instruments according to claim 2, characterized in that: The power conversion circuit further includes: The second LDO circuit is electrically connected to the DC-DC circuit and the single chip microcomputer, and is used to convert the 12V voltage output by the DC-DC circuit into a 5V voltage.

5. The control circuit for switching between a compatible controller and a master-slave device among instruments according to claim 1, characterized in that: When the controller is a slave, the first switch is closed and turned on.

6. A control method for switching between a compatible controller and a master-slave device, characterized in that: Using the compatible controller according to any one of claims 1 to 5 and the control circuit for master-slave switching between instruments, the method includes: The control method uses the controller as the host and the instrument as the slave: when powered on, the battery output goes to the controller first, and then the controller powers the instrument after it is powered on; The control method uses the instrument as the host and the controller as the slave: when powered on, the battery output is transmitted to the instrument through the controller, and the controller is turned on by the instrument.

7. The control method for master-slave switching between compatible controllers and meters according to claim 6, characterized in that: In the control method with the controller as the master and the instrument as the slave: When the power is turned on, the electric energy output by the battery first reaches the controller, passes through the transistor and the power conversion circuit, and is then input into the microcontroller. The microcontroller maintains the operation of the transistor through the output PSW signal.

8. The control method for master-slave switching between compatible controllers and meters according to claim 6, characterized in that: In the control method with the controller as the master and the instrument as the slave: When shutting down, the MCU will have a detection voltage. If this detection voltage is the voltage of the power-on state, the MCU will cut off the transistor through the PSW messenger and shut down the controller.

9. The control method for master-slave switching between compatible controllers and meters according to claim 6, characterized in that: In the control method with the instrument as the master and the controller as the slave: When powered on, the electric energy output by the battery first reaches the controller, passes through the transistor and the power conversion circuit, and is then input into the single-chip microcomputer, and is transmitted to the instrument through the single-chip microcomputer. The instrument sends a control signal SW to the controller, and by closing and turning on the first switch, the SW control signal is transmitted to the power conversion circuit, which controls the power conversion circuit to output the converted voltage to the single-chip microcomputer. The single-chip microcomputer maintains the operation of the transistor through the PSW signal.

10. The control method for master-slave switching between compatible controllers and meters according to claim 6, characterized in that: In the control method with the instrument as the master and the controller as the slave: When shutting down, the MCU will have a detection voltage. If this detection voltage is the voltage of the power-on state, the MCU will cut off the transistor through the PSW messenger, shut down the controller, and disconnect the second and third switches.

Citation Information

Patent Citations

  • Take electric bicycle instrument, controller and the electric bicycle of touch panel function

    CN204506566U

  • Programmable power circuit of meter bus slave

    CN102508508A

  • Master-slave switching circuit and circuit control method

    CN109560967A

  • Switch control system of terminal equipment and control method thereof

    CN111290320A

  • Method for realizing SPI (Serial Peripheral Interface) bus communication between double processors of electro-hydraulic servo controller

    CN116203882A