A self-adaptive address allocation circuit

By designing an adaptive address allocation circuit, the physical location of the socket module is automatically judged and the address value is determined, which solves the problems of address setting in the prior art that the address setting occupies a lot of resources, is complex in operation and is prone to errors, and achieves the effects of resource conservation, high production efficiency and consistent address.

CN222736175UActive Publication Date: 2025-04-08GUANGDONG HAIPENGXIN ELECTRIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421503627.4
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2025-04-08
Estimated Expiration
2034-06-28

AI Technical Summary

Technical Problem

The existing power socket module address setting method occupies a lot of microcontroller resources, is complex in operation and is prone to errors, resulting in low pass-through rate and low production efficiency, and the module address is inconsistent with the physical location, so problems cannot be reported in time.

Method used

An adaptive address allocation circuit is designed to automatically determine the physical position of the socket module and determine the address value through the resistor voltage division unit, the power supply control unit and the grounding control unit, and only occupies 2 microcontroller IO interfaces.

Benefits of technology

It saves microcontroller resources, reduces human errors, improves throughput rate and production efficiency, ensures that the module address is consistent with the physical location, and facilitates rapid on-site replacement and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222736175U_ABST
    Figure CN222736175U_ABST
Patent Text Reader

Abstract

The utility model relates to the technical field of power sockets, and in particular to a self-adaptive address allocation circuit. It is composed of multiple socket modules on the same rPDU connected in series, each socket module is provided with an address allocation subcircuit, each address allocation subcircuit includes a resistor voltage divider unit, a power control unit, a grounding control unit, an input interface, and an output interface. The two ends of the resistor voltage divider unit are respectively connected to the input interface and the output interface, the power control unit is respectively connected to the resistor voltage divider unit and the input interface, the grounding control unit is respectively connected to the resistor voltage divider unit and the output interface, and the output interface of the previous socket module is connected in series with the input interface of the next socket module. This self-adaptive address allocation circuit only occupies 2 IOs, saving single-chip computer resources; reducing the process of operation and configuration of production line workers, reducing the factors of human error, effectively improving the pass rate, and improving production efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of power sockets, in particular to a self-adaptive address distribution circuit. Background Art

[0002] At present, the modules of rPDU are connected and communicated through RS485 bus / CAN bus. During the communication process, different modules need to be distinguished by address. Due to the characteristics of rPDU, the address of the module must correspond to the physical location where it is located.

[0003] At present, there are two main ways to set the address: hardware setting and software setting. Hardware setting is to set one or several IOs of the microcontroller to a high level through devices such as dip switches, pull-up and pull-down resistors, and set the address through 1248 code. Software setting is to directly modify the program through the host computer software to write the address into the EEPROM.

[0004] The above address setting method has the following problems:

[0005] (1) The hardware setting needs to occupy 3 or more IO ports, which is a great waste of microcontroller resources;

[0006] (2) Hardware and software settings require individual operators on the production line to perform operation settings in the later stages, which increases the production process. At the same time, problems will inevitably arise during the operation of the production line workers, which will inevitably lead to a low pass rate and reduce production efficiency.

[0007] (3) Hardware settings and software settings will inevitably result in the module address being inconsistent with the physical location, resulting in the monitoring data being inconsistent with the actual data and the inability to provide timely feedback on the problem;

[0008] (4) Hardware and software settings are difficult to operate and must be set in advance. Once set, they are difficult to change, which is not conducive to rapid replacement and maintenance on site. Utility Model Content

[0009] The utility model provides a self-adaptive address allocation circuit, aiming to solve the problems existing in the current address setting method.

[0010] The utility model provides an adaptive address allocation circuit, which is composed of a plurality of socket modules on the same rPDU connected in series, each of the socket modules is provided with an address allocation subcircuit, each of the address allocation subcircuit comprises a resistor voltage divider unit, a power control unit, a ground control unit, an input interface, and an output interface, the two ends of the resistor voltage divider unit are respectively connected to the input interface and the output interface, the power control unit is respectively connected to the resistor voltage divider unit and the input interface, the ground control unit is respectively connected to the resistor voltage divider unit and the output interface, and the output interface of the previous socket module is connected in series with the input interface of the next socket module.

[0011] As a further improvement of the present invention, when the socket module is located at the front end of the rPDU, the power control unit of the socket module is closed to make the positive pole of the power supply and the resistor divider unit conductive, and the grounding control unit is disconnected to make the resistor divider unit and the power ground non-conductive.

[0012] As a further improvement of the present invention, when the socket module is located at the rear end of the rPDU, the power control unit of the socket module is disconnected so that the positive pole of the power supply and the resistor divider unit are not conductive, and the grounding control unit is closed so that the resistor divider unit and the power ground are conductive.

[0013] As a further improvement of the present invention, when the socket module is located in the middle of the rPDU, the power control unit of the socket module is disconnected to make the positive pole of the power supply and the resistor divider unit non-conductive, and the grounding control unit is disconnected to make the resistor divider unit and the power ground non-conductive.

[0014] As a further improvement of the present invention, the resistor voltage divider unit includes a resistor RS1, a front end of the resistor RS1 is connected in series with an input interface, and a rear end of the resistor RS1 is connected in series with an output interface.

[0015] As a further improvement of the present utility model, the power control unit includes a P-MOS tube Q1, the source of the P-MOS tube Q1 is connected to the positive pole of the power supply, the drain of the P-MOS tube Q1 is connected to the front end of the resistor RS1, and the gate of the P-MOS tube Q1 is connected to the input interface.

[0016] As a further improvement of the present invention, the grounding control unit includes an N-MOS tube Q2, the source of the N-MOS tube Q2 is grounded, the drain of the N-MOS tube Q2 is connected to the rear end of the resistor RS1, and the gate of the N-MOS tube Q2 is connected to the output interface.

[0017] As a further improvement of the present invention, the adaptive address allocation circuit further includes a first ADC detection unit and a second ADC detection unit. The first ADC detection unit is connected to the front end of the resistor RS1, and the second ADC detection unit is connected to the rear end of the resistor RS1.

[0018] As a further improvement of the present utility model, the first ADC detection unit includes a first ADC detection port, a resistor R1, and a capacitor C1. The first ADC detection port is respectively connected to one end of the resistor R1 and the capacitor C1, the other end of the resistor R1 is connected to the front end of the resistor RS1, and the other end of the capacitor C1 is grounded.

[0019] As a further improvement of the present invention, the second ADC detection unit includes a second ADC detection port, a resistor R2, and a capacitor C2. The second ADC detection port is respectively connected to one end of the resistor R2 and the capacitor C2. The other end of the resistor R2 is connected to the rear end of the resistor RS1, and the other end of the capacitor C2 is grounded.

[0020] The beneficial effects of the utility model are:

[0021] (1) The self-adaptive address allocation circuit only occupies two MCU IO interfaces, saving MCU resources;

[0022] (2) It reduces the number of operating procedures for production line workers, reduces the factors of human error, effectively improves the first pass rate, and improves production efficiency;

[0023] (3) Automatic address adaptation is adopted to ensure that the socket module address is consistent with the physical location, eliminating the situation where the module address is inconsistent with the physical address;

[0024] (4) It adopts the automatic address adaptation method, which does not require prior configuration and is plug-and-play. It automatically adapts the address and is easy to quickly replace and maintain on site. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a topological diagram of the address allocation subcircuit of the utility model;

[0026] Figure 2 It is a circuit schematic diagram of the address allocation subcircuit of the utility model;

[0027] Figure 3 The utility model is a circuit principle diagram of a self-adaptive address distribution circuit after a plurality of socket modules are connected. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0029] like Figures 1 to 3 As shown, a self-adaptive address allocation circuit of the utility model is composed of multiple socket modules on the same rPDU connected in series, each socket module is equipped with an address allocation subcircuit, each address allocation subcircuit includes a resistor voltage divider unit, a power supply control unit, a grounding control unit, an input interface, and an output interface, the two ends of the resistor voltage divider unit are respectively connected to the input interface and the output interface, the power supply control unit is respectively connected to the resistor voltage divider unit and the input interface, the grounding control unit is respectively connected to the resistor voltage divider unit and the output interface, and the output interface of the previous socket module is connected in series with the input interface of the next socket module.

[0030] The socket module is connected to the previous socket module through the input interface and to the next socket module through the output interface. The input interface and the output interface between the socket modules are connected by wires. The power control unit acts as a power switch to control whether the resistance voltage divider unit is connected to the positive pole of the power supply. The grounding control unit acts as a grounding switch to control whether the resistance voltage divider unit is connected to the power ground.

[0031] When the socket module is located at the front end of the rPDU, the power control unit of the socket module is closed to make the positive pole of the power supply and the resistor voltage divider unit conductive, and the grounding control unit is disconnected to make the resistor voltage divider unit and the power ground non-conductive. Specifically, when the socket module is the front end module, the input interface of the socket module has no input, and the power control unit is in the default state, that is, the closed state. At this time, the positive pole of the power supply is closed, and the socket module supplies power to the resistor voltage divider unit; the output interface has input, and the grounding control unit is activated, that is, the grounding switch is disconnected, and the connection between the resistor voltage divider unit and the power ground is disconnected. At this time, the resistor voltage divider unit of the socket module is not connected to the power ground.

[0032] When the socket module is located at the rear end of the rPDU, the power control unit of the socket module is disconnected so that the positive pole of the power supply and the resistor voltage divider unit are not conducting, and the grounding control unit is closed so that the resistor voltage divider unit and the power ground are conducting. Specifically, when the current socket module is the rear end module, there is input to the input interface, the power control unit is actuated, that is, the power switch is disconnected, at this time the positive pole of the power supply is disconnected, and the socket module does not supply power to the resistor voltage divider unit; there is no input to the output interface, the grounding control unit maintains the default state, that is, the closed state, the resistor voltage divider unit and the power ground remain connected, and at this time the resistor voltage divider unit of the socket module is connected to the power ground.

[0033] When the socket module is located in the middle of the rPDU, the power control unit of the socket module is disconnected so that the positive pole of the power supply and the resistor voltage divider unit are not conductive, and the grounding control unit is disconnected so that the resistor voltage divider unit and the power ground are not conductive. Specifically, when the current socket module is the middle module, both the input interface and the output interface have inputs, and both the power control unit and the grounding control unit are in operation, that is, both are in the disconnected state. At this time, the positive pole of the power supply and the power ground are disconnected from the resistor voltage divider unit, and the power voltage divider unit of the socket module is not connected to the positive pole of the power supply and the power ground.

[0034] The positive power supply electrode and the resistor voltage divider unit of the frontmost socket module, the resistor voltage divider unit of the middle socket module, the resistor voltage divider unit of the rearmost socket module, and the power supply ground are connected in series to form a complete circuit loop.

[0035] like Figure 2 and Figure 3 As shown, the resistor voltage divider unit includes a resistor RS1, a front end of the resistor RS1 is connected in series with an input interface, and a rear end of the resistor RS1 is connected in series with an output interface. The resistor RS1 is connected in series with the resistor RS1 of other socket modules to form a voltage divider circuit.

[0036] The power control unit includes a P-MOS tube Q1, the source of the P-MOS tube Q1 is connected to the positive electrode of the power supply, the drain of the P-MOS tube Q1 is connected to the front end of the resistor RS1, and the gate of the P-MOS tube Q1 is connected to the input interface. The power control unit also includes a resistor R3, one end of the resistor R3 is connected to the gate of the P-MOS tube Q1, and the other end of the resistor R3 is grounded. The P-MOS tube Q1 is used as a control switch of the power control unit, and the connection state of the positive electrode of the power supply and the resistor voltage divider unit is adjusted by controlling the conduction and non-conduction of the P-MOS tube Q1.

[0037] The grounding control unit includes an N-MOS tube Q2, the source of which is grounded, the drain of which is connected to the rear end of the resistor RS1, and the gate of which is connected to the output interface. The grounding control unit also includes a resistor R4, one end of which is connected to the gate of the N-MOS tube Q2, and the other end of which is connected to the positive electrode VCC of the power supply. The N-MOS tube Q1 is used as a control switch of the grounding control unit, and the connection state between the resistor voltage divider unit and the power supply ground is adjusted by controlling the conduction and non-conduction of the N-MOS tube Q1.

[0038] The self-adaptive address allocation circuit also includes a first ADC detection unit and a second ADC detection unit. The first ADC detection unit is connected to the front end of the resistor RS1, and the second ADC detection unit is connected to the rear end of the resistor RS1. The single-chip microcomputer inside each socket module reads the values ​​of the first ADC detection unit and the second ADC detection unit of the module's own voltage, and calculates the number of modules according to the difference between the two values; then, according to the value of the first ADC detection unit and the number of modules, it automatically determines its own physical position and determines the corresponding address value.

[0039] The first ADC detection unit includes a first ADC detection port, a resistor R1, and a capacitor C1. The first ADC detection port is connected to one end of the resistor R1 and the capacitor C1 respectively, the other end of the resistor R1 is connected to the front end of the resistor RS1, and the other end of the capacitor C1 is grounded.

[0040] The second ADC detection unit includes a second ADC detection port, a resistor R2, and a capacitor C2. The second ADC detection port is connected to one end of the resistor R2 and the capacitor C2 respectively, the other end of the resistor R2 is connected to the rear end of the resistor RS1, and the other end of the capacitor C2 is grounded.

[0041] by Figure 3 Taking the circuit diagram as an example, the working process of the self-adaptive address allocation circuit is described below:

[0042] The voltage at the front end of resistor RS1 is Vin, the voltage at the rear end is Vout, the voltage difference between the two ends is Vc, and the address value of the socket module is n.

[0043] The input interface of socket module 1 is not connected, Vgs=-VCC, P-MOS is turned on, and VCC supplies power to the circuit. The output interface of socket module 1 is connected to the input of socket module 2, Vgs=0, N-MOS is disconnected, and the grounding circuit has no function. The input interface of socket module N is connected to the output interface of socket module N-1; Vgs=0, P-MOS is disconnected, and the power supply circuit has no function. The output interface of socket module N is not connected, Vgs=VCC, N-MOS is closed, and the circuit is grounded.

[0044] The first ADC detection unit (ADC1) filters Vin and introduces it into the first ADC detection port of the single chip microcomputer. The second ADC detection unit (ADC2) filters Vout and introduces it into the first ADC detection port of the single chip microcomputer.

[0045] VCC is a preset value. The microcontroller calculates the Vc value based on the ADC1 and ADC2 values. N is obtained based on N=VCC / Vc, where N is the total number of socket modules. The address value n of the current socket module can be calculated based on (N+1-n) / N=VCC / Vin.

[0046] The self-adaptive address allocation circuit of the utility model solves the shortcomings of previous address settings, while reducing product production costs and production processes, meeting customer requirements for rapid on-site replacement and promoting technological innovation and progress.

[0047] The above contents are further detailed descriptions of the present invention in combination with specific preferred implementations, and the specific implementation of the present invention cannot be considered to be limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. An adaptive address allocation circuit, characterized in that: It is composed of multiple socket modules on the same rPDU connected in series, each of the socket modules is equipped with an address allocation subcircuit, each of the address allocation subcircuit includes a resistor divider unit, a power control unit, a grounding control unit, an input interface, and an output interface, the two ends of the resistor divider unit are respectively connected to the input interface and the output interface, the power control unit is respectively connected to the resistor divider unit and the input interface, the grounding control unit is respectively connected to the resistor divider unit and the output interface, and the output interface of the previous socket module is connected in series with the input interface of the next socket module.

2. The self-adaptive address allocation circuit according to claim 1, characterized in that: When the socket module is located at the front end of the rPDU, the power control unit of the socket module is closed to conduct the positive pole of the power supply and the resistor voltage divider unit, and the grounding control unit is opened to disconnect the resistor voltage divider unit and the power ground.

3. The self-adaptive address allocation circuit according to claim 1, characterized in that: When the socket module is located at the rear end of the rPDU, the power control unit of the socket module is disconnected to make the positive pole of the power supply and the resistor voltage divider unit non-conductive, and the grounding control unit is closed to make the resistor voltage divider unit and the power ground conductive.

4. The self-adaptive address allocation circuit according to claim 1, characterized in that: When the socket module is located in the middle of the rPDU, the power control unit of the socket module is disconnected to make the positive pole of the power supply and the resistor voltage divider unit non-conductive, and the grounding control unit is disconnected to make the resistor voltage divider unit and the power ground non-conductive.

5. The self-adaptive address allocation circuit according to claim 1, characterized in that: The resistor voltage dividing unit comprises a resistor RS1, a front end of the resistor RS1 is connected in series with an input interface, and a rear end of the resistor RS1 is connected in series with an output interface.

6. The self-adaptive address allocation circuit according to claim 5, characterized in that: The power control unit includes a P-MOS tube Q1, a source of the P-MOS tube Q1 is connected to the positive electrode of the power supply, a drain of the P-MOS tube Q1 is connected to the front end of the resistor RS1, and a gate of the P-MOS tube Q1 is connected to the input interface.

7. The self-adaptive address allocation circuit according to claim 5, characterized in that: The ground control unit includes an N-MOS tube Q2, the source of the N-MOS tube Q2 is grounded, the drain of the N-MOS tube Q2 is connected to the rear end of the resistor RS1, and the gate of the N-MOS tube Q2 is connected to the output interface.

8. The self-adaptive address allocation circuit according to claim 5, characterized in that: It also includes a first ADC detection unit and a second ADC detection unit. The first ADC detection unit is connected to the front end of the resistor RS1, and the second ADC detection unit is connected to the rear end of the resistor RS1.

9. The self-adaptive address allocation circuit according to claim 8, characterized in that: The first ADC detection unit includes a first ADC detection port, a resistor R1, and a capacitor C1. The first ADC detection port is connected to one end of the resistor R1 and the capacitor C1 respectively, the other end of the resistor R1 is connected to the front end of the resistor RS1, and the other end of the capacitor C1 is grounded.

10. The self-adaptive address allocation circuit according to claim 8, characterized in that: The second ADC detection unit includes a second ADC detection port, a resistor R2, and a capacitor C2. The second ADC detection port is connected to one end of the resistor R2 and the capacitor C2 respectively. The other end of the resistor R2 is connected to the rear end of the resistor RS1, and the other end of the capacitor C2 is grounded.