CN112601336A - Long-distance data transmission method based on data bus and intelligent lamp control method - Google Patents

Long-distance data transmission method based on data bus and intelligent lamp control method Download PDF

Info

Publication number
CN112601336A
CN112601336A CN202011634451.2A CN202011634451A CN112601336A CN 112601336 A CN112601336 A CN 112601336A CN 202011634451 A CN202011634451 A CN 202011634451A CN 112601336 A CN112601336 A CN 112601336A
Authority
CN
China
Prior art keywords
data
data transmission
microprocessor
sub
communication chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011634451.2A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Ltech Technology Co ltd
Original Assignee
Zhuhai Ltech Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Ltech Technology Co ltd filed Critical Zhuhai Ltech Technology Co ltd
Priority to CN202011634451.2A priority Critical patent/CN112601336A/en
Publication of CN112601336A publication Critical patent/CN112601336A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • H05B47/18Controlling the light source by remote control via data-bus transmission
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The invention provides a long-distance data transmission method and an intelligent lamp control method based on a data bus, wherein the data transmission method comprises the steps that a main controller sends data to a data expansion module through the data bus; the data expansion module comprises a main equipment data transmission circuit and at least one sub-equipment data transmission circuit, after a first communication chip of the main equipment data transmission circuit receives data sent by the main controller, a first photoelectric coupler outputs the data to a first phase inverter, the data passing through the first phase inverter is output to a microprocessor, and the microprocessor sends the data to the sub-equipment data transmission circuit; and the microprocessor outputs data to the first phase inverter after receiving the data sent by the data transmission circuit of the sub-equipment, and outputs the data to the first communication chip after passing through the second photoelectric coupler. The intelligent lamp control method applies the data transmission method. The invention can avoid the interference of the interference signal of the data bus to the microprocessor.

Description

Long-distance data transmission method based on data bus and intelligent lamp control method
Technical Field
The invention relates to the technical field of data transmission, in particular to a long-distance data transmission method based on a data bus and an intelligent lamp control method.
Background
Along with the development of intelligent home technology, the current household appliances are more and more intelligent, and the intelligent lamp is a common intelligent appliance. Some existing intelligent lamps have a remote communication function, for example, a controller is arranged in the intelligent lamp, and the controller receives a control signal sent from the outside through a communication chip and controls the operation of the intelligent lamp, for example, adjusting the light emitting brightness or the color temperature of the intelligent lamp. The DMX512 communication protocol is a common protocol for the intelligent light fixture to communicate with the external control device.
The DMX512 communication protocol is a general control protocol in the field of digital entertainment lighting equipment, and is widely applied to entertainment lighting industry, and the communication protocol is widely applied to various stage lighting equipment including various stage effect lamps, dimming controllers, control consoles, color changers, electric suspenders and the like, wherein the various stage lighting equipment comprises computer lamps due to the characteristics of simplicity, practicability and high efficiency. Through the DMX512 communication protocol, intelligent lamps with different signal types in the market can be controlled in a unified mode, and the main controller can achieve expected control effects no matter what type of the controlled intelligent lamp is.
The RDM protocol is a remote interaction protocol and is used for overcoming the defects of unidirectionality and continuity of the DMX512 communication protocol, the RDM protocol can run under a physical topology network of the DMX512 communication protocol, any hardware modification is hardly required to be changed, only the RDM protocol needs to be added to the DMX512 communication protocol, and parameters of DMX node equipment, such as DMX addresses, lamp states, equipment running states and the like, can be set or obtained remotely.
Regardless of the RDM protocol or the DMX512 communication protocol, the hardware environment in which the lamp operates is realized based on the RS485 bus, that is, the main controller needs to send the control signal to the intelligent lamp through the RS485 bus, and the intelligent lamp sends the data of the current state and the like to the intelligent lamp through the RS485 bus.
However, because the distance between the intelligent lamp and the main controller is long, the length of the RS485 bus is also long, and thus in some environments with complex electromagnetic environments, long distances and multiple sub-devices, data sent by the main controller is easily interfered by an environmental signal, so that the environmental signal is coupled to the data bus to form differential mode interference. On the other hand, in the long-distance data transmission process, signal errors are easily caused by transmitted data attenuation, when a plurality of sub-devices coexist with loads, the voltage of the signals is reduced, so that the command sent by the main controller cannot be correctly executed by the sub-devices, and the situations of accidental light flicker or control information loss, accidental motor rotation and the like occur. For example, when dimmable devices such as building facade/stage lighting are used in combination with a motor for adjusting the illumination angle of a lamp, the motor is likely to interfere with a communication line when being started or stopped due to reasons such as a public power line and a wiring mode, and a pulse signal generated when the motor is started or stopped can cause accidental light flickering or control information loss, thereby seriously affecting the overall visual effect.
In the actual translation, the communication between the main controller and the plurality of sub-devices is realized through the RS485 bus, and the following problems exist:
firstly, one RS485 bus can only be connected with one main controller through a serial port, only the communication between one main controller and one sub-device can be completed at the same time, if two or more main controllers send broadcast signals to the bus at the same time and the data of the sub-devices need to be read, the bus data conflict can be caused due to mutual interference.
Secondly, at present, most of RS485 buses are in a half-duplex two-wire system, that is, only one sub-device can send data at the same time, and if multiple sub-devices send data at the same time, level disorder of a communication path can be caused, and transmitted data distortion is caused.
And finally, the master controller on the RS485 bus accesses the sub-devices in a sequential polling mode, so that the communication efficiency is low, and the data cannot be read in real time.
Disclosure of Invention
A first object of the present invention is to provide a data bus-based long-distance data transmission method that effectively avoids electromagnetic interference.
The second objective of the present invention is to provide an intelligent lamp control method using the data bus-based long-distance data transmission device.
In order to achieve the first object of the present invention, the long distance data transmission method based on the data bus provided by the present invention comprises the main controller sending data to the data expansion module through the data bus; the data expansion module comprises a main equipment data transmission circuit and at least one sub-equipment data transmission circuit, after a first communication chip of the main equipment data transmission circuit receives data sent by the main controller, a first photoelectric coupler outputs the data to a first phase inverter, the data passing through the first phase inverter is output to a microprocessor, and the microprocessor sends the data to the sub-equipment data transmission circuit; and the microprocessor outputs data to the first phase inverter after receiving the data sent by the data transmission circuit of the sub-equipment, and outputs the data to the first communication chip after passing through the second photoelectric coupler.
According to the scheme, the data sent by the first communication chip are sent to the microprocessor through the first photoelectric coupler, so that electromagnetic interference of signals on the data bus on the data received by the microprocessor can be effectively avoided, and even if the signals on the data bus receive the interference of common-mode voltage and the signal voltage is too high, the work of the microprocessor cannot be influenced, and therefore the anti-interference capacity of the data expansion module is improved.
In a preferred embodiment, the microprocessor shapes the signal waveform of the received data after receiving the data output from the first inverter.
Because the level of the signal received by the microprocessor is already attenuated due to the signal transmission over a long distance, the waveform of the signal can be effectively recovered by shaping the waveform of the signal, and the communication data can be transmitted correctly.
Further, the microprocessor shaping the signal waveform of the received data includes: and adjusting the signal waveform of the received data to a preset waveform.
Therefore, after the waveform is shaped by the microprocessor, the output waveform can meet the requirement of the preset waveform, and the signal can be correctly identified by a post-stage circuit.
Further, the microprocessor shaping the signal waveform of the received data includes: and judging whether the signal waveform duration of the received data is less than the preset time, and if so, deleting the received data.
Therefore, for a signal with a short duration, the signal can be regarded as an interference signal, and the data can be deleted directly, so that the influence of the interference signal on communication can be avoided.
The data transmission circuit of the sub-device is more than two paths, and a plurality of data transmission circuits of the sub-device communicate with the microprocessor in a time division multiplexing mode.
Therefore, the data sent by the data transmission circuits of the multiple sub-devices cannot be mutually interfered, and the microprocessor can distinguish the data sent by each data transmission circuit of the sub-devices, so that the sub-devices can correctly execute the instruction sent by the main controller.
Still further, the microprocessor stores the received data in a data buffer and transmits the received data to the plurality of sub-device data transmission circuits in time sequence.
Therefore, the data buffer stores data in a first-in first-out mode, and data sent to the data transmission circuit of the plurality of sub-devices can be guaranteed to be accurate.
In a further scheme, after receiving external data, the second communication chip of the data transmission circuit of the sub-device outputs a signal to the second inverter through the third photoelectric coupler, and the data passing through the second inverter is output to the microprocessor.
Therefore, data sent by the second communication chip are sent to the microprocessor through the third photoelectric coupler, electromagnetic interference of signals transmitted by the intelligent lamp on the data received by the microprocessor can be effectively avoided, and even if the signals received by the second communication chip are too high in signal voltage due to the fact that the signals receive the interference of common-mode voltage, the work of the microprocessor cannot be influenced, and therefore the anti-interference capacity of the data expansion module is improved.
Further, the microprocessor sending data to the data transmission circuit of the slave device comprises: and the microprocessor outputs data through the second phase inverter, and outputs the data to the second communication chip after passing through the fourth photoelectric coupler.
Therefore, the communication between the second communication chip and the microprocessor needs to pass through the fourth photoelectric coupler, so that the external signal is not directly transmitted to the microprocessor, and the interference that the signal received by the microprocessor receives the external signal can be avoided.
In order to achieve the second object, the intelligent lamp control method provided by the present invention includes that the main controller communicates with a plurality of intelligent lamps by using the data bus-based long-distance data transmission method, wherein each sub-device data transmission circuit communicates with one intelligent lamp through the second communication chip.
Preferably, the intelligent lamp transmits data to the second communication chip or receives data from the second communication chip.
Drawings
Fig. 1 is a block diagram of an embodiment of an intelligent luminaire control system according to the present invention.
Fig. 2 is a block diagram of an embodiment of the long-distance data transmission device based on the data bus according to the present invention.
Fig. 3 is a circuit diagram of a part of a main device data transmission circuit in the embodiment of the long-distance data transmission device based on the data bus.
Fig. 4 is a circuit diagram of a part of a data transmission circuit of a sub-device in the long-distance data transmission device based on a data bus.
Fig. 5 is a flowchart of an embodiment of the long-distance data transmission method based on the data bus according to the present invention.
The invention is further explained with reference to the drawings and the embodiments.
Detailed Description
The long-distance data transmission device based on the data bus is applied to an intelligent lamp system and used for realizing data transmission between a main controller and a plurality of intelligent lamps so that the main controller can control the plurality of intelligent lamps. In addition, the plurality of intelligent lamps can feed back data to the main controller, for example, the information of the working state of each intelligent lamp is sent.
Intelligent lamps and lanterns control system embodiment:
referring to fig. 1, the present embodiment includes a main controller 11 and a data expansion module 12, and further includes a plurality of intelligent light fixtures, for example, intelligent light fixtures 31, 32, 33, and the like. Fig. 1 only shows 3 intelligent light fixtures, and in practical application, the number of the intelligent light fixtures may be multiple, for example, 4 or 6 intelligent light fixtures are provided, and this embodiment does not limit the number of the intelligent light fixtures.
The data expansion device 12 is provided with a main device data transmission circuit 15 and a plurality of sub device data transmission circuits, for example, the sub device data transmission circuits include sub device data transmission circuits 21, 22, and 23, and the plurality of sub device data transmission circuits 21, 22, and 23 all communicate with the main device data transmission circuit 15, that is, perform data interaction. Each sub-device data transmission circuit corresponds to an intelligent lamp, specifically, the sub-device data transmission circuit 21 corresponds to the intelligent lamp 31, and the sub-device data transmission circuit 21 can transmit data to the intelligent lamp 31 and receive data transmitted by the intelligent lamp 31. Similarly, the sub-device data transmission circuit 22 corresponds to the smart light fixture 32, and the sub-device data transmission circuit 23 corresponds to the smart light fixture 33.
In this embodiment, the main controller 11 and the data expansion module 12 form a long-distance data transmission device based on a data bus.
The embodiment of the long-distance data transmission device based on the data bus comprises the following steps:
referring to fig. 2, a first communication chip 41, a first photocoupler 42, a second photocoupler 43, a first inverter 44 and a microprocessor 45 are disposed in the main device data transmission circuit 15, and the structures of each of the sub device data transmission circuits are the same, and the sub device data transmission circuit 21 is taken as an example for description in this embodiment. The sub-device data transmission circuit 21 is provided with a second communication chip 51, a third photo coupler 52, a fourth photo coupler 53, and a second inverter 54.
The first communication chip 41 and the second communication chip 51 are both RS485 communication chips, and the main controller 11 communicates with the first communication chip 41 through an RS485 bus, that is, the first communication chip 41 receives data sent from the main controller 11. The data transmitted by the first communication chip 41 passes through the first photocoupler 42, is output to the first inverter 44, and is then input to the microprocessor 45, and when the microprocessor 45 transmits data to the first communication chip 41, the transmitted data passes through the first inverter 44, and the data passing through the first inverter 44 passes through the second photocoupler 43, and is then input to the first communication chip 41.
The microprocessor 45 can also communicate with a plurality of sub-device data transmission circuits, specifically, after passing through the second inverter 54, data sent by the microprocessor 45 is output to the second communication chip 51 through the fourth photoelectric coupler 53, and when the second communication chip 51 sends data to the microprocessor 45, the data sent by the second communication chip 51 firstly passes through the third photoelectric coupler 52 and then passes through the second inverter 54 to be input to the microprocessor 45. In addition, the second communication chip 51 communicates with the intelligent luminaire 31, for example, transmits data to the intelligent luminaire 31 through an RS485 bus, and receives data fed back by the intelligent luminaire 31.
Referring to fig. 3, an interface terminal J4 is arranged in the main device data transmission circuit 15, the interface terminal J4 is connected with a terminal of the RS485 bus, the interface terminal J4 obtains an alternating current power supply from the RS485 bus and outputs the alternating current power supply to the power chip U6, the power chip U6 is an AC/DC chip, that is, an alternating current is converted into a direct current, and the output direct current supplies power to the first communication chip, the first photoelectric coupler, the second photoelectric coupler, the microprocessor and the like.
The 2 pins of the first communication chip U3 are connected to the interface terminals J4, and receive data transmitted from the main controller 11. Since the first communication chip U3 is an RS485 communication chip, data on the RS485 bus can be identified and then sent to the microprocessor 45. However, the RS485 bus may be a long-distance transmission bus, and is easily subjected to electromagnetic interference from the external environment, so that data transmitted on the RS485 bus is subjected to electromagnetic interference, and thus the voltage is instantaneously too high, and if the too high voltage is directly transmitted to the microprocessor 45, the microprocessor 45 is easily subjected to impact due to the too high voltage received by the microprocessor 45, and the microprocessor 45 is damaged. Therefore, in this embodiment, the first communication chip U3 is not directly electrically connected to the microprocessor 45, but is optically isolated by the first photocoupler or the second photocoupler, so as to prevent the microprocessor 45 from being damaged due to the impact caused by the over-high voltage output by the first communication chip U3.
Specifically, when the first communication chip U3 sends data to the microprocessor 45, the output data first passes through the first photo coupler U7, when a high level signal is output from the first communication chip U3, the light emitting diode of the first photo coupler U7 emits light, the photo transistor is turned on, and a high level signal is output, when a low level signal is output from the first communication chip U3, the light emitting diode of the first photo coupler U7 does not emit light, the photo transistor is turned off, and a low level signal is output.
In addition, since the data transmitted by the RS485 bus is transmitted over a long distance, the signal on the data bus is easy to attenuate, and the waveform of the signal is easy to deform, for this reason, an inverter is further provided in this embodiment, for example, a first inverter is provided, and the data after passing through the first photocoupler U7 is output to the first inverter 44. Preferably, the first inverter 44 is a schmitt trigger, which is provided with multiple input and output terminals, one input terminal corresponds to one output terminal, and after passing through the first inverter 44, the waveform of the signal is inverted, i.e., a high level signal is converted into a low level signal, and a low level signal is converted into a high level signal. The first inverter 44 can restore the signal waveform attenuated by long-distance transmission, improve the accuracy of data transmission, and avoid signal distortion.
The data passing through the first inverter 44 is output to the microprocessor 45, and after the microprocessor 45 receives the data, the received data is processed, specifically, a signal waveform corresponding to the data is shaped, and a specific process of shaping the waveform by the microprocessor 45 will be described in detail below.
In addition, the microprocessor 45 may also receive data output by the sub-device data transmission circuit and send the data to the first communication chip U3. When the microprocessor 45 sends data to the first communication chip U3, the sent data first passes through the first inverter 44, and the first inverter 44 has a plurality of input/output terminals, so the data sent and received by the microprocessor 45 are transmitted and processed by using different input/output terminals of the first inverter 44, that is, different data transmission paths of the first inverter 44, so that mutual interference of the data in the first inverter 44 can be avoided. Moreover, the data input and output by the microprocessor 45 share a multi-channel inverter, so that the number of devices used by the master data transmission circuit 15 can be reduced, and the production cost can be reduced.
The data passing through the first inverter 44 is transmitted to the second photo coupler U8, for example, the data output from the first inverter 44 is input to the second photo coupler U8 through the TXD terminal and the resistor R9, at which time the light emitting diode emits light, the corresponding photo transistor is turned on and outputs a high level signal. In this embodiment, the second optocoupler U8 is an optocoupler having two isolated optical paths, where one isolated optical path transmits communication data, i.e. data is input from the TXD terminal and output to the DI pin of the first communication chip U3.
Since the first communication chip U3 is a half-duplex communication chip, the microprocessor 45 also needs to output a signal to the first communication chip U3 to control the operating state of the first communication chip U3, i.e., in a state of data reception or in a state of data transmission. Therefore, the microprocessor 45 also needs to send control data to the first communication chip U3, and in this embodiment, the control data sent by the microprocessor 45 passes through the first inverter 44 and is then output to the REIN terminal of the second photocoupler U8. Therefore, the other isolated optical path of the second photocoupler U8 is used for transmitting control data sent by the microprocessor 45.
The microprocessor 45 receives the data sent by the first communication chip U3, and often needs to send the data to the data transmission circuit of the sub-device. Referring to fig. 4, 2 pins of the second communication chip U13 and the first communication chip U13 in the sub-device data transmission circuit 21 are connected to the RS485 bus, so as to realize communication with the intelligent lamp 31. In this embodiment, the second communication chip U13 is an RS485 communication chip, and therefore, data on the RS485 bus can be identified and then sent to the microprocessor 45. In addition, the second communication chip U13 is not directly electrically connected to the microprocessor 45, but is photoelectrically isolated by the third photocoupler or the fourth photocoupler, thereby preventing the microprocessor 45 from being damaged by impact due to the excessively high voltage output by the second communication chip U13.
Specifically, when the second communication chip U13 sends data to the microprocessor 45, the output data first passes through the third photo coupler U17, when a high level signal is output from the second communication chip U13, the light emitting diode of the third photo coupler U17 emits light, the photo transistor is turned on, and a high level signal is output, and when a low level signal is output from the second communication chip U13, the light emitting diode of the third photo coupler U17 does not emit light, the photo transistor is turned off, and a low level signal is output.
In addition, since the data transmitted by the RS485 bus is transmitted over a long distance, the signal on the data bus is easily attenuated, so that the waveform of the signal is easily deformed, for this reason, an inverter is further provided in this embodiment, specifically, a second inverter is provided in the sub-device data transmission circuit 21, and the data passing through the third photocoupler U17 is output to the second inverter 54. Preferably, the second inverter 54 is a schmitt trigger, which is provided with multiple input and output terminals, one input terminal corresponds to one output terminal, and after passing through the second inverter 54, the waveform of the signal is inverted, i.e., a high level signal is converted into a low level signal, and a low level signal is converted into a high level signal. The second inverter 54 can restore the signal waveform attenuated by long-distance transmission, improve the accuracy of data transmission and avoid signal distortion. The data passing through the second inverter 54 is output to the microprocessor 45, and after the microprocessor 45 receives the data, the received data is processed, specifically, the signal waveform corresponding to the data is shaped.
In addition, the microprocessor 45 receives the data output from the master data transmission circuit 15 and transmits the data to the second communication chip U13. When the microprocessor 45 sends data to the second communication chip U13, the sent data first passes through the second inverter 54, and the second inverter 54 has a plurality of input/output terminals, so the data sent and received by the microprocessor 45 are transmitted and processed by using different input/output terminals of the second inverter 54, that is, different data transmission paths of the second inverter 54, so that mutual interference of the data in the second inverter 54 can be avoided. Moreover, the data input and output by the microprocessor 45 share a multi-channel inverter, so that the number of devices used by the sub-device data transmission circuit 21 can be reduced, and the production cost can be reduced.
The data passing through the second inverter 54 is transmitted to the fourth photo coupler U18, for example, the data output from the second inverter 54 is input to the fourth photo coupler U18 through the TXD1 terminal and the resistor R19, at which time the light emitting diode emits light, the corresponding photo transistor is turned on, and a high level signal is output. In this embodiment, the fourth optocoupler U18 is an optocoupler having two isolated optical paths, where one isolated optical path transmits communication data, i.e. data is input from the TXD1 terminal and output to the DI pin of the second communication chip U13.
Since the second communication chip U13 is a half-duplex communication chip, the microprocessor 45 also needs to output a signal to the second communication chip U13 to control the operating state of the second communication chip U13, i.e., whether in a data receiving state or a data transmitting state. Therefore, the microprocessor 45 also needs to send control data to the second communication chip U13, and in this embodiment, the control data sent by the microprocessor 45 passes through the second inverter 54 and is then output to the REIN terminal of the fourth photo coupler U18. Therefore, the other isolated optical path of the fourth photocoupler U18 is used for transmitting control data sent by the microprocessor 45.
Since the number of the sub-master data transmission circuits is two or more, in order to ensure that the microprocessor 45 can accurately communicate with the plurality of sub-master data transmission circuits, in the embodiment, the microprocessor 45 communicates with the plurality of sub-master data transmission circuits in a time division multiplexing manner. For example, the microprocessor 45 is connected to a plurality of sub-master data transmission circuits through the same set of pins, but the microprocessor 45 sets the time for each sub-master data transmission circuit to transmit data to the microprocessor 45, and the microprocessor 45 also sets the time for transmitting data to each sub-master data transmission circuit, and each sub-master data transmission circuit transmits data to the microprocessor 45 within a predetermined time or receives data transmitted from the microprocessor 45.
The embodiment of the intelligent lamp control method comprises the following steps:
in this embodiment, the plurality of intelligent lamps are controlled by the main controller, the main controller communicates with the data expansion module 12 through the RS485 bus, the main device data transmission circuit 15 and the plurality of sub device data transmission circuits are provided in the data expansion module 12, the first communication chip 41 and the microprocessor 45 are provided in the main device data transmission circuit 15, and the first communication chip 41 and the microprocessor 45 do not communicate directly but communicate with the first inverter through the photocoupler. The sub-master data transmission circuit is internally provided with a second communication chip 51, and the second communication chip 51 is not in direct communication with the microprocessor 45 but is in communication with the second inverter through a photocoupler. After receiving the data, the microprocessor 45 also needs to perform operations such as shaping and data storage on the signal waveform of the data.
The embodiment of the long-distance data transmission method based on the data bus comprises the following steps:
referring to fig. 5, the microprocessor first executes step S1 to collect communication data, for example, to obtain data of the first communication chip or the second communication chip, where the data of the first communication chip is data from the main controller 11, and the data of the second communication chip is data from the intelligent lamp. Thus, the microprocessor 45 performs waveform shaping on the signal of the received data, regardless of the data from the main controller 11 or the data from the smart luminaire.
Then, step S2 is executed to determine whether the signal waveform duration of the received data is less than a preset time, for example, the waveform duration of the signal is less than 1 microsecond. Based on the DMX512 communication protocol, the waveform of a signal usually lasts for about 4 microseconds, that is, the time for transmitting a valid data is 4 microseconds, if the duration of a certain signal is too short, the signal can be considered as an interference signal, and therefore, step S2 determines whether the waveform duration of the signal is less than 1 microsecond. If it is less than 1 microsecond, the data is directly deleted, i.e., step S3 is performed.
If the determination result in the step S2 is no, which indicates that the duration of the signal waveform of the received data is longer, then step S4 is performed, and it is determined whether the duration of the signal waveform of the data is within a preset range, for example, whether the duration is between 1 microsecond and 4 microseconds, if not, the duration of the signal waveform exceeds 4 microseconds, and the signal is not attenuated, step S5 is performed to directly output the data, otherwise, step S6 is performed to adjust the signal waveform, that is, the waveform of the signal is adjusted to have a duration of 4 microseconds, and the waveform of the output signal is ensured to be the preset waveform. Finally, step S7 is executed to output the waveform adjusted in step S6.
Therefore, the invention isolates the signals input to the microprocessor through the plurality of photoelectric couplers, and avoids the influence of the high-voltage signals generated by electromagnetic interference received by the data bus on the microprocessor. Moreover, the waveform of the signal is shaped through the inverter, and the waveform of the signal is shaped through the microprocessor, so that data distortion can be avoided, and the accuracy of data transmission is improved.
Finally, it should be emphasized that the present invention is not limited to the above-described embodiments, such as a change in the type of data bus employed, or a change in the number of data transmission circuits of the slave devices, and such changes should also be included in the scope of the present invention as claimed.

Claims (10)

1. A long-distance data transmission method based on a data bus is characterized by comprising the following steps:
the main controller sends data to the data expansion module through the data bus;
the data expansion module comprises a main equipment data transmission circuit and at least one sub-equipment data transmission circuit, a first communication chip of the main equipment data transmission circuit outputs data to a first phase inverter through a first photoelectric coupler after receiving the data sent by the main controller, the data output to the microprocessor is carried out through the data of the first phase inverter, and the microprocessor sends the data to the sub-equipment data transmission circuit;
and the microprocessor outputs data to the first phase inverter after receiving the data sent by the data transmission circuit of the sub-equipment, and outputs the data to the first communication chip after passing through the second photoelectric coupler.
2. The data bus-based long-distance data transmission method according to claim 1, wherein:
and after receiving the data output by the first inverter, the microprocessor shapes the signal waveform of the received data.
3. The data bus-based long-distance data transmission method according to claim 2, wherein:
the microprocessor shaping a signal waveform of the received data includes: and adjusting the signal waveform of the received data to a preset waveform.
4. The data bus-based long-distance data transmission method according to claim 2, wherein:
the microprocessor shaping a signal waveform of the received data includes: and judging whether the signal waveform duration of the received data is less than the preset time, and if so, deleting the received data.
5. The data bus-based long-distance data transmission method according to any one of claims 1 to 4, wherein:
the number of the sub-device data transmission circuits is more than two, and the plurality of sub-device data transmission circuits are communicated with the microprocessor in a time division multiplexing mode.
6. The data bus-based long-distance data transmission method according to claim 5, wherein:
the microprocessor stores the received data in a data buffer and sends the received data to the plurality of sub-device data transmission circuits in a time sequence.
7. The data bus-based long-distance data transmission method according to any one of claims 1 to 4, wherein:
and after receiving external data, a second communication chip of the sub-equipment data transmission circuit outputs a signal to a second phase inverter through a third photoelectric coupler, and the data passing through the second phase inverter is output to the microprocessor.
8. The data bus-based long-distance data transmission method according to claim 7, wherein:
the microprocessor sending data to the sub-device data transmission circuit includes: and the microprocessor outputs data through the second phase inverter and outputs the data to the second communication chip after passing through a fourth photoelectric coupler.
9. The intelligent lamp control method is characterized in that the main controller communicates with a plurality of intelligent lamps by applying the data bus-based long-distance data transmission method according to claim 7 or 8, wherein each sub-device data transmission circuit communicates with one intelligent lamp through the second communication chip.
10. The intelligent luminaire control method of claim 9, wherein:
the intelligent lamp sends data to the second communication chip or receives data from the second communication chip.
CN202011634451.2A 2020-12-31 2020-12-31 Long-distance data transmission method based on data bus and intelligent lamp control method Pending CN112601336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011634451.2A CN112601336A (en) 2020-12-31 2020-12-31 Long-distance data transmission method based on data bus and intelligent lamp control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011634451.2A CN112601336A (en) 2020-12-31 2020-12-31 Long-distance data transmission method based on data bus and intelligent lamp control method

Publications (1)

Publication Number Publication Date
CN112601336A true CN112601336A (en) 2021-04-02

Family

ID=75206680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011634451.2A Pending CN112601336A (en) 2020-12-31 2020-12-31 Long-distance data transmission method based on data bus and intelligent lamp control method

Country Status (1)

Country Link
CN (1) CN112601336A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581814A (en) * 2003-08-01 2005-02-16 上海中朗通信技术有限公司 Wireless LAN indoor covering system
KR20080039710A (en) * 2006-11-01 2008-05-07 현대로템 주식회사 Communication network apparatus for using in railway vehicle
CN201414124Y (en) * 2009-06-25 2010-02-24 湖南中电威科电力仪表有限公司 Isolation RS485 communication speed-raising circuit for low-speed optical coupler
CN101711076A (en) * 2009-11-18 2010-05-19 广州中大中鸣科技有限公司 DMX512 communication link and method thereof
CN101807071A (en) * 2010-04-02 2010-08-18 天津理工大学 Input-output terminal continuous controller based on RS485 bus
CN102074204A (en) * 2009-11-25 2011-05-25 上海天马微电子有限公司 Filter shaping circuit, driving circuit and amorphous silicon grid circuit
CN201917824U (en) * 2011-01-19 2011-08-03 湖州上电科电器科学研究有限公司 Intelligent household light digital control system
CN102244598A (en) * 2011-03-11 2011-11-16 太原理工大学 Mining communication substation based on C8051F040

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581814A (en) * 2003-08-01 2005-02-16 上海中朗通信技术有限公司 Wireless LAN indoor covering system
KR20080039710A (en) * 2006-11-01 2008-05-07 현대로템 주식회사 Communication network apparatus for using in railway vehicle
CN201414124Y (en) * 2009-06-25 2010-02-24 湖南中电威科电力仪表有限公司 Isolation RS485 communication speed-raising circuit for low-speed optical coupler
CN101711076A (en) * 2009-11-18 2010-05-19 广州中大中鸣科技有限公司 DMX512 communication link and method thereof
CN102074204A (en) * 2009-11-25 2011-05-25 上海天马微电子有限公司 Filter shaping circuit, driving circuit and amorphous silicon grid circuit
CN101807071A (en) * 2010-04-02 2010-08-18 天津理工大学 Input-output terminal continuous controller based on RS485 bus
CN201917824U (en) * 2011-01-19 2011-08-03 湖州上电科电器科学研究有限公司 Intelligent household light digital control system
CN102244598A (en) * 2011-03-11 2011-11-16 太原理工大学 Mining communication substation based on C8051F040

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
程波等: "一种低成本的长距离测井数据通信方法", 《测控技术》 *

Similar Documents

Publication Publication Date Title
US10292244B2 (en) Communication module
US10462879B2 (en) Powerline communication control of light emitting diode (LED) lighting fixtures
US8110996B2 (en) Modular wireless lighting control system using a common ballast control interface
CN102752894B (en) A kind of LED light device and LED illumination network system
JP2009534786A (en) Integrated power and control unit for solid state lighting
CN106211411B (en) Modulating device and luminaire
CN107994926A (en) A kind of circuit and communication system that signal transmission is realized based on power carrier
CN105813258A (en) Synchronization method for LED power supply through single wires
US10785854B2 (en) Lighting system and lighting apparatus
CN112751739B (en) Long-distance data transmission device based on data bus and intelligent lamp control system
KR20150032765A (en) Dimming control system
EP3751965A1 (en) System for controlling a series of lighting fixtures
CN112601336A (en) Long-distance data transmission method based on data bus and intelligent lamp control method
JP6779999B2 (en) Peripheral devices, systems and methods including said peripheral devices
CN215222538U (en) Dimming lamp controller and dimming system based on PLBUS technology
CN106549659B (en) Wireless networking touch switch
US11425805B2 (en) Control circuit for tubular light emitting diode
CN219678731U (en) Stage lighting control system
CN204272467U (en) A kind of Intelligent LED lamp control system based on multiple single chip microcomputer framework
CN211531400U (en) Intelligent single-lamp bridging networking system
US11737188B2 (en) LED-driver with PFC and wired bus interface
CN220798589U (en) LED light control device
Ivanov et al. Power Line Communication for Building Automation Using Visible Light Sensing Systems
Haverinen Lighting adjustments with digital control signals
CN110636675A (en) Intelligent lighting control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210402