Automatic coding device and system

Through the automatic encoding device and system, the coordination of the optocoupling module and the control module is used to realize automatic encoding of the equipment, solving the problems of encoding duplication, error and access terminal performance limitations in the prior art, and improving the encoding efficiency and system performance.

CN119558273APending Publication Date: 2025-03-04XIAMEN INNOV INFORMATION SCI & TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411400673.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

In the prior art, device coding is usually performed manually, and there are problems such as duplication of encoding, errors in encoding and high labor costs. At the same time, access terminals cannot access more devices at the same time, which limits the online expansion performance.

Method used

An automatic encoding device and system is adopted to receive the addressing signal through the first optocoupler module, the control module transmits the signal to the second optocoupler module, and then outputs it to the next level device by the second optocoupler module. The addressing signal is output only after the equipment of the current device has completed encoding, realizing automatic encoding of the device.

Benefits of technology

The automatic encoding of the device is realized, the encoding repetition and error problems are solved, the encoding efficiency is improved, and the automatic encoding setting of the unlimited number is supported, avoiding transmission losses and stray signal interference caused by too long cable distance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119558273A_ABST
    Figure CN119558273A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic coding device and system. The automatic coding device comprises a first optocoupler module, a second optocoupler module, a third optocoupler module and a control module, the input end of the first optocoupler module serves as the input end of the device and is used for receiving an addressing signal. The output end of the first optocoupler module is connected with the control input end of the control module of the next-level automatic coding device; the control output end of the control module is connected with the input end of the second optocoupler module; the output end of the second optocoupler module serves as the device output end and is used for outputting an addressing signal to a next-level automatic coding device. And the output end of the third optocoupler module is connected with the input end of the first automatic coding device of the branch loop. The addressing signal is output to the next-level automatic coding device only after the equipment corresponding to the current device is detected to complete coding, and transmission loss caused by too long cable distance and transmission loss and spurious signal interference caused by long spurious signal interference are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automatic encoding technology, and in particular to an automatic encoding device and system. Background Art

[0002] In order to manage multiple devices more efficiently, it is usually necessary to encode each device to distinguish different devices. However, the existing encoding method is usually based on manual encoding, which has problems such as repeated device encoding, encoding errors, and increased labor costs. Since the number of devices that can be accessed by existing access terminals is limited by the encoding method, terminals that allow cascade access cannot access more devices at the same time, resulting in the inability to further improve the online expansion performance of access terminals. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide an automatic encoding device and system to improve the encoding efficiency of the equipment.

[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0005] An automatic encoding device comprises a first optocoupler module, a second optocoupler module, a third optocoupler module and a control module; the input end of the first optocoupler module serves as the device input end, for receiving an addressing signal; the output end of the first optocoupler module is connected to the control input end of the control module of the next-level automatic encoding device; the control output end of the control module is connected to the input end of the second optocoupler module; the output end of the second optocoupler module serves as the device output end, for outputting an addressing signal to the next-level automatic encoding device; the output end of the third optocoupler module is connected to the first automatic encoding device input end of the branch loop.

[0006] In order to solve the above technical problems, another technical solution adopted by the present invention is:

[0007] An automatic encoding system includes a trunk converter and at least two automatic encoding devices; the input end and the output end of the automatic encoding device are connected in series in sequence to form a trunk loop; the trunk converter is connected to the input end of the automatic encoding device at the head end; the input end of the automatic encoding device and the branch output end are connected in series to form a branch loop, and similarly, the output end of the automatic encoding device on the branch loop is connected to the input end of the next level automatic encoding device.

[0008] The beneficial effects of the present invention are as follows: after the first optocoupler module is used as the input end of the device to receive the addressing signal, the addressing signal is transmitted to the second optocoupler module through the control module, and then the addressing signal is output to the device of the next level through the second optocoupler module, that is, only after it is detected that the device corresponding to the current device has completed encoding, the addressing signal is output to the automatic encoding device of the next level, thereby realizing automatic encoding of the device and solving the problems of repeated encoding and encoding errors; at the same time, since the optocoupler is not affected by the voltage attenuation factor, it can realize the automatic encoding function of an infinite number of automatic encoding settings; and it can effectively avoid transmission loss and stray signal interference caused by too long cable distance. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 This is a schematic diagram of module connections of an automatic encoding device according to an embodiment of the present invention;

[0010] Figure 2 Schematic diagram of a circuit of a first optical coupling module in an automatic encoding device according to an embodiment of the present invention;

[0011] Figure 3 Schematic diagram of a circuit of a second optical coupling module in an automatic encoding device according to an embodiment of the present invention;

[0012] Figure 4 Schematic diagram of a circuit of a third optical coupling module in an automatic encoding device according to an embodiment of the present invention;

[0013] Figure 5 This is a circuit diagram of a control module in an automatic encoding device according to an embodiment of the present invention;

[0014] Figure 6 Schematic diagram of a circuit of a signal separation module in an automatic encoding device according to an embodiment of the present invention;

[0015] Figure 7 This is a circuit diagram of a power module in an automatic encoding device according to an embodiment of the present invention;

[0016] Figure 8 A connection diagram of an automatic encoding system in an embodiment of the present invention;

[0017] Fig. 9 This is a first implementation connection diagram of an automatic encoding system in an embodiment of the present invention;

[0018] Fig.10 This is a second implementation connection diagram of an automatic encoding system in an embodiment of the present invention;

[0019] Description of labels:

[0020] 1. First optical coupling module; 2. Second optical coupling module; 3. Control module; 4. Third optical coupling module;

[0021] U6, first optical coupling unit; C22, first capacitor; D7, first diode; U1, second optical coupling unit. DETAILED DESCRIPTION

[0022] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.

[0023] In the related art, the access terminal cannot simultaneously access a large number of devices, resulting in the inability to further improve the performance of the access terminal. For example, in the related art, MOS tubes are used for connection, and the source and drain of the MOS tube are affected by the voltage attenuation factor, so that when the number of devices connected is large, the subsequent devices will not be able to receive valid coding signals. In response to the above technical problems, the present invention provides an automatic coding device and system that can achieve unlimited automatic coding. The specific scheme is as follows:

[0024] Please refer to Figure 1 , an automatic encoding device, comprising a first optical coupling module, a second optical coupling module, a third optical coupling module and a control module; the input end of the first optical coupling module serves as the device input end, for receiving an addressing signal; the output end of the first optical coupling module is connected to the control input end of the control module of the next-level automatic encoding device; the control output end of the control module is connected to the input end of the second optical coupling module; the output end of the second optical coupling module serves as the device output end, for outputting an addressing signal to the next-level automatic encoding device; the output end of the third optical coupling module is connected to the first automatic encoding device input end of the branch loop.

[0025] From the above description, it can be seen that the beneficial effects of the present invention are: after the first optocoupler module is used as the input end of the device to receive the addressing signal, the addressing signal is transmitted to the second optocoupler module through the control module, and then the addressing signal is output to the device of the next level through the second optocoupler module, that is, only after it is detected that the device corresponding to the current device has completed the encoding, the addressing signal is output to the automatic encoding device of the next level, thereby realizing automatic encoding of the device and solving the problems of repeated encoding and encoding errors; at the same time, since the optocoupler is not affected by the voltage attenuation factor, it can realize the automatic encoding function of an infinite number of automatic encoding settings; and it can effectively avoid transmission loss and stray signal interference caused by too long cable distance.

[0026] Furthermore, the first optocoupler module includes a first optocoupler unit; the primary of the first optocoupler unit serves as the device input end; the secondary output end of the first optocoupler unit is connected to the power supply end of the control module; and the secondary output end of the first optocoupler unit is connected to the control input end of the control module.

[0027] From the above description, it can be seen that the secondary input end of the first optocoupler module is powered by the power supply end of the control module, so that the output signal of the first optocoupler module can be triggered based on the power supply end of the control module, thereby preventing surge jitter and improving signal stability.

[0028] Furthermore, the first optocoupler module also includes a first capacitor and a first diode; one end of the first capacitor is respectively connected to the cathode of the first diode and the secondary output end of the first optocoupler unit; the other end of the first capacitor and the anode of the first diode are respectively grounded.

[0029] It can be seen from the above description that by providing the first capacitor and the first diode, the interference of the output signal can be further offset and the signal stability can be enhanced.

[0030] Furthermore, the second optocoupler module includes a second optocoupler unit; the primary of the second optocoupler unit is connected to the control output end of the control module; the secondary input end of the second optocoupler unit is used to connect to the positive pole of the power supply bus; the secondary output end of the second optocoupler unit is used to connect to the negative pole of the power supply bus and output an addressing signal to the automatic encoding device of the next level.

[0031] From the above description, it can be seen that by connecting the control output end of the control module to the primary of the second optocoupler unit, and connecting the secondary of the second optocoupler unit to the power supply bus, the control signal inside the device can be isolated from the signal transmitted by the bus, thereby reducing interference between signals.

[0032] Furthermore, it also includes a third optocoupler module; the control module includes two control output terminals; the control output terminals of the control module are respectively connected to the input terminals of the second optocoupler module and the input terminals of the third optocoupler module; the output terminal of the third optocoupler module serves as a device branch output terminal, which is used to output an addressing signal to the device of the next level.

[0033] From the above description, it can be seen that by setting up a third optocoupler module and connecting it to the second optocoupler module and the third optocoupler module respectively through the control module, it is possible to use the output of the second optocoupler module as a main circuit and the output of the third optocoupler module as a branch circuit, thereby increasing the practicality of the device.

[0034] Furthermore, it also includes a power supply module and a signal separation module; the input end of the signal separation module is used to connect to the signal bus, and the signal bus includes a power supply signal and an addressing signal; the communication output end of the signal separation module is connected to the input end of the first optical coupling module; the power supply output end of the signal separation module is connected to the input end of the power supply module; and the output end of the power supply module is connected to the power supply end of the control module.

[0035] From the above description, it can be seen that by setting up a signal separation module, the power supply signal and the communication signal contained in the signal bus can be effectively separated and transmitted to the first optical coupling module and the power supply module for processing respectively, effectively solving the problem of separating power supply and communication.

[0036] Another embodiment of the present invention provides an automatic encoding system, including a trunk converter and at least two automatic encoding devices; the input end and the output end of the automatic encoding device are connected in series in sequence to form a trunk loop; the trunk converter is connected to the input end of the automatic encoding device at the head end; the input end of the automatic encoding device and the branch output end are connected in series to form a branch loop, and similarly, the output end of the automatic encoding device on the branch loop is connected to the input end of the automatic encoding device at the next level.

[0037] From the above description, it can be seen that by connecting multiple automatic encoding devices in series and then forming a series encoding circuit with the trunk converter, through the cooperation between the first optocoupler module, the second optocoupler module and the control module in each automatic encoding device, the corresponding devices of the automatic encoding device in the series encoding circuit are encoded in turn, thereby solving the problems of coding duplication and coding errors, improving the coding efficiency, and realizing infinite coding.

[0038] Furthermore, it includes at least three of the automatic encoding devices; at least two of the automatic encoding devices are connected in series to form a trunk loop; at least one of the automatic encoding devices is connected to a branch output end of any of the automatic encoding devices on the trunk loop to form a branch loop.

[0039] From the above description, it can be seen that on the basis of forming a series encoding circuit through multiple automatic encoding devices, the automatic encoding device on the trunk loop can also be connected with the branch automatic encoding device to form a branch loop, which greatly increases the available functions of the system.

[0040] Furthermore, it also includes a signal compensation cable; one end of the signal compensation cable is connected to the branch output end of the automatic encoding device at the head end; the other end of the signal compensation cable is connected to the branch output end of the automatic encoding device at the tail end.

[0041] It can be seen from the above description that by connecting the automatic encoding device at the head end with the automatic encoding device at the tail end through a signal compensation cable, the signal transmitted from the head end to the tail end can be compensated.

[0042] Furthermore, it comprises a sub-signal compensation cable; the sub-signal compensation cable is connected to two branch output ends of the automatic encoding device in the trunk loop except the head end and the tail end.

[0043] It can be seen from the above description that by setting a sub-signal compensation cable in the main loop, two automatic encoding devices are used to achieve signal compensation for the main loop and the branch nodes in the branch loop.

[0044] The automatic encoding device and system provided by the present invention can be applied to multi-device encoding scenarios, which are described below through specific implementation methods:

[0045] Embodiment 1

[0046] Please refer to Figures 1 to 5 , an automatic encoding device, comprising a first optical coupling module 1, a second optical coupling module 2, a third optical coupling module 4 and a control module 3; the input end (ADD_L&ADD_R) of the first optical coupling module 1 is used as a device input end for receiving an addressing signal; the output end (ADD DET) of the first optical coupling module 1 is connected to the control input end (ADD_DET) of the control module 3 of the next-level automatic encoding device; the control output end (ADD_CTRL) of the control module 3 is connected to the control input end (ADD_CTRL) of the second optical coupling module 2; the output end (ADD_L&ADD_R) of the second optical coupling module 2 is used as a device output end for outputting an addressing signal to the next-level automatic encoding device.

[0047] Please refer to Figure 2 as well as Figure 5The first optocoupler module 1 includes a first optocoupler unit U6, a first capacitor C22 and a first diode D7; the primary of the first optocoupler unit U6 serves as the device input end, wherein the first pin of the primary of the first optocoupler unit U6 includes a left input end (ADD_L) and a right input end (ADD_R) for receiving an addressing signal; the second pin of the primary is used to connect to the negative pole (L-) of the signal bus; the secondary input end (fourth pin) of the first optocoupler unit U6 is connected to the power supply end (+3V3) of the control module 3; the secondary output end (third pin) of the first optocoupler unit U6 is connected to the control input end (ADD_DET) of the control module 3; one end of the first capacitor C22 is respectively connected to the negative pole of the first diode D7 and the secondary output end of the first optocoupler unit U6; the other end of the first capacitor C22 and the positive pole of the first diode D7 are respectively grounded. The design of the first optocoupler module 1 takes into account the interference problem of surge signals caused by long lines. The addressing signal transmitted from the input end of the first optocoupler module 1 is physically isolated through the first optocoupler unit U6 and then coupled to the secondary of the first optocoupler unit U6. The power supply of the secondary of the first optocoupler unit U6 adopts the independent power supply 3V3 on the MCU end to pull up and trigger ADD_DET, which can effectively prevent surge jitter; and the left input end and the right input end are respectively provided with resistors R19 and R40, and the switching of resistors R19 and R40 can be achieved by selecting the left input end or the right input end to enter the line; and the first capacitor C22 and the first diode D7 are set to offset the interference in the line.

[0048] Please refer to Figure 3 as well as Figure 5 , the second optical coupling module 2 includes a second optical coupling unit U1; the primary (first pin) of the second optical coupling unit U1 is connected to the control output end (ADD_CTRL) of the control module 3; the secondary input end (fourth pin) of the second optical coupling unit U1 is used to connect to the positive pole (L+) of the power supply bus; the secondary output end (third pin) of the second optical coupling unit U1 is used to connect to the negative pole (L-) of the power supply bus and output the addressing signal to the next level automatic encoding device, and its output includes the left output end (ADD_L) and the right output end (ADD_R) for realizing the output line switching. The design of the second optical coupling module 2 takes into account the control signal inside the isolation node and the ADD addressing control signal transmitted by the BUS bus; the ADD_CTRL control signal output by the MCU is simultaneously connected to the second optical coupling unit U1 for physical isolation. After isolation, the secondary of the second optical coupling unit U1 uses the power supply L+ and L- on the BUS bus for coupling triggering, and then outputs to the next level node device through the resistor R46 or the resistor R49 (left output or right output switching resistor).

[0049] Please refer to Figure 4 as well as Figure 5 , the control module 3 includes two control output terminals; the control output terminals of the control module 3 are respectively connected to the input terminals of the second optical coupling module 2 and the third optical coupling module 4; the output terminal of the third optical coupling module 4 is used as a device branch output terminal for outputting an addressing signal to the device of the next level; Figure 4 As shown, the control module 3 is connected to the input end of the third optical coupling module 4 through the output end (LED_G); at the same time, the circuit structure of the third optical coupling module 4 is similar to that of the second optical coupling module 2, but the third optical coupling module 4 only includes one output end (ADD_B).

[0050] Please refer to Figure 6 as well as Figure 7 , the automatic encoding device also includes a power module and a signal separation module; the input end of the signal separation module is used to connect to the signal bus, and the signal bus includes a power supply signal and an addressing signal; the communication output end of the signal separation module is connected to the input end of the first optical coupling module 1; the power supply output end of the signal separation module is connected to the input end of the power module; the output end of the power module is connected to the power supply end of the control module 3; wherein, the signal bus carries the coding signal (for example, RS485 communication signal) while transmitting the power supply signal (DC); the sinusoidal signal in the carrier is extracted by the signal separation module, and after decomposing and extracting the P1 and P0 common mode signals, the common mode signal is converted into a TTL USART signal and transferred to the input end (14th and 15th pins) of the MCU to realize signal transmission. On the other hand, after the signal bus is input, the diode D4 is used for half-wave rectification to decompose the power supply voltage V+, and the clean power supply voltage is decomposed after filtering by the capacitor C3, the capacitor C4 and the capacitor C5 to input to the power module.

[0051] The working principle of the above automatic encoding device is as follows:

[0052] After the control module 3 detects the ADD_DET signal sent by the first optocoupler module 1, it determines whether to perform encoding based on the broadcast encoding instruction parameters initiated by the bus. If the device at the node where the current automatic encoding device is located has completed encoding, the broadcast encoding instruction will be automatically ignored. When the device encoding is successful, the control module 3 will output a high level to the second optocoupler module 2 or the third optocoupler module 4 through ADD_CTRL, and use the second optocoupler module 2 or the third optocoupler module 4 to inform the device on the next node or branch node that the device at this node has been successfully encoded and the next node or branch node can execute the automatic encoding instruction.

[0053] Embodiment 2

[0054] Please refer to Figure 8, an automatic encoding system, comprising a trunk converter and at least two automatic encoding devices as described in Example 1; the input end and the output end of the automatic encoding device are sequentially connected in series to form a trunk loop; the trunk converter is connected to the input end of the automatic encoding device at the head end; at the same time, at least two of the automatic encoding devices are connected in series to form a trunk loop; at least one of the automatic encoding devices is connected to the branch output end of any of the automatic encoding devices on the trunk loop to form a branch loop; that is, the input end of the automatic encoding device and the branch output end are connected in series to form a branch loop, and similarly, the output end of the automatic encoding device on the branch loop is connected to the input end of the next level automatic encoding device. As Figure 8 As shown, the ADD_L end of the automatic encoding device is used as the input end for connecting to the ADD_R end of the automatic encoding device of the previous level or the trunk converter; the ADD_R end of the automatic encoding device is used as the output end for connecting to the ADD_L end of the automatic encoding device; ADD_B is used as a branch for connecting to the automatic encoding device of the branch; wherein, RFID (with temperature measurement), electronic identification and other equipment can be set on the node device to realize corresponding functions; at the same time, the MAC address of the device will automatically use the RFID globally unique UID for fixed identification after power-on.

[0055] Please refer to Fig. 9 , also includes a signal compensation cable; one end of the signal compensation cable is connected to the branch output end of the automatic encoding device at the head end; the other end of the signal compensation cable is connected to the branch output end of the automatic encoding device at the tail end to achieve tail compensation.

[0056] Please refer to Fig.10 In another optional embodiment, it also includes a sub-signal compensation cable; the sub-signal compensation cable is connected to the branch output ends of the two automatic encoding devices in the trunk loop except the head end and the tail end to achieve multi-level compensation.

[0057] In summary, the present invention provides an automatic encoding device and system, which uses the first optocoupler module as the input end of the device to receive the addressing signal, transmits the addressing signal to the second optocoupler module through the control module, and then outputs the addressing signal to the device of the next level through the second optocoupler module, that is, only after detecting that the device corresponding to the current device has completed encoding, the addressing signal is output to the automatic encoding device of the next level, thereby realizing automatic encoding of the device and solving the problems of repeated encoding and encoding errors; at the same time, compared with the solution using MOS tubes for connection, since the optocoupler is not affected by the voltage attenuation factor, it can realize unlimited encoding; and it can effectively avoid the transmission loss caused by the long cable distance and the transmission loss and stray signal interference caused by the long cable distance.

[0058] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. An automatic encoding device, characterized in that: It includes a first optical coupling module, a second optical coupling module, a third optical coupling module and a control module; The input end of the first optical coupling module is used as a device input end to receive an addressing signal; The output end of the first optical coupling module is connected to the control input end of the control module of the next-level automatic encoding device; The control output terminal of the control module is connected to the input terminal of the second optical coupling module; The output end of the second optical coupling module is used as a device output end to output an addressing signal to the next-level automatic encoding device; The output end of the third optical coupling module is connected to the first automatic encoding device input end of the branch loop.

2. An automatic encoding device according to claim 1, characterized in that: The first optical coupling module includes a first optical coupling unit; The primary end of the first optical coupling unit serves as the input end of the device; The secondary output terminal of the first optical coupling unit is connected to the power supply terminal of the control module; The secondary output terminal of the first optical coupling unit is connected to the control input terminal of the control module.

3. An automatic encoding device according to claim 2, characterized in that: The first optical coupling module also includes a first capacitor and a first diode; One end of the first capacitor is connected to the cathode of the first diode and the secondary output end of the first optical coupling unit respectively; The other end of the first capacitor and the anode of the first diode are grounded respectively.

4. An automatic encoding device according to claim 1, characterized in that: The second optical coupling module includes a second optical coupling unit; The primary end of the second optical coupling unit is connected to the control output end of the control module; The secondary output end of the second optical coupling unit is used to be connected to the positive electrode of the power supply bus; The secondary output terminal of the second optical coupling unit is used to be connected to the negative pole of the power supply bus and output an addressing signal to the automatic encoding device of the next stage.

5. An automatic encoding device according to claim 1, characterized in that: The control module includes two control output terminals; The control output end of the control module is connected to the input end of the second optical coupling module and the input end of the third optical coupling module respectively; The output end of the third optical coupling module serves as a device branch output end, and is used to output an addressing signal to a device at the next level.

6. An automatic encoding device according to claim 1, characterized in that: It also includes a power supply module and a signal separation module; The input end of the signal separation module is used to connect to a signal bus, and the signal bus includes a power supply signal and an addressing signal; The communication output end of the signal separation module is connected to the input end of the first optical coupling module; The power supply output end of the signal separation module is connected to the input end of the power supply module; The output end of the power module is connected to the power supply end of the control module.

7. An automatic encoding system, characterized in that comprising a trunk converter and at least two automatic encoding devices as claimed in any one of claims 1 to 6; The input end and the output end of the automatic encoding device are sequentially connected in series to form a trunk loop; The trunk line converter is connected to the input end of the automatic encoding device at the head end.

8. An automatic encoding system according to claim 7, characterized in that: The automatic encoding device comprising at least three; At least two of the automatic encoding devices are connected in series to form a trunk loop; At least one of the automatic encoding devices is connected to a branch output end of any of the automatic encoding devices on the trunk loop to form a branch loop.

9. An automatic encoding system according to claim 7, characterized in that: Also included are signal compensation cables; One end of the signal compensation cable is connected to the branch output end of the automatic encoding device at the head end; The other end of the signal compensation cable is connected to the branch output end of the automatic encoding device at the tail end.

10. An automatic encoding system according to claim 9, characterized in that: Includes sub-signal compensation cable; The sub-signal compensation cable is connected to two branch output ends of the automatic encoding device in the trunk loop except the head end and the tail end.

Citation Information

Cited By

  • Bright Lamp Autonomous Anomaly Detection System

    TWI936939B