Apparatus, system and method for automatic addressing

Through the structure of the insulating ring and rotating bracket, the master device automatically assigns addresses to the slave device, solving the problems of errors and inefficiency caused by manual operation and achieving efficient device address allocation.

CN117014249BActive Publication Date: 2026-07-31JIANGSU TIANHE ENERGY STORAGE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JIANGSU TIANHE ENERGY STORAGE CO LTD
Filing Date
2023-08-04
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

In existing technologies, device address allocation requires manual operation, which is prone to errors and inefficient.

Method used

The device employs an insulating ring and a rotating bracket structure. The rotating bracket is controlled by a drive mechanism to sequentially connect the conductive connecting pieces to the wiring terminals, and the master device automatically assigns addresses to the slave devices.

Benefits of technology

It enables automatic allocation of device addresses, avoiding human error and improving allocation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117014249B_ABST
    Figure CN117014249B_ABST
Patent Text Reader

Abstract

This invention provides a device for automatic addressing, comprising: an insulating ring (1), a rotating bracket (2), and a drive mechanism. The insulating ring (1) has a terminal block (A) spaced at equal intervals, each terminal block (A) being used to connect to one end of a slave device. The rotating bracket (2) includes multiple support rods (21) radiating outwards from the center of the bracket and a lead wire (22). The support rods are insulated, and each support rod (21) has a conductive connecting piece (B) at its end, which is used to conduct electricity to the terminal block (A). One end of the lead wire (22) is connected to one of the conductive connecting pieces (B1) among the multiple conductive connecting pieces (B), and the other end of the lead wire (22) is used to connect to a master device. The drive mechanism is connected to the rotating bracket (2) and is used to drive the rotating bracket (2) to rotate so that the conductive connecting piece (B1) connected to the lead wire (22) sequentially conducts electricity to the terminal block (A). This device enables any slave device to easily enter or exit the bus.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates primarily to the field of communications, and more particularly to an apparatus, system and method for automatic addressing. Background Technology

[0002] With the development of energy storage technology, the number of devices integrated into energy storage containers is also increasing. These devices include air conditioners, temperature sensors, humidity sensors, and gas sensors. These devices communicate with the main control device via a bus. Before communication, the main control device needs to assign an address to each device.

[0003] The most common address allocation method currently is to manually assign device addresses first, then disconnect all slave devices from the bus, then set their addresses point-to-point via commands, and finally reconnect the slave devices to the bus. This manual address setting method is prone to repetition or errors, and it takes a lot of time, making it inefficient. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide an apparatus, an automatic addressing system and a method for automatic addressing, which solves the problems of easy error and low efficiency in manual address setting.

[0005] To solve the above-mentioned technical problems, the present invention provides a device for automatic addressing, comprising: an insulating ring (1), a rotating bracket (2), and a driving mechanism, wherein the insulating ring (1) is provided with a terminal (A) at equal intervals, the terminal (A) being used to connect one end of a slave device; the rotating bracket (2) includes a plurality of support rods (21) radiating outward from the center of the bracket and a lead wire (22), the support rods being insulated, each support rod (21) having a conductive connecting piece (B) at its end, the conductive connecting piece (B) being used to conduct electricity with the terminal (A), one end of the lead wire (22) being connected to one of the conductive connecting pieces (B1) among the plurality of conductive connecting pieces (B), and the other end of the lead wire (22) being used to connect to a master device; the driving mechanism is connected to the rotating bracket (2) and is used to drive the rotating bracket (2) to rotate so that the conductive connecting piece (B1) connected to the lead wire (22) is sequentially connected to the terminal (A).

[0006] Optionally, the included angle between two adjacent terminals (A) is a first angle (α), and the included angle between two adjacent support rods (21) is a second angle (2α), wherein the second angle is twice the first angle.

[0007] Optionally, the drive mechanism is communicatively connected to the main device, and the drive mechanism is also used to receive the drive signal from the main device and drive the rotating bracket (2) to rotate according to the drive signal, wherein the drive signal includes a rotation angle.

[0008] Optionally, the length of the conductive connecting piece (B) is in the range of [L, 2L), where L is the arc length between two adjacent terminals (A).

[0009] Optionally, the insulating ring (1) is fixed in place.

[0010] Optionally, the insulating ring (1) is movable, but the insulating ring (1) remains fixed relative to the rotating bracket (2) when the rotating bracket (2) rotates.

[0011] Optionally, the lead-out line (3) is an RS485 bus.

[0012] To solve the above-mentioned technical problems, the present invention provides an automatic addressing system, comprising: the device as described above; a master device connected to one end of the lead wire (22), wherein the master device controls the initial state of the rotating bracket (2) so that the conductive connecting piece (B1) connected to the lead wire (22) is only connected to one terminal (A), and then controls the rotating bracket (2) to rotate so that the master device is connected to one slave device in sequence. When the master device is connected to the slave device, the master device assigns an address to the slave device and determines whether all slave devices have been assigned addresses. If not, the master device controls the rotating bracket (2) to continue rotating.

[0013] Optionally, the included angle between two adjacent terminals (A) of the device is a first angle (α), and the included angle between two adjacent support rods (21) is a second angle (2α). When the second angle is twice the first angle, the main device is also used to control the rotating bracket (2) to rotate at intervals of the second angle.

[0014] Optionally, the master device is further configured to control the rotating bracket to rotate a third angle when all slave devices have been assigned addresses, so that all slave devices are connected to the master device, wherein the third angle is 1.5 times the first angle.

[0015] Optionally, all slave devices are connected to the master device via a daisy chain.

[0016] Optionally, the master device is also configured to set addresses according to the order in which the slave devices are connected.

[0017] Optionally, the master device is also used to determine whether it knows the number of slave devices that need to be assigned addresses. If not, it determines whether the rotating bracket has rotated one full turn. If so, all slave devices have been assigned addresses.

[0018] To solve the above-mentioned technical problems, the present invention provides an automatic addressing method applicable to the above-described device, comprising: controlling the initial state of the rotating bracket (2) such that the conductive connecting piece (B1) connected to the lead wire (22) is only connected to one terminal (A); controlling the rotating bracket (2) to rotate so that the master device is connected to one slave device in sequence, and when the master device is connected to the slave device, the master device assigns an address to the slave device; determining whether all slave devices have been assigned addresses, and if not, controlling the rotating bracket (2) to continue rotating.

[0019] Optionally, the included angle between two adjacent terminals (A) of the device is a first angle (α), and the included angle between two adjacent support rods (21) is a second angle (2α). When the second angle is twice the first angle, the device further includes controlling the rotating bracket (2) to rotate at intervals of the second angle.

[0020] Optionally, the method further includes: if all slave devices have been assigned addresses, controlling the rotating bracket to rotate a third angle so that all slave devices are connected to the master device, wherein the third angle is 1.5 times the first angle.

[0021] Compared with the prior art, the present invention has the following advantages:

[0022] The automatic addressing device of this invention utilizes an insulating ring and a rotating bracket structure to ensure that, as the rotating bracket rotates, the conductive connecting pieces connected to the lead wires sequentially connect to the terminals on the insulating ring. This device allows any slave device on the insulating ring to easily enter or exit the bus, avoiding the tedious manual switching of slave devices. The automatic addressing system of this invention controls the initial state and rotation angle of the rotating bracket through the master device, ensuring that during the address allocation phase, only one slave device is connected to the master device. When the master device connects to a slave device, it automatically assigns an address to the slave device without manual intervention, resulting in high speed. Once all slave devices have been assigned addresses, the rotating bracket is controlled to rotate a third angle, allowing all slave devices to connect to the master device and automatically enter normal operating mode. Attached Figure Description

[0023] The accompanying drawings are included to provide a further understanding of this application; they are incorporated into and constitute a part of this application. The drawings illustrate embodiments of this application and, together with this specification, serve to explain the principles of the invention. In the drawings:

[0024] Figure 1 This is a top view of an apparatus for automatic addressing according to an embodiment of the present invention;

[0025] Figure 2A yes Figure 1 Schematic diagram of the middle insulating ring;

[0026] Figure 2B yes Figure 1 Schematic diagram of the rotating support structure;

[0027] Figure 3 This is a system block diagram of an automatic addressing system according to an embodiment of the present invention;

[0028] Figure 4A This is a schematic diagram of the initial state of an automatic addressing system according to an embodiment of the present invention;

[0029] Figure 4B yes Figure 4A The equivalent circuit connection diagram;

[0030] Figure 5A This is a schematic diagram of the second state of an automatic addressing system according to an embodiment of the present invention;

[0031] Figure 5B yes Figure 5A The equivalent circuit connection diagram;

[0032] Figure 6A This is a schematic diagram of the third state of an automatic addressing system according to an embodiment of the present invention;

[0033] Figure 6B yes Figure 6A The equivalent circuit connection diagram;

[0034] Figure 7A This is a schematic diagram of the fourth state of an automatic addressing system according to an embodiment of the present invention;

[0035] Figure 7B yes Figure 7A The equivalent circuit connection diagram;

[0036] Figure 8A This is a schematic diagram of the fifth state of an automatic addressing system according to an embodiment of the present invention;

[0037] Figure 8B yes Figure 8A The equivalent circuit connection diagram;

[0038] Figure 9 This is a flowchart of an automatic addressing method according to an embodiment of the present invention. Detailed Implementation

[0039] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are merely some examples or embodiments of this application. For those skilled in the art, these drawings can be applied to other similar scenarios without creative effort. Unless obvious from the context or otherwise specified, the same reference numerals in the drawings represent the same structures or operations.

[0040] As indicated in this application and claims, unless the context clearly indicates otherwise, the words "a," "an," "an," and / or "the" are not specifically singular and may include plural forms. Generally speaking, the terms "comprising" and "including" only indicate the inclusion of explicitly identified steps and elements, which do not constitute an exclusive list, and the method or apparatus may also include other steps or elements.

[0041] Unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps described in these embodiments do not limit the scope of this application. It should also be understood that, for ease of description, the dimensions of the various parts shown in the drawings are not drawn to actual scale. Techniques, methods, and devices known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and devices should be considered part of the specification. In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters in the following drawings denote similar items; therefore, once an item is defined in one drawing, it need not be further discussed in subsequent drawings.

[0042] In the description of this application, it should be understood that the orientation or positional relationship indicated by directional terms such as "front, back, up, down, left, right", "horizontal, vertical, horizontal" and "top, bottom" is usually based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing this application and simplifying the description. Unless otherwise stated, these directional terms do not indicate or imply that the device or element referred to must have a specific orientation or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation on the scope of protection of this application; the directional terms "inner" and "outer" refer to the inner and outer contours relative to the outline of each component itself.

[0043] For ease of description, spatial relative terms such as "above," "on top of," "on the upper surface of," "above," etc., are used herein to describe the spatial positional relationship of a device or feature as shown in the figures to other devices or features. It should be understood that spatial relative terms are intended to encompass different orientations in use or operation beyond the orientation of the device as described in the figures. For example, if the device in the figures were inverted, a device described as "above" or "on top of" other devices or structures would subsequently be positioned as "below" or "under" other devices or structures. Thus, the exemplary term "above" can include both "above" and "below." The device may also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatial relative descriptions used herein will be interpreted accordingly.

[0044] Flowcharts are used in this application to illustrate the operations performed by the system according to embodiments of this application. It should be understood that the preceding or following operations are not necessarily performed in exact order. Instead, various steps can be processed in reverse order or simultaneously. Furthermore, other operations may be added to these processes, or one or more steps may be removed from these processes.

[0045] To achieve automatic addressing of equipment within energy storage containers, eliminating the need for manual intervention and preventing errors, this invention designs a device for automatic addressing. This device allows any device on the bus to be easily disconnected and automatically addressed; after addressing, all devices can then be reconnected to the bus for operation.

[0046] Figure 1 This is a top view of an apparatus for automatic addressing according to an embodiment of the present invention. Figure 2A yes Figure 1 A schematic diagram of the structure of the middle insulating ring. Figure 2B yes Figure 1 A schematic diagram of the rotating support structure. The following is combined with... Figures 1-2B The apparatus 100 for automatic addressing (hereinafter referred to as apparatus 100) will be described.

[0047] Device 100 includes an insulating ring 1, a rotating support 2, and a drive mechanism (not shown). Figure 2A As shown, an insulating ring 1 has a terminal A spaced at equal intervals. Terminal A is used to connect one end of a slave device. Figure 2BAs shown, the rotating bracket 2 includes multiple support rods 21 radiating outward from the center of the bracket. The support rods 21 are insulated, and some or all of them are made of insulating material. Each support rod 21 has a conductive connecting piece B at its end, which is used to conduct electricity to the terminal block A. The rotating bracket 2 also includes a lead wire 22. One end of the lead wire 22 is connected to one of the conductive connecting pieces B1, wherein the conductive connecting piece B1 is arbitrarily selected from all the conductive connecting pieces B, and this application does not impose any limitation on this. The other end of the lead wire 22 is used to connect to the main equipment. The center of the rotating bracket 2 coincides with the center of the insulating ring 1, and the length of the support rod 21 is equal to (or approximately equal to) the radius of the insulating ring 1.

[0048] The drive mechanism is connected to the rotating bracket 2. The drive mechanism is used to drive the rotating bracket 2 to rotate so that the conductive connecting piece B1 connected to the lead wire 22 is connected to each terminal A on the insulating ring 1 in sequence.

[0049] Preferably, such as Figure 2A and Figure 2B As shown, the angle between two adjacent terminals A is the first angle α, and the angle between two adjacent support rods 21 is the second angle 2α. When the angle between the support rods is a multiple of the angle between the terminals A, by controlling the rotation angle of the rotating bracket 2, the master device can be made to conduct only once with each slave device. For example, each slave device is connected to two adjacent terminals A. When the angle between the support rods is twice the angle between the terminals A, the initial state of the rotating bracket 2 is controlled so that the conductive connecting piece B1 connected to the lead wire is only connected to one terminal A. Then, the rotating bracket 2 is controlled to rotate at intervals of the second angle 2α, so that the master device can conduct only once with each slave device.

[0050] Optionally, the length of the conductive connecting piece B ranges from [L, 2L), where L is the arc length of the insulating ring between two adjacent terminals A. In other words, the length of the conductive connecting piece B is greater than or equal to one arc length and less than two arc lengths. This structure allows all slave devices to be connected to the master device in a daisy-chain topology after addressing, meaning all slave devices are integrated into the bus for operation. For example, after addressing, the rotating bracket 2 is controlled to rotate by a third angle, which is 1.5α. At this time, since the length of each conductive connecting piece B is equal to the arc length of the insulating ring between two adjacent terminals A, each conductive connecting piece B can connect to two adjacent slave devices. In other words, all slave devices are interconnected through a daisy-chain topology and are all connected to the bus, connected to the master device. Optionally, the drive mechanism is communicatively connected to the master device. Communication can be via wired or wireless communication, and this application does not limit this. The drive mechanism is also used to receive drive signals from the master device and drive the rotating bracket 2 to rotate according to the drive signals, the drive signals including the rotation angle. Optionally, the drive mechanism includes a motor. The motor moves according to the drive signals, thereby driving the rotating bracket 2 to rotate. In other words, the main equipment controls the movement position of the motor, thereby controlling the rotation angle of the rotating bracket 2.

[0051] Optionally, the insulating ring 1 is fixed. In some embodiments, the insulating ring 1 is movable, but remains fixed relative to the rotating bracket 2 when the rotating bracket 2 rotates.

[0052] Optionally, lead 22 is an RS485 bus. In other embodiments, other types of buses may also be used, such as RS232 buses, and this application is not limited thereto.

[0053] The automatic addressing device of the present invention utilizes an insulating ring and a rotating bracket structure to ensure that, as the rotating bracket rotates, the conductive connecting piece connected to the lead wire sequentially connects to the terminals on the insulating ring. This device allows any slave device on the insulating ring to easily enter or exit the bus, avoiding the tedious process of manually switching slave devices.

[0054] Figure 3This is a system block diagram of an automatic addressing system according to an embodiment of the present invention. The automatic addressing system 300 includes a device 31 (hereinafter referred to as device 31) for automatic addressing and a master device 32. The automatic addressing system 300 can automatically assign addresses to multiple slave devices. The description of device 31 can be found in the description of device 100, and will not be repeated here. The master device 32 is connected to one end of the lead wire 311 of device 31. The master device 32 is communicatively connected to the drive mechanism of device 31. The master device 32 is used to send drive signals to the drive mechanism to control the initial state of the rotating bracket 312, where the conductive connecting piece B1 connected to the lead wire is only connected to one terminal. When the included angle between two adjacent terminals is a first angle and the included angle between two adjacent support rods is a second angle, the master device 32 is then controlled to rotate at intervals of the second angle, causing the master device 32 to connect to one slave device in sequence. When the master device 32 is connected to a slave device, the master device 32 assigns an address to the slave device and determines whether all slave devices have been assigned addresses. If not, it controls the rotating bracket 312 to continue rotating at intervals of the second angle.

[0055] Taking three slave devices that need to be assigned addresses as an example, the automatic addressing system of the present invention will be explained. Figure 4A This is a schematic diagram of the initial state of an automatic addressing system according to an embodiment of the present invention. Figure 4A As shown, devices 1, 2, and 3 are sequentially connected to the terminals on the insulating ring. Each slave device is connected to two adjacent terminals. The initial state of the master device's control rotating bracket is such that the conductive connecting piece B1 connected to the lead wire is only connected to one terminal, meaning that the conductive connecting piece B1 cannot connect to two adjacent terminals. Preferably, when the length of the conductive connecting piece B1 is equal to the arc length between two adjacent terminals, the rotating bracket is controlled to rotate so that the midpoint of the conductive connecting piece B1 is connected to the terminal. Figure 4B yes Figure 4A The equivalent circuit connection diagram is shown below. Figure 4A and Figure 4B As shown, in the initial state, only device 1 is connected to the master device, and the master device sets the address of device 1 to 001 via command. Devices 2 and 3 are both disconnected from the bus. In this embodiment, the bus is an RS485 bus. In other embodiments, other types of buses may be used, such as an RS232 bus, and this application does not limit this.

[0056] When addresses have not been assigned to all slave devices, the control rotating bracket rotates at second angular intervals. Optionally, the rotating bracket can be controlled to rotate clockwise or counterclockwise by the second angular interval; this application does not impose any limitation on this. Taking counterclockwise rotation of the rotating bracket as an example, after device 1 has been assigned an address, the rotating bracket is controlled to rotate counterclockwise by an angle 2α, and the state of the automatic addressing system transitions from the initial state to the second state. Figure 5A This is a schematic diagram of the second state of an automatic addressing system according to an embodiment of the present invention. Figure 5B yes Figure 5A The equivalent circuit connection diagram is shown below. Figure 5A and Figure 5B As shown, in the second state, only device 2 is connected to the master device among the three devices, and the master device sets the address of device 2 to 002 via command. Devices 1 and 3 are both disconnected from the bus. In this embodiment, the address set by the master device increments sequentially according to the order of connection with the slave devices, avoiding duplicate or incorrect encoding.

[0057] Optionally, the master device determines whether all slave devices have had their addresses allocated by: determining whether it knows the number of slave devices that need address allocation; if so, it determines whether all slave devices have had their addresses allocated based on the number of times the address has been set. If the number of times the address has been set equals the number of slave devices, then all slave devices have had their addresses allocated; otherwise, some slave devices remain unallocated. For example, if the master device knows in advance that 3 slave devices need address allocation, and after the master device sets the address of device 2 to 002 via a command, the number of times the address has been set (2) is not equal to the number of slave devices (3), then some slave devices remain unallocated.

[0058] If the master device does not know in advance the number of slave devices that need to be assigned addresses, it checks whether the rotating bracket has completed one full rotation. If so, all slave devices have been assigned addresses. If device 2 has been assigned an address but the rotating bracket has not completed one full rotation, then there are still slave devices without assigned addresses.

[0059] After device 2 has set the address, it controls the rotating bracket to continue rotating counterclockwise by an angle of 2α, and the automatic addressing system transitions to the third state. Figure 6A This is a schematic diagram of the third state of an automatic addressing system according to an embodiment of the present invention. Figure 6B yes Figure 6A The equivalent circuit connection diagram is shown below. Figure 6A and Figure 6B As shown, in the third state, only device 3 is connected to the master device, while devices 1 and 2 are disconnected from the bus. The master device sets the address of device 3 to 003 via a command. The address number of device 3 is 3, which is equal to the number of slave devices (3), meaning all slave devices have been assigned addresses.

[0060] Optionally, the master device can also control the rotating bracket to rotate a third angle, which is 1.5 times the first angle, after all slave devices have been assigned addresses, so that all slave devices are connected to the master device. If the master device knows in advance how many slave devices need to be assigned addresses, it can directly control the rotating bracket to rotate a third angle, which is 1.5 times the first angle, after all slave devices have been assigned addresses, so that all slave devices are connected to the master device. Continuing the example above, if the master device knows in advance that there are 3 slave devices that need to be assigned addresses, after setting the address of device 3 to 003 via a command, it controls the rotating bracket to rotate counterclockwise by an angle of 1.5α, and the state of the automatic addressing system transitions to the fourth state. Figure 7A This is a schematic diagram of the fourth state of an automatic addressing system according to an embodiment of the present invention. Figure 7B yes Figure 7A The equivalent circuit connection diagram is shown below. Figure 7A and Figure 7B As shown, in the fourth state, the three devices are interconnected via a daisy-chain topology and all are connected to the bus, linking to the master device. At this time, the master device, device 1, device 2, and device 3 can enter normal operating mode.

[0061] However, in most cases, the master device does not know in advance how many slave devices need to be assigned addresses. Therefore, the control mechanism continues to rotate the rotating bracket counterclockwise by 2α degrees. At this point, no slave device is connected to the master device, and the master device does not assign addresses. The control mechanism continues to rotate counterclockwise by 2α degrees until it has completed one full rotation. At this point, the addresses of all slave devices have been set.

[0062] When the rotating bracket has rotated one revolution, control the rotating bracket to rotate counterclockwise by 1.5α angle, and the automatic addressing system will transition to the fifth state. Figure 8A This is a schematic diagram of the fifth state of an automatic addressing system according to an embodiment of the present invention. Figure 8B yes Figure 8A The equivalent circuit connection diagram is shown below. Figure 8A and Figure 8B As shown, in the fifth state, the three devices are interconnected via a daisy-chain topology and all are connected to the bus, linking to the master device. At this time, the master device, device 1, device 2, and device 3 can enter normal operating mode.

[0063] The automatic addressing system of the present invention controls the initial state and rotation angle of the rotating bracket through the master device, so that during the address allocation stage, only one slave device is connected to the master device. When the master device is connected to the slave device, the master device automatically allocates addresses to the slave device without manual intervention, which is fast. When all slave devices have been allocated addresses, the rotating bracket is controlled to rotate a third angle, so that all slave devices are connected to the master device and automatically enter the normal working mode.

[0064] Figure 9 This is a flowchart of an automatic addressing method according to an embodiment of the present invention. The automatic addressing method 900 includes the following steps:

[0065] Step S91: Control the initial state of the rotating bracket so that the conductive connecting piece connected to the lead wire is only connected to one terminal.

[0066] Step S92: Control the rotating bracket to rotate at second angle intervals so that the master device connects to a slave device in sequence. When the master device connects to a slave device, the master device assigns an address to the slave device.

[0067] Step S93: Determine whether all slave devices have been assigned addresses. If not, proceed to step S92 and continue to rotate and assign addresses at intervals of the second angle. If yes, proceed to step S94.

[0068] Step S94: Control the rotating bracket to rotate a third angle so that all slave devices are connected to the master device. The third angle is 1.5 times the first angle.

[0069] It should be understood that the embodiments described above are merely illustrative. The embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For hardware implementation, the processor may be implemented within 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), processors, controllers, microcontrollers, microprocessors, and / or other electronic units designed to perform the functions described herein, or combinations thereof.

[0070] Some aspects of this application can be executed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The aforementioned hardware or software may be referred to as a "data block," "module," "engine," "unit," "component," or "system." The processor may be one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DAPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, or combinations thereof. Furthermore, aspects of this application may manifest as computer products residing in one or more computer-readable media, including computer-readable program code. For example, computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disks, floppy disks, magnetic tapes, etc.), optical discs (e.g., compressed CDs, digital multifunction DVDs, etc.), smart cards, and flash memory devices (e.g., cards, sticks, key drives, etc.).

[0071] A computer-readable medium may contain a propagated data signal containing computer program code, for example, on baseband or as part of a carrier wave. This propagated signal may take various forms, including electromagnetic, optical, and so on, or suitable combinations thereof. A computer-readable medium can be any computer-readable medium other than a computer-readable storage medium, which can be connected to an instruction execution system, apparatus, or device to enable communication, propagation, or transmission of a program for use. The program code located on the computer-readable medium can be propagated through any suitable medium, including radio, cable, fiber optic cable, radio frequency signals, or similar media, or any combination of the above media.

[0072] The basic concepts have been described above. Obviously, for those skilled in the art, the above disclosure is merely illustrative and does not constitute a limitation of this application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements, and corrections to this application. Such modifications, improvements, and corrections are suggested in this application, and therefore remain within the spirit and scope of the exemplary embodiments of this application.

Claims

1. An automatic addressing system characterized by, include: The device for automatic addressing includes: an insulating ring (1), a rotating bracket (2), and a drive mechanism. The insulating ring (1) has a terminal block (A) spaced at equal intervals, which is used to connect to one end of a slave device. The rotating bracket (2) includes multiple support rods (21) radiating outward from the center of the bracket and a lead wire (22). The support rods are insulated, and each support rod (21) has a conductive connecting piece (B) at its end, which is used to conduct electricity to the terminal block (A). One end of the lead wire (22) is connected to one of the multiple conductive connecting pieces (B) (B1), and the other end of the lead wire (22) is used to connect to a master device. The drive mechanism is connected to the rotating bracket (2) and is used to drive the rotating bracket (2) to rotate so that the conductive connecting piece (B1) connected to the lead wire (22) sequentially conducts electricity to the terminal block (A). The main device is connected to one end of the lead wire (22). The main device controls the initial state of the rotating bracket (2) so that the conductive connecting piece (B1) connected to the lead wire (22) is only connected to one terminal (A). Then, the rotating bracket (2) is controlled to rotate so that the main device is connected to one slave device in sequence. When the main device is connected to the slave device, the main device assigns an address to the slave device and determines whether all slave devices have been assigned addresses. If not, the rotating bracket (2) is controlled to continue rotating.

2. The system of claim 1, wherein, The included angle between two adjacent terminals (A) of the device is a first angle, and the included angle between two adjacent support rods (21) is a second angle. When the second angle is twice the first angle, the main device is also used to control the rotating bracket (2) to rotate at intervals of the second angle.

3. The system of claim 2, wherein, The master device is also used to control the rotating bracket to rotate a third angle when all slave devices have been assigned addresses, so that all slave devices are connected to the master device, wherein the third angle is 1.5 times the first angle.

4. The system of claim 3, wherein, All slave devices are connected to the master device via a daisy chain.

5. The system of claim 1, wherein, The master device is also used to set addresses according to the order in which the slave devices are connected.

6. The system as described in claim 1, characterized in that, The master device is also used to determine whether it knows the number of slave devices that need to be assigned addresses. If not, it determines whether the rotating bracket has rotated one full turn. If so, all slave devices have been assigned addresses.

7. The system as described in claim 1, characterized in that, The drive mechanism is communicatively connected to the main device. The drive mechanism is also used to receive drive signals from the main device and drive the rotating bracket (2) to rotate according to the drive signals. The drive signals include rotation angles.

8. The system as described in claim 1, characterized in that, The length of the conductive connecting piece (B) is in the range of [L, 2L), where L is the arc length between two adjacent terminals (A).

9. The system as described in claim 1, characterized in that, The insulating ring (1) is fixed.

10. The system as claimed in claim 1, characterized in that, The insulating ring (1) is movable, but when the rotating bracket (2) rotates, the insulating ring (1) remains fixed relative to the rotating bracket (2).

11. The system as claimed in claim 1, characterized in that, The lead-out line (3) is an RS485 bus.

12. An automatic addressing method, applicable to the system as described in any one of claims 1 to 11, comprising: The initial state of the control rotating bracket (2) is such that the conductive connecting piece (B1) connected to the lead wire (22) is only connected to one terminal (A); The rotating bracket (2) is controlled to rotate so that the master device is connected to a slave device in sequence. When the master device is connected to the slave device, the master device assigns an address to the slave device. Determine whether all slave devices have been assigned addresses. If not, control the rotating bracket (2) to continue rotating.

13. The method as described in claim 12, characterized in that, The included angle between two adjacent terminals (A) of the device is a first angle, and the included angle between two adjacent support rods (21) is a second angle. When the second angle is twice the first angle, the device also includes controlling the rotating bracket (2) to rotate at intervals of the second angle.

14. The method as described in claim 13, characterized in that, Also includes: If all slave devices have been assigned addresses, control the rotating bracket to rotate a third angle so that all slave devices are connected to the master device, where the third angle is 1.5 times the first angle.