WO2020133060A1 - Control method, motor driving apparatus, control apparatus, and movable platform - Google Patents

Control method, motor driving apparatus, control apparatus, and movable platform Download PDF

Info

Publication number
WO2020133060A1
WO2020133060A1 PCT/CN2018/124346 CN2018124346W WO2020133060A1 WO 2020133060 A1 WO2020133060 A1 WO 2020133060A1 CN 2018124346 W CN2018124346 W CN 2018124346W WO 2020133060 A1 WO2020133060 A1 WO 2020133060A1
Authority
WO
WIPO (PCT)
Prior art keywords
motor
addressing
rotation
control device
state
Prior art date
Application number
PCT/CN2018/124346
Other languages
French (fr)
Chinese (zh)
Inventor
周长兴
陈超彬
龚鼎
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN201880065573.9A priority Critical patent/CN111226177A/en
Priority to PCT/CN2018/124346 priority patent/WO2020133060A1/en
Publication of WO2020133060A1 publication Critical patent/WO2020133060A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B64AIRCRAFT; AVIATION; COSMONAUTICS
    • B64CAEROPLANES; HELICOPTERS
    • B64C39/00Aircraft not otherwise provided for
    • B64C39/08Aircraft not otherwise provided for having multiple wings
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B64AIRCRAFT; AVIATION; COSMONAUTICS
    • B64DEQUIPMENT FOR FITTING IN OR TO AIRCRAFT; FLIGHT SUITS; PARACHUTES; ARRANGEMENT OR MOUNTING OF POWER PLANTS OR PROPULSION TRANSMISSIONS IN AIRCRAFT
    • B64D31/00Power plant control systems; Arrangement of power plant control systems in aircraft
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P5/00Arrangements specially adapted for regulating or controlling the speed or torque of two or more electric motors

Definitions

  • the invention relates to the technical field of control, in particular to a control method, a motor drive device, a control device and a movable platform.
  • multi-motor terminal devices such as unmanned vehicles, drones, wheeled robots, etc.
  • multiple motor drive devices included in such multi-motor terminal devices are mounted on the same bus.
  • the position of the drive device on the bus is equivalent, so when the control device sends a control command to the bus, all motor drive devices can receive the control command. If the address distinction is not made between the motor drive devices, control cannot be achieved.
  • the usual method is to address each motor drive device before installing the motor drive device, and then install the addressed motor drive devices to a fixed physical location of the integrated system.
  • this method requires disassembly and assembly of equipment each time the addressing is performed, and the installation location is fixed, resulting in complicated operations and poor user experience. Therefore, how to control the terminals of multi-motor drive equipment more effectively is of great significance.
  • the embodiment of the invention provides a control method, a motor driving device, a control device and a movable platform, which can realize the automation and intelligent addressing of the motor driving device and improve the addressing efficiency.
  • an embodiment of the present invention provides a method for controlling a motor-driven device, wherein the motor-driven device is used to control a motor connected to the motor, and the method includes:
  • a feedback signal of the addressing instruction is sent to the control device, and the destination addressing number is recorded according to the addressing instruction.
  • an embodiment of the present invention provides a control method of a control device, wherein the control device is communicatively connected to a plurality of motor driving devices, and the motor driving device is used to control a motor communicatively connected thereto, the method include:
  • the address number of the one motor-driven device is registered as the destination address number.
  • an embodiment of the present invention provides a motor driving device, wherein the motor driving device is used to control a motor communicatively connected thereto, including: a memory and a processor,
  • the memory is used to store program instructions
  • the processor is used to call the program instructions, and when the program instructions are executed, it is used to perform the following operations:
  • a feedback signal of the addressing instruction is sent to the control device, and the destination addressing number is recorded according to the addressing instruction.
  • an embodiment of the present invention provides a control device, wherein the control device is communicatively connected to a plurality of motor driving devices, and the motor driving device is used to control a motor communicatively connected thereto, including: a memory and a processor ,
  • the memory is used to store program instructions
  • the processor is used to call the program instructions, and when the program instructions are executed, it is used to perform the following operations:
  • an embodiment of the present invention provides a movable platform, wherein the movable platform includes: a plurality of motor driving devices and a control device, and the plurality of motor driving devices and the control device pass a bus connection,
  • the control device is used to broadcast an addressing instruction to a plurality of motor drive devices, wherein the addressing instruction includes a destination addressing number;
  • the motor driving device is used to obtain the addressing instruction sent by the control device and obtain the rotation state of the motor, and when the obtained rotation state of the motor meets the preset state requirements, send the control device the control device The feedback signal of the addressing instruction, and recording the destination addressing number according to the addressing instruction;
  • the control device is configured to register the address number of the one motor drive device as all if the feedback signal of the addressing instruction sent by one motor drive device of the plurality of motor drive devices is determined to be acquired Addressing number of the description.
  • an embodiment of the present invention provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the computer program is implemented as described in the first aspect or the second aspect method.
  • the motor driving device obtains the addressing instruction sent by the control device, wherein the addressing instruction includes the destination address number and obtains the rotation state of the motor, when the rotation state of the motor meets the preset state requirements , Send the feedback signal of the addressing instruction to the control device, and record the destination addressing number according to the addressing instruction, so that the addressing of the motor drive device can be completed by obtaining the rotation state of the motor, avoiding each time All addressing needs disassembly and assembly equipment to realize the automation and intelligence of the addressing control of the motor drive equipment, which improves the addressing efficiency.
  • FIG. 1 is a schematic structural diagram of a movable platform provided by an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a method for controlling a motor drive device according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a control method of a control device according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a motor driving device provided by an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a control device according to an embodiment of the present invention.
  • An embodiment of the present invention provides a movable platform, the movable platform includes: a plurality of motor drive devices and a control device, the plurality of motor drive devices and the control device are connected by a bus, and the plurality of motor drives Two-way communication is possible between the device and the control device.
  • the motor-driven device may be installed on a mobile platform equipped with multiple motor-driven devices, such as an aircraft, an unmanned aerial vehicle, an unmanned boat, and a wheeled robot.
  • the control device may be spatially independent of the motor drive device.
  • FIG. 1 is a schematic structural diagram of a movable platform provided by an embodiment of the present invention.
  • the movable platform includes a control device 11 and a motor drive system 12, the motor drive system 12 includes a plurality of motor drive devices, such as a first motor drive device 121, a second motor drive device 122, and a first Three motor drive equipment 123.
  • the control device 11 and the motor drive system 12 establish a communication connection through the bus 13.
  • the control device 11 may broadcast addressing instructions to a plurality of motor drive devices, where the addressing instruction includes a destination address number.
  • the addressing instruction includes a destination address number.
  • each motor drive device in the motor drive system 12 may obtain the rotation state of the corresponding motor. If the first motor driving device 121 detects that the rotation state of the motor satisfies the preset state requirement, the first motor driving device 121 may register the address number as the destination address number carried in the addressing instruction, and The control device 11 sends a feedback signal of the addressing instruction to notify the control device 11 that the destination address number has been registered by the first motor driving device 121.
  • control device 11 may determine that the address number of the first motor driving device 121 is registered as the address number for the purpose. Similarly, the control device 11 may continue to send addressing instructions including other addressing numbers for addressing the second motor drive device 122 or the third motor drive device 123 in the motor drive system 12. Through this embodiment, the automatic and intelligent addressing control of the motor drive device is realized, and the addressing efficiency is improved.
  • FIG. 2 is a schematic flowchart of a method for controlling a motor-driven device according to an embodiment of the present invention.
  • the method may be executed by a motor-driven device, and the motor-driven device may be provided on a movable platform, where ,
  • the motor-driven device may include an electronic ESC, and the movable platform may be a mobile intelligent terminal such as an aircraft, an unmanned aerial vehicle, an unmanned boat, a wheeled robot, etc., wherein the motor-driven device is used to control communication with it Connected motor.
  • the method in the embodiment of the present invention includes the following steps.
  • the motor driving device may obtain the addressing instruction sent by the control device, where the addressing instruction includes a destination addressing number.
  • the motor driving device may obtain an addressing instruction including the destination addressing number 1 sent by the control device.
  • the motor drive device and the control device establish a communication connection through the same bus.
  • the addressing instruction may be sent by the control device through the bus in the form of addressing data packets; in other embodiments, the addressing instruction may also be sent by the control device through the bus in other forms, The embodiments of the present invention are not specifically limited.
  • the motor driving device may also obtain a start addressing instruction sent by the control device through the bus, and control the motor driving device to enter the addressing state. After performing the addressing state, the motor drive device may perform the step of acquiring the addressing instruction sent by the control device.
  • the motor driving device may obtain the rotation state of the motor of the motor driving device.
  • the motor driving device may determine the rotation state of the motor by acquiring the rotation angle of the motor.
  • the motor driving device includes an angle sensor, wherein the angle sensor is used to measure the rotation angle of the motor, and the motor driving device may determine the motor by acquiring angle data output by the angle sensor Of rotation.
  • the motor driving device includes an electrical signal sensor, wherein the electrical signal sensor is used to measure an induced electrical signal generated by the motor, and the motor driving device may obtain the induced electrical power output by the electrical signal sensor Signals to determine the rotation state of the motor.
  • the induced electrical signal may include induced electromotive force or induced current.
  • the motor driving device may detect whether the rotation state of the motor meets a preset state requirement, and when the rotation state of the motor satisfies the preset state When required, the feedback signal of the addressing instruction can be sent to the control device, and the destination address number carried in the addressing instruction can be recorded according to the addressing instruction, that is, the motor drive device can send the destination The address number is determined to be your own address number.
  • the rotation state of the motor meeting the preset state requirement may be that the rotation state of the motor obtained by the motor driving device is to indicate that the motor rotates.
  • the motor driving device may send a feedback signal of the addressing instruction to the control device, and according to the addressing instruction Record the destination addressing number carried in the addressing instruction.
  • the motor driving device For example, assuming that the addressing instruction included in the addressing instruction obtained by the motor driving device is 1, if the rotation state of the motor obtained by the motor driving device is to indicate that the motor rotates, the motor driving device The feedback signal of the addressing instruction may be sent to the control device, and the addressing number of the motor drive device is recorded as 1, that is, 1 is determined as its own addressing number.
  • the rotation state of the motor meeting the preset state requirement may be that the motor driving device detects that the rotation angle of the motor is greater than or equal to a preset angle threshold.
  • the motor driving device may send a feedback signal of the addressing instruction to the control device, and according to the addressing The instruction records the destination address number carried in the addressing instruction.
  • the motor driving device may send a feedback signal of the addressing instruction to the control device, and record the destination address number of the motor driving device as 1.
  • the rotation state of the motor meeting the preset state requirement may also be that the rotation speed of the motor rotation is greater than or equal to a preset rotation speed threshold.
  • the motor drive device may send a feedback signal of the addressing instruction to the control device, and according to the addressing The instruction records the destination address number carried in the addressing instruction.
  • the motor drive device detects that the motor rotates at a speed of 100 revolutions/second, it can be determined that 100 revolutions/second is greater than the preset speed threshold of 50 revolutions/second, so the motor drive device can send a feedback signal of the addressing instruction to the control device and record the motor drive
  • the device's destination address number is 1.
  • the rotation state of the motor meeting the preset state requirement may also be an induction signal output by the electric signal sensor obtained by the motor driving device indicating that the motor rotates.
  • the motor driving device may send a feedback signal of the addressing instruction to the control device, and record the addressing instruction carried in the addressing instruction according to the addressing instruction The address number of the purpose.
  • the induction signal includes an induction electromotive force
  • the motor driving device may determine whether the motor rotates according to the induction electromotive force output by the electrical signal sensor. In some embodiments, the motor driving device may detect whether the induced electromotive force output by the electrical signal sensor is greater than a preset electromotive force threshold, and if it is detected that the induced electromotive force is greater than a preset electromotive force threshold, the induced electromotive force may be determined Instruct the motor to rotate.
  • the addressing instruction included in the addressing instruction obtained by the motor driving device is 1, and the induced signal is induced electromotive force, and the preset electromotive force threshold value is E1. If the motor driven device detects the induced electromotive force Is E2, and E2 is greater than the preset electromotive force threshold E1, it can be determined that the induced electromotive force indicates that the motor rotates.
  • the induction signal includes an induction current
  • the motor driving device may determine whether the motor rotates according to the induction current output by the electrical signal sensor.
  • the motor driving device may detect whether the induced current output by the electrical signal sensor is greater than a preset current threshold, and if it is detected that the induced current is greater than a preset current threshold, the induced current may be determined Instruct the motor to rotate.
  • the motor driving device detects the induction current If it is 2A, then it can be determined that 2A is greater than a preset current threshold of 1A, so it can be determined that the induced current indicates that the motor is rotating.
  • the rotation of the motor of the motor-driven device may be caused by a user directly or indirectly applying an external force to the motor.
  • the motor is used to drive the execution component, wherein the rotation of the motor is caused by the user applying an external force to the motor through the execution component, for example, the user toggles or rotates the execution The component in turn drives the motor to rotate.
  • the execution component includes one or more of a propeller, a wheel, and a track.
  • a switch for controlling the start of the motor may be provided on the motor driving device, and the user may turn on the motor by toggling the switch to drive the execution component.
  • the user interface of the motor driving device may also be provided with an icon or button for turning on the motor, and the user may turn on the motor by pressing the icon or button on the user interface to drive the motor. Described executive component.
  • the motor driving device is provided with a switch for controlling the start of the motor. If the user manually presses the switch for controlling the start of the motor, the wheel corresponding to the switch can be turned on.
  • the motor driving device may also send a prompting instruction for controlling the prompting device to issue prompting information through the bus.
  • the prompting device may be a buzzer, and the motor driving device may control the buzzer to emit a prompting sound.
  • the buzzer may be provided on the motor-driven device; or separately provided on a device that establishes a communication connection with the motor-driven device, which is not specifically limited in the embodiments of the present invention.
  • the addressing instruction may be deleted.
  • the motor drive device after the motor drive device enters the addressing state, it can obtain the rotation state of the motor driven by the motor drive device if the rotation state of the motor driven by the motor drive device meets the preset state requirements , It can be detected whether an address number exists on the bus, and if an address number is detected on the bus, it can be determined that the address number has been addressed.
  • the motor drive device may determine the destination address number according to the existing address number, register the address number of the motor drive device as the destination address number, and send the destination through the bus The feedback signal of the address number notifies the control device that the address number of the motor drive device has been registered as the destination address number.
  • the motor drive device may determine the destination address number 2 according to the existing address number 1, and register the address number of the motor drive device as the destination address number 2, and send through the bus The feedback signal of the destination address number 2.
  • the motor driving device may obtain the rotation state of the motor when acquiring the addressing instruction sent by the control device, and when the obtained rotation state of the motor meets the preset state requirements, send the Describing the feedback signal of the addressing instruction, and recording the destination address number carried by the addressing instruction according to the addressing instruction.
  • the addressing of the motor drive device can be completed by obtaining the rotation state of the motor, avoiding the need to disassemble and disassemble the device for each addressing, realizing the automation and intelligence of the addressing control of the motor drive device, and improving the addressing efficiency.
  • control method of the control device provided by the embodiment of the present invention will be schematically described below with reference to FIG. 3.
  • FIG. 3 is a schematic flowchart of a method for controlling a control device according to an embodiment of the present invention.
  • the method may be executed by a control device, and the control device may be provided on a movable platform.
  • the movable platform may be a mobile intelligent terminal such as an aircraft, an unmanned aerial vehicle, an unmanned boat, a wheeled robot and the like.
  • the control device may be communicatively connected to a plurality of motor driving devices, and the motor driving device is used to control the motor communicatively connected thereto.
  • the method in the embodiment of the present invention includes the following steps.
  • S301 Broadcast addressing instructions to multiple motor drive devices.
  • the control device may broadcast an addressing instruction to a plurality of motor driving devices through a bus, where the addressing instruction includes a destination addressing number. For example, assuming that the addressing instruction included in the addressing instruction is 1, the control device may broadcast the addressing instruction with the addressing number 1 to multiple motor drive devices through the bus.
  • control device may broadcast a start addressing instruction to the plurality of motor drive devices before broadcasting the addressing instruction to the multiple motor drive devices, the start addressing command is used to instruct the motor
  • the drive device enters the addressing state.
  • S302 Determine whether a feedback signal of the addressing instruction sent by one of the plurality of motor drive devices is obtained, wherein the feedback signal is one of the plurality of motor drive devices. Sent to the control device when it is determined that the rotation state of the motor meets the requirements of the preset state.
  • the control device may determine whether a feedback signal of the addressing instruction sent by one of the plurality of motor driving devices is obtained.
  • the feedback signal is sent to the control device when one of the plurality of motor drive devices determines that the rotation state of the motor satisfies the preset state requirements.
  • one motor driving device of the plurality of motor driving devices is any one of the plurality of motor driving devices.
  • the rotation state of the motor meets a preset state requirement, including: the rotation state of the motor indicates that the motor rotates.
  • the rotation state of the motor satisfies a preset state requirement, and further includes: the rotation angle of the motor is greater than or equal to a preset angle threshold, or the rotation speed of the motor rotation is greater than or equal to a preset rotation speed threshold.
  • the rotation of the motor is caused by a user directly or indirectly applying an external force to the motor.
  • the motor is used to drive an actuator, wherein the rotation of the motor is caused by a user applying an external force to the motor through the actuator.
  • the execution component includes one or more of a propeller, a wheel, and a track.
  • the control device may send a prompt message to the user interface, and the user interface outputs a prompt corresponding to the destination address number Information, wherein the prompt information is used to instruct the user to directly or indirectly apply an external force to the target motor among the plurality of motors communicatively connected to the motor drive device.
  • the remote control car has 4 motor-driven devices and 4 motors communicatively connected to the motor-driven device, the 4 motors respectively drive the 2 wheels and 2 wheels on the left and right of the tail.
  • the destination address numbers of the motor drive devices corresponding to these four wheels should be 1, 2, 3, and 4, respectively.
  • the user interface may display a prompt message corresponding to the address number 1, for example, the user interface displays "Please turn the left side of the carriage head "Wheel", when the user turns the wheel on the left side of the carriage head to drive the corresponding target motor to rotate, the address number of the motor drive device that drives the target motor on the wheel on the left side of the carriage head is determined to be 1. In this way, the user can be prompted to apply external force to the designated motor, address the designated destination address number to the designated motor drive device, and increase the success rate of addressing.
  • control device may broadcast a start addressing instruction to the multiple motor drive devices to instruct the motor drive device to enter the addressing state, and then determine whether the multiple motor drive devices are acquired One of the motor drive devices sends the feedback signal of the addressing instruction.
  • the control device may register the address number of the one motor drive device as all Addressing number of the description. In some embodiments, after registering the address number of the one motor drive device as the destination address number, the control device may continue to send addressing instructions carrying other address numbers to Register the address number of the motor drive device for addressing.
  • the destination address number carried in the addressing instruction broadcast by the control device to multiple motor drive devices is 1, if the control device obtains the multiple motor drive devices among the multiple motor drive devices If a motor drive device sends the feedback signal of the addressing instruction, the address number 1 of one of the plurality of motor drive devices can be registered as the destination address number, that is, the multiple The address number of one of the motor-driven devices is 1.
  • control device may send an alarm instruction for controlling the alarm device to issue alarm information to remind the user that the control device has not received The feedback signal to the motor drive device response.
  • control device may send a prompt instruction for controlling the prompt device to issue a prompt message to prompt the user The destination address number has been registered.
  • the prompting device is a buzzer, and when the control device sends a prompting command for controlling the prompting device to issue prompting information, it may send a prompting command for controlling the buzzer to emit a prompting sound .
  • the buzzer is provided on the control device, or separately, that is, on the device that establishes a communication connection with the control device.
  • the control device may broadcast the addressing instruction to the plurality of motor driving devices, and determine whether a feedback signal of the addressing instruction sent by one of the plurality of motor driving devices is obtained, Wherein, the feedback signal is sent by one of the plurality of motor driving devices to the control device when it is determined that the rotation state of the motor satisfies the preset state requirements; if it is determined that the plurality of motor driving devices are acquired If a motor drive device in the device sends a feedback signal of the addressing instruction, the address number of the one motor drive device may be registered as the destination address number.
  • the addressing of the motor drive device can be completed by obtaining the rotation state of the motor, avoiding the need to disassemble and disassemble the device for each addressing, realizing the automation and intelligence of the addressing control of the motor drive device, and improving the addressing efficiency.
  • FIG. 4 is a schematic structural diagram of a motor driving device according to an embodiment of the present invention.
  • the device includes a memory 401 and a processor 402.
  • the processor 402 is configured with a proxy component and a set of functional components.
  • the functional component set includes multiple functional components, and each functional component is configured with an application interface;
  • the memory 401 may include a volatile memory (volatile memory); the memory 401 may also include a non-volatile memory (non-volatile memory); the memory 401 may also include a combination of the foregoing types of memories.
  • the processor 402 may be a central processing unit (central processing unit, CPU).
  • the processor 402 may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • the PLD may be a complex programmable logic device (complex programmable logic device, CPLD), field programmable logic gate array (field-programmable gate array, FPGA), or any combination thereof.
  • the processor 402 is used to call the program instruction, and when the program instruction is executed, is used to perform the following operations:
  • a feedback signal of the addressing instruction is sent to the control device, and the destination addressing number is recorded according to the addressing instruction.
  • the rotation state of the motor satisfies a preset state requirement, including: the rotation state of the motor indicates that the motor rotates.
  • the rotation state of the motor satisfies a preset state requirement, which further includes: the rotation angle of the motor is greater than or equal to a preset angle threshold, or the rotation speed of the motor rotation is greater than or equal to a preset rotation speed threshold.
  • the rotation of the motor is caused by the user directly or indirectly applying an external force to the motor.
  • the motor is used to drive an actuator, wherein the rotation of the motor is caused by a user applying an external force to the motor through the actuator.
  • the execution component includes one or more of a propeller, a wheel, and a track.
  • processor 402 is also used to:
  • the processor obtains the addressing instruction sent by the control device, it is specifically used to:
  • the addressing instruction sent by the control device is obtained.
  • processor 402 obtains the rotation state of the motor, it is specifically used to:
  • the rotation state of the motor is determined according to the angle data.
  • processor 402 obtains the rotation state of the motor, it is specifically used to:
  • the rotation state of the motor is determined according to the induced electrical signal.
  • processor 402 records the destination address number, it is also used to:
  • the prompting device is a buzzer, and the motor driving device controls the buzzer to emit a prompting sound.
  • the buzzer is provided in the motor driving device, or separately.
  • processor 402 is also used to:
  • the motor driving device may obtain the rotation state of the motor when acquiring the addressing instruction sent by the control device, and when the obtained rotation state of the motor meets the preset state requirements, send the Describing the feedback signal of the addressing instruction, and recording the destination address number carried by the addressing instruction according to the addressing instruction.
  • the addressing of the motor drive device can be completed by obtaining the rotation state of the motor, avoiding the need to disassemble and disassemble the device for each addressing, realizing the automation and intelligence of the addressing control of the motor drive device, and improving the addressing efficiency.
  • FIG. 5 is a schematic structural diagram of a control device provided by an embodiment of the present invention.
  • the device includes a memory 501 and a processor 502.
  • the processor 502 is configured with a collection of agent components and function components.
  • the functional component set includes multiple functional components, and each functional component is configured with an application interface;
  • the memory 501 may include a volatile memory (volatile memory); the memory 501 may also include a non-volatile memory (non-volatile memory); the memory 501 may also include a combination of the foregoing types of memories.
  • the processor 502 may be a central processing unit (central processing unit, CPU).
  • the processor 502 may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • the PLD may be a complex programmable logic device (complex programmable logic device, CPLD), field programmable logic gate array (field-programmable gate array, FPGA), or any combination thereof.
  • the processor 502 is used to call the program instruction, and when the program instruction is executed, is used to perform the following operations:
  • the address number of the one motor-driven device is registered as the destination address number.
  • the rotation state of the motor satisfies a preset state requirement, including: the rotation state of the motor indicates that the motor rotates.
  • the rotation state of the motor satisfies a preset state requirement, which further includes: the rotation angle of the motor is greater than or equal to a preset angle threshold, or the rotation speed of the motor rotation is greater than or equal to a preset rotation speed threshold.
  • the rotation of the motor is caused by the user directly or indirectly applying an external force to the motor.
  • the motor is used to drive an actuator, wherein the rotation of the motor is caused by a user applying an external force to the motor through the actuator.
  • the execution component includes one or more of a propeller, a wheel, and a track.
  • processor 502 is also used to:
  • the processor 502 determines whether a feedback signal of the addressing instruction sent by one of the plurality of motor drive devices is obtained, it is specifically used to:
  • processor 502 is also used to:
  • an alarm instruction for controlling the alarm device to issue alarm information is sent.
  • processor 502 registers the address number of the one motor drive device as the destination address number, it is also used to:
  • the prompting device is a buzzer, and when the processor 502 sends a prompting command for controlling the prompting device to send prompting information, it is specifically used to:
  • a prompt instruction for controlling the buzzer to emit a prompt sound is sent.
  • the buzzer is provided in the control device or separately.
  • the control device may broadcast the addressing instruction to the plurality of motor driving devices, and determine whether a feedback signal of the addressing instruction sent by one of the plurality of motor driving devices is obtained, Wherein, the feedback signal is sent by one of the plurality of motor driving devices to the control device when it is determined that the rotation state of the motor satisfies the preset state requirements; if it is determined that the plurality of motor driving devices are acquired If a motor drive device in the device sends a feedback signal of the addressing instruction, the address number of the one motor drive device may be registered as the destination address number.
  • the addressing of the motor drive device can be completed by obtaining the rotation state of the motor, avoiding the need to disassemble and disassemble the device for each addressing, realizing the automation and intelligence of the addressing control of the motor drive device, and improving the addressing efficiency.
  • An embodiment of the present invention also provides a movable platform, the movable platform includes: a plurality of motor driving devices and a control device, the plurality of motor driving devices and the control device are connected by a bus,
  • the control device is used to broadcast an addressing instruction to a plurality of motor drive devices, wherein the addressing instruction includes a destination addressing number;
  • the motor driving device is used to obtain the addressing instruction sent by the control device and obtain the rotation state of the motor, and when the obtained rotation state of the motor meets the preset state requirements, send the control device the control device The feedback signal of the addressing instruction, and recording the destination addressing number according to the addressing instruction;
  • the control device is configured to register the address number of the one motor drive device as all if the feedback signal of the addressing instruction sent by one motor drive device of the plurality of motor drive devices is determined to be acquired Addressing number of the description.
  • the rotation state of the motor satisfies a preset state requirement, including: the rotation state of the motor indicates that the motor rotates.
  • the rotation state of the motor satisfies a preset state requirement, which further includes: the rotation angle of the motor is greater than or equal to a preset angle threshold, or the rotation speed of the motor rotation is greater than or equal to a preset rotation speed threshold.
  • the rotation of the motor is caused by the user directly or indirectly applying an external force to the motor.
  • the motor is used to drive an actuator, wherein the rotation of the motor is caused by a user applying an external force to the motor through the actuator.
  • the execution component includes one or more of a propeller, a wheel, and a track.
  • control device is also used to:
  • control device determines whether a feedback signal of the addressing instruction sent by one of the plurality of motor drive devices is obtained, it is specifically used to:
  • motor driving device is also used for:
  • the motor drive device obtains the addressing instruction sent by the control device, it is specifically used for:
  • the addressing instruction sent by the control device is obtained.
  • the motor driving device obtains the rotation state of the motor, it is specifically used to:
  • the rotation state of the motor is determined according to the angle data.
  • the motor driving device obtains the rotation state of the motor, it is specifically used to:
  • the rotation state of the motor is determined according to the induced electrical signal.
  • the motor drive device records the destination address number, it is also used to:
  • the prompting device is a buzzer, and the motor driving device controls the buzzer to emit a prompting sound.
  • the buzzer is provided in the motor driving device, or separately.
  • motor driving device is also used for:
  • the addressing instruction is deleted.
  • control device is also used to:
  • an alarm instruction for controlling the alarm device to issue alarm information is sent.
  • control device registers the address number of the one motor drive device as the destination address number, it is also used to:
  • control device is configured to broadcast an addressing instruction to a plurality of motor drive devices, wherein the addressing instruction includes a destination address number;
  • the motor driving device obtains the addressing instruction sent by the control device and obtains the rotation state of the motor, and sends the addressing instruction to the control device when the obtained rotation state of the motor meets the preset state requirements Feedback signal of the target address and record the destination addressing number according to the addressing instruction; if the control device determines that the feedback signal of the addressing instruction sent by one of the plurality of motor drive devices is acquired , Then the address number of the one motor-driven device is registered as the destination address number.
  • the addressing of the motor drive device can be completed by obtaining the rotation state of the motor, avoiding the need to disassemble and disassemble the device for each addressing, realizing the automation and intelligence of the addressing control of the motor drive device, and improving the addressing efficiency.
  • Embodiments of the present invention also provide a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the method described in the embodiment of the present invention can also be implemented.
  • the device of the embodiment corresponding to the present invention will not be repeated here.
  • the computer-readable storage medium may be an internal storage unit of the device according to any of the foregoing embodiments, such as a hard disk or a memory of the device.
  • the computer-readable storage medium may also be an external storage device of the device, for example, a plug-in hard disk equipped on the device, a smart memory card (Smart Media Card, SMC), and a secure digital (SD) card , Flash card (Flash Card), etc.
  • the computer-readable storage medium may also include both an internal storage unit of the device and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the terminal.
  • the computer-readable storage medium can also be used to temporarily store data that has been or will be output.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Theoretical Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Power Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Control Of Multiple Motors (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

Provided in embodiments of the present invention are a control method, a motor driving apparatus, a control apparatus, and a movable platform. The method comprises: acquiring an addressing command sent by a control apparatus, wherein the addressing command comprises a destination address number; acquiring a rotation state of a motor; and when the acquired rotation state of the motor meets a preset state requirement, sending, to the control apparatus, a feedback signal in response to the addressing command, and storing the destination address number according to the addressing command. In the invention, addressing of motor driving apparatuses can be performed by acquiring rotation states of corresponding motors, such that there is no need to disassemble the apparatuses in respective addressing operations, thereby realizing automatic and intelligent addressing control on motor driving apparatuses.

Description

一种控制方法、电机驱动设备、控制设备及可移动平台Control method, motor drive equipment, control equipment and movable platform 技术领域Technical field
本发明涉及控制技术领域,尤其涉及一种控制方法、电机驱动设备、控制设备及可移动平台。The invention relates to the technical field of control, in particular to a control method, a motor drive device, a control device and a movable platform.
背景技术Background technique
诸如无人汽车、无人机、轮式机器人等多电机终端设备的应用越来越广泛,通常这种多电机终端设备中包括的多个电机驱动设备均挂载在同一总线上,由于各电机驱动设备在总线上的位置等效,所以控制设备在往总线上发送控制指令时,所有的电机驱动设备都能收到控制指令,如果不对电机驱动设备之间进行地址区分,则无法实现控制。The application of multi-motor terminal devices such as unmanned vehicles, drones, wheeled robots, etc. is becoming more and more widespread. Usually, multiple motor drive devices included in such multi-motor terminal devices are mounted on the same bus. The position of the drive device on the bus is equivalent, so when the control device sends a control command to the bus, all motor drive devices can receive the control command. If the address distinction is not made between the motor drive devices, control cannot be achieved.
目前通常采用的方式是在安装电机驱动设备之前,对各电机驱动设备进行编址,然后将编址后的各电机驱动设备装到集成系统的固定物理位置上。然而,这种方式每次编址均需要拆装设备,且安装位置固定,导致操作复杂,用户体验差。因此,如何更有效地对多电机驱动设备的终端进行控制具有十分重要的意义。At present, the usual method is to address each motor drive device before installing the motor drive device, and then install the addressed motor drive devices to a fixed physical location of the integrated system. However, this method requires disassembly and assembly of equipment each time the addressing is performed, and the installation location is fixed, resulting in complicated operations and poor user experience. Therefore, how to control the terminals of multi-motor drive equipment more effectively is of great significance.
发明内容Summary of the invention
本发明实施例提供了一种控制方法、电机驱动设备、控制设备及可移动平台,可实现对电机驱动设备的自动化和智能化编址,提高编址效率。The embodiment of the invention provides a control method, a motor driving device, a control device and a movable platform, which can realize the automation and intelligent addressing of the motor driving device and improve the addressing efficiency.
第一方面,本发明实施例提供了一种电机驱动设备的控制方法,其中,所述电机驱动设备用于控制与其通信连接的电机,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for controlling a motor-driven device, wherein the motor-driven device is used to control a motor connected to the motor, and the method includes:
获取控制设备发送的编址指令,其中,所述编址指令包括目的编址号;Obtain the addressing instruction sent by the control device, where the addressing instruction includes the destination addressing number;
获取所述电机的转动状态;Obtaining the rotation state of the motor;
当所述获取的电机的转动状态满足预设状态要求时,向所述控制设备发送所述编址指令的反馈信号,根据所述编址指令记录所述目的编址号。When the obtained rotation state of the motor meets the preset state requirements, a feedback signal of the addressing instruction is sent to the control device, and the destination addressing number is recorded according to the addressing instruction.
第二方面,本发明实施例提供了一种控制设备的控制方法,其中,所述控制设备与多个电机驱动设备通信连接,所述电机驱动设备用于控制与其通信连接的电机,所述方法包括:In a second aspect, an embodiment of the present invention provides a control method of a control device, wherein the control device is communicatively connected to a plurality of motor driving devices, and the motor driving device is used to control a motor communicatively connected thereto, the method include:
向所述多个电机驱动设备广播编址指令,其中,所述编址指令包括目的编址号;Broadcast an addressing instruction to the plurality of motor drive devices, wherein the addressing instruction includes a destination addressing number;
确定是否获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号,其中,所述反馈信号是所述多个电机驱动设备中的一个电机驱动设备在确定电机的转动状态满足预设状态要求时向所述控制设备发送的;Determining whether a feedback signal of the addressing instruction sent by one of the plurality of motor drive devices is obtained, wherein the feedback signal is that one of the plurality of motor drive devices is determining the motor Is sent to the control device when the rotation state of the device meets the preset state requirements;
若是,则将所述一个电机驱动设备的编址号注册为所述目的编址号。If so, the address number of the one motor-driven device is registered as the destination address number.
第三方面,本发明实施例提供了一种电机驱动设备,其中,所述电机驱动设备用于控制与其通信连接的电机,包括:存储器和处理器,In a third aspect, an embodiment of the present invention provides a motor driving device, wherein the motor driving device is used to control a motor communicatively connected thereto, including: a memory and a processor,
所述存储器,用于存储程序指令;The memory is used to store program instructions;
所述处理器,用于调用所述程序指令,当所述程序指令被执行时,用于执行以下操作:The processor is used to call the program instructions, and when the program instructions are executed, it is used to perform the following operations:
获取控制设备发送的编址指令,其中,所述编址指令包括目的编址号;Obtain the addressing instruction sent by the control device, where the addressing instruction includes the destination addressing number;
获取所述电机的转动状态;Obtaining the rotation state of the motor;
当所述获取的电机的转动状态满足预设状态要求时,向所述控制设备发送所述编址指令的反馈信号,根据所述编址指令记录所述目的编址号。When the obtained rotation state of the motor meets the preset state requirements, a feedback signal of the addressing instruction is sent to the control device, and the destination addressing number is recorded according to the addressing instruction.
第四方面,本发明实施例提供了一种控制设备,其中,所述控制设备与多个电机驱动设备通信连接,所述电机驱动设备用于控制与其通信连接的电机,包括:存储器和处理器,According to a fourth aspect, an embodiment of the present invention provides a control device, wherein the control device is communicatively connected to a plurality of motor driving devices, and the motor driving device is used to control a motor communicatively connected thereto, including: a memory and a processor ,
所述存储器,用于存储程序指令;The memory is used to store program instructions;
所述处理器,用于调用所述程序指令,当所述程序指令被执行时,用于执行以下操作:The processor is used to call the program instructions, and when the program instructions are executed, it is used to perform the following operations:
向所述多个电机驱动设备广播编址指令,其中,所述编址指令包括目的编址号;Broadcast an addressing instruction to the plurality of motor drive devices, wherein the addressing instruction includes a destination addressing number;
确定是否获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号,其中,所述反馈信号是所述多个电机驱动设备中的一个电机驱动设备在确定电机的转动状态满足预设状态要求时向所述控制设备发送的;Determining whether a feedback signal of the addressing instruction sent by one of the plurality of motor drive devices is obtained, wherein the feedback signal is that one of the plurality of motor drive devices is determining the motor Is sent to the control device when the rotation state of the device meets the preset state requirements;
若是,则将所述一个电机驱动设备的编址号注册为所述目的编址号If yes, register the address number of the one motor-driven device as the destination address number
第五方面,本发明实施例提供了一种可移动平台,其特征在于,所述可移 动平台包括:多个电机驱动设备和控制设备,所述多个电机驱动设备和所述控制设备通过总线连接,According to a fifth aspect, an embodiment of the present invention provides a movable platform, wherein the movable platform includes: a plurality of motor driving devices and a control device, and the plurality of motor driving devices and the control device pass a bus connection,
所述控制设备,用于向多个电机驱动设备广播编址指令,其中,所述编址指令包括目的编址号;The control device is used to broadcast an addressing instruction to a plurality of motor drive devices, wherein the addressing instruction includes a destination addressing number;
所述电机驱动设备,用于获取控制设备发送的编址指令,并获取所述电机的转动状态,当所述获取的电机的转动状态满足预设状态要求时,向所述控制设备发送所述编址指令的反馈信号,以及根据所述编址指令记录所述目的编址号;The motor driving device is used to obtain the addressing instruction sent by the control device and obtain the rotation state of the motor, and when the obtained rotation state of the motor meets the preset state requirements, send the control device the control device The feedback signal of the addressing instruction, and recording the destination addressing number according to the addressing instruction;
所述控制设备,用于如果确定获取到所述多个电机驱动设备中的一个电机驱动设备发送的所述编址指令的反馈信号,则将所述一个电机驱动设备的编址号注册为所述目的编址号。The control device is configured to register the address number of the one motor drive device as all if the feedback signal of the addressing instruction sent by one motor drive device of the plurality of motor drive devices is determined to be acquired Addressing number of the description.
第六方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现如上述第一方面或第二方面所述的方法。According to a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the computer program is implemented as described in the first aspect or the second aspect method.
本发明实施例中,电机驱动设备通过获取控制设备发送的编址指令,其中,所述编址指令包括目的编址号,并获取电机的转动状态,当电机的转动状态满足预设状态要求时,向控制设备发送所述编址指令的反馈信号,以及根据所述编址指令记录所述目的编址号,这样通过获取电机的转动状态方式即可以完成电机驱动设备的编址,避免每次编址均需要拆装设备,实现对电机驱动设备的编址控制的自动化和智能化,提高了编址效率。In the embodiment of the present invention, the motor driving device obtains the addressing instruction sent by the control device, wherein the addressing instruction includes the destination address number and obtains the rotation state of the motor, when the rotation state of the motor meets the preset state requirements , Send the feedback signal of the addressing instruction to the control device, and record the destination addressing number according to the addressing instruction, so that the addressing of the motor drive device can be completed by obtaining the rotation state of the motor, avoiding each time All addressing needs disassembly and assembly equipment to realize the automation and intelligence of the addressing control of the motor drive equipment, which improves the addressing efficiency.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some of the present invention. For the embodiment, for those of ordinary skill in the art, without paying any creative labor, other drawings may be obtained based on these drawings.
图1是本发明实施例提供的一种可移动平台的结构示意图;1 is a schematic structural diagram of a movable platform provided by an embodiment of the present invention;
图2是本发明实施例提供的一种电机驱动设备的控制方法的流程示意图;2 is a schematic flowchart of a method for controlling a motor drive device according to an embodiment of the present invention;
图3是本发明实施例提供的一种控制设备的控制方法的流程示意图;3 is a schematic flowchart of a control method of a control device according to an embodiment of the present invention;
图4是本发明实施例提供的一种电机驱动设备的结构示意图;4 is a schematic structural diagram of a motor driving device provided by an embodiment of the present invention;
图5是本发明实施例提供的一种控制设备的结构示意图。5 is a schematic structural diagram of a control device according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be described clearly below with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present invention.
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。The following describes some embodiments of the present invention in detail with reference to the accompanying drawings. In the case of no conflict, the following embodiments and the features in the embodiments can be combined with each other.
本发明实施例提供了一种可移动平台,所述可移动平台包括:多个电机驱动设备和控制设备,所述多个电机驱动设备和所述控制设备通过总线连接,所述多个电机驱动设备和控制设备之间可以进行双向通信。在某些实施例中,所述电机驱动设备可以安装在飞行器、无人机车、无人船、轮式机器人等具备多个电机驱动设备的可移动平台上。在某些实施例中,所述控制设备可以在空间上独立于所述电机驱动设备。An embodiment of the present invention provides a movable platform, the movable platform includes: a plurality of motor drive devices and a control device, the plurality of motor drive devices and the control device are connected by a bus, and the plurality of motor drives Two-way communication is possible between the device and the control device. In some embodiments, the motor-driven device may be installed on a mobile platform equipped with multiple motor-driven devices, such as an aircraft, an unmanned aerial vehicle, an unmanned boat, and a wheeled robot. In some embodiments, the control device may be spatially independent of the motor drive device.
具体请参见图1,图1是本发明实施例提供的一种可移动平台的结构示意图。如图1所示,所述可移动平台包括控制设备11和电机驱动系统12,所述电机驱动系统12包括多个电机驱动设备,例如第一电机驱动设备121、第二电机驱动设备122和第三电机驱动设备123。在某些实施例中,所述控制设备11和所述电机驱动系统12通过总线13建立通信连接。For details, please refer to FIG. 1, which is a schematic structural diagram of a movable platform provided by an embodiment of the present invention. As shown in FIG. 1, the movable platform includes a control device 11 and a motor drive system 12, the motor drive system 12 includes a plurality of motor drive devices, such as a first motor drive device 121, a second motor drive device 122, and a first Three motor drive equipment 123. In some embodiments, the control device 11 and the motor drive system 12 establish a communication connection through the bus 13.
在一个实施例中,所述控制设备11可以向多个电机驱动设备广播编址指令,其中,所述编址指令包括目的编址号。所述电机驱动系统12中的各电机驱动设备在获取到控制设备11发送的该编址指令时,所述电机驱动系统12中的各电机驱动设备可以获取各自对应的电机的转动状态。如果第一电机驱动设备121检测到所述电机的转动状态满足预设状态要求,则第一电机驱动设备121可以将编址号注册为所述编址指令中携带的目的编址号,并向所述控制设备11发送所述编址指令的反馈信号,以通知所述控制设备11所述目的编址号已被第一电机驱动设备121注册。所述控制设备11如果获取到所述第一电机驱动设备121发送的所述编址指令的反馈信号,则可以确定所述第一电机驱动设备121的编址号注册为该目的编址号。同理,所述控制设备11可以继续发 送包括其他编址号的编址指令,用于对所述电机驱动系统12中的第二电机驱动设备122或第三电机驱动设备123进行编址。通过这种实施方式,实现对电机驱动设备自动化和智能化的编址控制,提高了编址效率。In one embodiment, the control device 11 may broadcast addressing instructions to a plurality of motor drive devices, where the addressing instruction includes a destination address number. When each motor drive device in the motor drive system 12 obtains the addressing instruction sent by the control device 11, each motor drive device in the motor drive system 12 may obtain the rotation state of the corresponding motor. If the first motor driving device 121 detects that the rotation state of the motor satisfies the preset state requirement, the first motor driving device 121 may register the address number as the destination address number carried in the addressing instruction, and The control device 11 sends a feedback signal of the addressing instruction to notify the control device 11 that the destination address number has been registered by the first motor driving device 121. If the control device 11 obtains the feedback signal of the addressing instruction sent by the first motor driving device 121, it may determine that the address number of the first motor driving device 121 is registered as the address number for the purpose. Similarly, the control device 11 may continue to send addressing instructions including other addressing numbers for addressing the second motor drive device 122 or the third motor drive device 123 in the motor drive system 12. Through this embodiment, the automatic and intelligent addressing control of the motor drive device is realized, and the addressing efficiency is improved.
下面结合附图2对本发明实施例提供的电机驱动设备的控制方法进行示意性说明。The control method of the motor driving device provided by the embodiment of the present invention will be schematically described below with reference to FIG. 2.
请参见图2,图2是本发明实施例提供的一种电机驱动设备的控制方法的流程示意图,所述方法可以由电机驱动设备执行,所述电机驱动设备可以设置于可移动平台上,其中,所述电机驱动设备可以包括电调,所述可移动平台可以是飞行器、无人机车、无人船、轮式机器人等可移动的智能终端,其中,所述电机驱动设备用于控制与其通信连接的电机。具体地,本发明实施例的所述方法包括如下步骤。Please refer to FIG. 2, which is a schematic flowchart of a method for controlling a motor-driven device according to an embodiment of the present invention. The method may be executed by a motor-driven device, and the motor-driven device may be provided on a movable platform, where , The motor-driven device may include an electronic ESC, and the movable platform may be a mobile intelligent terminal such as an aircraft, an unmanned aerial vehicle, an unmanned boat, a wheeled robot, etc., wherein the motor-driven device is used to control communication with it Connected motor. Specifically, the method in the embodiment of the present invention includes the following steps.
S201:获取控制设备发送的编址指令。S201: Obtain the addressing instruction sent by the control device.
本发明实施例中,电机驱动设备可以获取控制设备发送的编址指令,其中,所述编址指令包括目的编址号。例如,所述电机驱动设备可以获取到控制设备发送的包括目的编址号为1的编址指令。在某些实施例中,所述电机驱动设备和所述控制设备通过同一总线建立通信连接。在某些实施例中,所述编址指令可以通过编址数据包的形式由控制设备通过总线发送;在其他实施例中,所述编址指令也可以采用其他形式由控制设备通过总线发送,本发明实施例不做具体限定。In the embodiment of the present invention, the motor driving device may obtain the addressing instruction sent by the control device, where the addressing instruction includes a destination addressing number. For example, the motor driving device may obtain an addressing instruction including the destination addressing number 1 sent by the control device. In some embodiments, the motor drive device and the control device establish a communication connection through the same bus. In some embodiments, the addressing instruction may be sent by the control device through the bus in the form of addressing data packets; in other embodiments, the addressing instruction may also be sent by the control device through the bus in other forms, The embodiments of the present invention are not specifically limited.
在一个实施例中,所述电机驱动设备在获取控制设备发送的编址指令之前,还可以获取控制设备通过总线发送的开始编址指令,并控制所述电机驱动设备进入编址状态。所述电机驱动设备在进行编址状态之后,可以执行所述获取控制设备发送的编址指令的步骤。In one embodiment, before acquiring the addressing instruction sent by the control device, the motor driving device may also obtain a start addressing instruction sent by the control device through the bus, and control the motor driving device to enter the addressing state. After performing the addressing state, the motor drive device may perform the step of acquiring the addressing instruction sent by the control device.
S202:获取所述电机的转动状态。S202: Obtain the rotation state of the motor.
本发明实施例中,电机驱动设备在获取到控制设备发送的编址指令之后,可以获取所述电机驱动设备的电机的转动状态。In the embodiment of the present invention, after obtaining the addressing instruction sent by the control device, the motor driving device may obtain the rotation state of the motor of the motor driving device.
在一个实施例中,所述电机驱动设备在获取电机的转动状态时,可以通过获取电机转动的角度来确定所述电机的转动状态。In one embodiment, when acquiring the rotation state of the motor, the motor driving device may determine the rotation state of the motor by acquiring the rotation angle of the motor.
在一些实施例中,所述电机驱动设备包括角度传感器,其中,所述角度传 感器用于测量所述电机的转动角度,所述电机驱动设备可以通过获取角度传感器输出的角度数据来确定所述电机的转动状态。In some embodiments, the motor driving device includes an angle sensor, wherein the angle sensor is used to measure the rotation angle of the motor, and the motor driving device may determine the motor by acquiring angle data output by the angle sensor Of rotation.
在一些实施例中,所述电机驱动设备包括电信号传感器,其中,所述电信号传感器用于测量所述电机产生的感应电信号,所述电机驱动设备可以通过获取电信号传感器输出的感应电信号来确定所述电机的转动状态。在某些实施例中,所述感应电信号可以包括感应电动势或者感应电流。In some embodiments, the motor driving device includes an electrical signal sensor, wherein the electrical signal sensor is used to measure an induced electrical signal generated by the motor, and the motor driving device may obtain the induced electrical power output by the electrical signal sensor Signals to determine the rotation state of the motor. In some embodiments, the induced electrical signal may include induced electromotive force or induced current.
S203:当所述获取的电机的转动状态满足预设状态要求时,向所述控制设备发送所述编址指令的反馈信号,根据所述编址指令记录所述目的编址号。S203: When the acquired rotation state of the motor meets a preset state requirement, send a feedback signal of the addressing instruction to the control device, and record the destination addressing number according to the addressing instruction.
本发明实施例中,所述电机驱动设备在获取到所述电机的转动状态之后,可以检测所述电机的转动状态是否满足预设状态要求,当所述电机的转动状态满足所述预设状态要求时,可以向所述控制设备发送所述编址指令的反馈信号,并根据所述编址指令记录所述编址指令中携带的目的编址号,即所述电机驱动设备将所述目的编址号确定为自己的编址号。In the embodiment of the present invention, after acquiring the rotation state of the motor, the motor driving device may detect whether the rotation state of the motor meets a preset state requirement, and when the rotation state of the motor satisfies the preset state When required, the feedback signal of the addressing instruction can be sent to the control device, and the destination address number carried in the addressing instruction can be recorded according to the addressing instruction, that is, the motor drive device can send the destination The address number is determined to be your own address number.
在一个实施例中,所述电机的转动状态满足预设状态要求可以是所述电机驱动设备获取到的电机的转动状态为指示所述电机转动。当所述电机驱动设备检测到所述电机的转动状态为指示所述电机转动时,所述电机驱动设备可以向所述控制设备发送所述编址指令的反馈信号,并根据所述编址指令记录所述编址指令中携带的目的编址号。In one embodiment, the rotation state of the motor meeting the preset state requirement may be that the rotation state of the motor obtained by the motor driving device is to indicate that the motor rotates. When the motor driving device detects that the rotation state of the motor is to indicate that the motor is rotating, the motor driving device may send a feedback signal of the addressing instruction to the control device, and according to the addressing instruction Record the destination addressing number carried in the addressing instruction.
例如,假设所述电机驱动设备获取到的编址指令中包括的目的编址号为1,如果所述电机驱动设备获取到的电机的转动状态为指示所述电机转动,则所述电机驱动设备可以向所述控制设备发送所述编址指令的反馈信号,并记录所述电机驱动设备的编址号为1,即将1确定为自己的编址号。For example, assuming that the addressing instruction included in the addressing instruction obtained by the motor driving device is 1, if the rotation state of the motor obtained by the motor driving device is to indicate that the motor rotates, the motor driving device The feedback signal of the addressing instruction may be sent to the control device, and the addressing number of the motor drive device is recorded as 1, that is, 1 is determined as its own addressing number.
在一个实施例中,所述电机的转动状态满足预设状态要求可以是所述电机驱动设备检测到所述电机转动的角度大于或等于预设角度阈值。当所述电机驱动设备检测到所述电机转动的角度大于或等于预设角度阈值时,所述电机驱动设备可以向所述控制设备发送所述编址指令的反馈信号,并根据所述编址指令记录所述编址指令中携带的目的编址号。In one embodiment, the rotation state of the motor meeting the preset state requirement may be that the motor driving device detects that the rotation angle of the motor is greater than or equal to a preset angle threshold. When the motor driving device detects that the angle of rotation of the motor is greater than or equal to a preset angle threshold, the motor driving device may send a feedback signal of the addressing instruction to the control device, and according to the addressing The instruction records the destination address number carried in the addressing instruction.
例如,假设所述电机驱动设备获取到的编址指令中包括的目的编址号为1,且预设角度阈值为30度,如果所述电机驱动设备检测到电机转动的角度为45度,则可以确定45度大于预设角度阈值30度,因此,所述电机驱动设备 可以向所述控制设备发送所述编址指令的反馈信号,并记录所述电机驱动设备的目的编址号为1。For example, assuming that the addressing instruction included in the addressing instruction obtained by the motor driving device is 1, and the preset angle threshold is 30 degrees, if the motor driving device detects that the motor rotation angle is 45 degrees, then It can be determined that 45 degrees is greater than the preset angle threshold of 30 degrees. Therefore, the motor driving device may send a feedback signal of the addressing instruction to the control device, and record the destination address number of the motor driving device as 1.
在一些实施例中,所述电机的转动状态满足预设状态要求还可以是所述电机转动的转速大于或等于预设转速阈值。当所述电机驱动设备检测到所述电机转动的转速大于或等于预设转速阈值时,所述电机驱动设备可以向所述控制设备发送所述编址指令的反馈信号,并根据所述编址指令记录所述编址指令中携带的目的编址号。In some embodiments, the rotation state of the motor meeting the preset state requirement may also be that the rotation speed of the motor rotation is greater than or equal to a preset rotation speed threshold. When the motor drive device detects that the rotation speed of the motor rotation is greater than or equal to a preset speed threshold, the motor drive device may send a feedback signal of the addressing instruction to the control device, and according to the addressing The instruction records the destination address number carried in the addressing instruction.
例如,假设所述电机驱动设备获取到的编址指令中包括的目的编址号为1,且预设转速阈值为50转/秒,如果所述电机驱动设备检测到所述电机转动的转速为100转/秒,则可以确定100转/秒大于预设转速阈值50转/秒,因此所述电机驱动设备可以向所述控制设备发送所述编址指令的反馈信号,并记录所述电机驱动设备的目的编址号为1。For example, assume that the addressing instruction included in the addressing instruction obtained by the motor drive device is 1, and the preset speed threshold is 50 rpm, if the motor drive device detects that the motor rotates at a speed of 100 revolutions/second, it can be determined that 100 revolutions/second is greater than the preset speed threshold of 50 revolutions/second, so the motor drive device can send a feedback signal of the addressing instruction to the control device and record the motor drive The device's destination address number is 1.
在一些实施例中,所述电机的转动状态满足预设状态要求还可以是所述电机驱动设备获取到的电信号传感器输出的感应信号指示所述电机转动。当检测到所述感应信号指示所述电机转动时,所述电机驱动设备可以向所述控制设备发送所述编址指令的反馈信号,并根据所述编址指令记录所述编址指令中携带的目的编址号。In some embodiments, the rotation state of the motor meeting the preset state requirement may also be an induction signal output by the electric signal sensor obtained by the motor driving device indicating that the motor rotates. When detecting that the induction signal indicates that the motor is rotating, the motor driving device may send a feedback signal of the addressing instruction to the control device, and record the addressing instruction carried in the addressing instruction according to the addressing instruction The address number of the purpose.
在一些实施例中,所述感应信号包括感应电动势,所述电机驱动设备可以根据电信号传感器输出的感应电动势确定所述电机是否转动。在某些实施例中,所述电机驱动设备可以检测所述电信号传感器输出的感应电动势是否大于预设电动势阈值,如果检测到所述感应电动势大于预设电动势阈值,则可以确定所述感应电动势指示所述电机转动。In some embodiments, the induction signal includes an induction electromotive force, and the motor driving device may determine whether the motor rotates according to the induction electromotive force output by the electrical signal sensor. In some embodiments, the motor driving device may detect whether the induced electromotive force output by the electrical signal sensor is greater than a preset electromotive force threshold, and if it is detected that the induced electromotive force is greater than a preset electromotive force threshold, the induced electromotive force may be determined Instruct the motor to rotate.
例如,假设所述电机驱动设备获取到的编址指令中包括的目的编址号为1,且感应信号为感应电动势,预设电动势阈值为E1,如果所述电机驱动设备检测到所述感应电动势为E2,且E2大于预设电动势阈值E1,则可以确定所述感应电动势指示所述电机转动。For example, assume that the addressing instruction included in the addressing instruction obtained by the motor driving device is 1, and the induced signal is induced electromotive force, and the preset electromotive force threshold value is E1. If the motor driven device detects the induced electromotive force Is E2, and E2 is greater than the preset electromotive force threshold E1, it can be determined that the induced electromotive force indicates that the motor rotates.
在一些实施例中,所述感应信号包括感应电流,所述电机驱动设备可以根据电信号传感器输出的感应电流确定所述电机是否转动。在某些实施例中,所述电机驱动设备可以检测所述电信号传感器输出的感应电流是否大于预设电流阈值,如果检测到所述感应电流大于预设电流阈值,则可以确定所述感应电 流指示所述电机转动。In some embodiments, the induction signal includes an induction current, and the motor driving device may determine whether the motor rotates according to the induction current output by the electrical signal sensor. In some embodiments, the motor driving device may detect whether the induced current output by the electrical signal sensor is greater than a preset current threshold, and if it is detected that the induced current is greater than a preset current threshold, the induced current may be determined Instruct the motor to rotate.
例如,假设所述电机驱动设备获取到的编址指令中包括的目的编址号为1,且感应信号为感应电流,预设电流阈值为1A,如果所述电机驱动设备检测到所述感应电流为2A,则可以确定2A大于预设电流阈值1A,因此可以确定所述感应电流指示所述电机转动。For example, suppose that the addressing instruction included in the addressing instruction obtained by the motor driving device is 1, and the induction signal is an induction current, and the preset current threshold is 1A. If the motor driving device detects the induction current If it is 2A, then it can be determined that 2A is greater than a preset current threshold of 1A, so it can be determined that the induced current indicates that the motor is rotating.
在一些实施例中,所述电机驱动设备的电机的转动可以是用户直接或间接地向所述电机施加外力引起的。在某些实施例中,所述电机用于驱动执行部件,其中,所述电机的转动是用户向通过所述执行部件向电机施加外力引起的,例如,用户用手拨动或者转动所述执行部件进而带动所述电机转动。在某些实施例中,所述执行部件包括螺旋桨、车轮、履带中的一种或多种。In some embodiments, the rotation of the motor of the motor-driven device may be caused by a user directly or indirectly applying an external force to the motor. In some embodiments, the motor is used to drive the execution component, wherein the rotation of the motor is caused by the user applying an external force to the motor through the execution component, for example, the user toggles or rotates the execution The component in turn drives the motor to rotate. In some embodiments, the execution component includes one or more of a propeller, a wheel, and a track.
在一些实施例中,所述电机驱动设备上可以设置用于控制电机启动的开关,用户可以通过拨动所述开关开启所述电机,以驱动所述执行部件。在某些实施例中,所述电机驱动设备的用户界面上还可以设置用于开启电机的图标或按钮,用户可以通过按压所述用户界面上的图标或按钮来开启所述电机,以驱动所述执行部件。In some embodiments, a switch for controlling the start of the motor may be provided on the motor driving device, and the user may turn on the motor by toggling the switch to drive the execution component. In some embodiments, the user interface of the motor driving device may also be provided with an icon or button for turning on the motor, and the user may turn on the motor by pressing the icon or button on the user interface to drive the motor. Described executive component.
例如,假设所述执行部件为车轮,所述电机驱动设备上设置了用于控制电机启动的开关,如果用户手动按压所述用于控制电机启动的开关,则可以开启所述开关对应的车轮。For example, assuming that the execution component is a wheel, the motor driving device is provided with a switch for controlling the start of the motor. If the user manually presses the switch for controlling the start of the motor, the wheel corresponding to the switch can be turned on.
在一个实施例中,所述电机驱动设备在记录所述编址指令中包括的目标编址号之后,还可以通过总线发送用于控制提示装置发出提示信息的提示指令。在某些实施例中,所述提示装置可以为蜂鸣器,所述电机驱动设备可以控制所述蜂鸣器发出提示声音。在某些实施例中,所述蜂鸣器可以设置在所述电机驱动设备上;或者单独设置于与所述电机驱动设备建立通信连接的设备上,本发明实施例不做具体限定。In one embodiment, after recording the target addressing number included in the addressing instruction, the motor driving device may also send a prompting instruction for controlling the prompting device to issue prompting information through the bus. In some embodiments, the prompting device may be a buzzer, and the motor driving device may control the buzzer to emit a prompting sound. In some embodiments, the buzzer may be provided on the motor-driven device; or separately provided on a device that establishes a communication connection with the motor-driven device, which is not specifically limited in the embodiments of the present invention.
在一个实施例中,如果所述电机驱动设备检测到所述电机的转动状态不满足预设状态要求,则可以删除所述编址指令。In one embodiment, if the motor drive device detects that the rotation state of the motor does not meet the preset state requirements, the addressing instruction may be deleted.
在一个实施例中,所述电机驱动设备在进入编址状态之后,可以获取所述电机驱动设备所驱动的电机的转动状态如果所述电机驱动设备所驱动的电机的转动状态满足预设状态要求,则可以检测所述总线上是否存在编址号,如果检测到所述总线上存在编址号,则可以确定所述编址号已被编址。所述电机驱 动设备可以根据所述已存在的编址号确定目的编址号,并将所述电机驱动设备的编址号注册为所述目的编址号,以及通过所述总线发送所述目的编址号的反馈信号,以通知控制设备所述电机驱动设备的编址号已注册为所述目的编址号。In one embodiment, after the motor drive device enters the addressing state, it can obtain the rotation state of the motor driven by the motor drive device if the rotation state of the motor driven by the motor drive device meets the preset state requirements , It can be detected whether an address number exists on the bus, and if an address number is detected on the bus, it can be determined that the address number has been addressed. The motor drive device may determine the destination address number according to the existing address number, register the address number of the motor drive device as the destination address number, and send the destination through the bus The feedback signal of the address number notifies the control device that the address number of the motor drive device has been registered as the destination address number.
例如,假设所述电机驱动设备在进入编址状态之后,获取到所述电机驱动设备所驱动的电机的转动状态满足预设状态要求,则可以检测所述总线上是否存在编址号,如果检测到所述总线上存在编址号1,则可以确定所述编址号1已被编址。所述电机驱动设备可以根据所述已存在的编址号1确定目的编址号2,并将所述电机驱动设备的编址号注册为所述目的编址号2,以及通过所述总线发送所述目的编址号2的反馈信号。For example, assuming that after the motor drive device enters the addressing state and obtains that the rotation state of the motor driven by the motor drive device satisfies the preset state requirements, it may be detected whether the address number exists on the bus. When there is an address number 1 on the bus, it can be determined that the address number 1 has been addressed. The motor drive device may determine the destination address number 2 according to the existing address number 1, and register the address number of the motor drive device as the destination address number 2, and send through the bus The feedback signal of the destination address number 2.
本发明实施例中,电机驱动设备可以在获取控制设备发送的编址指令时,获取电机的转动状态,当所述获取的电机的转动状态满足预设状态要求时,向所述控制设备发送所述编址指令的反馈信号,并根据所述编址指令记录所述编址指令携带的目的编址号。通过获取电机的转动状态方式即可以完成电机驱动设备的编址,避免每次编址均需要拆装设备,实现对电机驱动设备的编址控制的自动化和智能化,提高了编址效率。In the embodiment of the present invention, the motor driving device may obtain the rotation state of the motor when acquiring the addressing instruction sent by the control device, and when the obtained rotation state of the motor meets the preset state requirements, send the Describing the feedback signal of the addressing instruction, and recording the destination address number carried by the addressing instruction according to the addressing instruction. The addressing of the motor drive device can be completed by obtaining the rotation state of the motor, avoiding the need to disassemble and disassemble the device for each addressing, realizing the automation and intelligence of the addressing control of the motor drive device, and improving the addressing efficiency.
下面结合附图3对本发明实施例提供的控制设备的控制方法进行示意性说明。The control method of the control device provided by the embodiment of the present invention will be schematically described below with reference to FIG. 3.
请参见图3,图3是本发明实施例提供的一种控制设备的控制方法的流程示意图,所述方法可以由控制设备执行,所述控制设备可以设置于可移动平台上,其中,所述可移动平台可以是飞行器、无人机车、无人船、轮式机器人等可移动的智能终端。所述控制设备可以与多个电机驱动设备通信连接,所述电机驱动设备用于控制与其通信连接的电机。具体地,本发明实施例的所述方法包括如下步骤。Please refer to FIG. 3, which is a schematic flowchart of a method for controlling a control device according to an embodiment of the present invention. The method may be executed by a control device, and the control device may be provided on a movable platform. The movable platform may be a mobile intelligent terminal such as an aircraft, an unmanned aerial vehicle, an unmanned boat, a wheeled robot and the like. The control device may be communicatively connected to a plurality of motor driving devices, and the motor driving device is used to control the motor communicatively connected thereto. Specifically, the method in the embodiment of the present invention includes the following steps.
S301:向多个电机驱动设备广播编址指令。S301: Broadcast addressing instructions to multiple motor drive devices.
本发明实施例中,控制设备可以通过总线向多个电机驱动设备广播编址指令,其中,所述编址指令包括目的编址号。例如,假设所述编址指令包括的目的编址号为1,则所述控制设备可以通过总线向多个电机驱动设备广播编址号为1的编址指令。In the embodiment of the present invention, the control device may broadcast an addressing instruction to a plurality of motor driving devices through a bus, where the addressing instruction includes a destination addressing number. For example, assuming that the addressing instruction included in the addressing instruction is 1, the control device may broadcast the addressing instruction with the addressing number 1 to multiple motor drive devices through the bus.
在一个实施例中,所述控制设备在向多个电机驱动设备广播编址指令之前,可以向所述多个电机驱动设备广播开始编址指令,所述开始编址指令用于指示所述电机驱动设备进入编址状态。In one embodiment, the control device may broadcast a start addressing instruction to the plurality of motor drive devices before broadcasting the addressing instruction to the multiple motor drive devices, the start addressing command is used to instruct the motor The drive device enters the addressing state.
S302:确定是否获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号,其中,所述反馈信号是所述多个电机驱动设备中的一个电机驱动设备在确定电机的转动状态满足预设状态要求时向所述控制设备发送的。S302: Determine whether a feedback signal of the addressing instruction sent by one of the plurality of motor drive devices is obtained, wherein the feedback signal is one of the plurality of motor drive devices. Sent to the control device when it is determined that the rotation state of the motor meets the requirements of the preset state.
本发明实施例中,控制设备可以在向多个电机驱动设备广播编址指令之后,确定是否获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号,其中,所述反馈信号是所述多个电机驱动设备中的一个电机驱动设备在确定电机的转动状态满足预设状态要求时向所述控制设备发送的。在某些实施例中,所述多个电机驱动设备中的一个电机驱动设备是所述多个电机驱动设备中的任意一个。In the embodiment of the present invention, after broadcasting the addressing instruction to a plurality of motor driving devices, the control device may determine whether a feedback signal of the addressing instruction sent by one of the plurality of motor driving devices is obtained. The feedback signal is sent to the control device when one of the plurality of motor drive devices determines that the rotation state of the motor satisfies the preset state requirements. In some embodiments, one motor driving device of the plurality of motor driving devices is any one of the plurality of motor driving devices.
在一个实施例中,所述电机的转动状态满足预设状态要求,包括:所述电机的转动状态指示所述电机转动。In one embodiment, the rotation state of the motor meets a preset state requirement, including: the rotation state of the motor indicates that the motor rotates.
在一个实施例中,所述电机的转动状态满足预设状态要求,还包括:所述电机转动的角度大于或等于预设角度阈值,或者所述电机转动的转速大于或等于预设转速阈值。In one embodiment, the rotation state of the motor satisfies a preset state requirement, and further includes: the rotation angle of the motor is greater than or equal to a preset angle threshold, or the rotation speed of the motor rotation is greater than or equal to a preset rotation speed threshold.
在一个实施例中,所述电机的转动是用户直接或者间接地向所述电机施加外力引起的。在某些实施例中,所述电机用于驱动执行部件,其中,所述电机的转动是用户向通过所述执行部件向电机施加外力引起的。在某些实施例中,所述执行部件包括螺旋桨、车轮、履带中的一种或多种。In one embodiment, the rotation of the motor is caused by a user directly or indirectly applying an external force to the motor. In some embodiments, the motor is used to drive an actuator, wherein the rotation of the motor is caused by a user applying an external force to the motor through the actuator. In some embodiments, the execution component includes one or more of a propeller, a wheel, and a track.
在一个实施例中,所述控制设备在向多个电机驱动设备广播携带目的编址号的编址指令时,可以向用户界面发送提示信息,用户界面上输出所述目的编址号对应的提示信息,其中,所述提示信息用于指示用户向多个与电机驱动设备通信连接的电机中的目标电机直接或者间接地向所述电机施加外力。通过这种实施方式,可以保证用户将每个电机驱动设备编址为正确的目的编址号。In one embodiment, when the addressing instruction carrying the destination address number is broadcast to a plurality of motor drive devices, the control device may send a prompt message to the user interface, and the user interface outputs a prompt corresponding to the destination address number Information, wherein the prompt information is used to instruct the user to directly or indirectly apply an external force to the target motor among the plurality of motors communicatively connected to the motor drive device. Through this implementation, it can be ensured that the user addresses each motor drive device to the correct destination address number.
以可移动平台为遥控小车来进行示意性说明,若遥控小车有4个电机驱动设备和与电机驱动设备通信连接的4个电机,所述4个电机分别驱动小车机头左右的2个轮子和机尾左右的2个轮子。在正常控制逻辑中,这4个轮子对应 的电机驱动设备的目的编址号应该分别为1、2、3和4。控制设备在向这4个电机驱动设备广播编制号为1的编址指令时,所述用户界面可以显示与编址号1对应的提示信息,例如,用户界面显示“请转动小车机头左边的轮子”,当用户转动小车机头左边的轮子带动对应的目标电机转动时,驱动小车机头左边的轮子的目标电机的电机驱动设备的编址号被确定为1。通过这种方式,可以提示用户去对指定的电机施加外力,将指定的目的编址号编址给指定的电机驱动设备,提高编址的成功率。Taking a movable platform as a remote control car for a schematic description, if the remote control car has 4 motor-driven devices and 4 motors communicatively connected to the motor-driven device, the 4 motors respectively drive the 2 wheels and 2 wheels on the left and right of the tail. In the normal control logic, the destination address numbers of the motor drive devices corresponding to these four wheels should be 1, 2, 3, and 4, respectively. When the control device broadcasts the addressing instruction with the number 1 to the four motor-driven devices, the user interface may display a prompt message corresponding to the address number 1, for example, the user interface displays "Please turn the left side of the carriage head "Wheel", when the user turns the wheel on the left side of the carriage head to drive the corresponding target motor to rotate, the address number of the motor drive device that drives the target motor on the wheel on the left side of the carriage head is determined to be 1. In this way, the user can be prompted to apply external force to the designated motor, address the designated destination address number to the designated motor drive device, and increase the success rate of addressing.
在一个实施例中,所述控制设备可以在向所述多个电机驱动设备广播开始编址指令,以指示所述电机驱动设备进入编址状态之后,确定是否获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号。In one embodiment, the control device may broadcast a start addressing instruction to the multiple motor drive devices to instruct the motor drive device to enter the addressing state, and then determine whether the multiple motor drive devices are acquired One of the motor drive devices sends the feedback signal of the addressing instruction.
S303:若是,则将所述一个电机驱动设备的编址号注册为所述目的编址号。S303: If yes, register the address number of the one motor drive device as the destination address number.
本发明实施例中,控制设备如果获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号,则可以将所述一个电机驱动设备的编址号注册为所述目的编址号。在某些实施例中,所述控制设备在将所述一个电机驱动设备的编址号注册为所述目的编址号之后,可以继续发送携带其他编址号的编址指令,以便对其他未注册编址号的电机驱动设备进行编址。In the embodiment of the present invention, if the control device obtains a feedback signal of the addressing instruction sent by one of the plurality of motor drive devices, the control device may register the address number of the one motor drive device as all Addressing number of the description. In some embodiments, after registering the address number of the one motor drive device as the destination address number, the control device may continue to send addressing instructions carrying other address numbers to Register the address number of the motor drive device for addressing.
例如,假设所述控制设备向多个电机驱动设备广播的编址指令中携带的目的编址号为1,如果控制设备获取到所述多个电机驱动设备中的所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号,则可以将所述所述多个电机驱动设备中的一个电机驱动设备的编址号1注册为目的编址号,即确定所述多个电机驱动设备中的一个电机驱动设备的编址号为1。For example, it is assumed that the destination address number carried in the addressing instruction broadcast by the control device to multiple motor drive devices is 1, if the control device obtains the multiple motor drive devices among the multiple motor drive devices If a motor drive device sends the feedback signal of the addressing instruction, the address number 1 of one of the plurality of motor drive devices can be registered as the destination address number, that is, the multiple The address number of one of the motor-driven devices is 1.
在一个实施例中,控制设备如果确定未接收到所述一个所述电机驱动设备响应的反馈信号,则可以发送用于控制告警装置发出告警信息的告警指令,以提示用户所述控制设备未接收到电机驱动设备响应的反馈信号。In one embodiment, if the control device determines that the feedback signal responded by the one of the motor driving devices is not received, it may send an alarm instruction for controlling the alarm device to issue alarm information to remind the user that the control device has not received The feedback signal to the motor drive device response.
在一个实施例中,所述控制设备可以在将所述一个电机驱动设备的编址号注册为所述目的编址号之后,可以发送用于控制提示装置发出提示信息的提示指令,以提示用户所述目的编址号已被注册。In one embodiment, after registering the address number of the one motor drive device as the destination address number, the control device may send a prompt instruction for controlling the prompt device to issue a prompt message to prompt the user The destination address number has been registered.
在一些实施例中,所述提示装置为蜂鸣器,所述控制设备在发送用于控制提示装置发出提示信息的提示指令时,可以发送用于控制所述蜂鸣器发出提示声音的提示指令。在某些实施例中,所述蜂鸣器设于所述控制设备,或者单独 设置,即单独设置于与所述控制设备建立通信连接的设备上。In some embodiments, the prompting device is a buzzer, and when the control device sends a prompting command for controlling the prompting device to issue prompting information, it may send a prompting command for controlling the buzzer to emit a prompting sound . In some embodiments, the buzzer is provided on the control device, or separately, that is, on the device that establishes a communication connection with the control device.
本发明实施例中,控制设备可以向所述多个电机驱动设备广播编址指令,并确定是否获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号,其中,所述反馈信号是所述多个电机驱动设备中的一个电机驱动设备在确定电机的转动状态满足预设状态要求时向所述控制设备发送的;若确定获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号,则可以将所述一个电机驱动设备的编址号注册为所述目的编址号。通过获取电机的转动状态方式即可以完成电机驱动设备的编址,避免每次编址均需要拆装设备,实现对电机驱动设备的编址控制的自动化和智能化,提高了编址效率。In the embodiment of the present invention, the control device may broadcast the addressing instruction to the plurality of motor driving devices, and determine whether a feedback signal of the addressing instruction sent by one of the plurality of motor driving devices is obtained, Wherein, the feedback signal is sent by one of the plurality of motor driving devices to the control device when it is determined that the rotation state of the motor satisfies the preset state requirements; if it is determined that the plurality of motor driving devices are acquired If a motor drive device in the device sends a feedback signal of the addressing instruction, the address number of the one motor drive device may be registered as the destination address number. The addressing of the motor drive device can be completed by obtaining the rotation state of the motor, avoiding the need to disassemble and disassemble the device for each addressing, realizing the automation and intelligence of the addressing control of the motor drive device, and improving the addressing efficiency.
请参见图4,图4是本发明实施例提供的一种电机驱动设备的结构示意图,所述设备包括存储器401和处理器402,所述处理器402上配置有代理组件和功能组件集合,所述功能组件集合包括多个功能组件,并配置为各个功能组件配置有应用接口;Please refer to FIG. 4. FIG. 4 is a schematic structural diagram of a motor driving device according to an embodiment of the present invention. The device includes a memory 401 and a processor 402. The processor 402 is configured with a proxy component and a set of functional components. The functional component set includes multiple functional components, and each functional component is configured with an application interface;
所述存储器401可以包括易失性存储器(volatile memory);存储器401也可以包括非易失性存储器(non-volatile memory);存储器401还可以包括上述种类的存储器的组合。所述处理器402可以是中央处理器(central processing unit,CPU)。所述处理器402还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA)或其任意组合。The memory 401 may include a volatile memory (volatile memory); the memory 401 may also include a non-volatile memory (non-volatile memory); the memory 401 may also include a combination of the foregoing types of memories. The processor 402 may be a central processing unit (central processing unit, CPU). The processor 402 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (complex programmable logic device, CPLD), field programmable logic gate array (field-programmable gate array, FPGA), or any combination thereof.
所述处理器402,用于调用所述程序指令,当所述程序指令被执行时,用于执行以下操作:The processor 402 is used to call the program instruction, and when the program instruction is executed, is used to perform the following operations:
获取控制设备发送的编址指令,其中,所述编址指令包括目的编址号;Obtain the addressing instruction sent by the control device, where the addressing instruction includes the destination addressing number;
获取所述电机的转动状态;Obtaining the rotation state of the motor;
当所述获取的电机的转动状态满足预设状态要求时,向所述控制设备发送所述编址指令的反馈信号,根据所述编址指令记录所述目的编址号。When the obtained rotation state of the motor meets the preset state requirements, a feedback signal of the addressing instruction is sent to the control device, and the destination addressing number is recorded according to the addressing instruction.
进一步地,所述电机的转动状态满足预设状态要求,包括:所述电机的转 动状态指示所述电机转动。Further, the rotation state of the motor satisfies a preset state requirement, including: the rotation state of the motor indicates that the motor rotates.
进一步地,所述电机的转动状态满足预设状态要求,还包括:所述电机转动的角度大于或等于预设角度阈值,或者所述电机转动的转速大于或等于预设转速阈值。Further, the rotation state of the motor satisfies a preset state requirement, which further includes: the rotation angle of the motor is greater than or equal to a preset angle threshold, or the rotation speed of the motor rotation is greater than or equal to a preset rotation speed threshold.
进一步地,所述电机的转动是用户直接或者间接地向所述电机施加外力引起的。Further, the rotation of the motor is caused by the user directly or indirectly applying an external force to the motor.
进一步地,所述电机用于驱动执行部件,其中,所述电机的转动是用户向通过所述执行部件向电机施加外力引起的。Further, the motor is used to drive an actuator, wherein the rotation of the motor is caused by a user applying an external force to the motor through the actuator.
进一步地,所述执行部件包括螺旋桨、车轮、履带中的一种或多种。Further, the execution component includes one or more of a propeller, a wheel, and a track.
进一步地,所述处理器402还用于:Further, the processor 402 is also used to:
获取控制设备发送的开始编址指令,并控制所述电机驱动设备进入编址状态;Obtain the start addressing instruction sent by the control device, and control the motor drive device to enter the addressing state;
所述处理器在获取控制设备发送的编址指令时,具体用于:When the processor obtains the addressing instruction sent by the control device, it is specifically used to:
在进入所述编址状态之后,获取控制设备发送的编址指令。After entering the addressing state, the addressing instruction sent by the control device is obtained.
进一步地,所述处理器402获取所述电机的转动状态时,具体用于:Further, when the processor 402 obtains the rotation state of the motor, it is specifically used to:
获取角度传感器输出的角度数据,其中,所述角度传感器用于测量所述电机的转动角度;Acquiring angle data output by an angle sensor, wherein the angle sensor is used to measure the rotation angle of the motor;
根据所述角度数据确定所述电机的转动状态。The rotation state of the motor is determined according to the angle data.
进一步地,所述处理器402获取所述电机的转动状态时,具体用于:Further, when the processor 402 obtains the rotation state of the motor, it is specifically used to:
获取电信号传感器输出的感应电信号,其中,所述电信号传感器用于测量所述电机产生的感应电信号;Acquiring an induced electrical signal output by an electrical signal sensor, wherein the electrical signal sensor is used to measure the induced electrical signal generated by the motor;
根据所述感应电信号确定所述电机的转动状态。The rotation state of the motor is determined according to the induced electrical signal.
进一步地,所述处理器402记录所述目的编址号之后,还用于:Further, after the processor 402 records the destination address number, it is also used to:
发送用于控制提示装置发出提示信息的提示指令。Send a prompting command for controlling the prompting device to send out prompting information.
进一步地,所述提示装置为蜂鸣器,电机驱动设备控制所述蜂鸣器发出提示声音。Further, the prompting device is a buzzer, and the motor driving device controls the buzzer to emit a prompting sound.
进一步地,所述蜂鸣器设于所述电机驱动设备,或者单独设置。Further, the buzzer is provided in the motor driving device, or separately.
进一步地,所述处理器402还用于:Further, the processor 402 is also used to:
当所述获取的电机的转动状态不满足预设状态要求时,则删除所述编址指令When the acquired rotation state of the motor does not meet the requirements of the preset state, the addressing instruction is deleted
本发明实施例中,电机驱动设备可以在获取控制设备发送的编址指令时,获取电机的转动状态,当所述获取的电机的转动状态满足预设状态要求时,向所述控制设备发送所述编址指令的反馈信号,并根据所述编址指令记录所述编址指令携带的目的编址号。通过获取电机的转动状态方式即可以完成电机驱动设备的编址,避免每次编址均需要拆装设备,实现对电机驱动设备的编址控制的自动化和智能化,提高了编址效率。In the embodiment of the present invention, the motor driving device may obtain the rotation state of the motor when acquiring the addressing instruction sent by the control device, and when the obtained rotation state of the motor meets the preset state requirements, send the Describing the feedback signal of the addressing instruction, and recording the destination address number carried by the addressing instruction according to the addressing instruction. The addressing of the motor drive device can be completed by obtaining the rotation state of the motor, avoiding the need to disassemble and disassemble the device for each addressing, realizing the automation and intelligence of the addressing control of the motor drive device, and improving the addressing efficiency.
请参见图5,图5是本发明实施例提供的一种控制设备的结构示意图,所述设备包括存储器501和处理器502,所述处理器502上配置有代理组件和功能组件集合,所述功能组件集合包括多个功能组件,并配置为各个功能组件配置有应用接口;Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of a control device provided by an embodiment of the present invention. The device includes a memory 501 and a processor 502. The processor 502 is configured with a collection of agent components and function components. The functional component set includes multiple functional components, and each functional component is configured with an application interface;
所述存储器501可以包括易失性存储器(volatile memory);存储器501也可以包括非易失性存储器(non-volatile memory);存储器501还可以包括上述种类的存储器的组合。所述处理器502可以是中央处理器(central processing unit,CPU)。所述处理器502还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA)或其任意组合。The memory 501 may include a volatile memory (volatile memory); the memory 501 may also include a non-volatile memory (non-volatile memory); the memory 501 may also include a combination of the foregoing types of memories. The processor 502 may be a central processing unit (central processing unit, CPU). The processor 502 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (complex programmable logic device, CPLD), field programmable logic gate array (field-programmable gate array, FPGA), or any combination thereof.
所述处理器502,用于调用所述程序指令,当所述程序指令被执行时,用于执行以下操作:The processor 502 is used to call the program instruction, and when the program instruction is executed, is used to perform the following operations:
向所述多个电机驱动设备广播编址指令,其中,所述编址指令包括目的编址号;Broadcast an addressing instruction to the plurality of motor drive devices, wherein the addressing instruction includes a destination addressing number;
确定是否获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号,其中,所述反馈信号是所述多个电机驱动设备中的一个电机驱动设备在确定电机的转动状态满足预设状态要求时向所述控制设备发送的;Determining whether a feedback signal of the addressing instruction sent by one of the plurality of motor drive devices is obtained, wherein the feedback signal is that one of the plurality of motor drive devices is determining the motor Is sent to the control device when the rotation state of the device meets the preset state requirements;
若是,则将所述一个电机驱动设备的编址号注册为所述目的编址号。If so, the address number of the one motor-driven device is registered as the destination address number.
进一步地,所述电机的转动状态满足预设状态要求,包括:所述电机的转动状态指示所述电机转动。Further, the rotation state of the motor satisfies a preset state requirement, including: the rotation state of the motor indicates that the motor rotates.
进一步地,所述电机的转动状态满足预设状态要求,还包括:所述电机转动的角度大于或等于预设角度阈值,或者所述电机转动的转速大于或等于预设转速阈值。Further, the rotation state of the motor satisfies a preset state requirement, which further includes: the rotation angle of the motor is greater than or equal to a preset angle threshold, or the rotation speed of the motor rotation is greater than or equal to a preset rotation speed threshold.
进一步地,所述电机的转动是用户直接或者间接地向所述电机施加外力引起的。Further, the rotation of the motor is caused by the user directly or indirectly applying an external force to the motor.
进一步地,所述电机用于驱动执行部件,其中,所述电机的转动是用户向通过所述执行部件向电机施加外力引起的。Further, the motor is used to drive an actuator, wherein the rotation of the motor is caused by a user applying an external force to the motor through the actuator.
进一步地,所述执行部件包括螺旋桨、车轮、履带中的一种或多种。Further, the execution component includes one or more of a propeller, a wheel, and a track.
进一步地,所述处理器502还用于:Further, the processor 502 is also used to:
向所述多个电机驱动设备广播开始编址指令,所述开始编址指令用于指示所述电机驱动设备进入编址状态;Broadcasting a start addressing instruction to the plurality of motor drive devices, the start addressing command used to instruct the motor drive device to enter an addressing state;
所述处理器502确定是否获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号时,具体用于:When the processor 502 determines whether a feedback signal of the addressing instruction sent by one of the plurality of motor drive devices is obtained, it is specifically used to:
在广播所述开始编址指令之后,确定是否获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号。After broadcasting the start addressing instruction, it is determined whether a feedback signal of the addressing instruction sent by one of the plurality of motor driving devices is obtained.
进一步地,所述处理器502还用于:Further, the processor 502 is also used to:
若确定未接收到所述一个所述电机驱动设备响应的反馈信号,则发送用于控制告警装置发出告警信息的告警指令。If it is determined that the feedback signal responded by the one of the motor driving devices is not received, an alarm instruction for controlling the alarm device to issue alarm information is sent.
进一步地,所述处理器502将所述一个电机驱动设备的编址号注册为所述目的编址号之后,还用于:Further, after the processor 502 registers the address number of the one motor drive device as the destination address number, it is also used to:
发送用于控制提示装置发出提示信息的提示指令。Send a prompting command for controlling the prompting device to send out prompting information.
进一步地,所述提示装置为蜂鸣器,所述处理器502发送用于控制提示装置发出提示信息的提示指令时,具体用于:Further, the prompting device is a buzzer, and when the processor 502 sends a prompting command for controlling the prompting device to send prompting information, it is specifically used to:
发送用于控制所述蜂鸣器发出提示声音的提示指令。A prompt instruction for controlling the buzzer to emit a prompt sound is sent.
进一步地,所述蜂鸣器设于所述控制设备,或者单独设置。Further, the buzzer is provided in the control device or separately.
本发明实施例中,控制设备可以向所述多个电机驱动设备广播编址指令,并确定是否获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号,其中,所述反馈信号是所述多个电机驱动设备中的一个电机驱动设备在确定电机的转动状态满足预设状态要求时向所述控制设备发送的;若确定获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址 指令的反馈信号,则可以将所述一个电机驱动设备的编址号注册为所述目的编址号。通过获取电机的转动状态方式即可以完成电机驱动设备的编址,避免每次编址均需要拆装设备,实现对电机驱动设备的编址控制的自动化和智能化,提高了编址效率。In the embodiment of the present invention, the control device may broadcast the addressing instruction to the plurality of motor driving devices, and determine whether a feedback signal of the addressing instruction sent by one of the plurality of motor driving devices is obtained, Wherein, the feedback signal is sent by one of the plurality of motor driving devices to the control device when it is determined that the rotation state of the motor satisfies the preset state requirements; if it is determined that the plurality of motor driving devices are acquired If a motor drive device in the device sends a feedback signal of the addressing instruction, the address number of the one motor drive device may be registered as the destination address number. The addressing of the motor drive device can be completed by obtaining the rotation state of the motor, avoiding the need to disassemble and disassemble the device for each addressing, realizing the automation and intelligence of the addressing control of the motor drive device, and improving the addressing efficiency.
本发明实施例还提供了一种可移动平台,所述可移动平台包括:多个电机驱动设备和控制设备,所述多个电机驱动设备和所述控制设备通过总线连接,An embodiment of the present invention also provides a movable platform, the movable platform includes: a plurality of motor driving devices and a control device, the plurality of motor driving devices and the control device are connected by a bus,
所述控制设备,用于向多个电机驱动设备广播编址指令,其中,所述编址指令包括目的编址号;The control device is used to broadcast an addressing instruction to a plurality of motor drive devices, wherein the addressing instruction includes a destination addressing number;
所述电机驱动设备,用于获取控制设备发送的编址指令,并获取所述电机的转动状态,当所述获取的电机的转动状态满足预设状态要求时,向所述控制设备发送所述编址指令的反馈信号,以及根据所述编址指令记录所述目的编址号;The motor driving device is used to obtain the addressing instruction sent by the control device and obtain the rotation state of the motor, and when the obtained rotation state of the motor meets the preset state requirements, send the control device the control device The feedback signal of the addressing instruction, and recording the destination addressing number according to the addressing instruction;
所述控制设备,用于如果确定获取到所述多个电机驱动设备中的一个电机驱动设备发送的所述编址指令的反馈信号,则将所述一个电机驱动设备的编址号注册为所述目的编址号。The control device is configured to register the address number of the one motor drive device as all if the feedback signal of the addressing instruction sent by one motor drive device of the plurality of motor drive devices is determined to be acquired Addressing number of the description.
进一步地,所述电机的转动状态满足预设状态要求,包括:所述电机的转动状态指示所述电机转动。Further, the rotation state of the motor satisfies a preset state requirement, including: the rotation state of the motor indicates that the motor rotates.
进一步地,所述电机的转动状态满足预设状态要求,还包括:所述电机转动的角度大于或等于预设角度阈值,或者所述电机转动的转速大于或等于预设转速阈值。Further, the rotation state of the motor satisfies a preset state requirement, which further includes: the rotation angle of the motor is greater than or equal to a preset angle threshold, or the rotation speed of the motor rotation is greater than or equal to a preset rotation speed threshold.
进一步地,所述电机的转动是用户直接或者间接地向所述电机施加外力引起的。Further, the rotation of the motor is caused by the user directly or indirectly applying an external force to the motor.
进一步地,所述电机用于驱动执行部件,其中,所述电机的转动是用户向通过所述执行部件向电机施加外力引起的。Further, the motor is used to drive an actuator, wherein the rotation of the motor is caused by a user applying an external force to the motor through the actuator.
进一步地,所述执行部件包括螺旋桨、车轮、履带中的一种或多种。Further, the execution component includes one or more of a propeller, a wheel, and a track.
进一步地,所述控制设备还用于:Further, the control device is also used to:
向所述多个电机驱动设备广播开始编址指令,所述开始编址指令用于指示所述电机驱动设备进入编址状态;Broadcasting a start addressing instruction to the plurality of motor drive devices, the start addressing command used to instruct the motor drive device to enter an addressing state;
所述控制设备在确定是否获取到所述多个电机驱动设备中的一个电机驱 动设备发送所述编址指令的反馈信号时,具体用于:When the control device determines whether a feedback signal of the addressing instruction sent by one of the plurality of motor drive devices is obtained, it is specifically used to:
在广播所述开始编址指令之后,确定是否获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号。After broadcasting the start addressing instruction, it is determined whether a feedback signal of the addressing instruction sent by one of the plurality of motor driving devices is obtained.
进一步地,所述电机驱动设备还用于:Further, the motor driving device is also used for:
获取控制设备发送的开始编址指令,并控制所述电机驱动设备进入编址状态;Obtain the start addressing instruction sent by the control device, and control the motor drive device to enter the addressing state;
所述电机驱动设备获取控制设备发送的编址指令时,具体用于:When the motor drive device obtains the addressing instruction sent by the control device, it is specifically used for:
在进入所述编址状态之后,获取控制设备发送的编址指令。After entering the addressing state, the addressing instruction sent by the control device is obtained.
进一步地,所述电机驱动设备获取所述电机的转动状态时,具体用于:Further, when the motor driving device obtains the rotation state of the motor, it is specifically used to:
获取角度传感器输出的角度数据,其中,所述角度传感器用于测量所述电机的转动角度;Acquiring angle data output by an angle sensor, wherein the angle sensor is used to measure the rotation angle of the motor;
根据所述角度数据确定所述电机的转动状态。The rotation state of the motor is determined according to the angle data.
进一步地,所述电机驱动设备获取所述电机的转动状态时,具体用于:Further, when the motor driving device obtains the rotation state of the motor, it is specifically used to:
获取电信号传感器输出的感应电信号,其中,所述电信号传感器用于测量所述电机产生的感应电信号;Acquiring an induced electrical signal output by an electrical signal sensor, wherein the electrical signal sensor is used to measure the induced electrical signal generated by the motor;
根据所述感应电信号确定所述电机的转动状态。The rotation state of the motor is determined according to the induced electrical signal.
进一步地,所述电机驱动设备记录所述目的编址号之后,还用于:Further, after the motor drive device records the destination address number, it is also used to:
发送用于控制提示装置发出提示信息的提示指令。Send a prompting command for controlling the prompting device to send out prompting information.
进一步地,所述提示装置为蜂鸣器,电机驱动设备控制所述蜂鸣器发出提示声音。Further, the prompting device is a buzzer, and the motor driving device controls the buzzer to emit a prompting sound.
进一步地,所述蜂鸣器设于所述电机驱动设备,或者单独设置。Further, the buzzer is provided in the motor driving device, or separately.
进一步地,所述电机驱动设备还用于:Further, the motor driving device is also used for:
所述获取的电机的转动状态不满足预设状态要求时,则删除所述编址指令。When the acquired rotation state of the motor does not meet the requirements of the preset state, the addressing instruction is deleted.
进一步地,所述控制设备还用于:Further, the control device is also used to:
若确定未接收到所述一个所述电机驱动设备响应的反馈信号,则发送用于控制告警装置发出告警信息的告警指令。If it is determined that the feedback signal responded by the one of the motor driving devices is not received, an alarm instruction for controlling the alarm device to issue alarm information is sent.
进一步地,所述控制设备将所述一个电机驱动设备的编址号注册为所述目的编址号之后,还用于:Further, after the control device registers the address number of the one motor drive device as the destination address number, it is also used to:
发送用于控制提示装置发出提示信息的提示指令。Send a prompting command for controlling the prompting device to send out prompting information.
本发明实施例中,所述控制设备,用于向多个电机驱动设备广播编址指令,其中,所述编址指令包括目的编址号;In the embodiment of the present invention, the control device is configured to broadcast an addressing instruction to a plurality of motor drive devices, wherein the addressing instruction includes a destination address number;
所述电机驱动设备获取控制设备发送的编址指令,并获取所述电机的转动状态,当所述获取的电机的转动状态满足预设状态要求时,向所述控制设备发送所述编址指令的反馈信号,以及根据所述编址指令记录所述目的编址号;所述控制设备如果确定获取到所述多个电机驱动设备中的一个电机驱动设备发送的所述编址指令的反馈信号,则将所述一个电机驱动设备的编址号注册为所述目的编址号。通过获取电机的转动状态方式即可以完成电机驱动设备的编址,避免每次编址均需要拆装设备,实现对电机驱动设备的编址控制的自动化和智能化,提高了编址效率。The motor driving device obtains the addressing instruction sent by the control device and obtains the rotation state of the motor, and sends the addressing instruction to the control device when the obtained rotation state of the motor meets the preset state requirements Feedback signal of the target address and record the destination addressing number according to the addressing instruction; if the control device determines that the feedback signal of the addressing instruction sent by one of the plurality of motor drive devices is acquired , Then the address number of the one motor-driven device is registered as the destination address number. The addressing of the motor drive device can be completed by obtaining the rotation state of the motor, avoiding the need to disassemble and disassemble the device for each addressing, realizing the automation and intelligence of the addressing control of the motor drive device, and improving the addressing efficiency.
本发明的实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现本发明实施例中描述的方法,也可实现本发明所对应实施例的设备,在此不再赘述。Embodiments of the present invention also provide a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the method described in the embodiment of the present invention can also be implemented. The device of the embodiment corresponding to the present invention will not be repeated here.
所述计算机可读存储介质可以是前述任一实施例所述的设备的内部存储单元,例如设备的硬盘或内存。所述计算机可读存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述设备的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述终端所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer-readable storage medium may be an internal storage unit of the device according to any of the foregoing embodiments, such as a hard disk or a memory of the device. The computer-readable storage medium may also be an external storage device of the device, for example, a plug-in hard disk equipped on the device, a smart memory card (Smart Media Card, SMC), and a secure digital (SD) card , Flash card (Flash Card), etc. Further, the computer-readable storage medium may also include both an internal storage unit of the device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the terminal. The computer-readable storage medium can also be used to temporarily store data that has been or will be output.
以上所揭露的仅为本发明部分实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosure is only part of the embodiments of the present invention, and of course it cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (50)

  1. 一种电机驱动设备的控制方法,其中,所述电机驱动设备用于控制与其通信连接的电机,其特征在于,包括:A control method of a motor drive device, wherein the motor drive device is used to control a motor connected to it in communication, and is characterized in that it includes:
    获取控制设备发送的编址指令,其中,所述编址指令包括目的编址号;Obtain the addressing instruction sent by the control device, where the addressing instruction includes the destination addressing number;
    获取所述电机的转动状态;Obtaining the rotation state of the motor;
    当所述获取的电机的转动状态满足预设状态要求时,向所述控制设备发送所述编址指令的反馈信号,根据所述编址指令记录所述目的编址号。When the obtained rotation state of the motor meets the preset state requirements, a feedback signal of the addressing instruction is sent to the control device, and the destination addressing number is recorded according to the addressing instruction.
  2. 根据权利要求1所述的方法,其特征在于,所述电机的转动状态满足预设状态要求,包括:所述电机的转动状态指示所述电机转动。The method according to claim 1, wherein the rotation state of the motor satisfies a preset state requirement, including: the rotation state of the motor indicates that the motor rotates.
  3. 根据权利要求2所述的方法,其特征在于,所述电机的转动状态满足预设状态要求,还包括:所述电机转动的角度大于或等于预设角度阈值,或者所述电机转动的转速大于或等于预设转速阈值。The method according to claim 2, wherein the rotation state of the motor meets a preset state requirement, further comprising: the rotation angle of the motor is greater than or equal to a preset angle threshold, or the rotation speed of the motor is greater than Or equal to the preset speed threshold.
  4. 根据权利要求2或3所述的方法,其特征在于,所述电机的转动是用户直接或者间接地向所述电机施加外力引起的。The method according to claim 2 or 3, wherein the rotation of the motor is caused by a user directly or indirectly applying an external force to the motor.
  5. 根据权利要求4所述的方法,其特征在于,所述电机用于驱动执行部件,其中,所述电机的转动是用户向通过所述执行部件向电机施加外力引起的。The method according to claim 4, wherein the motor is used to drive an actuator, wherein the rotation of the motor is caused by a user applying an external force to the motor through the actuator.
  6. 根据权利要求5所述的方法,其特征在于,所述执行部件包括螺旋桨、车轮、履带中的一种或多种。The method according to claim 5, wherein the execution component includes one or more of a propeller, a wheel, and a track.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-6, wherein the method further comprises:
    获取控制设备发送的开始编址指令,并控制所述电机驱动设备进入编址状态;Obtain the start addressing instruction sent by the control device, and control the motor drive device to enter the addressing state;
    所述获取控制设备发送的编址指令,包括:The addressing instruction sent by the acquisition control device includes:
    在进入所述编址状态之后,获取控制设备发送的编址指令。After entering the addressing state, the addressing instruction sent by the control device is obtained.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述获取所述电机的转动状态,包括:The method according to any one of claims 1-7, wherein the obtaining the rotation state of the motor includes:
    获取角度传感器输出的角度数据,其中,所述角度传感器用于测量所述电机的转动角度;Acquiring angle data output by an angle sensor, wherein the angle sensor is used to measure the rotation angle of the motor;
    根据所述角度数据确定所述电机的转动状态。The rotation state of the motor is determined according to the angle data.
  9. 根据权利要求1-7任一项所述的方法,其特征在于,所述获取所述电机的转动状态,包括:The method according to any one of claims 1-7, wherein the obtaining the rotation state of the motor includes:
    获取电信号传感器输出的感应电信号,其中,所述电信号传感器用于测量所述电机产生的感应电信号;Acquiring an induced electrical signal output by an electrical signal sensor, wherein the electrical signal sensor is used to measure the induced electrical signal generated by the motor;
    根据所述感应电信号确定所述电机的转动状态。The rotation state of the motor is determined according to the induced electrical signal.
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述记录所述目的编址号之后,还包括:The method according to any one of claims 1-9, wherein after recording the destination address number, the method further comprises:
    发送用于控制提示装置发出提示信息的提示指令。Send a prompting command for controlling the prompting device to send out prompting information.
  11. 根据权利要求10所述的方法,其特征在于,The method according to claim 10, characterized in that
    所述提示装置为蜂鸣器,电机驱动设备控制所述蜂鸣器发出提示声音。The prompting device is a buzzer, and the motor driving device controls the buzzer to emit a prompting sound.
  12. 根据权利要求11所述的方法,其特征在于,The method of claim 11, wherein:
    所述蜂鸣器设于所述电机驱动设备,或者单独设置。The buzzer is provided in the motor drive device, or separately.
  13. 根据权利要求1至11中任一项所述的方法,其特征在于,还包括:The method according to any one of claims 1 to 11, further comprising:
    当所述获取的电机的转动状态不满足预设状态要求时,则删除所述编址指令。When the acquired rotation state of the motor does not meet the requirements of the preset state, the addressing instruction is deleted.
  14. 一种控制设备的控制方法,其中,所述控制设备与多个电机驱动设备通信连接,所述电机驱动设备用于控制与其通信连接的电机,其特征在于,包 括:A control method of a control device, wherein the control device is communicatively connected to a plurality of motor driving devices, and the motor driving device is used to control a motor communicatively connected thereto, which is characterized by including:
    向所述多个电机驱动设备广播编址指令,其中,所述编址指令包括目的编址号;Broadcast an addressing instruction to the plurality of motor drive devices, wherein the addressing instruction includes a destination addressing number;
    确定是否获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号,其中,所述反馈信号是所述多个电机驱动设备中的一个电机驱动设备在确定电机的转动状态满足预设状态要求时向所述控制设备发送的;Determining whether a feedback signal of the addressing instruction sent by one of the plurality of motor drive devices is obtained, wherein the feedback signal is that one of the plurality of motor drive devices is determining the motor Is sent to the control device when the rotation state of the device meets the preset state requirements;
    若是,则将所述一个电机驱动设备的编址号注册为所述目的编址号。If so, the address number of the one motor-driven device is registered as the destination address number.
  15. 根据权利要求14所述的方法,其特征在于,所述电机的转动状态满足预设状态要求,包括:所述电机的转动状态指示所述电机转动。The method according to claim 14, wherein the rotation state of the motor satisfies a preset state requirement, including: the rotation state of the motor indicates that the motor rotates.
  16. 根据权利要求15所述的方法,其特征在于,所述电机的转动状态满足预设状态要求,还包括:所述电机转动的角度大于或等于预设角度阈值,或者所述电机转动的转速大于或等于预设转速阈值。The method according to claim 15, wherein the rotation state of the motor meets a preset state requirement, further comprising: the rotation angle of the motor is greater than or equal to a preset angle threshold, or the rotation speed of the motor is greater than Or equal to the preset speed threshold.
  17. 根据权利要求15或16所述的方法,其特征在于,所述电机的转动是用户直接或者间接地向所述电机施加外力引起的。The method according to claim 15 or 16, wherein the rotation of the motor is caused by a user directly or indirectly applying an external force to the motor.
  18. 根据权利要求17所述的方法,其特征在于,所述电机用于驱动执行部件,其中,所述电机的转动是用户向通过所述执行部件向电机施加外力引起的。The method according to claim 17, wherein the motor is used to drive an actuator, wherein the rotation of the motor is caused by a user applying an external force to the motor through the actuator.
  19. 根据权利要求18所述的方法,其特征在于,所述执行部件包括螺旋桨、车轮、履带中的一种或多种。The method according to claim 18, wherein the execution component includes one or more of a propeller, a wheel, and a track.
  20. 根据权利要求14-17任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 14-17, wherein the method further comprises:
    向所述多个电机驱动设备广播开始编址指令,所述开始编址指令用于指示所述电机驱动设备进入编址状态;Broadcasting a start addressing instruction to the plurality of motor drive devices, the start addressing command used to instruct the motor drive device to enter an addressing state;
    所述确定是否获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号,包括:The determining whether to obtain a feedback signal from one of the plurality of motor drive devices to send the addressing instruction includes:
    在广播所述开始编址指令之后,确定是否获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号。After broadcasting the start addressing instruction, it is determined whether a feedback signal of the addressing instruction sent by one of the plurality of motor driving devices is obtained.
  21. 根据权利要求14-20任一项所述的方法,其特征在于,还包括:The method according to any one of claims 14-20, further comprising:
    若确定未接收到所述一个所述电机驱动设备响应的反馈信号,则发送用于控制告警装置发出告警信息的告警指令。If it is determined that the feedback signal responded by the one of the motor driving devices is not received, an alarm instruction for controlling the alarm device to issue alarm information is sent.
  22. 根据权利要求14-21任一项所述的方法,其特征在于,将所述一个电机驱动设备的编址号注册为所述目的编址号之后,还包括:The method according to any one of claims 14 to 21, wherein after registering the address number of the one motor-driven device as the destination address number, the method further includes:
    发送用于控制提示装置发出提示信息的提示指令。Send a prompting command for controlling the prompting device to send out prompting information.
  23. 根据权利要求22所述的方法,其特征在于,The method according to claim 22, wherein
    所述提示装置为蜂鸣器,所述发送用于控制提示装置发出提示信息的提示指令,包括:The prompting device is a buzzer, and the sending of a prompting instruction for controlling the prompting device to send out prompting information includes:
    发送用于控制所述蜂鸣器发出提示声音的提示指令。A prompt instruction for controlling the buzzer to emit a prompt sound is sent.
  24. 根据权利要求23所述的方法,其特征在于,The method according to claim 23, characterized in that
    所述蜂鸣器设于所述控制设备,或者单独设置。The buzzer is provided in the control device or separately.
  25. 一种电机驱动设备,其中,所述电机驱动设备用于控制与其通信连接的电机,其特征在于,包括:存储器和处理器,A motor-driven device, wherein the motor-driven device is used to control a motor communicatively connected thereto, and is characterized by comprising: a memory and a processor,
    所述存储器,用于存储程序指令;The memory is used to store program instructions;
    所述处理器,用于调用所述程序指令,当所述程序指令被执行时,用于执行以下操作:The processor is used to call the program instructions, and when the program instructions are executed, it is used to perform the following operations:
    获取控制设备发送的编址指令,其中,所述编址指令包括目的编址号;Obtain the addressing instruction sent by the control device, where the addressing instruction includes the destination addressing number;
    获取所述电机的转动状态;Obtaining the rotation state of the motor;
    当所述获取的电机的转动状态满足预设状态要求时,向所述控制设备发送 所述编址指令的反馈信号,根据所述编址指令记录所述目的编址号。When the acquired rotation state of the motor satisfies the preset state requirement, a feedback signal of the addressing instruction is sent to the control device, and the destination addressing number is recorded according to the addressing instruction.
  26. 根据权利要求25所述的设备,其特征在于,所述电机的转动状态满足预设状态要求,包括:所述电机的转动状态指示所述电机转动。The apparatus according to claim 25, wherein the rotation state of the motor satisfies a preset state requirement, including: the rotation state of the motor indicates that the motor rotates.
  27. 根据权利要求26所述的设备,其特征在于,所述电机的转动状态满足预设状态要求,还包括:所述电机转动的角度大于或等于预设角度阈值,或者所述电机转动的转速大于或等于预设转速阈值。The device according to claim 26, wherein the rotation state of the motor meets a preset state requirement, further comprising: the rotation angle of the motor is greater than or equal to a preset angle threshold, or the rotation speed of the motor is greater than Or equal to the preset speed threshold.
  28. 根据权利要求26或27所述的设备,其特征在于,所述电机的转动是用户直接或者间接地向所述电机施加外力引起的。The device according to claim 26 or 27, wherein the rotation of the motor is caused by a user directly or indirectly applying an external force to the motor.
  29. 根据权利要求28所述的设备,其特征在于,所述电机用于驱动执行部件,其中,所述电机的转动是用户向通过所述执行部件向电机施加外力引起的。The apparatus according to claim 28, wherein the motor is used to drive an actuator, wherein the rotation of the motor is caused by a user applying an external force to the motor through the actuator.
  30. 根据权利要求29所述的设备,其特征在于,所述执行部件包括螺旋桨、车轮、履带中的一种或多种。The apparatus according to claim 29, wherein the execution component includes one or more of a propeller, a wheel, and a track.
  31. 根据权利要求25-30任一项所述的设备,其特征在于,所述处理器还用于:The device according to any one of claims 25-30, wherein the processor is further configured to:
    获取控制设备发送的开始编址指令,并控制所述电机驱动设备进入编址状态;Obtain the start addressing instruction sent by the control device, and control the motor drive device to enter the addressing state;
    所述处理器在获取控制设备发送的编址指令时,具体用于:When the processor obtains the addressing instruction sent by the control device, it is specifically used to:
    在进入所述编址状态之后,获取控制设备发送的编址指令。After entering the addressing state, the addressing instruction sent by the control device is obtained.
  32. 根据权利要求25-31任一项所述的设备,其特征在于,所述处理器获取所述电机的转动状态时,具体用于:The device according to any one of claims 25 to 31, wherein the processor is specifically used to:
    获取角度传感器输出的角度数据,其中,所述角度传感器用于测量所述电机的转动角度;Acquiring angle data output by an angle sensor, wherein the angle sensor is used to measure the rotation angle of the motor;
    根据所述角度数据确定所述电机的转动状态。The rotation state of the motor is determined according to the angle data.
  33. 根据权利要求25-31任一项所述的设备,其特征在于,所述处理器获取所述电机的转动状态时,具体用于:The device according to any one of claims 25 to 31, wherein the processor is specifically used to:
    获取电信号传感器输出的感应电信号,其中,所述电信号传感器用于测量所述电机产生的感应电信号;Acquiring an induced electrical signal output by an electrical signal sensor, wherein the electrical signal sensor is used to measure the induced electrical signal generated by the motor;
    根据所述感应电信号确定所述电机的转动状态。The rotation state of the motor is determined according to the induced electrical signal.
  34. 根据权利要求25-33任一项所述的设备,其特征在于,所述处理器记录所述目的编址号之后,还用于:The device according to any one of claims 25 to 33, wherein after the processor records the destination address number, it is also used to:
    发送用于控制提示装置发出提示信息的提示指令。Send a prompting command for controlling the prompting device to send out prompting information.
  35. 根据权利要求34所述的设备,其特征在于,The device according to claim 34, characterized in that
    所述提示装置为蜂鸣器,电机驱动设备控制所述蜂鸣器发出提示声音。The prompting device is a buzzer, and the motor driving device controls the buzzer to emit a prompting sound.
  36. 根据权利要求35所述的设备,其特征在于,The device according to claim 35, characterized in that
    所述蜂鸣器设于所述电机驱动设备,或者单独设置。The buzzer is provided in the motor drive device, or separately.
  37. 根据权利要求25至36中任一项所述的设备,其特征在于,所述处理器还用于:The device according to any one of claims 25 to 36, wherein the processor is further configured to:
    当所述获取的电机的转动状态不满足预设状态要求时,则删除所述编址指令。When the acquired rotation state of the motor does not meet the requirements of the preset state, the addressing instruction is deleted.
  38. 一种控制设备,其中,所述控制设备与多个电机驱动设备通信连接,所述电机驱动设备用于控制与其通信连接的电机,其特征在于,包括:存储器和处理器,A control device, wherein the control device is communicatively connected to a plurality of motor driving devices, the motor driving device is used to control a motor communicatively connected thereto, and is characterized by comprising: a memory and a processor,
    所述存储器,用于存储程序指令;The memory is used to store program instructions;
    所述处理器,用于调用所述程序指令,当所述程序指令被执行时,用于执行以下操作:The processor is used to call the program instructions, and when the program instructions are executed, it is used to perform the following operations:
    向所述多个电机驱动设备广播编址指令,其中,所述编址指令包括目的编址号;Broadcast an addressing instruction to the plurality of motor drive devices, wherein the addressing instruction includes a destination addressing number;
    确定是否获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号,其中,所述反馈信号是所述多个电机驱动设备中的一个电机驱动设备在确定电机的转动状态满足预设状态要求时向所述控制设备发送的;Determining whether a feedback signal of the addressing instruction sent by one of the plurality of motor drive devices is obtained, wherein the feedback signal is that one of the plurality of motor drive devices is determining the motor Is sent to the control device when the rotation state of the device meets the preset state requirements;
    若是,则将所述一个电机驱动设备的编址号注册为所述目的编址号。If so, the address number of the one motor-driven device is registered as the destination address number.
  39. 根据权利要求38所述的设备,其特征在于,所述电机的转动状态满足预设状态要求,包括:所述电机的转动状态指示所述电机转动。The apparatus according to claim 38, wherein the rotation state of the motor satisfies a preset state requirement, including: the rotation state of the motor indicates that the motor rotates.
  40. 根据权利要求39所述的设备,其特征在于,所述电机的转动状态满足预设状态要求,还包括:所述电机转动的角度大于或等于预设角度阈值,或者所述电机转动的转速大于或等于预设转速阈值。The device according to claim 39, wherein the rotation state of the motor meets a preset state requirement, further comprising: the rotation angle of the motor is greater than or equal to a preset angle threshold, or the rotation speed of the motor is greater than Or equal to the preset speed threshold.
  41. 根据权利要求39或40所述的设备,其特征在于,所述电机的转动是用户直接或者间接地向所述电机施加外力引起的。The apparatus according to claim 39 or 40, wherein the rotation of the motor is caused by a user directly or indirectly applying an external force to the motor.
  42. 根据权利要求41所述的设备,其特征在于,所述电机用于驱动执行部件,其中,所述电机的转动是用户向通过所述执行部件向电机施加外力引起的。The apparatus according to claim 41, wherein the motor is used to drive an actuator, wherein the rotation of the motor is caused by a user applying an external force to the motor through the actuator.
  43. 根据权利要求42所述的设备,其特征在于,所述执行部件包括螺旋桨、车轮、履带中的一种或多种。The apparatus according to claim 42, wherein the execution component includes one or more of a propeller, a wheel, and a track.
  44. 根据权利要求38-41任一项所述的设备,其特征在于,所述处理器还用于:The device according to any one of claims 38 to 41, wherein the processor is further configured to:
    向所述多个电机驱动设备广播开始编址指令,所述开始编址指令用于指示所述电机驱动设备进入编址状态;Broadcasting a start addressing instruction to the plurality of motor drive devices, the start addressing command used to instruct the motor drive device to enter an addressing state;
    所述处理器确定是否获取到所述多个电机驱动设备中的一个电机驱动设 备发送所述编址指令的反馈信号时,具体用于:When the processor determines whether a feedback signal of the addressing instruction sent by one of the plurality of motor drive devices is obtained, it is specifically used to:
    在广播所述开始编址指令之后,确定是否获取到所述多个电机驱动设备中的一个电机驱动设备发送所述编址指令的反馈信号。After broadcasting the start addressing instruction, it is determined whether a feedback signal of the addressing instruction sent by one of the plurality of motor driving devices is obtained.
  45. 根据权利要求38-44任一项所述的设备,其特征在于,所述处理器还用于:The device according to any one of claims 38-44, wherein the processor is further configured to:
    若确定未接收到所述一个所述电机驱动设备响应的反馈信号,则发送用于控制告警装置发出告警信息的告警指令。If it is determined that the feedback signal responded by the one of the motor driving devices is not received, an alarm instruction for controlling the alarm device to issue alarm information is sent.
  46. 根据权利要求38-45任一项所述的设备,其特征在于,所述处理器将所述一个电机驱动设备的编址号注册为所述目的编址号之后,还用于:The device according to any one of claims 38 to 45, wherein after the processor registers the address number of the one motor-driven device as the destination address number, it is also used to:
    发送用于控制提示装置发出提示信息的提示指令。Send a prompting command for controlling the prompting device to send out prompting information.
  47. 根据权利要求46所述的设备,其特征在于,The device according to claim 46, characterized in that
    所述提示装置为蜂鸣器,所述处理器发送用于控制提示装置发出提示信息的提示指令时,具体用于:The prompting device is a buzzer, and when the processor sends a prompting command for controlling the prompting device to send prompting information, it is specifically used to:
    发送用于控制所述蜂鸣器发出提示声音的提示指令。A prompt instruction for controlling the buzzer to emit a prompt sound is sent.
  48. 根据权利要求47所述的设备,其特征在于,The device according to claim 47, characterized in that
    所述蜂鸣器设于所述控制设备,或者单独设置。The buzzer is provided in the control device or separately.
  49. 一种可移动平台,其特征在于,所述可移动平台包括:多个电机驱动设备和控制设备,所述多个电机驱动设备和所述控制设备通过总线连接,A movable platform, characterized in that, the movable platform includes: a plurality of motor driving devices and a control device, the plurality of motor driving devices and the control device are connected by a bus,
    所述控制设备,用于向多个电机驱动设备广播编址指令,其中,所述编址指令包括目的编址号;The control device is used to broadcast an addressing instruction to a plurality of motor drive devices, wherein the addressing instruction includes a destination addressing number;
    所述电机驱动设备,用于获取控制设备发送的编址指令,并获取所述电机的转动状态,当所述获取的电机的转动状态满足预设状态要求时,向所述控制设备发送所述编址指令的反馈信号,以及根据所述编址指令记录所述目的编址号;The motor driving device is used to obtain the addressing instruction sent by the control device and obtain the rotation state of the motor, and when the obtained rotation state of the motor meets the preset state requirements, send the control device the control device The feedback signal of the addressing instruction, and recording the destination addressing number according to the addressing instruction;
    所述控制设备,用于如果确定获取到所述多个电机驱动设备中的一个电机驱动设备发送的所述编址指令的反馈信号,则将所述一个电机驱动设备的编址号注册为所述目的编址号。The control device is configured to register the address number of the one motor drive device as all if the feedback signal of the addressing instruction sent by one motor drive device of the plurality of motor drive devices is determined to be acquired Addressing number of the description.
  50. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至24任一项所述方法。A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the method according to any one of claims 1 to 24.
PCT/CN2018/124346 2018-12-27 2018-12-27 Control method, motor driving apparatus, control apparatus, and movable platform WO2020133060A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880065573.9A CN111226177A (en) 2018-12-27 2018-12-27 Control method, motor driving device, control device and movable platform
PCT/CN2018/124346 WO2020133060A1 (en) 2018-12-27 2018-12-27 Control method, motor driving apparatus, control apparatus, and movable platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/124346 WO2020133060A1 (en) 2018-12-27 2018-12-27 Control method, motor driving apparatus, control apparatus, and movable platform

Publications (1)

Publication Number Publication Date
WO2020133060A1 true WO2020133060A1 (en) 2020-07-02

Family

ID=70827371

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/124346 WO2020133060A1 (en) 2018-12-27 2018-12-27 Control method, motor driving apparatus, control apparatus, and movable platform

Country Status (2)

Country Link
CN (1) CN111226177A (en)
WO (1) WO2020133060A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584418B (en) * 2022-03-02 2023-08-01 科博达技术股份有限公司 Automatic addressing method of slave controller based on mechanical limit
CN117289720B (en) * 2023-11-22 2024-02-23 黑龙江惠达科技股份有限公司 Unmanned aerial vehicle control method and system and unmanned aerial vehicle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101852472A (en) * 2009-04-01 2010-10-06 欧威尔空调(中国)有限公司 Automatic addressing method for air conditioning system and air conditioning controller
CN106687936A (en) * 2016-08-29 2017-05-17 深圳市大疆创新科技有限公司 Electronic speed controller addressing method for multi-rotor unmanned aerial vehicle, control system applied to electronic speed controller in multi-rotor unmanned aerial vehicle, electronic speed controller, power system and multi-rotor unmanned aerial vehicle
CN107108040A (en) * 2016-08-30 2017-08-29 深圳市大疆创新科技有限公司 The control method and control system of electricity tune, flight controller and unmanned vehicle
CN108494025A (en) * 2018-01-25 2018-09-04 深圳市沃特玛电池有限公司 A kind of the automatic addressing system and its automatic addressing method of acquisition module
CN109035670A (en) * 2018-10-12 2018-12-18 湖北旭兴达科技有限公司 A kind of fire alarm system and its address coding method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019000378A1 (en) * 2017-06-30 2019-01-03 深圳市大疆创新科技有限公司 Method and device for identifying electronic speed controller, power system, and movable platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101852472A (en) * 2009-04-01 2010-10-06 欧威尔空调(中国)有限公司 Automatic addressing method for air conditioning system and air conditioning controller
CN106687936A (en) * 2016-08-29 2017-05-17 深圳市大疆创新科技有限公司 Electronic speed controller addressing method for multi-rotor unmanned aerial vehicle, control system applied to electronic speed controller in multi-rotor unmanned aerial vehicle, electronic speed controller, power system and multi-rotor unmanned aerial vehicle
CN107108040A (en) * 2016-08-30 2017-08-29 深圳市大疆创新科技有限公司 The control method and control system of electricity tune, flight controller and unmanned vehicle
CN108494025A (en) * 2018-01-25 2018-09-04 深圳市沃特玛电池有限公司 A kind of the automatic addressing system and its automatic addressing method of acquisition module
CN109035670A (en) * 2018-10-12 2018-12-18 湖北旭兴达科技有限公司 A kind of fire alarm system and its address coding method

Also Published As

Publication number Publication date
CN111226177A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
WO2020133060A1 (en) Control method, motor driving apparatus, control apparatus, and movable platform
US11190957B2 (en) Apparatus and method for controlling vehicle based on redundant architecture
WO2018039922A1 (en) Control method and control system for electronic speed controller, flight controller and unmanned aerial vehicle
WO2022057237A1 (en) Vehicle parking control method, apparatus and device, and storage medium
WO2022095303A1 (en) Method, computing device, and computer storage medium used for vehicle interaction
US11110607B2 (en) Servo output shaft rotational angle calibration method and system and robot using the same
US8607015B2 (en) Onboard system for vehicle
US20200285230A1 (en) Unmanned aerial vehicle system and communication method
WO2020135730A1 (en) Vehicle-mounted control unit, and fpga-based vehicle automatic driving method and device
US10081387B2 (en) Non-autonomous steering modes
CN112965479A (en) Cloud management method and device for unmanned vehicle and storage medium
CN113031591B (en) Exception handling method and device for material pushing robot, server and storage medium
US20180232250A1 (en) Intelligently assisted iot endpoint device
CN109383498A (en) For controlling the softdog of vehicle drive assist system
US20200064799A1 (en) Method for identifying eletronic speed control, device, propulsion system, and movable platform
US20130176231A1 (en) Car stereo head unit with built-in wireless communication module system
US9910154B2 (en) Sonar obstacle avoidance system and method, and unmanned aerial vehicle
US11465649B2 (en) Vehicle control system, vehicle control device, and recording medium
WO2021027970A1 (en) Traveling method, traveling device and storage medium
CN109213114A (en) Mobile unit configuration method and device
CN115309085A (en) Unmanned dual-communication redundancy control method, system, electronic equipment and medium
CN111923998B (en) Steering wheel angle control method, device, equipment and storage medium
WO2022011875A1 (en) Boundary signal identification method, robot kit, device, and storage medium
US20200334192A1 (en) Communication method, device, and system
WO2018053816A1 (en) Control method of remote control, and remote control

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18944349

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18944349

Country of ref document: EP

Kind code of ref document: A1