Control system, device module, main control unit and electronic equipment
By setting an identification code voltage acquisition port in the interface between the device module and the main control unit of the robot's dexterous hand, and using hardware circuitry to acquire voltage and set the device identification code, the problems of poor productivity and maintainability in the existing technology are solved, and more efficient production and maintenance are achieved.
Patent Information
- Application Number
- CN202423321612.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2034-12-31
AI Technical Summary
In existing technologies, the device identification code of the motor module on the robot's dexterous hand is set separately by software, resulting in poor productivity and maintainability.
By setting a device module identification code voltage acquisition port in the interface between the device module and the main control unit, the device identification code is set by acquiring the voltage using hardware circuitry, thus avoiding software settings.
It improves production efficiency and equipment maintainability, and simplifies the mass production and maintenance process.
Smart Images

Figure CN223941238U_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of robotics, and in particular to a control system, device module, main control unit, and electronic equipment. Background Technology
[0002] In related technologies, the robot's dexterous hand uses multiple identical or different motor modules. Each motor module contains a separate processor, motor drive, and motor. The main control processor needs to confirm the motor's location when communicating with the motor module, meaning each motor module needs a fixed device identification code.
[0003] Currently, most solutions involve setting the device identification code for each motor module individually through software, which results in poor manufacturability and maintainability. Utility Model Content
[0004] To overcome the problems existing in related technologies, this disclosure provides a control system, a device module, a main control unit, and an electronic device.
[0005] According to a first aspect of the present disclosure, a control system is provided, comprising: a plurality of device modules and a main control unit, wherein the plurality of device modules are respectively connected to the main control unit through a plurality of corresponding interfaces;
[0006] Each of the interfaces includes a device module identification code voltage acquisition port, and the device module sets the device identification code of the device module by acquiring the voltage through the device module identification code voltage acquisition port in the interface.
[0007] Optionally, the interface includes a first interface disposed on the device module and a second interface disposed on the main control unit; the device module identification code voltage acquisition port includes a voltage acquisition first terminal disposed on the first interface and a voltage acquisition second terminal disposed on the second interface;
[0008] The device module includes: electronic devices, a module processor, and the first interface, wherein the electronic devices, the module processor, and the first interface are connected.
[0009] Optionally, the main control unit includes: a main processor and a plurality of second interfaces, wherein the main processor is connected to the plurality of second interfaces via a data bus;
[0010] When the first interface and the second interface are connected, the voltage acquisition first terminal and the voltage acquisition second terminal are connected.
[0011] Optionally, the first interface includes: a first pull-up resistor;
[0012] The first end of the first pull-up resistor is connected to the power supply, and the second end of the first pull-up resistor is connected to the voltage sampling port of the module processor.
[0013] The voltage sampling port is connected to the voltage acquisition first terminal of the first interface;
[0014] The second interface includes: a first pull-down resistor;
[0015] The first end of the first pull-down resistor is connected to the second terminal of the voltage acquisition, and the second end of the first pull-down resistor is grounded.
[0016] Optionally, the resistance values of the multiple first pull-up resistors in the multiple sets of interfaces are the same, and the resistance values of the multiple first pull-down resistors are different.
[0017] Optionally, the first interface further includes: a first filter capacitor;
[0018] The first end of the first filter capacitor is connected to the voltage sampling port of the module processor, and the second end of the first filter capacitor is grounded.
[0019] Optionally, the first interface includes a voltage acquisition first terminal, which is connected to the voltage sampling port of the module processor;
[0020] The second interface includes: a second pull-up resistor and a second pull-down resistor;
[0021] The first end of the second pull-up resistor is connected to the power supply, and the second end of the second pull-up resistor is connected to the second voltage acquisition terminal.
[0022] The first end of the second pull-down resistor is connected to the second voltage acquisition terminal, and the second end of the second pull-down resistor is grounded.
[0023] Optionally, the ratio of the resistance values of the second pull-up resistors to the second pull-down resistors of the plurality of second interfaces may be different.
[0024] Optionally, the first interface further includes: a second filter capacitor;
[0025] The first end of the second filter capacitor is connected to the voltage sampling port of the module processor, and the second end of the second filter capacitor is grounded.
[0026] Optionally, the first interface includes: a third pull-down resistor;
[0027] The first end of the third pull-down resistor is connected to the voltage sampling port of the module processor, and the second end of the third pull-down resistor is grounded.
[0028] The voltage sampling port is connected to the voltage acquisition first terminal of the first interface;
[0029] The second interface includes: a third pull-up resistor;
[0030] The first end of the third pull-up resistor is connected to the power supply, and the second end of the third pull-up resistor is connected to the second voltage acquisition terminal.
[0031] Optionally, the resistance values of the multiple third pull-up resistors in the multiple sets of interfaces are different, and the resistance values of the multiple third pull-down resistors are the same.
[0032] Optionally, the first interface further includes: a third filter capacitor;
[0033] The first end of the third filter capacitor is connected to the voltage sampling port of the module processor, and the second end of the third filter capacitor is grounded.
[0034] Optionally, the electronic device includes at least one of the following: a motor or a sensor.
[0035] According to a second aspect of the present disclosure, a device module is provided, comprising:
[0036] The system includes an electronic device, a module processor, and a first interface, wherein the electronic device, the module processor, and the first interface are connected, and the first interface is used to connect to a second interface of the main control unit.
[0037] The module processor is used to set the device identification code of the device module by means of the voltage collected by the first terminal of the voltage acquisition in the first interface when the first interface is connected to the second interface.
[0038] According to a third aspect of the present disclosure, a main control unit is provided, comprising:
[0039] A main processor and multiple second interfaces, wherein the main processor is connected to the multiple second interfaces via a data bus;
[0040] Any of the second interfaces is used to connect to the first interface of the device module, so that when the first interface is connected to the second interface, the module processor sets the device identification code of the device module through the voltage acquired by the first voltage acquisition terminal in the first interface.
[0041] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: the device module described in the second aspect.
[0042] In summary, this disclosure provides a control system comprising: multiple device modules and a main control unit. The multiple device modules are respectively connected to the main control unit through corresponding multiple sets of interfaces. Each interface includes a device module identification code voltage acquisition port, and each device module sets its device identification code based on the voltage acquired by the device module identification code voltage acquisition port of the interface. This disclosure sets the device identification code of the device module through the voltage acquired by the hardware port, avoiding the use of software to set the device identification code, thus improving production efficiency, mass production capability, and equipment maintainability after-sales service.
[0043] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0044] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0045] Figure 1 This is a schematic diagram of a control system according to an exemplary embodiment.
[0046] Figure 2 This is a schematic diagram of a control system according to an exemplary embodiment.
[0047] Figure 3 This is a schematic diagram illustrating a first interface and a second interface according to an exemplary embodiment.
[0048] Figure 4 This is a schematic diagram illustrating a first interface and a second interface according to an exemplary embodiment.
[0049] Figure 5 This is a schematic diagram illustrating a first interface and a second interface according to an exemplary embodiment.
[0050] Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation
[0051] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0052] It should be understood that the term "comprising" and its variations as used herein are open-ended, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the following description.
[0053] It should be noted that the concepts of "first," "second," etc., mentioned in this disclosure are used only to distinguish different devices, modules, or units, and are not used to limit the order of functions performed by these devices, modules, or units or their interdependencies. The modifiers "a" and "a plurality of" mentioned in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless explicitly stated in the context, they should be understood as "one or more." In the description of this disclosure, unless otherwise stated, "a plurality of" means two or more, and other quantifiers are similar; "at least one," "one or more," or similar expressions refer to any combination of these items, including any combination of single or multiple items.
[0054] Although operations or steps are described in a specific order in the accompanying drawings in the embodiments of this disclosure, it should not be construed as requiring these operations or steps to be performed in the specific order or serial order shown, or requiring all of the shown operations or steps to be performed to obtain the desired result. In the embodiments of this disclosure, these operations or steps may be performed serially; they may be performed in parallel; or a portion of these operations or steps may be performed.
[0055] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of these messages or information. It is understood that before using the technical solutions disclosed in the embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0056] First, the application scenarios of this disclosure will be explained. In related technologies, robot dexterous hands use multiple identical or different motor modules. Each motor module contains a separate processor, motor drive, and motor. The main control processor needs to confirm the motor's usage location to communicate with the motor module, meaning each motor module needs a fixed device identification code.
[0057] Currently, most solutions involve setting the device identification code for each motor module individually through software. However, this approach suffers from poor manufacturability and maintainability. The following description, in conjunction with specific embodiments, illustrates this disclosure.
[0058] Figure 1 This is a schematic diagram illustrating a control system according to an exemplary embodiment. Figure 1 As shown, this embodiment of the present disclosure provides a control system, including: multiple device modules 10 and a main control unit 20, wherein the multiple device modules 10 are respectively connected to the main control unit 20 through corresponding multiple sets of interfaces.
[0059] Each interface includes a device module identification code voltage acquisition port (not shown in the figure). Each device module 10 sets its device identification code based on the voltage acquired through this port. The voltage acquired by each device module 10 through the port is different, and this voltage has a one-to-one mapping relationship with the device identification codes of different device modules 10, thus allowing for differentiation between them. Because the device identification code of a device module 10 is obtained through the voltage of a hardware circuit, it can be automatically set according to its usage location without requiring further configuration by a host computer or main processor. The usage location of identical device modules 10 is unrestricted, which is beneficial for factory production testing and mass production, while also making after-sales maintenance more convenient.
[0060] In summary, this disclosure provides a control system comprising: multiple device modules and a main control unit. The multiple device modules are respectively connected to the main control unit through corresponding multiple sets of interfaces. Each interface includes a device module identification code voltage acquisition port, and each device module sets its device identification code based on the voltage acquired by the device module identification code voltage acquisition port of the interface. This disclosure sets the device identification code of the device module through the voltage acquired by the hardware port, avoiding the use of software to set the device identification code, thus improving production efficiency, mass production capability, and equipment maintainability after-sales service.
[0061] Figure 2 This is a schematic diagram illustrating a control system according to an exemplary embodiment. Figure 2 As shown, the interface includes a first interface 103 disposed on the device module 10 and a second interface 203 disposed on the main control unit 20; the device module identification code voltage acquisition port includes a voltage acquisition first terminal A1 (not shown in the figure) disposed on the first interface 103 and a voltage acquisition second terminal A2 (not shown in the figure) disposed on the second interface 203.
[0062] The device module 10 includes an electronic device 101, a module processor 102, and a first interface 103, which are connected together.
[0063] In some embodiments, the main control unit 20 includes a main processor 201 and a plurality of second interfaces 203, wherein the main processor 201 is connected to the plurality of second interfaces 203 via a data bus 202.
[0064] With the first interface 103 and the second interface 203 connected, the voltage acquisition first terminal A1 and the voltage acquisition second terminal A2 are connected.
[0065] In some embodiments, the bus communication port (not shown in the figure) of the module processor 102 is connected to the bus port (not shown in the figure) of the first interface 103, the bus port (not shown in the figure) of the second interface 203 is connected to the data bus 202, and the bus communication port (not shown in the figure) of the main processor 201 is connected to the data bus 202.
[0066] When the first interface 103 is connected to the second interface 203, the bus port of the first interface 103 is connected to the bus port of the second interface 203.
[0067] The main processor 201 can communicate with the device module 10 via bus according to the device identification code of the device module 10 to realize the control task.
[0068] Figure 3 This is a schematic diagram illustrating a first interface and a second interface according to an exemplary embodiment. Figure 3 As shown, the first interface 103 includes a first pull-up resistor R1.
[0069] The first terminal of the first pull-up resistor R1 is connected to the power supply VDD, and the second terminal of the first pull-up resistor R1 is connected to the voltage sampling port ADC_IN of the module processor 102. For example, the power supply VDD can be 3.3V.
[0070] The voltage sampling port ADC_IN is connected to the first voltage acquisition terminal A1 of the first interface 103.
[0071] The second interface 203 includes: a first pull-down resistor R2. The first terminal of the first pull-down resistor R2 is connected to the second voltage acquisition terminal A2, and the second terminal of the first pull-down resistor R2 is grounded.
[0072] In some embodiments, the multiple first pull-up resistors R1 in the multiple interfaces have the same resistance value, and the multiple first pull-down resistors R2 have different resistance values.
[0073] For example, R1 can be 10K ohms. When R2 is 1.8K ohms, the voltage sampled by the voltage sampling port ADC_IN is Vin=3.3V*1.8K / (10K+1.8K)≈0.5V.
[0074] When R2 is 15K ohms, the voltage sampled by the voltage sampling port ADC_IN is Vin=3.3V*15K / (10K+15K)≈1.98V.
[0075] When R2 is 100K ohms, the voltage sampled by the voltage sampling port ADC_IN is Vin=3.3V*100K / (10K+100K)≈3.0V.
[0076] In this way, by setting the same pull-up resistor value and different pull-down resistor values, different sampling voltages can be obtained, thereby completing the device identification code setting for different device modules 10.
[0077] In some embodiments, the first interface 103 further includes a first filter capacitor C1.
[0078] The first terminal of the first filter capacitor C1 is connected to the voltage sampling port ADC_IN of the module processor 102, and the second terminal of the first filter capacitor C1 is grounded. This makes the voltage data collected by the voltage sampling port ADC_IN of the module processor 102 more accurate.
[0079] Figure 4 This is a schematic diagram illustrating a first interface and a second interface according to an exemplary embodiment. Figure 4 As shown, the first interface 103 includes a voltage acquisition first terminal A1, which is connected to the voltage sampling port ADC_IN of the module processor 102.
[0080] The second interface 203 includes: a second pull-up resistor R3 and a second pull-down resistor R4.
[0081] The first end of the second pull-up resistor R3 is connected to the power supply VDD, and the second end of the second pull-up resistor R3 is connected to the second terminal A2 of the voltage acquisition.
[0082] The first terminal of the second pull-down resistor R4 is connected to the second terminal A2 of the voltage acquisition, and the second terminal of the second pull-down resistor R4 is grounded.
[0083] In some embodiments, the ratio of the resistance values of the second pull-up resistor R3 to the second pull-down resistor R4 of the plurality of second interfaces 203 is different. This ensures that different device modules 10 receive different sampling voltages, thereby completing the device identification code setting for different device modules 10.
[0084] In some embodiments, the first interface 103 further includes a second filter capacitor C2.
[0085] The first terminal of the second filter capacitor C2 is connected to the voltage sampling port ADC_IN of the module processor 102, and the second terminal of the second filter capacitor C2 is grounded. This makes the voltage data collected by the voltage sampling port ADC_IN of the module processor 102 more accurate.
[0086] Figure 5 This is a schematic diagram illustrating a first interface and a second interface according to an exemplary embodiment. Figure 5 As shown, the first interface 103 includes a third pull-down resistor R5.
[0087] The first end of the third pull-down resistor R5 is connected to the voltage sampling port ADC_IN of the module processor 102, and the second end of the third pull-down resistor R5 is grounded.
[0088] The voltage sampling port ADC_IN is connected to the first voltage acquisition terminal A1 of the first interface 103.
[0089] The second interface 203 includes: a third pull-up resistor R6.
[0090] The first end of the third pull-up resistor R6 is connected to the power supply VDD, and the second end of the third pull-up resistor R6 is connected to the second terminal A2 of the voltage acquisition.
[0091] In some embodiments, the resistance values of the multiple third pull-up resistors R6 in the multiple interfaces are different, while the resistance values of the multiple third pull-down resistors R5 are the same. This ensures that different device modules 10 receive different sampling voltages, thereby completing the device identification code setting for different device modules 10.
[0092] In some embodiments, the first interface 103 further includes a third filter capacitor C3.
[0093] The first terminal of the third filter capacitor C3 is connected to the voltage sampling port ADC_IN of the module processor 102, and the second terminal of the third filter capacitor C3 is grounded. This makes the voltage data collected by the voltage sampling port ADC_IN of the module processor 102 more accurate.
[0094] In some embodiments, electronic device 101 may include a motor and a motor drive unit.
[0095] In some embodiments, electronic device 101 may include a sensor. Of course, electronic device 101 may include other electronic products, and this disclosure does not limit this.
[0096] In summary, this disclosure provides a control system comprising: multiple device modules and a main control unit. The multiple device modules are respectively connected to the main control unit through corresponding multiple sets of interfaces. Each interface includes a device module identification code voltage acquisition port, and each device module sets its device identification code based on the voltage acquired by the device module identification code voltage acquisition port of the interface. This disclosure sets the device identification code of the device module through the voltage acquired by the hardware port, avoiding the use of software to set the device identification code, thus improving production efficiency, mass production capability, and equipment maintainability after-sales service.
[0097] In some embodiments, this disclosure provides a device module 10, with reference to... Figure 2 The device module 10 includes:
[0098] Electronic device 101, module processor 102 and first interface 103 are connected. The first interface 103 is used to connect to the second interface 203 of the main control unit 20.
[0099] The module processor 102 is used to collect the device identification code of the voltage setting device module 10 through the voltage acquisition first terminal A1 in the first interface 103 when the first interface 103 is connected to the second interface 203.
[0100] In some embodiments, the first interface 103 includes a first pull-up resistor R1.
[0101] The first end of the first pull-up resistor R1 is connected to the power supply VDD, and the second end of the first pull-up resistor R1 is connected to the voltage sampling port ADC_IN of the module processor 102.
[0102] The voltage sampling port ADC_IN is connected to the first voltage acquisition terminal A1 of the first interface 103.
[0103] The second interface 203 includes: a first pull-down resistor R2.
[0104] The first terminal of the first pull-down resistor R2 is connected to the second terminal A2 of the voltage acquisition, and the second terminal of the first pull-down resistor R2 is grounded.
[0105] In some embodiments, this disclosure provides a main control unit 20, referred to Figure 2 The main control unit 20 includes:
[0106] The main processor 201 and multiple second interfaces 203 are connected to the multiple second interfaces 203 via a data bus 202.
[0107] Any second interface 203 is used to connect to the first interface 103 of the device module 10, so that when the first interface 103 is connected to the second interface 203, the module processor 102 sets the device identification code of the device module 10 through the voltage acquired by the voltage acquisition first terminal A1 in the first interface 103.
[0108] In some embodiments, the multiple first pull-up resistors R1 in the multiple interfaces have the same resistance value, and the multiple first pull-down resistors R2 have different resistance values.
[0109] Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment. For example, the electronic device 600 may be a robot or robotic arm, including the device module in the above embodiment.
[0110] Reference Figure 6 The electronic device 600 may include one or more of the following components: processing component 602, memory 604, power supply component 606, multimedia component 608, audio component 610, input / output interface 612, sensor component 614, and communication component 616.
[0111] Processing component 602 typically controls the overall operation of electronic device 600, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 602 may include one or more modules to facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.
[0112] Memory 604 is configured to store various types of data to support the operation of electronic device 600. Examples of this data include instructions for any application or method operating on electronic device 600, contact data, phonebook data, messages, pictures, videos, etc. Memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0113] Power supply component 606 provides power to various components of electronic device 600. Power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 600.
[0114] Multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 608 includes a front-facing camera and / or a rear-facing camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0115] Audio component 610 is configured to output and / or input audio signals. For example, audio component 610 includes a microphone (MIC) configured to receive external audio signals when electronic device 600 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 604 or transmitted via communication component 616. In some embodiments, audio component 610 also includes a speaker for outputting audio signals.
[0116] Input / output interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, start buttons, and lock buttons.
[0117] Sensor assembly 614 includes one or more sensors for providing state assessments of various aspects of electronic device 600. For example, sensor assembly 614 can detect the on / off state of electronic device 600, the relative positioning of components such as the display and keypad of electronic device 600, changes in position of electronic device 600 or a component of electronic device 600, the presence or absence of user contact with electronic device 600, orientation or acceleration / deceleration of electronic device 600, and temperature changes of electronic device 600. Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 614 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0118] Communication component 616 is configured to facilitate wired or wireless communication between electronic device 600 and other devices. Electronic device 600 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 616 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0119] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0120] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, which can be executed by a processor 620 of an electronic device 600 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0121] The aforementioned device can be a standalone electronic device or a part of a standalone electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be a single IC or a collection of multiple ICs; the chip can include, but is not limited to, the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip), etc. The aforementioned integrated circuit or chip can be used to execute executable instructions (or code). These executable instructions can be stored in the integrated circuit or chip, or obtained from other devices or equipment. For example, the integrated circuit or chip includes a processor, memory, and an interface for communicating with other devices. The executable instructions can be stored in the memory; alternatively, the integrated circuit or chip can receive executable instructions through the interface and transmit them to the processor for execution.
[0122] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of this disclosure. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0123] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A device module, characterized in that, include: The system includes an electronic device, a module processor, and a first interface, wherein the electronic device, the module processor, and the first interface are connected, and the first interface is used to connect to a second interface of the main control unit. The module processor is used to set the device identification code of the device module by means of the voltage collected by the first terminal of the voltage acquisition in the first interface when the first interface is connected to the second interface.
2. A main control unit, characterized in that, include: A main processor and multiple second interfaces, wherein the main processor is connected to the multiple second interfaces via a data bus; Any of the second interfaces is used to connect to the first interface of the device module, so that when the first interface is connected to the second interface, the module processor of the device module sets the device identification code of the device module through the voltage acquired by the first voltage acquisition terminal in the first interface, wherein the device module is the device module as described in claim 1.
3. A control system, characterized in that, include: The device modules as described in claim 1 and the main control unit as described in claim 2, wherein the device modules are respectively connected to the main control unit through corresponding interfaces; The interface includes a first interface disposed in the device module and a second interface disposed in the main control unit; The device module identification code voltage acquisition port includes a voltage acquisition first terminal disposed on the first interface and a voltage acquisition second terminal disposed on the second interface; When the first interface and the second interface are connected, the voltage acquisition first terminal and the voltage acquisition second terminal are connected; The device module sets its device identification code based on the voltage acquired by the first voltage acquisition terminal.
4. The system according to claim 3, characterized in that, The first interface includes: a first pull-up resistor; The first end of the first pull-up resistor is connected to the power supply, and the second end of the first pull-up resistor is connected to the voltage sampling port of the module processor. The voltage sampling port is connected to the voltage acquisition first terminal of the first interface; The second interface includes: a first pull-down resistor; The first end of the first pull-down resistor is connected to the second terminal of the voltage acquisition, and the second end of the first pull-down resistor is grounded.
5. The system according to claim 4, characterized in that, The resistance values of the multiple first pull-up resistors in the multiple sets of interfaces are the same, while the resistance values of the multiple first pull-down resistors are different.
6. The system according to claim 3, characterized in that, The first interface further includes: a first filter capacitor; The first end of the first filter capacitor is connected to the voltage sampling port of the module processor, and the second end of the first filter capacitor is grounded.
7. The system according to claim 3, characterized in that, The first interface includes a voltage acquisition first terminal, which is connected to the voltage sampling port of the module processor; The second interface includes: a second pull-up resistor and a second pull-down resistor; The first end of the second pull-up resistor is connected to the power supply, and the second end of the second pull-up resistor is connected to the second voltage acquisition terminal. The first end of the second pull-down resistor is connected to the second voltage acquisition terminal, and the second end of the second pull-down resistor is grounded.
8. The system according to claim 7, characterized in that, The ratio of the resistance values of the second pull-up resistor to the second pull-down resistor in the second interface is different.
9. The system according to claim 7, characterized in that, The first interface further includes: a second filter capacitor; The first end of the second filter capacitor is connected to the voltage sampling port of the module processor, and the second end of the second filter capacitor is grounded.
10. The system according to claim 3, characterized in that, The first interface includes: a third pull-down resistor; The first end of the third pull-down resistor is connected to the voltage sampling port of the module processor, and the second end of the third pull-down resistor is grounded. The voltage sampling port is connected to the voltage acquisition first terminal of the first interface; The second interface includes: a third pull-up resistor; The first end of the third pull-up resistor is connected to the power supply, and the second end of the third pull-up resistor is connected to the second voltage acquisition terminal.
11. The system according to claim 10, characterized in that, The resistance values of the multiple third pull-up resistors in the multiple sets of interfaces are different, while the resistance values of the multiple third pull-down resistors are the same.
12. The system according to claim 10, characterized in that, The first interface also includes: a third filter capacitor; The first end of the third filter capacitor is connected to the voltage sampling port of the module processor, and the second end of the third filter capacitor is grounded.
13. The system according to claim 3, characterized in that, The device module includes electronic devices, which include at least one of the following: a motor or a sensor.
14. An electronic device, characterized in that, include: The control system according to any one of claims 3-13.