Communication address configuration system, host device and slave device
Through the voltage divider circuit and voltage sampling module, the communication address of the slave device is automatically configured, which solves the problems of errors and inefficiency caused by manual operations in the prior art, and realizes the automatic address configuration and access status judgment of the slave device. Improves the system's response speed and stability.
Patent Information
- Application Number
- CN202411731738.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2024-12-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the slave device address configuration relies on manual operation, resulting in problems such as misconfiguration and misconfiguration, resulting in communication failures, system disorders and security risks, and the access status of the slave device is not possible, which is cumbersome and inefficient.
The voltage divider circuit and voltage sampling module are used to automatically configure the communication address. The host device is connected to the slave device through the voltage divider module, and the communication address is configured through the voltage sampling module to collect the voltage value and configure the communication address. The signal detection module is used to determine the access status of the slave device, which simplifies the Cabling, reduce software complexity, and improve system reliability and response speed.
It realizes automatic allocation of slave equipment communication addresses, simplifies wiring difficulty, improves the overall response speed and operation stability of the system, reduces the complexity at the software level, and enhances the reliability of the system.
Smart Images

Figure CN119211194A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication address configuration system, a host device, and a slave device. Background Art
[0002] With the popularization of intelligence, people are pursuing more convenient ways to operate and maintain slave devices. If you want to remotely control slave devices, you need to configure the addresses of the slave devices first. The more popular address configuration method in the prior art is to manually configure the address through software and wire connections. Due to reliance on manual operation, if there are a large number of slave devices during the address setting process, it is easy to have problems such as missetting and missing settings. These problems may cause communication failures, system disorders and even safety risks. In addition, this method cannot read the access status of the slave device. It can be seen that when the prior art is used, there are problems such as cumbersome operation and low efficiency. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a communication address configuration system, a host device and a slave device, which reduce the software dependence of the communication address configuration system and improve the overall response speed and operation stability of the system.
[0004] In a first aspect, an embodiment of the present application provides a communication address configuration system, comprising: a host device and a plurality of slave devices, wherein the host device is respectively connected to each of the slave devices, the host device comprises a plurality of first voltage divider modules, and each of the slave devices comprises a second voltage divider module and a voltage sampling module; The first end of each of the first voltage divider modules is used to connect to the first regulated power supply, and the second end of each of the first voltage divider modules is respectively connected to a corresponding second voltage divider module of the slave device to form a multi-group voltage divider circuit; Each group of the voltage divider circuits is used to divide the first regulated power supply into different proportions; Each of the slave devices is used to collect the voltage value in the correspondingly connected voltage divider circuit through the voltage sampling module, so as to configure different communication addresses according to different voltage values.
[0005] In a first possible embodiment of the first aspect, the host device further includes a plurality of signal detection modules whose number is equal to that of the first voltage dividing modules; The first end of each of the signal detection modules is connected to the second end of the corresponding first voltage divider module, and the second end of each of the signal detection modules is connected to the host device; Each of the signal detection modules is used to output a corresponding level signal or detect the output voltage change of the corresponding first voltage divider module according to the output voltage change of the corresponding first voltage divider module, so that the host device can determine whether each of the slave devices has been connected according to the level signal or the voltage change.
[0006] In a second possible embodiment of the first aspect, the host device includes a first communication module, and each of the slave devices includes a second communication module; The host device is used to send an address configuration query instruction to the target slave device through the first communication module according to a preset communication address; The target slave device is used to generate a confirmation signal according to the communication address configured by itself after receiving the inquiry instruction, and send the confirmation signal through the second communication module; The host device is further used to confirm the consistency between the communication address configured by the target slave device and the preset communication address according to the confirmation signal.
[0007] In a third possible embodiment of the first aspect, the confirmation signal includes an actual communication address configured by the target slave device; The host device is also used to compare the actual communication address with the preset communication address; If the actual communication address is consistent with the preset communication address, it is determined that the communication address configuration of the target slave device is correct; If the actual communication address is inconsistent with the preset communication address, the communication address of the target slave device is reconfigured.
[0008] In a fourth possible embodiment of the first aspect, each of the first voltage-dividing modules includes first voltage-dividing resistors with different resistance values, and each of the second voltage-dividing modules includes second voltage-dividing resistors with the same resistance value; The first end of the first voltage-dividing resistor is connected to the first voltage-stabilized power supply, the second end of the first voltage-dividing resistor is correspondingly connected to the first end of the second voltage-dividing resistor, and the second end of the second voltage-dividing resistor is grounded. In a fifth possible embodiment of the first aspect, each of the signal detection modules includes a comparator or an analog-to-digital converter; The non-inverting input terminal of each comparator is connected to the second regulated power supply, the inverting input terminal of each comparator is correspondingly connected to the second terminal of each first voltage divider module, and the output terminal of each comparator is connected to the host device; Alternatively, the first end of each of the analog-to-digital converters is connected to the second end of each of the first voltage divider modules, and the second end of each of the analog-to-digital converters is connected to the host device.
[0009] In a second aspect, an embodiment of the present application provides a host device, comprising: a plurality of first voltage dividing modules and a plurality of signal detection modules of the same number; The host device is used to connect to a plurality of slave devices respectively through the first voltage divider module, and to reduce the voltage of the first regulated power supply by different proportions, so that each of the connected slave devices collects a different voltage value; The host device is further used to determine the access status of each of the slave devices through the level status of the level signal output by the signal detection module or the output voltage change of the correspondingly connected first voltage divider module detected.
[0010] In a first possible embodiment of the second aspect, the host device further includes: a first communication module; The host device is also used to send an address configuration query instruction to the target slave device through the first communication module according to a preset communication address, and receive a confirmation signal from the target slave device, wherein the confirmation signal includes an actual communication address configured by the target slave device; The host device is also used to determine whether the communication address of the target slave device is correctly configured according to the comparison result between the actual communication address and the preset communication address. In a third aspect, an embodiment of the present application provides a slave device, including: a second voltage dividing module and a voltage sampling module; The slave device is used to access the host device through the second voltage divider module and the voltage sampling module; wherein the second voltage divider module is used to form a set of voltage divider circuits with the first voltage divider module in the host device; The slave device is further used to configure a communication address with the host device according to the voltage value in the voltage divider circuit collected by the voltage sampling module.
[0011] In a first possible implementation of the third aspect, the slave device further includes: a second communication module; The slave device is further configured to receive the inquiry instruction sent by the host device through the second communication module, and send a confirmation signal to the host device.
[0012] The embodiments of the present application have the following beneficial effects: A communication address configuration system of the present embodiment includes: a host device and multiple slave devices, the host device is connected to each slave device respectively, the host device includes multiple first voltage divider modules, each slave device includes a second voltage divider module and a voltage sampling module; the first end of each first voltage divider module is used to connect to a first voltage-stabilized power supply, and the second end of each first voltage divider module is respectively connected to a second voltage divider module of a slave device to form multiple groups of voltage divider circuits; each group of voltage divider circuits is used to divide the first voltage-stabilized power supply into different proportions; each slave device is used to collect the voltage value in the correspondingly connected voltage divider circuit through the voltage sampling module to configure different communication addresses according to different voltage values. The communication address configuration system realizes the automatic allocation of communication addresses of the host device to the slave device through the voltage divider circuit and voltage sampling, simplifies the wiring difficulty, releases the I / O (Input / Output) port, reduces the complexity of the software level, and improves the reliability and response speed of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0014] Figure 1 A first structural schematic diagram of a system for configuring a communication address according to an embodiment of the present application is shown; Figure 2 A second structural schematic diagram of the communication address configuration system of the embodiment of the present application is shown; Figure 3 A third structural schematic diagram of the communication address configuration system of the embodiment of the present application is shown; Figure 4 A fourth structural schematic diagram of the communication address configuration system of the embodiment of the present application is shown; Figure 5 A schematic diagram of the structure of a host device according to an embodiment of the present application is shown; Figure 6 A structural schematic diagram of a slave device according to an embodiment of the present application is shown.
[0015] Description of main component symbols: 100 - communication address configuration system; 110 - host device; 111 - first voltage divider module; 112 - signal detection module; 113 - first communication module; 120 - slave device; 121 - second voltage divider module; 122 - voltage sampling module; 123 - second communication module. DETAILED DESCRIPTION
[0016] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0017] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0018] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.
[0019] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0020] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0021] In the communication network architecture, the scenario of a host device and multiple slave devices is usually called a master-slave communication network. In this network structure, the host device is responsible for sending instructions and control data, and each slave device is responsible for receiving instructions and control data and sending feedback information to the host device. When the host device remotely controls each slave device, it usually needs to configure the address of each slave device first, so as to facilitate remote management and control of the slave device.
[0022] Normally, the access status of the slave device cannot be read during the configuration of the communication address of the slave device. To achieve this function, other methods need to be added, such as contact status detection. Through relays, contactors, etc., the on-off status of the normally open or normally closed contacts is used as a placeholder signal. According to the change of voltage or current in the circuit, the access status of the slave device is read. As the number of slave devices connected increases, each slave device requires additional lines for status feedback, which increases the hardware cost and complexity. The present application provides a communication address configuration system, which uses resistor voltage division, comparator function and logic level conversion to realize the automatic configuration and connection management of the communication address of the slave device by the host device. The host device can also send an inquiry instruction to the slave device to verify the communication address of the slave device.
[0023] The following is a detailed description of the communication address configuration system 100 according to an embodiment of the present application.
[0024] Figure 1 A structural schematic diagram of a communication address configuration system 100 of an embodiment of the present application is shown. Exemplarily, the communication address configuration system 100 includes a host device 110 and at least one slave device 120, the host device 110 is connected to each slave device 120, and the communication address configuration system 100 is used to realize the host device 110 to identify and connect multiple slave devices 120.
[0025] In one embodiment, if Figure 2 As shown, the host device 110 includes a plurality of first voltage divider modules 111, and each slave device 120 includes a second voltage divider module 121 and a voltage sampling module 122. Exemplarily, the first end of each first voltage divider module 111 is used to connect to the first regulated power supply VCC1, and the second end of each first voltage divider module 111 is respectively connected to a second voltage divider module 121 of a slave device 120, so as to form a multi-group voltage divider circuit.
[0026] In this embodiment, each group of voltage divider circuits is used to divide the first regulated power supply VCC1 by different proportions. Each slave device 120 is used to collect the voltage value in the corresponding connected voltage divider circuit through the voltage sampling module 122, so as to configure different communication addresses according to different voltage values. Figure 3 As shown, each first voltage-dividing module 111 includes a first voltage-dividing resistor R1 with different resistance values, and the second voltage-dividing module 121 includes a second voltage-dividing resistor R2 with the same resistance value; the first end of the first voltage-dividing resistor R1 is connected to the first regulated power supply VCC1, the second end of the first voltage-dividing resistor R1 is correspondingly connected to the first end of the second voltage-dividing resistor R2, and the second end of the second voltage-dividing resistor R2 is grounded.
[0027] Specifically, the voltage sampling module 122 can be a second analog-to-digital converter D2, and the second end of the first voltage-dividing resistor R1 is correspondingly connected to the second analog-to-digital converter D2. The second analog-to-digital converter D2 is used to collect the voltage value in the correspondingly connected voltage-dividing circuit to realize the digital processing of the voltage signal. The host device 110 is used to provide a first regulated power supply VCC1, and a plurality of first voltage-dividing resistors R1 with different resistance values are configured at the voltage output interface. When the slave device 120 is connected to the voltage output interface of the host device 110, the first voltage-dividing resistor R1 at the corresponding position and the second voltage-dividing resistor R2 at the slave interface form a voltage-dividing circuit, so that the slave device 120 samples through the second analog-to-digital converter D2 and detects different voltage values. Each slave device 120 presets an address mapping table corresponding to different voltage values, and can automatically configure its unique communication address according to the measured voltage value. It can be understood that the host device 110 transmits address information to each slave device 120 by providing a specific voltage value to the slave device 120, so that each slave device 120 is configured with a unique communication address.
[0028] In one embodiment, if Figure 2 As shown, the host device 110 also includes a number of signal detection modules 112 equal to the number of the first voltage divider modules 111. Exemplarily, the first end of each signal detection module 112 is connected to the second end of the corresponding first voltage divider module 111, and the second end of each signal detection module 112 is connected to the host device 110; each signal detection module 112 is used to output a corresponding level signal or detect the output voltage change of the corresponding first voltage divider module 111 according to the output voltage change of the corresponding first voltage divider module 111, so that the host device 110 determines whether each slave device 120 has been connected according to the level signal or voltage change.
[0029] Alternatively, if Figure 3As shown, each signal detection module 112 may include a comparator D3, a non-inverting input terminal of each comparator D3 is connected to the second regulated power supply VCC2, an inverting input terminal of each comparator D3 is correspondingly connected to the second terminal of each first voltage divider module 111, and an output terminal of each comparator D3 is connected to the host device 110. When the slave device 120 is not connected to the voltage output interface of the host device 110, the reference voltage of the non-inverting input terminal of the comparator D3 is lower than the second regulated power supply VCC2 and higher than the output voltage of the second voltage divider resistor R2, and the voltage of the non-inverting input terminal of the comparator D3 is greater than the voltage of the inverting input terminal. After the slave device 120 is connected to the voltage output interface of the host device 110, the voltage at the inverting input terminal of the comparator D3 of the host device 110 is changed, the voltage at the non-inverting input terminal of the comparator D3 is less than the voltage at the reverse input terminal, the level state of the output level signal of the comparator D3 changes, the output terminal of the comparator D3 is connected to the I / O port of the host device 110, and the host device 110 determines whether the slave device 120 is connected to the host device 110 according to the level state of the level signal, and configures the communication address. For example, when the comparator D3 outputs a voltage signal in a low level state, the host device 110 recognizes that the slave device 120 is not connected and the communication address is not configured; when the comparator D3 outputs a voltage signal in a high level state, the host device 110 recognizes that the slave device 120 is connected and the communication address has been configured.
[0030] Alternatively, if Figure 4 As shown, each signal detection module 112 includes a first analog-to-digital converter D1, a first end of each first analog-to-digital converter D1 is connected to a second end of each first voltage divider module 111, and a second end of each first analog-to-digital converter D1 is connected to the host device 110. Specifically, the host device 110 may also use other methods to identify whether the slave device 120 is connected, such as directly sampling the voltage. When the slave device 120 is not connected, the first analog-to-digital converter D1 detects that the voltage is the voltage value of the first regulated power supply VCC1; when the slave device 120 is connected, the first analog-to-digital converter D1 detects that the voltage is lower than the voltage value of the second regulated power supply VCC2, and the host device 110 determines that the slave device 120 has been successfully connected.
[0031] It can be understood that the host device 110 identifies the occupied position according to the voltage change at the output end of the first voltage-dividing resistor R1, thereby realizing the unique identification of the slave device 120. The communication address configuration system 100 transmits the address information and indicates the access status of the slave device 120 (i.e., "occupancy signal") through voltage change, and only one I / O port is needed to complete two tasks at the same time, which simplifies the hardware design and improves the utilization rate of the I / O port.
[0032] In one embodiment, if Figure 2As shown, the host device 110 includes a first communication module 113, and each slave device 120 includes a second communication module 123. Exemplarily, the host device 110 is used to send an address configuration query instruction to the target slave device 120 through the first communication module 113 according to the preset communication address; the target slave device 120 is used to generate a confirmation signal according to the communication address configured by itself after receiving the query instruction, and send the confirmation signal through the second communication module 123; the host device 110 is also used to confirm the consistency of the communication address configured by the target slave device 120 with the preset communication address according to the confirmation signal. In this embodiment, the confirmation signal includes the actual communication address configured by the target slave device 120; the host device 110 is also used to compare the actual communication address with the preset communication address; if the actual communication address is consistent with the preset communication address, it is determined that the communication address configuration of the target slave device 120 is correct; if the actual communication address is inconsistent with the preset communication address, the communication address of the target slave device 120 is reconfigured.
[0033] Specifically, the slave device 120 is connected to the host device 110, and the host device 110 determines that the slave device 120 has been connected through the voltage change detected by the comparator D3 or the first analog-to-digital converter D1. The host device 110 sends a special inquiry instruction to the slave device 120 according to the corresponding preset communication address. After receiving the inquiry instruction from the host device 110, the slave device 120 will return a confirmation signal according to its own configuration. Among them, the confirmation signal includes the actual communication address configured by the slave device 120, and possible other identity authentication or status information. After receiving the confirmation signal, the host device 110 will compare the actual communication address fed back by the slave device 120 with the preset communication address initially assigned to complete the address configuration verification process. If the verification results are consistent, it indicates that the communication address configuration is correct; if not, the host device 110 triggers the error handling process and re-assigns and verifies the address. When the communication addresses of the connected slave devices 120 are configured and verified, the communication network will enter the normal working mode. At this time, the host device 110 can exchange data and issue control commands with each slave device 120 based on the confirmed communication address.
[0034] Optionally, the first communication module 113 and the second communication module 123 are RS-485 buses, on which the host device 110 and multiple slave devices 120 can share the same communication line for communication, including the sending and receiving of data. In the RS-485 communication protocol, the host device 110 is used to send data and control information, and each slave device 120 is responsible for receiving and responding to the instructions and requests of the host device 110. The host device 110 is also used to continuously poll the status of each slave device 120 and send control instructions and data to it to achieve its control and monitoring.
[0035] The embodiment of the present application further proposes a host device 110, which is described in detail below.
[0036] Figure 5 A structural schematic diagram of a host device 110 according to an embodiment of the present application is shown. Exemplarily, the host device 110 includes a plurality of first voltage divider modules 111 and a plurality of signal detection modules 112 of the same number, wherein the first end of each first voltage divider module 111 is correspondingly connected to each signal detection module 112, and the first end of the first voltage divider module 111 is also used to correspondingly connect to each slave device 120.
[0037] Among them, in different automation systems, the host device 110 can be one of a variety of devices, or it can be a main controller. The main controller is the core component of the communication network architecture. The main controller is used to communicate with on-site slave devices or field slave devices through various communication protocols, collect and process data, guide the actions of each actuator, and realize automatic control and monitoring. The main controller can use different communication protocols, such as RS-485 bus, Ethernet / Industrial Protocol (Ethernet / IP), Controller Area Network (CAN), etc.
[0038] In this embodiment, the host device 110 is used to connect to multiple slave devices 120 respectively through the first voltage divider module 111, and to reduce the voltage of the first regulated power supply VCC1 by different proportions so that each connected slave device 120 collects a different voltage value; the host device 110 is also used to determine the connection status of each slave device 120 through the level state of the level signal output by the signal detection module 112 or the detected output voltage change of the corresponding connected first voltage divider module 111.
[0039] In one embodiment, the host device 110 also includes a first communication module 113; illustratively, the host device 110 is also used to send an address configuration query instruction to the target slave device 120 through the first communication module 113 according to a preset communication address, and receive a confirmation signal from the target slave device 120, wherein the confirmation signal includes an actual communication address configured by the target slave device 120; the host device 110 is also used to determine whether the communication address of the target slave device 120 is correctly configured based on a comparison result between the actual communication address and the preset communication address.
[0040] The embodiment of the present application further proposes a slave device 120, which is described in detail below.
[0041] Figure 6A structural schematic diagram of a slave device 120 of an embodiment of the present application is shown. Exemplarily, the slave device 120 includes a second voltage dividing module 121 and a voltage sampling module 122; the second voltage dividing module 121 and the voltage sampling module 122 are respectively connected to the host device 110. The slave device 120 can be, but is not limited to, a circuit breaker, a relay, a control switch, a signal lamp, a contactor, etc.
[0042] In this embodiment, the slave device 120 is used to access the host device 110 through the second voltage divider module 121 and the voltage sampling module 122; wherein the second voltage divider module 121 is used to form a set of voltage divider circuits with the first voltage divider module 111 in the host device 110; the slave device 120 is also used to configure the communication address with the host device 110 according to the voltage value in the voltage divider circuit collected by the voltage sampling module 122.
[0043] In one embodiment, the slave device 120 further includes a second communication module 123 . Exemplarily, the slave device 120 is further configured to receive a query instruction sent by the host device 110 through the second communication module 123 , and send a confirmation signal to the host device 110 .
[0044] In several embodiments provided in the present application, it should be understood that the disclosed system and device can also be implemented in other ways. The system embodiments described above are merely schematic. For example, the structure diagram in the accompanying drawings shows the possible architecture, functions and operations of the system, device and computer program product according to multiple embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or flow chart, and the combination of boxes in the structure diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0045] In addition, the functional modules or modules in the various embodiments of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.
[0046] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of each embodiment of the present application.
[0047] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.
Claims
1. A communication address configuration system, characterized in that: include: A host device and a plurality of slave devices, wherein the host device is connected to each of the slave devices respectively, the host device comprises a plurality of first voltage dividing modules, and each of the slave devices comprises a second voltage dividing module and a voltage sampling module; The first end of each of the first voltage divider modules is used to connect to the first regulated power supply, and the second end of each of the first voltage divider modules is respectively connected to a corresponding second voltage divider module of the slave device to form a multi-group voltage divider circuit; Each group of the voltage divider circuits is used to divide the first regulated power supply into different proportions; Each of the slave devices is used to collect the voltage value in the correspondingly connected voltage divider circuit through the voltage sampling module, so as to configure different communication addresses according to different voltage values.
2. The communication address configuration system according to claim 1, characterized in that: The host device further includes a number of signal detection modules equal in number to the first voltage dividing modules; The first end of each of the signal detection modules is connected to the second end of the corresponding first voltage divider module, and the second end of each of the signal detection modules is connected to the host device; Each of the signal detection modules is used to output a corresponding level signal or detect the output voltage change of the corresponding first voltage divider module according to the output voltage change of the corresponding first voltage divider module, so that the host device can determine whether each of the slave devices has been connected according to the level signal or the voltage change.
3. The communication address configuration system according to claim 1, characterized in that: The host device includes a first communication module, and each of the slave devices includes a second communication module; The host device is used to send an address configuration query instruction to the target slave device through the first communication module according to a preset communication address; The target slave device is used to generate a confirmation signal according to the communication address configured by itself after receiving the inquiry instruction, and send the confirmation signal through the second communication module; The host device is further used to confirm the consistency between the communication address configured by the target slave device and the preset communication address according to the confirmation signal.
4. The communication address configuration system according to claim 3, characterized in that: The confirmation signal includes the actual communication address configured by the target slave device; The host device is also used to compare the actual communication address with the preset communication address; If the actual communication address is consistent with the preset communication address, it is determined that the communication address configuration of the target slave device is correct; If the actual communication address is inconsistent with the preset communication address, the communication address of the target slave device is reconfigured.
5. The communication address configuration system according to claim 1, characterized in that: Each of the first voltage-dividing modules includes first voltage-dividing resistors with different resistance values, and each of the second voltage-dividing modules includes second voltage-dividing resistors with the same resistance value; The first end of the first voltage-dividing resistor is connected to the first voltage-stabilized power supply, the second end of the first voltage-dividing resistor is correspondingly connected to the first end of the second voltage-dividing resistor, and the second end of the second voltage-dividing resistor is grounded.
6. The communication address configuration system according to claim 2, characterized in that: Each of the signal detection modules includes a comparator or an analog-to-digital converter; The non-inverting input terminal of each comparator is connected to the second regulated power supply, the inverting input terminal of each comparator is correspondingly connected to the second terminal of each first voltage divider module, and the output terminal of each comparator is connected to the host device; Alternatively, the first end of each of the analog-to-digital converters is connected to the second end of each of the first voltage divider modules, and the second end of each of the analog-to-digital converters is connected to the host device.
7. A host device, characterized in that: include: A plurality of first voltage dividing modules and a plurality of signal detection modules of the same number; The host device is used to connect to a plurality of slave devices respectively through the first voltage divider module, and to reduce the voltage of the first regulated power supply by different proportions, so that each of the connected slave devices collects a different voltage value; The host device is further used to determine the access status of each of the slave devices through the level status of the level signal output by the signal detection module or the output voltage change of the correspondingly connected first voltage divider module detected.
8. The host device according to claim 7, characterized in that: Also includes: A first communication module; The host device is further used to send an address configuration query instruction to the target slave device through the first communication module according to a preset communication address, and receive a confirmation signal from the target slave device, wherein the confirmation signal includes an actual communication address configured by the target slave device; The host device is also used to determine whether the communication address of the target slave device is correctly configured according to the comparison result between the actual communication address and the preset communication address.
9. A slave device, characterized in that: include: A second voltage dividing module and a voltage sampling module; The slave device is used to access the host device through the second voltage divider module and the voltage sampling module; wherein the second voltage divider module is used to form a set of voltage divider circuits with the first voltage divider module in the host device; The slave device is further used to configure a communication address with the host device according to the voltage value in the voltage divider circuit collected by the voltage sampling module.
10. The slave device according to claim 9, characterized in that: Also includes: A second communication module; The slave device is further configured to receive the inquiry instruction sent by the host device through the second communication module, and send a confirmation signal to the host device.
Citation Information
Patent Citations
Communication address configuration method, electronic equipment and storage medium
CN115567488A
System and method for automatically adjusting driving capability of I2C (Inter-Integrated Circuit) bus
CN117112475A
Direct current voltage output circuit, and method
WO2022077273A1
