Power supply code-based photoelectric detection system, control method and coding method
By using a power-coded photoelectric detection system, detection information is transmitted through a power signal bus and signal control lines, simplifying the wiring and installation of the photoelectric detection system. This solves the problems of increasing the number of photoelectric transmitter-receiver pairs and increasing the cascading distance, thus achieving efficient and stable photoelectric detection.
Patent Information
- Application Number
- CN202110318531.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-25
- Publication Date
- 2026-01-16
- Estimated Expiration
- 2041-03-25
AI Technical Summary
In existing photoelectric detection systems, with the popularization of automation applications, the number of photoelectric transmitters and receivers has increased and the cascading distance has increased, resulting in more complex wiring, greater installation difficulty, higher requirements for anti-interference capabilities, and increased costs.
A power-coded photoelectric detection system is adopted, which is connected to the photoelectric transmitter and receiver pair through two photoelectric detection connection lines. The system uses a power signal bus for power supply and a signal control line for transmission of detection information, which simplifies wiring, improves anti-interference capability, and enables flexible installation by activating the photoelectric transmitter and receiver units step by step through the host.
It reduces wiring costs, improves system installation flexibility and scalability, reduces system power consumption, enhances system efficiency and stability, and avoids complex circuit anti-interference design.
Smart Images

Figure CN112946772B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to a photoelectric detection system, a control method and an encoding method, in particular to a photoelectric detection system, a control method and an encoding method based on power supply encoding. BACKGROUND
[0002] In the field of civil and industrial automation such as turnstiles, elevators, stamping equipment and automated production lines, detection equipment usually uses a photoelectric sensor of the reflection type to detect and determine the passing of people and objects. In these detection devices, the photoelectric emission-receiving pair as a detection unit is usually composed of a certain number of photoelectric sensors. With the popularization of the field of automation applications, the number of photoelectric emission-receiving pairs is required to be more and more, the distance of the cascade of photoelectric emission-receiving pairs is required to be longer, and the installation method is required to be more flexible.
[0003] In the existing detection equipment using the reflection type photoelectric emission-receiving pair, each group of photoelectric emission-receiving pair includes a transmitting unit and a receiving unit, and the receiving unit outputs a detection signal according to whether it receives the light signal emitted from the light-emitting unit; the detection signal can be an ON / OFF signal indicating whether the light is received. The detection signal output by each group of photoelectric emission-receiving pair is collected by the system control board through the data bus. In these detection devices, each group of photoelectric emission-receiving pair is a full-function standard photoelectric switch connected to the system control board through the bus.
[0004] With the popularization of the field of automation applications, the number of photoelectric emission-receiving pairs in the photoelectric detection system is required to be increased, and the distance of the cascade of photoelectric emission-receiving pairs is required to be increased, resulting in more complex wiring in the detection equipment and increased installation difficulty. In addition, due to the difference in application fields, the anti-interference ability of the detection equipment is required to be strong, which results in an increase in the cost of anti-interference software and hardware design. SUMMARY
[0005] The purpose of the present application is to overcome the shortcomings in the prior art, provide a photoelectric detection system, a control method and an encoding method based on power supply encoding, which can simplify the detection system, improve the anti-interference ability and reduce the time error accumulation caused by the cascade of multiple points in the system, and at the same time can realize flexible installation and reduce the cost.
[0006] According to the technical scheme provided by the application, the power supply coding-based photoelectric detection system comprises a host computer and at least two groups of photoelectric emission-reception pairs, each photoelectric emission-reception pair comprising a photoelectric emission unit and a photoelectric reception unit matched with the photoelectric emission unit; the host computer is connected with the photoelectric emission-reception pairs through two photoelectric detection connection lines, wherein, for any photoelectric emission-reception pair, the photoelectric emission unit in the photoelectric emission-reception pair is connected with one photoelectric detection connection line, and the photoelectric reception unit in the photoelectric emission-reception pair is connected with the other photoelectric detection connection line.
[0007] For any photoelectric detection connection line, the power supply signal bus in the photoelectric detection connection line can supply power to the photoelectric emission unit or the photoelectric emission unit and the photoelectric reception unit connected with the photoelectric detection connection line; the photoelectric emission unit or the photoelectric emission unit and the photoelectric reception unit connected with the photoelectric detection connection line are connected in series in a required order.
[0008] The host computer activates the photoelectric emission unit and / or the photoelectric reception unit connected in series in the photoelectric detection connection line, and activates the photoelectric reception unit and / or the photoelectric emission unit connected in the other photoelectric detection connection line, so that the photoelectric emission unit and the photoelectric reception unit in the same photoelectric emission-reception pair can be activated simultaneously; the host computer modulates detection information on the power supply signal bus in the photoelectric detection connection line, so that the detection information is transmitted to the photoelectric emission unit and the photoelectric reception unit in all photoelectric emission-reception pairs through the power supply signal bus; the photoelectric emission unit and the photoelectric reception unit in the activated state process the received detection information and feed back the processed results to the host computer.
[0009] The photoelectric detection connection line further comprises a signal control line, a data bus and a grounding line; the host computer is connected with the photoelectric emission unit or the photoelectric reception unit through the signal control line, the photoelectric emission units connected in series or the photoelectric emission unit and the photoelectric reception unit are also connected through the signal control line, and the grounding line is connected with the grounding end of the photoelectric emission unit and / or the photoelectric reception unit.
[0010] For any photoelectric detection connection line, the photoelectric emission unit and / or the photoelectric reception unit connected with the photoelectric detection connection line are connected to the data bus, and the photoelectric emission unit or the photoelectric reception unit in the activated state feeds back the processed results to the host computer through the data bus.
[0011] The detection information loaded by the host on the power signal bus includes detection instructions or detection data. After the detection information is modulated on the power signal bus, a detection power data packet transmitted through the power signal bus can be obtained. The detection power data packet includes a reset code value, a reference code value, a 1 code value, and a 0 code value.
[0012] The photoelectric emission unit includes an emission unit power signal decoding circuit connectable with the power signal bus, an emission micro control unit connected with the emission unit signal decoding circuit, an emission control circuit connected with the emission micro control unit, and a light emitter connected with the emission control circuit.
[0013] The emission micro control unit is connectable with the host, an emission micro control unit in a neighboring photoelectric emission unit, or a neighboring photoelectric receiving unit through a signal control line. The emission micro control unit is also connected with a data bus to feed back the processing result of the photoelectric emission unit to the host.
[0014] The photoelectric receiving unit includes a receiving unit power signal decoding circuit connectable with the power signal bus, a receiving micro control unit connected with the receiving unit power signal decoding circuit, a receiving control circuit connected with the receiving micro control unit, and a light receiver connected with the receiving control circuit. The light receiver is connected with the receiving micro control unit through a receiving processing circuit.
[0015] The receiving micro control unit is connectable with the host, a receiving micro control unit in a neighboring photoelectric receiving unit, or a neighboring photoelectric emission unit through a signal control line. The receiving micro control unit is also connected with a data bus to feed back the processing result of the photoelectric receiving unit to the host.
[0016] A control method of a photoelectric detection system based on power encoding includes a host and at least two groups of photoelectric emission-receiving pairs. Each photoelectric emission-receiving pair includes a photoelectric emission unit and a photoelectric receiving unit adapted to the photoelectric emission unit. The host is connected with the photoelectric emission-receiving pairs through two photoelectric detection connection lines. For any photoelectric emission-receiving pair, the photoelectric emission unit in the photoelectric emission-receiving pair is connected with one photoelectric detection connection line, and the photoelectric receiving unit in the photoelectric emission-receiving pair is connected with the other photoelectric detection connection line.
[0017] For any photoelectric detection connection line, the photoelectric emission unit or the photoelectric emission unit and the photoelectric receiving unit connected with the photoelectric detection connection line are powered through a power signal bus in the photoelectric detection connection line. The photoelectric emission unit or the photoelectric emission unit and the photoelectric receiving unit connected with the photoelectric detection connection line are connected in a required order.
[0018] The host makes the photoelectric emission units and / or photoelectric receiving units connected in series on the photoelectric detection connection line group activated step by step, and can make the photoelectric receiving units and / or photoelectric emission units connected on another photoelectric detection connection line group activated correspondingly, so that the photoelectric emission units and the photoelectric receiving units in the same photoelectric emission-receiving pair are in the activated working state at the same time; the host modulates the detection information to the power signal bus in the photoelectric detection connection line group, so as to transmit the detection information to the photoelectric emission units and the photoelectric receiving units in all photoelectric emission-receiving pairs through the power signal bus; the photoelectric emission units and the photoelectric receiving units in the activated state process the received detection information correspondingly, and feed back the processed results to the host.
[0019] The photoelectric detection connection line group further includes a signal control line, a data bus and a ground line; the host is connected with a photoelectric emission unit or a photoelectric receiving unit through the signal control line, the photoelectric emission units connected in series or the photoelectric emission units and the photoelectric receiving units are also connected through the signal control line, and the ground line is connected with the ground end of the photoelectric emission unit and / or the photoelectric receiving unit correspondingly;
[0020] For any photoelectric detection connection line group, the photoelectric emission units and / or the photoelectric receiving units connected to the photoelectric detection connection line group are hung on the data bus, and the photoelectric emission units or the photoelectric receiving units in the activated state feed back the processing results to the host through the data bus.
[0021] The host includes a power signal encoding module, a host microprocessor unit adaptively connected with the power signal encoding module, and a host detection circuit adaptively connected with the host microprocessor unit;
[0022] The host microprocessor unit transmits the detection information to the power signal encoding module, so as to obtain the detection power data packet after the required encoding is performed by the power signal encoding module, and the power signal encoding module loads the detection power data packet to the power signal bus;
[0023] The host detection circuit is connected with the data bus in all photoelectric detection connection line groups, and the host microprocessor unit is connected with the corresponding photoelectric emission unit and / or photoelectric receiving unit through the signal control line.
[0024] The application discloses a coding method of a power supply coding-based photoelectric detection system, which comprises a host and at least two groups of photoelectric emission-reception pairs, wherein each photoelectric emission-reception pair comprises a photoelectric emission unit and a photoelectric reception unit matched with the photoelectric emission unit; the host is connected with the photoelectric emission-reception pairs through two photoelectric detection connection lines, wherein for any photoelectric emission-reception pair, the photoelectric emission unit in the photoelectric emission-reception pair is connected with one photoelectric detection connection line, and the photoelectric reception unit in the photoelectric emission-reception pair is connected with the other photoelectric detection connection line.
[0025] For any photoelectric detection connection line, the photoelectric emission unit or the photoelectric emission unit and the photoelectric reception unit connected with the photoelectric detection connection line can be powered through a power supply signal bus in the photoelectric detection connection line; and the photoelectric emission unit or the photoelectric emission unit and the photoelectric reception unit connected with the photoelectric detection connection line can be connected in series in a required order.
[0026] The host activates the photoelectric emission unit and / or the photoelectric reception unit connected in series in one photoelectric detection connection line, and activates the photoelectric reception unit and / or the photoelectric emission unit connected in the other photoelectric detection connection line correspondingly, so that the photoelectric emission unit and the photoelectric reception unit in the same photoelectric emission-reception pair can be activated simultaneously; the host loads detection power supply data packets obtained by coding detection information into the power supply signal bus, and loads the detection power supply data packets into the photoelectric emission unit and the photoelectric reception unit in all photoelectric emission-reception pairs through the power supply signal bus; the detection power supply data packets comprise a reset code, a reference code, a 1 code value and a 0 code value.
[0027] The photoelectric emission unit and the photoelectric reception unit in the activated state process corresponding information according to the received detection information, and feed back the processed information to the host.
[0028] When coding the detection information, the current level is kept at a high level VH for a Treset time, so that a reset code is obtained through the current level; the current level is kept at a low level VL for a TC time and kept at the high level VH for a 2*TC time, so that a reference code is obtained through the current level; the current level is kept at the low level VL for a T1L time and kept at the high level VH for a T1H time, so that a 1 code value is obtained through the current level; and the current level is kept at the low level VL for a T0L time and kept at the high level VH for a T0H, so that a 0 code value is obtained through the current level.
[0029] The application has the advantages that when there are multiple photoelectric emission-reception pairs, the host makes one photoelectric emission-reception pair in an active working state, and there is no mutual interference problem among the multiple photoelectric emission-reception pairs, and there is no need to carry out complex circuit anti-interference design; in addition, each photoelectric emission-reception pair carries out corresponding processing according to the analyzed detection information, and then feeds back the processing result to the system host, so that the system efficiency and stability are greatly improved; in addition, all the photoelectric emission units and the photoelectric receiving units do not have to be installed on one side, but can be cross-installed, so that the system installation flexibility is greatly improved; the photoelectric emission units and the photoelectric receiving units do not need to carry out address coding, so that the system scalability and the bad product replacement convenience are greatly improved; the two photoelectric detection connection lines are connected with the photoelectric emission units and the photoelectric receiving units, so that the connection is simple, the wiring cost is low, and the wiring flexibility is improved; since the photoelectric emission units and the photoelectric receiving units in the same photoelectric emission-reception pair use the same host, the emission-reception synchronization is very convenient, and the system scanning rate is improved; in one working cycle, the photoelectric emission units and the photoelectric receiving units in the photoelectric emission-reception pair carry out emission and reception processing only once, so that the system power consumption is greatly reduced. BRIEF DESCRIPTION OF DRAWINGS
[0030] Figure 1 The figure is a block diagram of the application.
[0031] Figure 2 The figure is a schematic diagram of the application.
[0032] Figure 3 The figure is a block diagram of the photoelectric emission unit of the application.
[0033] Figure 4 The figure is a block diagram of the photoelectric receiving unit of the application.
[0034] Figure 5 The figure is a timing diagram of the detection of the application.
[0035] Figure 6 The figure is a schematic diagram of the detection information coding of the application.
[0036] Figure 7 The figure is a schematic diagram of the detection power supply data packet of the application.
[0037] Explanation of reference numerals in the attached diagram: 100-Main unit, 110-First connection group of photoelectric detection, 120-Second connection group of photoelectric detection, 130-Power signal encoding module, 140-Main unit detection circuit, 150-Main unit microprocessor unit, 200-Photoelectric transmitting unit, 201-Signal decoding circuit of transmitting unit, 202-Transmitting microcontroller unit, 203-Transmitting control circuit, 204-Optical transmitter, 300-Photoelectric receiving unit, 301-Power signal decoding circuit of receiving unit, 302-Receiver microcontroller unit, 303-Receiver control circuit, 304-Optical receiver, 305-Receiver processing circuit. Detailed Implementation
[0038] The present invention will be further described below with reference to specific accompanying drawings and embodiments.
[0039] like Figure 1 As shown: In order to simplify the detection system, improve anti-interference capability, and reduce the accumulation of timing errors caused by multi-point cascading of the system, while also enabling flexible installation and reducing costs, this invention includes a host 100 and at least two sets of photoelectric transmitter-receiver pairs. Each photoelectric transmitter-receiver pair includes a photoelectric transmitter unit 200 and a photoelectric receiver unit 300 adapted to the photoelectric transmitter unit 200. The host 100 is adapted to the photoelectric transmitter-receiver pair via two photoelectric detection connection lines. For any photoelectric transmitter-receiver pair, the photoelectric transmitter unit 200 within the pair is adapted to one photoelectric detection connection line group, and the photoelectric receiver unit 300 within the pair is adapted to the other photoelectric detection connection line group.
[0040] For any photoelectric detection connection line group, the power signal bus within the photoelectric detection connection line group can supply power to the photoelectric transmitting unit 200 or the photoelectric transmitting unit 200 and the photoelectric receiving unit 300 connected to the photoelectric detection connection line group; the photoelectric transmitting unit 200 or the photoelectric transmitting unit 200 and the photoelectric receiving unit 300 connected to the photoelectric detection connection line group can be connected in series in the required order.
[0041] The host 100 enables the photoelectric emission unit 200 and / or the photoelectric receiving unit connected on the photoelectric detection connection line group to be activated step by step, and enables the photoelectric receiving unit 300 and / or the photoelectric emission unit 200 connected on the other photoelectric detection connection line group to be activated correspondingly, so that the photoelectric emission unit 200 and the photoelectric receiving unit 300 in the same photoelectric emission-receiving pair are in the activated working state at the same time; the host 100 modulates the detection information to the power signal bus in the photoelectric detection connection line group, so as to transmit the detection information to the photoelectric emission unit 200 and the photoelectric receiving unit 300 in all photoelectric emission-receiving pairs through the power signal bus; the photoelectric emission unit 200 and the photoelectric receiving unit 300 in the activated state perform corresponding processing according to the received detection information, and feed back the processed results to the host 100.
[0042] Specifically, the photoelectric emission-receiving pair can be a light curtain, a grating, a photoelectric switch system, and of course, the photoelectric emission-receiving pair can also be other commonly used forms of cooperating photoelectric emission and reception, which can be selected as needed, and will not be listed one by one here. The host 100 cooperates with the photoelectric emission-receiving pair through two photoelectric detection connection line groups, so as to realize the control of the working state of the photoelectric emission-receiving pair. As known by those skilled in the art, the photoelectric emission-receiving pair generally includes a photoelectric emission unit 200 and a photoelectric receiving unit 300, wherein the photoelectric emission unit 200 can emit a photoelectric signal, and the photoelectric receiving unit 300 adapted to the photoelectric emission unit 200 can receive the photoelectric signal emitted by the photoelectric emission unit 200. In order to cooperate with the photoelectric emission-receiving pair, the photoelectric detection connection line group is two, which are a photoelectric detection first connection line group 110 and a photoelectric detection second connection line group 120, and the photoelectric detection first connection line group 110 and the photoelectric detection second connection line group 120 can adopt the same form.
[0043] In the embodiment of the application, for a photoelectric emission-receiving pair, the photoelectric emission unit 200 needs to be connected with a photoelectric detection connection line group, and the photoelectric receiving unit 300 needs to be connected with another photoelectric detection connection line group. When there are multiple photoelectric emission-receiving pairs, the photoelectric emission unit 200 and the photoelectric receiving unit 300 in each photoelectric emission-receiving pair can select the connected photoelectric detection connection line group as needed, that is, the same photoelectric detection connection line group can only connect the photoelectric emission unit 200, only connect the photoelectric receiving unit 300, or simultaneously connect the photoelectric emission unit 200 and the photoelectric receiving unit 300, and of course, the state of the photoelectric emission unit 200 and the photoelectric receiving unit 300 connected on the two photoelectric detection connection line groups is accurate to the required photoelectric emission-receiving pair. For example, Figure 1In the embodiment, on the photoelectric detection first connecting line group 110, there are several photoelectric emission units 200 and several photoelectric receiving units 300 connected simultaneously, and on the photoelectric detection second connecting line group 120, there are also several photoelectric emission units 200 and several photoelectric receiving units 300 connected simultaneously, and a photoelectric emission unit 200 on the photoelectric detection first connecting line group 110 and a corresponding photoelectric receiving unit 300 on the photoelectric detection second connecting line group 120 can form a photoelectric emission-receiving pair; similarly, a photoelectric receiving unit 300 on the photoelectric detection first connecting line group 110 and a corresponding photoelectric emission unit 200 on the photoelectric detection second connecting line group 120 can form a photoelectric emission-receiving pair.
[0044] In the embodiment, the photoelectric detection connecting line group includes a power signal bus, and the photoelectric emission unit 200 or the photoelectric emission unit 200 and the photoelectric receiving unit 300 connected to the photoelectric detection connecting line group can be powered simultaneously through the power signal bus. In addition, the photoelectric emission unit 200 and / or the photoelectric receiving unit 300 connected to the photoelectric detection connecting line group are sequentially connected in series. In the specific implementation, when sequentially connected in series, the photoelectric emission unit 200 or the photoelectric receiving unit 300 directly connected to the host 200 can be activated first to be in the working state, and then sequentially activated according to the order of the series connection. In the specific activation, the connection order between the photoelectric emission unit 200 and the photoelectric receiving unit 300 is related. For a photoelectric detection connecting line group, only one photoelectric emission unit 200 or photoelectric receiving unit 300 can be in the activated state during the work, that is, for the host 100, each time can cooperate with a photoelectric emission-receiving pair to work.
[0045] In specific work, the host 100 can modulate the detection information to the power signal bus, that is, to the power signal bus in the two photoelectric detection connection line groups, so that the detection information can be transmitted to all photoelectric emission units 200 and photoelectric receiving units 300 at the same time. Since the host 100 can only activate the photoelectric emission unit 200 and the photoelectric receiving unit 300 in the photoelectric emission-receiving pair at a time, only the photoelectric emission unit 200 and the photoelectric receiving unit 300 in the activated state can receive the detection information, analyze the received detection information, and after analysis, the photoelectric emission unit 200 and the photoelectric receiving unit 300 perform corresponding actions according to the analyzed detection information, and feed back the results processed according to the analyzed detection information to the host 100, so that the host 100 realizes photoelectric detection of the photoelectric emission-receiving pair. In specific implementation, when the detection information is modulated to the power signal bus, that is, the detection power data packet is transmitted on the power signal bus, the photoelectric emission unit 200 and the photoelectric receiving unit 300 generally exist in the form of a voltage stabilizer for controlling voltage in specific work, so that the transmission of the detection power data packet on the power signal bus will not affect the power supply to the photoelectric emission unit 200 and the photoelectric receiving unit 300, and the stability and reliability of the photoelectric emission unit 200 and the photoelectric receiving unit 300 in work can be ensured. The processing result of the photoelectric emission unit 200 generally includes emitting photoelectric signals, and the processing result of the photoelectric receiving unit 300 generally includes receiving photoelectric signals.
[0046] In summary, when there are multiple photoelectric emission-receiving pairs, the host 100 makes one photoelectric emission-receiving pair in an activated working state, and there is no mutual interference problem between multiple photoelectric emission-receiving pairs, without the need for complex circuit anti-interference design. In addition, each photoelectric emission-receiving pair performs corresponding processing according to the analyzed detection information, and then feeds back the processing result to the system host 100, greatly improving the system efficiency and stability. In addition, all photoelectric emission units 200 and photoelectric receiving units 300 do not have to be installed on one side, but can be installed crosswise, greatly improving the flexibility of system installation. The photoelectric emission unit 200 and the photoelectric receiving unit 300 do not need to be address coded, greatly improving the scalability and convenience of replacing defective products of the system. The two photoelectric detection connection line groups are connected with the photoelectric emission unit 200 and the photoelectric receiving unit 300, the connection is simple, the wiring cost is low, and the wiring flexibility is improved. Since the photoelectric emission unit 200 and the photoelectric receiving unit 300 in the same photoelectric emission-receiving pair use the same host 100, it is very convenient for emission-reception synchronization and for improving the scanning rate of the system. In one working cycle, the photoelectric emission unit 200 and the photoelectric receiving unit 300 in the photoelectric emission-receiving pair only perform emission and reception processing once, and the system power consumption will be greatly reduced.
[0047] Furthermore, the photoelectric detection connection line group also includes a signal control line, a data bus, and a grounding line. The host 100 is connected to a photoelectric transmitting unit 200 or a photoelectric receiving unit 300 through the signal control line. The photoelectric transmitting units 200 connected in series or the photoelectric transmitting unit 200 and the photoelectric receiving unit 300 are also connected through the signal control line. The grounding line is connected to the corresponding grounding terminal of the photoelectric transmitting unit 200 and / or the photoelectric receiving unit 300.
[0048] For any photoelectric detection connection line group, the photoelectric transmitting unit 200 and / or photoelectric receiving unit 300 connected to the photoelectric detection connection line group are all connected to the data bus. The photoelectric transmitting unit 200 or photoelectric receiving unit 300 in the active state feeds back the processing result to the host 100 through the data bus.
[0049] In this embodiment of the invention, the photoelectric detection connection line group also includes a signal control line, a data bus, and a grounding line. The host 100 is connected to a photoelectric transmitting unit 200 or a photoelectric receiving unit 300 through the signal control line. The photoelectric transmitting units 200 connected in series or the photoelectric transmitting unit 200 and the photoelectric receiving unit 300 are also connected through the signal control line. The grounding line is connected to the grounding terminal of the photoelectric transmitting unit 200 and / or the photoelectric receiving unit 300.
[0050] For any photoelectric detection connection line group, the photoelectric transmitting unit 200 and / or photoelectric receiving unit 300 connected to the photoelectric detection connection line group are all connected to the data bus. The photoelectric transmitting unit 200 or photoelectric receiving unit 300 in the active state feeds back the processing result to the host 100 through the data bus.
[0051] like Figure 2 As shown, the photoelectric detection connection line group includes a power signal bus VS_CMD, a signal control line QS_D0, a data bus DB, and a ground line GND; from Figure 2 As can be seen from the connection configuration shown, the wiring of this invention is very simple. As photoelectric transmitting unit 200 and photoelectric receiving unit 300, they only need to complete the corresponding actions according to the instructions and / or data issued by the host 100. Timing, logic, and state processing are handled by the host 100, significantly reducing the overall system cost compared to systems using several full-function photoelectric switches.
[0052] Specifically, taking three photoelectric emission units 200 (referred to as IR1, IR2, and IR3 respectively) and three photoelectric receiving units 300 (referred to as PD1, PD2, and PD3 respectively) as examples, the specific connection is described. It should be noted that the present embodiment is not limited thereto, and the number of photoelectric emission units 200 and photoelectric receiving units 300 can not be limited thereto. Among them, the photoelectric emission unit IR1 and the photoelectric receiving unit PD1 form a photoelectric emission-receiving pair, the photoelectric emission unit IR2 and the photoelectric receiving unit PD2 form a photoelectric emission-receiving pair, and the photoelectric emission unit IR3 and the photoelectric receiving unit PD3 form a photoelectric emission-receiving pair.
[0053] The photoelectric emission unit IR1, the photoelectric receiving unit PD2, and the photoelectric emission unit IR3 are connected to the same photoelectric detection connection line group, and the photoelectric receiving unit PD1, the photoelectric emission unit IR2, and the photoelectric receiving unit PD3 are connected to the same photoelectric detection connection line group.
[0054] The photoelectric emission unit IR1, the photoelectric receiving unit PD2, and the photoelectric emission unit IR3 are connected to the same photoelectric detection connection line group, and the photoelectric receiving unit PD1, the photoelectric emission unit IR2, and the photoelectric receiving unit PD3 are connected to the same photoelectric detection connection line group.
[0055] The photoelectric emission unit IR1, the photoelectric receiving unit PD2, and the photoelectric emission unit IR3 are connected to the same photoelectric detection connection line group, and the photoelectric receiving unit PD1, the photoelectric emission unit IR2, and the photoelectric receiving unit PD3 are connected to the same photoelectric detection connection line group.
[0056] For the above-mentioned cascade connection mode, the host 100 first activates the photoelectric emission unit IR1 and the photoelectric receiving unit PD1 to work, then activates the photoelectric receiving unit PD2 and the photoelectric emission unit IR2 to work, and finally activates the photoelectric emission unit IR3 and the photoelectric receiving unit PD3 to work.
[0057] Further, the detection information loaded by the host 100 on the power signal bus includes detection instructions or detection data. After the detection information is modulated on the power signal bus, a detection power data packet transmitted through the power signal bus can be obtained, and the detection power data packet includes a reset code value, a reference code value, a 1 code value and a 0 code value.
[0058] In the embodiment of the application, the detection instructions generally include reset, transmission, reception enable or disable enable, etc., and the detection data can be parameter configuration of the photoelectric transmission unit 200 and the photoelectric receiving unit 300, etc. The specific selection and determination can be made according to actual needs, and the specific method is well known to those skilled in the art, which will not be described here.
[0059] In the specific implementation, when the detection information is modulated on the power signal bus, a detection power data packet can be obtained, and the detection power data packet generally includes a reset code value, a reference code value, a 1 code value and a 0 code value. When modulating:
[0060] When the current level is relative to the high level VH for Treset time, the reset code is obtained through the current level; when the current level is relative to the low level VL for TC time and relative to the high level VH for 2*TC time, the reference code is obtained through the current level; when the current level is relative to the low level VL for T1L time and relative to the high level VH for T1H time, the 1 code value is obtained through the current level; and when the current level is relative to the low level VL for T0L time and relative to the high level VH for T0H, the 0 code value is obtained through the current level.
[0061] Figure 7 is an example of the coded data packet of the embodiment of the application. As shown in Figure 7 The detection power data packet includes a reset code value, a reference code value, a 1 code value and a 0 code value, and the detection power data packet is: reset code signal + reference code signal + 1 code signal / 0 code signal. In the detection power data packet, the reset code is used as the minimum time interval between the detection power data packets to ensure that the different detection power data packets can be effectively identified. In the detection power data packet, the reference code is used as the time reference for decoding the 1 code or the 0 code. Due to the existence of the time reference, the entire system can adaptively encode signals of different rates, and the decoding circuit can achieve adaptive decoding according to the reference code. Therefore, the flexible selection of the data transmission rate of different systems can be realized; in the detection power data packet, the 1 code is used for transmitting signal 1; in the detection power data packet, the 0 code is used for transmitting signal 0. The 1 code and the 0 code specifically refer to the form of data transmission by using binary.
[0062] In summary, the host 100 transmits instructions and data to all the photoelectric emission units 200 and the photoelectric receiving units 300 through the power signal bus, and realizes the control and parameter configuration of all the photoelectric emission-receiving pairs in combination with the control signal lines.
[0063] As shown in Figure 3 The photoelectric emission unit 200 includes an emission unit power signal decoding circuit 201 connectable with the power signal bus, an emission micro control unit 202 connected with the emission unit signal decoding circuit 201, an emission control circuit 203 connected with the emission micro control unit 202, and a light emitter 204 connected with the emission control circuit 203.
[0064] The emission micro control unit 202 is connectable with the host 100, the emission micro control unit 200 in the adjacent photoelectric emission unit 200, or the adjacent photoelectric receiving unit 300 in series through the signal control line, and is further connected with the data bus to feed back the processing result of the photoelectric emission unit 200 to the host 100.
[0065] In the embodiment of the application, the emission unit power signal decoding circuit 201 detects the signal on the power signal bus in real time, demodulates the coded data mounted on the power signal bus, and sends the data to the emission micro control unit 202 for data processing. The emission unit power signal decoding circuit 201 can adopt the existing common form, as long as it can realize the decoding of the detected power data packet, which is well known to those skilled in the art, and will not be described here.
[0066] The emission micro control unit 202 receives the detected power data packet of the host 100 based on the emission unit power signal decoding circuit 201, takes the output of the previous stage as the input according to the signal control line, and can output the control signal to the photoelectric emission unit 200 or the photoelectric receiving unit 300 in the next stage, that is, the emission micro control unit 202 in the photoelectric emission unit 200 is connectable with the photoelectric emission unit 200 or the photoelectric receiving unit 300 in the previous stage through the signal control line, and is connectable with the photoelectric emission unit 200 or the photoelectric receiving unit 300 in the next stage. The emission micro control unit 200 can adopt the existing common form, and can be selected according to the needs.
[0067] The transmitting unit power signal decoding circuit 201 decodes the detected power data packet and transmits the decoded information to the transmitting microcontroller 202. The transmitting microcontroller 202 controls the transmitting control circuit 203 to generate a transmitting control signal or configures relevant parameters according to the decoded information. After the transmitting control signal or the parameter configuration is generated, the transmitting microcontroller 202 transmits the corresponding processing result to the host 100 through the data bus. After receiving the transmitting control signal, the transmitting control circuit 203 loads a transmitting driving signal to the optical transmitter 204 to transmit a corresponding optical signal through the optical transmitter 204. The optical transmitter 204 can be in the form of a light-emitting diode, and the transmitting control circuit 203 and the optical transmitter 204 can adopt a common optical emission matching form known to those skilled in the art, which will not be described here.
[0068] For an optoelectronic transmitting unit 200, when the control signal line connected to the input end of the optoelectronic transmitting unit 200 is at an effective level, i.e. when the optoelectronic transmitting unit 200 receives a valid control signal through the control signal line, the optoelectronic transmitting unit 200 is activated. Once the transmitting data and / or instructions are received from the transmitting unit power decoding circuit 201, the transmitting control circuit 203 controls the optical transmitter 204 to emit an optical signal. Once the transmission is completed, the output signal of the transmitting microcontroller 203 becomes an effective level, i.e. the control signal line connected to the output end of the optoelectronic transmitting unit 200 is at an effective level, while the control signal line connected to the input end of the optoelectronic transmitting unit 200 is at an idle level, so that the current optoelectronic transmitting unit 200 changes from an activated state to an inactivated state. Thus, as the signal control line is periodically controlled, the series-connected optoelectronic transmitting units 200 are activated in turn.
[0069] As shown in Figure 4 The optoelectronic receiving unit 300 includes a receiving unit power signal decoding circuit 301 connectable to a power signal bus, a receiving microcontroller 302 connected to the receiving unit power signal decoding circuit 301, a receiving control circuit 303 connected to the receiving microcontroller 302, and an optical receiver 304 connected to the receiving control circuit 303, wherein the optical receiver 304 is connected to the receiving microcontroller 302 through a receiving processing circuit 305.
[0070] The receiving microcontroller 302 is connectable to the host 100, the receiving microcontroller 302 in the adjacent optoelectronic receiving unit 300, or the adjacent optoelectronic transmitting unit 200 through a signal control line in series. The receiving microcontroller 302 is also connected to a data bus to feed back the processing result of the optoelectronic receiving unit 300 to the host 100.
[0071] In the embodiment of the present application, the receiving unit power signal decoding circuit 301 can be connected with the power signal bus, can detect the signal of the power signal bus in real time, and demodulate the detected power data packet mounted on the power signal bus and send it to the receiving micro control unit 202 for data processing; the receiving unit power signal decoding circuit 301 can specifically adopt the existing common form, and the decoding process of the detected power data packet by the receiving unit power signal decoding circuit 301 can refer to the encoding mode of the detected power data packet as described above, which is well known to those skilled in the art, and will not be described here.
[0072] The receiving micro control unit 302 receives the detection information of the host 100 based on the receiving unit power signal decoding circuit 301, and the function of the receiving micro control unit 302 can refer to the description of the transmitting micro control unit 202 as described above, which will not be described here. The receiving micro control unit 302 can generate a receiving control signal or configure related parameters according to the detection information decoded by the receiving unit power signal decoding circuit 301.
[0073] The receiving control circuit 303 can load a receiving driving signal to the optical receiver 304 according to the receiving control signal generated by the receiving micro control unit 302, and the optical receiver 304 can receive the optical signal according to the receiving driving signal. The optical receiver 304 can be a component such as a photodiode, which can be selected as needed, and will not be described here. The receiving processing circuit 305 is used for amplifying, shaping and filtering the received optical signal, and transmitting the optical signal to the receiving micro control unit 302, and the receiving micro control unit 302 can send the feedback result of optical receiving to the host 100 according to the optical signal transmitted by the receiving processing circuit 305; of course, when the detection information is related parameter configuration, after the parameter is configured, the receiving micro control unit 302 feeds back the feedback result of parameter configuration to the host 100 through the data bus.
[0074] For an optoelectronic receiving unit 300, when the control signal line connected with the input end of the optoelectronic receiving unit 300 is at an effective level, the optoelectronic receiving unit 300 is activated, and once the detection information of the host 100 is received from the receiving unit power decoding circuit 301, the receiving control circuit 303 controls the optical receiver 303 to receive the optical signal. Once the receiving is completed, the output signal of the receiving micro control unit 302 through the control signal line becomes an effective level; that is, the control signal line connected with the output end of the optoelectronic receiving unit 300 is at an effective level, and the control signal line connected with the input end of the optoelectronic receiving unit 300 is at an idle level, so that the current optoelectronic receiving unit 300 changes from the activated state to the non-activated state. Thus, with the signal control line being received periodically, the optoelectronic receiving units 300 in series are activated in turn.
[0075] In the embodiments of the present application, the active level and the idle level can be opposite, for example, the active level can be high level and the idle level can be low level. In addition, the embodiments of the present application can not be limited to this, for example, the active level can be low level and the idle level can be high level.
[0076] In the embodiments of the present application, the power supply coding is based on two voltages on the power supply signal bus, and the coded voltage signal is loaded on the power supply signal bus according to the code type definition. Among them, the relatively higher voltage of the two voltages on the power supply signal bus is agreed to be VH, and the relatively low voltage is agreed to be VL. The difference between VH and VL is ΔV. When the idle level is agreed to be VH, the non-idle level (active level) is VL. Conversely, if the idle level is agreed to be VL, the non-idle level is VH. Generally, VH is 18-24V, VL is generally VH / 2, therefore, ΔV can be VH / 2.
[0077] The time Treset is composed of the idle level lasting for 10*TC time; the reference code is composed of the non-idle level lasting for TC time and the idle level lasting for 2*TC time; the 0 code is composed of the non-idle level lasting for TC / 4 (T0L) time and the idle level lasting for TC / 2 (T0H) time; the 1 code is composed of the non-idle level lasting for TC / 2 (T1L) time and the idle level lasting for TC / 4 (T1H) time; generally, TC is 4us-10ms.
[0078] From the above description, the control method of the power supply coding-based photoelectric detection system can be obtained, specifically, including a host 100 and at least two groups of photoelectric emission-reception pairs, the photoelectric emission-reception pair including a photoelectric emission unit 200 and a photoelectric receiving unit 300 adapted to the photoelectric emission unit 200; the host 100 is connected to the photoelectric emission-reception pair through two photoelectric detection connection lines, wherein for any photoelectric emission-reception pair, the photoelectric emission unit 200 in the photoelectric emission-reception pair is connected to one photoelectric detection connection line, and the photoelectric receiving unit 300 in the photoelectric emission-reception pair is connected to the other photoelectric detection connection line.
[0079] For any photoelectric detection connection line, the power supply signal bus in the photoelectric detection connection line can be used to supply power to the photoelectric emission unit 200 or the photoelectric emission unit 200 and the photoelectric receiving unit 300 connected to the photoelectric detection connection line; the photoelectric emission unit 200 or the photoelectric emission unit 200 and the photoelectric receiving unit 300 connected to the photoelectric detection connection line are connected in series in the required order.
[0080] The host 100 enables the photoelectric emission unit 200 and / or the photoelectric receiving unit connected on the photoelectric detection connection line group to be activated step by step, and enables the photoelectric receiving unit 300 and / or the photoelectric emission unit 200 connected on the other photoelectric detection connection line group to be activated correspondingly, so that the photoelectric emission unit 200 and the photoelectric receiving unit 300 in the same photoelectric emission-receiving pair are in the activated working state at the same time; the host 100 modulates the detection information to the power signal bus in the photoelectric detection connection line group, so as to transmit the detection information to the photoelectric emission unit 200 and the photoelectric receiving unit 300 in all photoelectric emission-receiving pairs through the power signal bus; the photoelectric emission unit 200 and the photoelectric receiving unit 300 in the activated state perform corresponding processing according to the received detection information, and feed back the processed results to the host 100.
[0081] Specifically, the specific cooperation between the photoelectric emission unit 200, the photoelectric receiving unit 300, the host 100 and the photoelectric detection connection line group can be referred to the above description.
[0082] As shown in the figure, Figure 2 The host 100 comprises a power signal encoding module 130, a host microprocessor unit 150 adaptively connected with the power signal encoding module 130, and a host detection circuit 140 adaptively connected with the host microprocessor unit 150.
[0083] The host microprocessor unit 150 transmits the detection information to the power signal encoding module 130, so as to obtain the detection power data packet after the required encoding is performed by the power signal encoding module 130, and the power signal encoding module 130 loads the detection power data packet to the power signal bus.
[0084] The host detection circuit 140 is connected with the data bus in all photoelectric detection connection line groups, and the host microprocessor unit 150 is connected with the corresponding photoelectric emission unit 200 and / or photoelectric receiving unit 300 through the signal control line.
[0085] In the embodiment of the application, the power signal encoding module 130, the host detection circuit 140 and the host microprocessor unit 150 can all adopt the existing common circuit form, the power signal encoding module 130 can encode, so as to modulate the detection information to the power signal bus, and the specific encoding process to obtain the detection power data packet can be referred to the above description, which will not be described here. The host detection circuit 140 can realize the detection of the data bit on the data bus, so as to obtain the feedback results of the corresponding photoelectric emission unit 200 and photoelectric receiving unit 300.
[0086] The detection mode of the photoelectric system in the embodiment will be described below in combination with a specific embodiment.
[0087] Figure 5 A timing diagram for detection using the photoelectric detection system of the present embodiment, wherein the transmitting action refers to the action of the host 100 and the photoelectric transmitting units 200 (including the photoelectric transmitting unit IR1, the photoelectric transmitting unit IR2, and the photoelectric transmitting unit IR3). The receiving action refers to the action of the host 100 and the photoelectric receiving units 300 (including the photoelectric receiving unit PD1, the photoelectric receiving unit PD2, and the photoelectric receiving unit PD3). The combination of the transmitting action and the receiving action is the detection action of the photoelectric system of the present embodiment. Figure 5 The steps of the control method for detection using the photoelectric system of the present embodiment are described as follows:
[0088] Step 1: After starting, the host 100 provides the idle level (high level) to the photoelectric transmitting unit IR1 and the photoelectric receiving unit PD1 directly connected to the host 100 through the signal control line QS_D0, i.e., QS_D0 = 1.
[0089] Step 2: The host 100 loads the instruction into the power supply through the power signal encoding module 130, and then transmits the instruction to all the photoelectric transmitting units 200 and the photoelectric receiving units 300 through the power signal bus VS_CMD. At the same time of starting the power supply encoding through the power signal encoding module 130, the state of the signal control line QS_D0 is switched from the idle state (high level) to the enabled state (low level), i.e., QS_D0 = 0. Thus, the photoelectric transmitting unit IR1 and the photoelectric receiving unit PD1 are activated and wait for receiving the instruction transmitted by the host 100 through the power signal bus VS_CMD.
[0090] Step 3: The photoelectric transmitting unit IR1 and the photoelectric receiving unit PD1 are activated. The photoelectric transmitting unit IR1 and the photoelectric receiving unit PD1 decode the detection information transmitted through the power signal bus VS_CMD to analyze the instruction CMD1 of the host 100. Then, the photoelectric transmitting unit IR1 drives the light emitter 204 to emit the light signal through the transmitting control circuit 203 according to the instruction requirement in the instruction CMD1.
[0091] The photoelectric receiving unit PD1 receives the light signal through the receiving control circuit 303 and processes the light signal through the receiving processing circuit 305. After the processing is completed, the processing result DAT1 is fed back to the host 100 through the data bus DB. Thus, the host 100 obtains the state S1 of the first photoelectric transmitting-receiving unit pair. For the convenience of description, S1 = 0 can be defined as indicating that the first photoelectric transmitting-receiving pair is not blocked. S1 = 1 can be defined as indicating that the first photoelectric transmitting-receiving pair is blocked.
[0092] Step 4: When the activated first photoelectric emission-reception pair finishes the action mechanism, the host 100 immediately switches the signal control line QS_D0=0 to the idle state (high level), i.e. QS_D0=1. At the same time, the photoelectric emission unit IR1 and the photoelectric reception unit PD1 pull down the signal control line QS_D1, i.e. QS_D1=0, so that the next photoelectric emission unit IR2 and the photoelectric reception unit PD2 are activated.
[0093] Step 5: According to the timing set by the host 100, the host 100 encodes the second command through the power signal encoding circuit 130 and transmits the command CMD2 to all photoelectric emission units 200 and photoelectric reception units 300 through the power signal bus VS_CMD line. At this time, only the photoelectric emission unit IR2 and the photoelectric reception unit PD2 are activated, so that the photoelectric emission unit IR2 and the photoelectric reception unit PD2 can analyze the command CMD2 of the host 100. Then, the photoelectric emission unit IR2 drives the light emitter 204 to send a light signal through the emission control circuit 203 according to the command requirement in the command CMD2. The photoelectric reception unit PD2 receives the light signal through the reception control circuit 303 and the light receiver 304, and processes the light signal through the reception processing circuit 305. After the processing is completed, the processing result DAT2 is fed back to the host 100 through the data bus DB. Therefore, the host 100 obtains the state S2 of the second photoelectric emission-reception pair.
[0094] Step 6: After the photoelectric emission unit IR2 and the photoelectric reception unit PD2 finish the action mechanism, the photoelectric emission unit IR2 and the photoelectric reception unit PD2 immediately switch their corresponding signal control lines QS_D1 to the idle state (high level), i.e. QS_D1=1. At the same time, the photoelectric emission unit IR2 and the photoelectric reception unit PD2 pull down their corresponding signal control lines QS_D2, i.e. QS_D2=0, so that the next photoelectric emission unit IR3 and the photoelectric reception unit PD3 are activated.
[0095] Step 7: According to the timing sequence set by the host 100, the host 100 encodes the third instruction through the power signal encoding circuit 130 and transmits instruction CMD3 to all photoelectric transmitting units 200 and photoelectric receiving units 300 via the power signal bus VS_CMD. At this time, only photoelectric transmitting unit IR3 and photoelectric receiving unit PD3 are activated. Therefore, after photoelectric transmitting unit IR3 and photoelectric receiving unit PD3 respectively parse the instruction CMD3 from the system host 100, photoelectric transmitting unit IR3 drives the optical transmitter 204 to send optical signals according to the instruction requirements in instruction CMD3 through the transmission control circuit 203. Photoelectric receiving unit PD3 receives the optical signals through the receiving control circuit 303 and the optical receiver 304, and processes the optical signals through the receiving processing circuit 305. After processing, the processing result DAT3 is fed back to the host 100 via the data bus DB. Therefore, the host 100 obtains the status S3 of the third group of transmitting and receiving units.
[0096] Step 8: After the photoelectric transmitting unit 200 and the photoelectric receiving unit 300 have completed their operation, the host 100 obtains the signal status of all photoelectric transmitting and receiving pairs in the system. Then, it resets all photoelectric transmitting units 200 and photoelectric receiving units 300 through instructions and starts a new round of cyclic detection.
[0097] In summary, a coding method for a power supply-based photoelectric detection system is obtained, comprising a host 100 and at least two sets of photoelectric transmitter-receiver pairs. Each photoelectric transmitter-receiver pair includes a photoelectric transmitter unit 200 and a photoelectric receiver unit 300 adapted to the photoelectric transmitter unit 200. The host 100 is adapted to the photoelectric transmitter-receiver pair via two sets of photoelectric detection connection lines. For any photoelectric transmitter-receiver pair, the photoelectric transmitter unit 200 within the pair is adapted to one set of photoelectric detection connection lines, and the photoelectric receiver unit 300 within the pair is adapted to the other set of photoelectric detection connection lines.
[0098] For any photoelectric detection connection line group, the power signal bus within the photoelectric detection connection line group can supply power to the photoelectric transmitting unit 200 or the photoelectric transmitting unit 200 and the photoelectric receiving unit 300 connected to the photoelectric detection connection line group; the photoelectric transmitting unit 200 or the photoelectric transmitting unit 200 and the photoelectric receiving unit 300 connected to the photoelectric detection connection line group can be connected in series in the required order.
[0099] The host 100 enables the photoelectric emission unit 200 and / or the photoelectric receiving unit connected on the photoelectric detection connection line group to be activated step by step, and enables the photoelectric receiving unit 300 and / or the photoelectric emission unit 200 connected on the other photoelectric detection connection line group to be activated correspondingly, so that the photoelectric emission unit 200 and the photoelectric receiving unit 300 in the same photoelectric emission-receiving pair are in the activated working state at the same time; the host 100 loads the detection power data packet obtained by encoding the detection information onto the power signal bus, so as to load the detection power data packet onto the photoelectric emission unit 200 and the photoelectric receiving unit 300 in all photoelectric emission-receiving pairs through the power signal bus; the detection power data packet includes a reset code, a reference code, a 1 code value and a 0 code value.
[0100] The photoelectric emission unit 200 and the photoelectric receiving unit 300 in the activated state perform corresponding processing according to the received detection information, and feed back the processed results to the host 100.
[0101] In the embodiment of the application, when encoding the detection information, the current level is kept relative to the high level VH for Treset time, so that the reset code is obtained through the current level; the current level is kept relative to the low level VL for TC time and relative to the high level VH for 2*TC time, so that the reference code is obtained through the current level; the current level is kept relative to the low level VL for T1L time and relative to the high level VH for T1H time, so that the 1 code value is obtained through the current level; the current level is kept relative to the low level VL for T0L time and relative to the high level VH for T0H, so that the 0 code value is obtained through the current level.
[0102] The host 100 can realize encoding of the to-be-transmitted instruction or data through the power signal encoding module 130, and modulate the instruction or data to the power signal bus, so as to obtain the detection power data packet on the power signal bus. The specific encoding method can refer to the above description, which will not be repeated here.
[0103] The above describes the application in combination with specific embodiments, but those skilled in the art should understand that these descriptions are exemplary and are not a limitation on the protection scope of the application. Those skilled in the art can make various modifications and changes to the application according to the principles of the application, and these modifications and changes are also within the scope of the application.
Claims
1. A control method for a power supply coded photodetection system, characterized in that: The application relates to a power supply coding-based photoelectric detection system, which comprises a host (100) and at least two groups of photoelectric emission-reception pairs, wherein each photoelectric emission-reception pair comprises a photoelectric emission unit (200) and a photoelectric reception unit (300) matched with the photoelectric emission unit (200); the host (100) is connected with the photoelectric emission-reception pairs through two photoelectric detection connection lines, wherein, for any photoelectric emission-reception pair, the photoelectric emission unit (200) in the photoelectric emission-reception pair is connected with one photoelectric detection connection line, and the photoelectric reception unit (300) in the photoelectric emission-reception pair is connected with the other photoelectric detection connection line; for any photoelectric detection connection line, the photoelectric emission unit (200) or the photoelectric emission unit (200) and the photoelectric reception unit (300) connected with the photoelectric detection connection line can be powered through a power signal bus in the photoelectric detection connection line; the photoelectric emission unit (200) or the photoelectric emission unit (200) and the photoelectric reception unit (300) connected with the photoelectric detection connection line are connected in series in a required order; the host (100) activates the photoelectric emission unit (200) and / or the photoelectric reception unit connected in series on one photoelectric detection connection line, and correspondingly activates the photoelectric reception unit (300) and / or the photoelectric emission unit (200) connected on the other photoelectric detection connection line, so that the photoelectric emission unit (200) and the photoelectric reception unit (300) in the same photoelectric emission-reception pair can be simultaneously activated; the host (100) modulates detection information on the power signal bus in the photoelectric detection connection line, so that the detection information is transmitted to the photoelectric emission unit (200) and the photoelectric reception unit (300) in all photoelectric emission-reception pairs through the power signal bus; the photoelectric emission unit (200) and the photoelectric reception unit (300) in the activated state process the received detection information and feed back the processed results to the host (100); the photoelectric emission unit (200) comprises a photoelectric emission unit IR1, a photoelectric emission unit IR2 and a photoelectric emission unit IR3; the photoelectric reception unit (300) comprises a photoelectric reception unit PD1, a photoelectric reception unit PD2 and a photoelectric reception unit PD3; the control method of the power supply coding-based photoelectric detection system comprises the following steps: Step 1: after starting, the host (100) simultaneously provides idle levels to the photoelectric emission unit IR1 and the photoelectric reception unit PD1 directly connected with the host (100) through a signal control line QS_D0, that is, QS_D0=1; Step2: The host (100) loads the instruction into the power supply through the power signal coding module (130), and then transmits the instruction to all the photoelectric emission units (200) and the photoelectric receiving units (300) through the power signal bus VS_CMD; at the same time of starting the power coding through the power signal coding module (130), the state of the signal control line QS_D0 is switched from the idle state to the enabled state, i.e. QS_D0=0; thus, the photoelectric emission unit IR1 and the photoelectric receiving unit PD1 are activated and wait for receiving the instruction transmitted by the host (100) through the power signal bus VS_CMD; Step3: The photoelectric emission unit IR1 and the photoelectric receiving unit PD1 are activated, and the photoelectric emission unit IR1 and the photoelectric receiving unit PD1 decode the detection information transmitted through the power signal bus VS_CMD to analyze the instruction CMD1 of the host (100); then, the photoelectric emission unit IR1 drives the light emitter (204) to emit light signals through the emission control circuit (203) according to the instruction requirement in the instruction CMD1; The photoelectric receiving unit PD1 receives the light signals through the receiving control circuit (303) and processes the light signals through the receiving processing circuit (305); after the processing is completed, the processing result DAT1 is fed back to the host (100) through the data bus DB, thus the host (100) obtains the state S1 of the first group of photoelectric emission-receiving unit pairs; when S1=0, it indicates that the first group of photoelectric emission-receiving pairs is not blocked; when S1=1, it indicates that the first group of photoelectric emission-receiving pairs is blocked; Step4: When the activated first group of photoelectric emission-receiving pairs completes the action mechanism, the host (100) immediately switches the signal control line QS_D0 to the idle state, i.e. QS_D0=1; at the same time, the photoelectric emission unit IR1 and the photoelectric receiving unit PD1 respectively pull down the signal control line QS_D1, i.e. QS_D1=0, so that the next stage of the photoelectric emission unit IR2 and the photoelectric receiving unit PD2 are activated. Step5: According to the timing set by the host (100), the host (100) encodes the second command through the power signal encoding circuit (130), and transmits the command CMD2 to all the photoelectric emission units (200) and the photoelectric receiving units (300) through the power signal bus VS_CMD line; At this time, only the photoelectric emission unit IR2 and the photoelectric receiving unit PD2 are activated, therefore, after the photoelectric emission unit IR2 and the photoelectric receiving unit PD2 can analyze the command CMD2 of the host (100), the photoelectric emission unit IR2 transmits the light signal through the emission control circuit (203) to drive the light emitter (204) according to the command requirement in the command CMD2; the photoelectric receiving unit PD2 receives the light signal through the receiving control circuit (303) and the light receiver (304), and processes the light signal through the receiving processing circuit (305); after the processing is completed, the processing result DAT2 is fed back to the host (100) through the data bus DB; therefore, the host (100) obtains the state S2 of the second group of photoelectric emission and receiving pairs; Step6: After the photoelectric emission unit IR2 and the photoelectric receiving unit PD2 complete the action mechanism, the photoelectric emission unit IR2 and the photoelectric receiving unit PD2 immediately switch their corresponding signal control lines QS_D1 to the idle state, that is, QS_D1=1; at the same time, the photoelectric emission unit IR2 and the photoelectric receiving unit PD2 respectively pull down their corresponding signal control lines QS_D2, that is, QS_D2=0, so that the next level of photoelectric emission unit IR3 and photoelectric receiving unit PD3 are activated; Step7: According to the timing set by the host (100), the host (100) encodes the third command through the power signal encoding circuit (130), and transmits the command CMD3 to all the photoelectric emission units (200) and the photoelectric receiving units (300) through the power signal bus VS_CMD; At this time, only the photoelectric emission unit IR3 and the photoelectric receiving unit PD3 are activated, therefore, after the photoelectric emission unit IR3 and the photoelectric receiving unit PD3 respectively analyze the command CMD3 of the system host (100), the photoelectric emission unit IR3 transmits the light signal through the emission control circuit (203) to drive the light emitter (204) according to the command requirement in the command CMD3; the photoelectric receiving unit PD3 receives the light signal through the receiving control circuit (303) and the light receiver (304), and processes the light signal through the receiving processing circuit (305); after the processing is completed, the processing result DAT3 is fed back to the host (100) through the data bus DB; therefore, the host (100) obtains the state S3 of the third group of emission and receiving units; Step8: After the photoelectric emission unit (200) and the photoelectric receiving unit (300) complete the action mechanism, the host (100) obtains the signal state of all photoelectric emission and receiving pairs in the system; then all photoelectric emission units (200) and photoelectric receiving units (300) are reset by instructions, and a new round of cycle detection is restarted.
2. The method of claim 1, wherein the method further comprises: The photoelectric detection connection line group also includes a signal control line, a data bus and a ground line. The host (100) is connected with a photoelectric emission unit (200) or a photoelectric receiving unit (300) through the signal control line. The photoelectric emission units (200) are connected in series step by step or the photoelectric emission units (200) and the photoelectric receiving units (300) are also connected through the signal control line. The ground line is connected with the ground end of the photoelectric emission unit (200) and / or the photoelectric receiving unit (300). For any photoelectric detection connection line group, the photoelectric emission unit (200) and / or the photoelectric receiving unit (300) connected to the photoelectric detection connection line group are hung on the data bus. The photoelectric emission unit (200) or the photoelectric receiving unit (300) in the active state feeds back the processing result to the host (100) through the data bus.
3. The method of claim 2, wherein the method further comprises: determining the type of the power source based on the received power source code. The host (100) includes a power signal coding module (130), a host microprocessor unit (150) adaptively connected with the power signal coding module (130), and a host detection circuit (140) adaptively connected with the host microprocessor unit (150). The host microprocessor unit (150) transmits the detection information to the power signal coding module (130) to obtain the detection power data packet after the required coding is performed by the power signal coding module (130). The power signal coding module (130) loads the detection power data packet onto the power signal bus. The host detection circuit (140) is connected with the data bus in all photoelectric detection connection line groups. The host microprocessor unit (150) is connected with the corresponding photoelectric reflection unit (200) and / or photoelectric receiving unit (300) through the signal control line.
Citation Information
Patent Citations
Photoelectric detection system and control method thereof
CN110095821A
Photoelectric detection system based on power coding
CN214704042U