A method and device for determining physical address of a multi-controller communication system

By calculating the voltage multiple between the different poles of the target electronic device and the electronic device chain, the controller's physical address is determined, which solves the problems of high cost and complex production management in the prior art, and realizes low-cost and automatic identification of physical address determination.

CN108897708BActive Publication Date: 2025-02-11DONGGUAN MENTECH OPTICAL & MAGNETIC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201811044892.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-09-07
Publication Date
2025-02-11
Estimated Expiration
2038-09-07

AI Technical Summary

Technical Problem

When determining the physical address of the controller, the existing multi-controller serial bus communication system has problems such as high cost, complex production management and low efficiency.

Method used

By obtaining the voltage between the different poles of the target electronic device and the electronic device chain, and calculating the multiple between the voltage and the preset standard voltage, obtaining the multiple value, using the multiple value to determine the address number of the target electronic device, and then determining the control The physical address of the device.

Benefits of technology

The controller physical address is determined at a low cost, and the address can be automatically identified based on the connection location of the target electronic device, reducing production costs and management complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN108897708B_ABST
    Figure CN108897708B_ABST
Patent Text Reader

Abstract

The present application provides a method for determining the physical address of a multi-controller communication system, which is applied to a controller, and includes: obtaining the voltage between the corresponding target electronic device and the different poles of the electronic device chain; calculating the multiple between the voltage and the preset standard voltage to obtain the multiple value; determining the address number of the target electronic device using the multiple value; determining the physical address of the controller using the correspondence between the address number and the preset address number and the physical address. In this method, the target electronic device does not need to be installed with an address dial switch or address resistor, and each target electronic device is exactly the same, which makes production easier and reduces costs. It can also automatically identify the address based on its connection position, and is not prone to problems such as missing the setting of the address. The present application also provides a device for determining the physical address of a multi-controller communication system and a computer-readable storage medium, both of which have the above-mentioned beneficial effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of physical address confirmation of electronic devices, and in particular to a method, device and computer-readable storage medium for determining physical addresses of a multi-controller communication system. Background Art

[0002] For multi-controller serial bus communication systems, the controller often needs to determine the physical address of the controller for use in the controller communication process. At present, the process of the controller determining the physical address of the controller is: identifying the address code corresponding to the controller on the target electronic device connected to the controller; since the address code is associated with the physical address of the controller, the physical address of the controller is obtained. Among them, a common method for setting the address code on the target electronic device is to install an address dip switch or address resistors of different resistance values ​​on the target electronic device, and each target electronic device is connected in parallel, and then identified by the controller. Among them, installing address resistors on the target electronic device such as Figure 1 As shown, Figure 1 The schematic diagram of the physical address determination device using the address resistance method is shown in FIG. 1 . The address dip switch is installed on the target electronic device. Figure 2 As shown, Figure 2 The figure is a schematic diagram of the structure of the physical address determination device using the address dip switch method. Although the address dip switch is easy to use, it has the problem that the larger the address range, the more input ports of the controller need to be occupied, and the cost is high; the address resistor method also has the problem that the larger the address range, the more input ports of the controller need to be occupied, the cost is also high, and when producing the target electronic device, it is necessary to weld different quantities of uniform resistors to the target electronic device according to actual needs, which makes production management complicated and inefficient.

[0003] Therefore, how to determine the physical address of the controller at a lower cost is a technical problem that those skilled in the art need to solve. Summary of the invention

[0004] The purpose of the present application is to provide a method, device and computer-readable storage medium for determining the physical address of a multi-controller communication system, which can automatically and flexibly determine the physical address of the controller at a low cost and based on the connection position of the target electronic device.

[0005] In order to solve the above technical problems, the present application provides a method for determining the physical address of a multi-controller communication system, which is applied to a controller, including: obtaining the voltage between the corresponding target electronic device and different poles of an electronic device chain; wherein the electronic device chain is composed of the target electronic devices connected in series, each of the target electronic devices corresponds to one controller, and the two poles of the electronic device chain are connected to the two poles of a power supply device, and the two poles of the power supply device are respectively a high potential pole and a low potential pole; calculating the multiple between the voltage and a preset standard voltage to obtain a multiple value; using the multiple value to determine the address number of the target electronic device; and using the correspondence between the address number and the preset address number and the physical address to determine the physical address of the controller.

[0006] Preferably, the determining the address number of the target electronic device by using the multiple value includes:

[0007] Rounding the multiple value to obtain an integer corresponding to the multiple value;

[0008] The integer is determined as the address number.

[0009] Preferably, after the controller obtains the voltage between the corresponding target electronic device and different poles of the electronic device chain, it further includes:

[0010] The voltage is proportionally stepped down using a proportional step-down circuit.

[0011] Preferably, when the target electronic device is a diode socket device, the value of the standard voltage is equal to the value of the tube voltage drop of the diode in the diode socket device.

[0012] The present application also provides a physical address determination device for a multi-controller communication system, comprising: an electronic device chain and a controller; wherein the electronic device chain is composed of target electronic devices connected in series, and each of the target electronic devices corresponds to one of the controllers;

[0013] The two poles of the electronic device chain are connected to the two poles of the power supply device respectively; wherein the two poles of the power supply device are a high potential pole and a low potential pole;

[0014] The two ends of each controller are respectively connected to the high potential pole of the corresponding target electronic device and the low potential pole of the electronic device chain, or respectively connected to the low potential pole of the corresponding target electronic device and the high potential pole of the electronic device chain, for obtaining the voltage between the target electronic device and different poles of the electronic device chain, and using the voltage and a preset standard voltage to determine the address number of the target electronic device and the physical address of the controller.

[0015] Preferably, the electronic device chain further comprises:

[0016] A redundant electronic device is connected in series with the target electronic device.

[0017] Preferably, the multi-controller communication system physical address determination device further comprises:

[0018] Current limiting resistors are respectively connected to the electronic device chain and the power supply device.

[0019] Preferably, the multi-controller communication system physical address determination device further comprises:

[0020] A proportional step-down circuit is connected to the target electronic device and the MCU chip in the controller respectively to step down the voltage proportionally.

[0021] Preferably, the controller is provided with a memory and a processor; wherein the memory is used to store a computer program, and the processor is used to implement the steps of the above-mentioned method for determining the physical address of a multi-controller communication system when executing the computer program.

[0022] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for determining the physical address of a multi-controller communication system described above are implemented.

[0023] A method for determining the physical address of a multi-controller communication system provided in the present application is applied to a controller, and includes: obtaining the voltage between the corresponding target electronic device and different poles of an electronic device chain; wherein the electronic device chain is composed of the target electronic devices connected in series, each of the target electronic devices corresponds to one controller, and the two poles of the electronic device chain are connected to the two poles of a power supply device, and the two poles of the power supply device are respectively a high potential pole and a low potential pole; calculating the multiple between the voltage and a preset standard voltage to obtain a multiple value; using the multiple value to determine the address number of the target electronic device; and determining the physical address of the controller using the correspondence between the address number and the preset address number and the physical address.

[0024] It can be seen that the method uses the multiple relationship between the voltage between the target electronic device and the different poles of the electronic device chain and the preset standard voltage to determine the address number of the target electronic device, and then determine the physical address of the controller. In this method, the target electronic device does not need to install an address dial switch or address resistor, and each target electronic device is exactly the same, which makes production easier and reduces costs. It can also automatically identify the address based on its connection position, and is not prone to problems such as missing the address setting. The present application also provides a physical address determination device and a computer-readable storage medium for a multi-controller communication system, both of which have the above-mentioned beneficial effects, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0026] Figure 1 It is a schematic diagram of the structure of a device for determining a physical address using an address resistance method;

[0027] Figure 2 It is a structural diagram of a device for determining a physical address using an address dial switch method;

[0028] Figure 3 A flowchart of a method for determining a physical address of a multi-controller communication system provided in an embodiment of the present application;

[0029] Figure 4 A schematic diagram of the first structure of a device for determining a physical address of a multi-controller communication system provided in an embodiment of the present application;

[0030] Figure 5 A second structural diagram of a device for determining a physical address of a multi-controller communication system provided in an embodiment of the present application;

[0031] Figure 6 A schematic diagram of the first structure of a device for determining a physical address of a multi-controller communication system of a diode socket device provided in an embodiment of the present application;

[0032] Figure 7 This is a first structural schematic diagram of the device for determining the physical address of a multi-controller communication system of a resistor socket device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The core of this application is to provide a method, device and computer-readable storage medium for determining the physical address of a multi-controller communication system, which can automatically and flexibly determine the physical address of the controller at a low cost and based on the connection position of the target electronic device.

[0034] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0035] Please refer to Figure 3 , Figure 3 A flowchart of a method for determining a physical address of a multi-controller communication system provided in an embodiment of the present application, the method specifically comprising:

[0036] S301, obtaining the voltage between the corresponding target electronic device and different poles of the electronic device chain.

[0037] The execution subject of this embodiment is a controller. In the process of determining the physical address of the controller, the controller obtains the voltage between the corresponding target electronic device and the different poles of the electronic device chain. The electronic device chain is composed of target electronic devices connected in series, and the two poles of the electronic device chain are connected to the two poles of the power supply device, and each target electronic device corresponds to a controller. As for what kind of electronic device the target electronic device is, it is not limited here, for example, it can be a diode socket device or a resistor socket device.

[0038] S302, calculating the multiple between the voltage and the preset standard voltage, and obtaining the multiple value.

[0039] After the controller obtains the voltage between the corresponding target electronic device and the different poles of the electronic device chain, it calculates the multiple between the voltage and the preset standard voltage to obtain the multiple value. The specific value of the preset standard voltage is not limited here, and should be set accordingly by those skilled in the art according to actual conditions. Usually, the value of the standard voltage is equal to the voltage between the high and low potential poles of a single target electronic device, so that the obtained multiple value is approximately a positive integer. Furthermore, when the target electronic device is a diode socket device, the value of the standard voltage is equal to the value of the tube voltage drop of the diode in the diode socket device, and usually the value of the tube voltage drop is marked on the diode socket device, and no measurement is required.

[0040] S303, using the multiple value to determine the address number of the target electronic device.

[0041] After obtaining the multiple value, the controller uses the multiple value to determine the address number of the target electronic device. In theory, the multiple value is usually equal to the address number. However, in actual situations, since the wire also has resistance, even if the value of the standard voltage is equal to the voltage between the high and low potential poles of a single target electronic device, the multiple value obtained is usually larger than the theoretical multiple value. Since this error is an inevitable error, that is, it cannot be avoided, it can only be reduced by various technical means. In order to reduce this error, the controller usually rounds the multiple value to obtain an integer corresponding to the multiple value, and then determines the integer as the address number.

[0042] S304: Determine the physical address of the controller by using the address number and the correspondence between the preset address number and the physical address.

[0043] The specific correspondence between the address number and the physical address is not limited here, and should be set accordingly by those skilled in the art according to actual conditions. Since each target electronic device corresponds to a controller, the controller usually determines that the physical address of the controller is equal to the address number of the target electronic device after determining the address number of the target electronic device.

[0044] This embodiment uses the multiple relationship between the voltage between the target electronic device and the different poles of the electronic device chain and the preset standard voltage to determine the address number of the target electronic device, and then determine the physical address of the controller. In this method, the target electronic device does not need to be equipped with an address dial switch or address resistor, and each target electronic device is exactly the same, which makes production easier and reduces costs. In addition, the address can be automatically identified according to its connection position, and it is not easy to have problems such as missing the address setting.

[0045] Based on the above embodiment, in this embodiment, after the controller obtains the voltage between the corresponding target electronic device and the different poles of the electronic device chain, it generally further includes: using a proportional step-down circuit to proportionally step down the voltage. This can prevent the damage to the components in the circuit caused by excessive voltage, reduce safety hazards, and avoid unnecessary losses.

[0046] The following is an introduction to the multi-controller communication system physical address determination device and computer-readable storage medium provided in the embodiments of the present application. The multi-controller communication system physical address determination device and computer-readable storage medium described below can be referenced to each other with the multi-controller communication system physical address determination method described above.

[0047] Please refer to Figure 4 and Figure 5 , Figure 4 This is a schematic diagram of the first structure of the device for determining the physical address of a multi-controller communication system provided in an embodiment of the present application. Figure 5 A second structural diagram of the device for determining the physical address of a multi-controller communication system provided in an embodiment of the present application. The device for determining the physical address of a multi-controller communication system includes: an electronic device chain 400 and a controller 500; wherein the electronic device chain 400 is composed of target electronic devices connected in series, and each target electronic device corresponds to a controller, for example, the target electronic device 401 corresponds to the controller 501; the two poles of the electronic device chain 400 are connected to the two poles of the power supply device. The two poles of the power supply device are respectively a high potential pole and a low potential pole. The two ends of each controller are respectively connected to the high potential pole of the corresponding target electronic device and the low potential pole of the electronic device chain 400, such as Figure 4 As shown; or the two ends of each controller are connected to the low potential pole of the corresponding target electronic device and the high potential pole of the electronic device chain, such as Figure 5The two structures of the physical address determination device of the multi-controller communication system can be used to obtain the voltage between the target electronic device and the different poles of the electronic device chain, and determine the address number of the target electronic device and the physical address of the controller by using the voltage and the preset standard voltage.

[0048] In this embodiment, the electronic device chain 400 is composed of target electronic devices connected in series. The specific values ​​are not limited here, and should be set accordingly by those skilled in the art according to actual conditions. As for what kind of electronic device the target electronic device is, it is not limited here. For example, it can be a diode socket device or a resistor socket device. Among them, the two poles of the diode in the diode socket device are respectively connected to the two external connection terminals of the diode socket device, and the two poles of the resistor in the resistor socket device are respectively connected to the two external connection terminals of the resistor socket device. Since each target electronic device corresponds to a controller, the number of target electronic devices and controllers is the same.

[0049] The two poles of the electronic device chain 400 are connected to the two poles of the power supply device. The type of the power supply device is not specifically limited here. It can be a DC power supply device or an AC power supply device. Further, if the current tends to be constant, the DC power supply device is a DC constant current device, and the AC power supply device is an AC constant current power supply device. The two poles of the power supply device are respectively a high potential pole and a low potential pole. For different types of power supply devices, the objects referred to by the high potential pole are different, and the objects referred to by the low potential pole are also different accordingly. For example, for a DC power supply device, the objects referred to by the high potential pole and the low potential pole are respectively the positive pole and the negative pole; for an AC power supply device, the objects referred to by the high potential pole and the low potential pole are respectively the live wire and the neutral wire. Usually, the selection of the current device needs to consider the type of the target electronic device in the electronic device chain 400. For example, when the target electronic device is a resistor socket device, the power supply device is usually a constant current power supply device, preferably a voltage-stabilized constant current power supply device. Among them, the constant current device includes the above-mentioned DC constant current device and AC constant current power supply device. The connection between the two poles of the electronic device chain 400 and the two poles of the power supply device usually also needs to consider the type of the target electronic device in the electronic device chain 400. For example, when the target electronic device is a diode socket device, due to the unidirectional conductivity of the diode, the high potential pole of the electronic device chain 400 needs to be connected to the high potential pole of the power supply device, and the low potential pole of the electronic device chain 400 needs to be connected to the low potential pole of the power supply device. Furthermore, the physical address determination device of the multi-controller communication system usually also includes a current limiting resistor connected to the electronic device chain 400 and the power supply device respectively, which can effectively prevent the target electronic device from being burned by excessive current in the circuit. The number and model of the current limiting resistor are not limited here, and should be set accordingly by those skilled in the art according to actual conditions.

[0050] In this embodiment, the electronic device chain 400 is composed of target electronic devices connected in series, so there is a voltage between each target electronic device and different poles of the electronic device chain 400, and each target electronic device corresponds to a controller. The controller can obtain the above voltage, and then use the voltage and the preset standard voltage to determine the address number of the target electronic device and the physical address of the controller. Since the target electronic device does not need to be installed with an address dial switch or address resistor, and each target electronic device is exactly the same, production is easier, costs are reduced, and the address can be automatically identified according to its connection position, and it is not easy to have problems such as missing the address setting.

[0051] Based on the above embodiments, the electronic device chain 400 in this embodiment generally further includes redundant electronic devices connected in series with the target electronic devices, and the redundant electronic devices are target electronic devices that are not connected to the corresponding controller. When the user has a need, the redundant electronic device can be connected to the corresponding controller, and the redundant electronic device is transformed into the target electronic device. The existence of the redundant electronic device can meet the user's various needs, which is more convenient and humane, and improves the user experience. The number of redundant electronic devices and their positions in the electronic device chain 400 are not limited here, and should be set accordingly by those skilled in the art according to actual conditions.

[0052] Based on the above embodiments, the physical address determination device of the multi-controller communication system in this embodiment generally further includes: a proportional step-down circuit which is respectively connected to the target electronic device and the MCU (micro control unit) chip in the controller and which proportionally steps down the voltage. Furthermore, the proportional step-down circuit is respectively connected to the target electronic device and the MCU chip via signal lines. There is no limitation on the model and type of the signal line. Usually, a PTY23 signal cable is selected as the signal line. There is no specific limitation on the type of the proportional step-down circuit. Usually, different types of proportional step-down circuits are selected according to different types of current devices. For example, for a constant current power supply device, the proportional step-down circuit can be a resistor divider circuit. In addition, for Figure 4 and Figure 5 The two structures of the physical address determination device of the multi-controller communication system shown in the figure, the connection of the proportional step-down circuit is also divided into two cases: Figure 4 The structure shown in FIG. 1 is a structure in which the proportional step-down circuit is connected to the high potential pole of the target electronic device and the MCU chip in the controller respectively; Figure 5 In the structure shown, the proportional step-down circuit is connected to the low potential pole of the target electronic device and the MCU chip in the controller respectively.

[0053] Based on the above embodiments, the target electronic device in this embodiment is a diode socket device; wherein the two poles of the diode in the diode socket device are respectively connected to the two external connection terminals of the diode socket device. The type of the diode is not limited here, and should be set accordingly by those skilled in the art according to the actual situation. Usually, the diode is a HER208 high-efficiency rectifier diode. Figure 6 As shown, Figure 6 This is a schematic diagram of the first structure of the device for determining the physical address of a multi-controller communication system of a diode socket device provided in an embodiment of the present application. Figure 6 It can be seen that at this time, the processor in the controller is the MCU chip, the target electronic device is a diode socket device, the controller is connected to the low potential pole of the diode socket device chain and the high potential pole of the diode socket device respectively, and the high and low potential poles of the diode socket device chain are respectively connected to the current limiting resistor and the low potential pole of the power supply.

[0054] Furthermore, in the present embodiment, the physical address determination device of the multi-controller communication system generally also includes: when the target electronic device is a resistor socket device, a constant current circuit device respectively connected to the electronic device chain 400 and the power supply device; wherein the two poles of the resistor in the resistor socket device are respectively connected to the two external connection terminals of the resistor socket device. There is no specific limitation on the type, shape, model and resistance value of the resistor of the resistor socket device, and the technical personnel in this field shall make corresponding settings according to the actual situation, and the resistor is generally a KNP resistor. There is no specific limitation on the type of constant current circuit device, and it is generally an AZ431 constant current circuit device, which is a constant current circuit device that is easy to use and widely used. Figure 7 As shown, Figure 7 This is a schematic diagram of the first structure of the device for determining the physical address of a multi-controller communication system of a resistor socket device provided in an embodiment of the present application. Figure 7 It can be seen that at this time, the processor in the controller is the MCU chip, the target electronic device is the resistor socket device, the controller is connected to the low potential pole of the resistor socket device chain and the high potential pole of the resistor socket device respectively, and the high and low potential poles of the resistor socket device chain are respectively connected to the constant current circuit device and the low potential pole of the power supply.

[0055] Based on the above embodiment, the physical address determination device of the multi-controller communication system in this embodiment generally further includes: a connector connected to the target electronic device and the proportional step-down circuit respectively. The type, shape, model and resistance value of the connector are not specifically limited here, and should be set accordingly by those skilled in the art according to actual conditions. It can be an SMA-JB3-2 connector. In addition, for Figure 4 and Figure 5 The two structures of the physical address determination device of the multi-controller communication system shown in the figure, the connection of the connector is also divided into two cases: Figure 4The structure shown in FIG. 1 is a structure in which the connector is connected to the high potential electrode of the target electronic device and the proportional step-down circuit respectively; Figure 5 In the structure shown, the connector is connected to the low potential pole of the target electronic device and the proportional step-down circuit respectively.

[0056] Based on the above embodiment, the target electronic device in this embodiment may be a backplane, which is used to determine the address of the rectifier device in the communication rectifier power supply system. Further, diodes and resistors may be installed on the backplane, and the types, models and shapes of the diodes and resistors are not specifically limited here, and should be set accordingly by those skilled in the art according to actual conditions.

[0057] Based on any of the above embodiments, in this embodiment, a memory and a processor are usually provided in the controller. The memory is used to store a computer program, and the processor is used to implement the steps of the method for determining the physical address of a multi-controller communication system in any of the above embodiments when executing the computer program. The models and types of the memory and the processor are not limited here. The memory can be an AT24C02 memory chip, and the processor can be an STM32 series microcontroller.

[0058] The present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the method for determining the physical address of a multi-controller communication system in any of the above embodiments are implemented.

[0059] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0060] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the system provided in the embodiment, since it corresponds to the method provided in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0061] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0062] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0063] The above is a detailed introduction to a method, device and computer-readable storage medium for determining the physical address of a multi-controller communication system provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A method for determining the physical address of a multi-controller communication system, applied to a controller, characterized in that: include: Obtaining the voltage between the corresponding target electronic device and different poles of the electronic device chain; wherein the electronic device chain is composed of the target electronic devices connected in series, each of the target electronic devices corresponds to one controller, and the two poles of the electronic device chain are connected to the two poles of the power supply device, and the two poles of the power supply device are respectively a high potential pole and a low potential pole; Calculating the multiple of the voltage and a preset standard voltage to obtain a multiple value; wherein the value of the preset standard voltage is equal to the voltage between the high and low potential electrodes of a single target electronic device; Determining the address number of the target electronic device using the multiple value; Determine the physical address of the controller by using the correspondence between the address number and the preset address number and the physical address; The step of determining the address number of the target electronic device by using the multiple value includes: Rounding the multiple value to obtain an integer corresponding to the multiple value; The integer is determined as the address number.

2. The method for determining the physical address of a multi-controller communication system according to claim 1, characterized in that: After the controller obtains the voltage between the corresponding target electronic device and different poles of the electronic device chain, the method further includes: The voltage is proportionally stepped down using a proportional step-down circuit.

3. The method for determining the physical address of a multi-controller communication system according to any one of claims 1 to 2, characterized in that: When the target electronic device is a diode socket device, the value of the standard voltage is equal to the value of the tube voltage drop of the diode in the diode socket device.

4. A device for determining a physical address of a multi-controller communication system, characterized in that: include: An electronic device chain and a controller; wherein the electronic device chain is composed of target electronic devices connected in series, and each target electronic device corresponds to one controller; The two poles of the electronic device chain are connected to the two poles of the power supply device respectively; wherein the two poles of the power supply device are a high potential pole and a low potential pole; Two ends of each of the controllers are respectively connected to the high potential pole of the corresponding target electronic device and the low potential pole of the electronic device chain, or respectively connected to the low potential pole of the corresponding target electronic device and the high potential pole of the electronic device chain, so as to obtain the voltage between the target electronic device and different poles of the electronic device chain, and determine the address number of the target electronic device and the physical address of the controller by using the voltage and a preset standard voltage; wherein the value of the preset standard voltage is equal to the voltage between the high and low potential poles of a single target electronic device; The step of determining the address number of the target electronic device and the physical address of the controller by using the voltage and a preset standard voltage includes: Calculating the multiple of the voltage and the preset standard voltage to obtain the multiple value; Rounding the multiple value to obtain an integer corresponding to the multiple value; The integer is determined as the address number, and the physical address of the controller is determined by using the corresponding relationship between the address number and a preset address number and a physical address.

5. The device for determining physical addresses of a multi-controller communication system according to claim 4, characterized in that: The electronic device chain also includes: A redundant electronic device is connected in series with the target electronic device.

6. The device for determining physical addresses of a multi-controller communication system according to claim 4, characterized in that: Also includes: Current limiting resistors are respectively connected to the electronic device chain and the power supply device.

7. The device for determining physical addresses of a multi-controller communication system according to claim 4, characterized in that: Also includes: A proportional step-down circuit is connected to the target electronic device and the MCU chip in the controller respectively to step down the voltage proportionally.

8. The device for determining physical addresses of a multi-controller communication system according to any one of claims 4 to 7, characterized in that: The controller is provided with a memory and a processor; wherein the memory is used to store a computer program, and the processor is used to implement the steps of the method for determining the physical address of a multi-controller communication system as described in any one of claims 1 to 3 when executing the computer program.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for determining the physical address of a multi-controller communication system according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Address assignment identification method and address assignment identification circuit

    CN104636279A

  • Multiple controller communication system physical address confirms device

    CN208596373U