CN112291195A - Art-Net data processing method and system - Google Patents
Art-Net data processing method and system Download PDFInfo
- Publication number
- CN112291195A CN112291195A CN202011030566.0A CN202011030566A CN112291195A CN 112291195 A CN112291195 A CN 112291195A CN 202011030566 A CN202011030566 A CN 202011030566A CN 112291195 A CN112291195 A CN 112291195A
- Authority
- CN
- China
- Prior art keywords
- art
- net
- net protocol
- protocol data
- software
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/165—Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/175—Controlling the light source by remote control
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computer Security & Cryptography (AREA)
- Computer And Data Communications (AREA)
Abstract
The application relates to a method and a system for processing Art-Net data, wherein the method for processing the Art-Net data comprises the following steps: the method comprises the steps that non-Art-Net protocol equipment or software sends non-Art-Net protocol data to the Art-Net protocol equipment or software, wherein a corresponding conversion relation between the Art-Net protocol data and the non-Art-Net protocol data is established between the Art-Net protocol equipment or software and the non-Art-Net protocol equipment or software; and when the equipment or software of the Art-Net protocol receives the Art-Net protocol data, converting the Art-Net protocol data into non-Art-Net protocol data according to the corresponding conversion relation, and sending the non-Art-Net protocol data to the equipment or software of the non-Art-Net protocol. By the method and the device, the problem that when the Art-Net protocol is used for controlling the dimming equipment or software, the target equipment or software cannot receive Art-Net data under the condition that the network where the target equipment or software is not a standard network specified by the Art-Net protocol is solved, various dimming equipment can be controlled conveniently, and the dimming control quality and reliability of the control equipment are improved.
Description
Technical Field
The application relates to the technical field of computer light control, in particular to a method and a system for processing Art-Net data.
Background
With the rapid development of computer network technology, the application of network technology in the field of light control also shows a vigorous trend, and manufacturers in the field of light control are developing and releasing various light-adjusting devices applying network technology. However, due to the incompatibility of protocols between products of various manufacturers, there are problems in communication and mutual operation processes to different degrees, so that the dimming network formed by these network dimming devices is difficult to operate. Therefore, in order to solve the problem of communication obstacles among different dimming devices, a dimming network communication protocol is developed, wherein the Art-Net protocol is widely applied and popularized as an advanced dimming network protocol in the later DMX512 era.
In the related Art, the use of the Art-Net protocol may cause a plurality of signal sources to transmit data of the same Art-Net domain to one network or device, resulting in data collision and failure of the target device or software to receive Art-Net data.
At present, no effective solution is provided for the problem that, in the related Art, when an Art-Net protocol is used to control dimming equipment or software, the target equipment or software cannot receive Art-Net data under the condition that the network where the target equipment or software is located is not a standard network specified by the Art-Net protocol, and the problem of data collision caused by multiple signal sources sending data of the same Art-Net domain to one network or equipment.
Disclosure of Invention
The embodiment of the application provides a method and a system for processing Art-Net data, which at least solve the problem that when an Art-Net protocol is used for controlling dimming equipment or software in the related Art, target equipment or software cannot receive the Art-Net data under the condition that the network where the target equipment or software is located is not a standard network specified by the Art-Net protocol.
In a first aspect, an embodiment of the present application provides a method for processing Art-Net data, which is applied to an Art-Net data processing system in an environment of controlling lighting equipment, where the system includes: the device or software of the Art-Net protocol, the device or software of the non-Art-Net protocol, the said data handling's method includes:
the device or software of the non-Art-Net protocol sends non-Art-Net protocol data to the device or software of the Art-Net protocol, wherein a corresponding conversion relation between the Art-Net protocol data and the non-Art-Net protocol data is established between the device or software of the Art-Net protocol and the device or software of the non-Art-Net protocol;
and when the device or software of the Art-Net protocol receives the Art-Net protocol data, converting the Art-Net protocol data into non-Art-Net protocol data according to the corresponding conversion relation, and sending the non-Art-Net protocol data to the device or software of the non-Art-Net protocol.
In some embodiments, in the case where the device or software of the Art-Net protocol sends a plurality of Art-Net protocol data, the method comprises:
and configuring a local virtual network or an entity network with an IP address field of 2.0.0.0/8 or 10.0.0.0/8 in the equipment or software of the Art-Net protocol for receiving the Art-Net protocol data, and modifying the value of a field with a 'domain' and the value of a field with a 'channel' in the Art-Net protocol data or forwarding the Art-Net protocol data to other networks after receiving the Art-Net protocol data.
In some embodiments, the corresponding conversion relationship between the Art-Net protocol data and the non-Art-Net protocol data comprises:
under the condition of sending the non-Art-Net protocol data, establishing a mapping relation table of a UDP (user Datagram protocol) or TCP (Transmission control protocol) instruction and a channel corresponding to a forwarding domain;
and under the condition of sending the Art-Net protocol data, establishing a mapping relation table of forwarding data and a designated domain and channel.
In some of these embodiments, mapping the Art-Net protocol data to a location on the screen includes:
and establishing a mapping relation table of the appointed position on the screen and the domain and the channel, monitoring the channel corresponding to the Art-Net protocol data, and triggering a mouse click event when the mouse moves to the appointed position of the screen under the condition that the channel value of the channel meets the triggering condition.
In some of these embodiments, sending the Art-Net protocol data comprises:
and in a preset time period, opening a channel of a specified domain, and sending the Art-Net channel data to a specified place through the channel of the specified domain.
In a second aspect, an embodiment of the present application provides a system for Art-Net data processing, where the system includes: equipment or software of an Art-Net protocol, equipment or software of a non-Art-Net protocol;
the device or software of the non-Art-Net protocol sends non-Art-Net protocol data to the device or software of the Art-Net protocol, wherein a corresponding conversion relation between the Art-Net protocol data and the non-Art-Net protocol data is established between the device or software of the Art-Net protocol and the device or software of the non-Art-Net protocol;
and when the device or software of the Art-Net protocol receives the Art-Net protocol data, converting the Art-Net protocol data into non-Art-Net protocol data according to the corresponding conversion relation, and sending the non-Art-Net protocol data to the device or software of the non-Art-Net protocol.
In some embodiments, in the case where the device or software of the Art-Net protocol sends a plurality of Art-Net protocol data, the system comprises:
and configuring a local virtual network or an entity network with an IP address segment of 2.0.0.0/8 or 10.0.0.0/8 in the equipment or software of the Art-Net protocol for receiving the Art-Net protocol data, wherein after receiving the Art-Net protocol data, the Art-Net tool modifies the value of a field with a 'domain' and the value of a field with a 'channel' in the Art-Net protocol data, or forwards the Art-Net protocol data to other networks.
In some embodiments, the corresponding conversion relationship between the Art-Net protocol data and the non-Art-Net protocol data comprises:
under the condition of sending the non-Art-Net protocol data, the Art-Net tool establishes a mapping relation table of a UDP or TCP instruction and a channel corresponding to a forwarding domain;
and under the condition of sending the Art-Net protocol data, the Art-Net tool establishes a mapping relation table of forwarding data and a designated domain and channel.
In some of these embodiments, mapping the Art-Net protocol data to a location on the screen includes:
the Art-Net tool establishes a mapping relation table of the designated position on the screen, the domain and the channel, monitors the channel corresponding to the Art-Net protocol data, and triggers a mouse click event when the mouse moves to the designated position on the screen under the condition that the channel value of the channel meets the triggering condition.
In some of these embodiments, sending the Art-Net protocol data comprises:
and in a preset time period, the Art-Net tool starts a channel of a designated domain and sends the Art-Net channel data to a designated place through the channel of the designated domain.
Compared with the related technology, the method for processing the Art-Net data, provided by the embodiment of the application, is characterized in that the non-Art-Net protocol device or software sends the non-Art-Net protocol data to the Art-Net protocol device or software, wherein the corresponding conversion relation between the Art-Net protocol data and the non-Art-Net protocol data is established between the Art-Net protocol device or software and the non-Art-Net protocol device or software; when the device or software of the Art-Net protocol receives the Art-Net protocol data, the Art-Net protocol data is converted into non-Art-Net protocol data according to the corresponding conversion relation and is sent to the device or software of the non-Art-Net protocol, so that the problem that the target device or software cannot receive the Art-Net data under the condition that the network where the target device or software is located is not a standard network specified by the Art-Net protocol when the Art-Net protocol is used for controlling the dimming device or software is solved, various dimming devices can be controlled conveniently, and the dimming control quality and reliability of the control device are improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic diagram of an application environment of a non-Art-Net protocol device or software controlling an Art-Net protocol device or software according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an application environment of an Art-Net protocol device or software for controlling a non-Art-Net protocol device or software according to an embodiment of the present application;
FIG. 3 is a flow chart of an Art-Net data processing method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an Art-Net tool interface for mapping non-Art-Net protocol data to Art-Net protocol data according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an Art-Net tool interface for mapping Art-Net protocol data to non-Art-Net protocol data according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an environment for converting Art-Net into domains according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an Art-Net tool interface for converting Art-Net domains according to an embodiment of the present application;
fig. 8 is a block diagram of an Art-Net data processing system according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference herein to "a plurality" means greater than or equal to two. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
The Art-Net data processing method provided by the present application can be applied to the application environments shown in fig. 1 and fig. 2, where fig. 1 is a schematic view of an application environment of a device or software of a non-Art-Net protocol controlling Art-Net protocol according to an embodiment of the present application, and as shown in fig. 1, fig. 2 is a schematic view of an application environment of a device or software of an Art-Net protocol controlling non-Art-Net protocol according to an embodiment of the present application, and as shown in fig. 2, the application environment of the present application includes: the device or software 10 of the non-Art-Net protocol, the device or software 11 of the Art-Net protocol and the computer 12, the concrete realization method is as follows: the device or software 10 of the non-Art-Net protocol sends the non-Art-Net protocol data to the device or software 11 of the Art-Net protocol, wherein the corresponding conversion relation between the Art-Net protocol data and the non-Art-Net protocol data is established between the device or software 11 of the Art-Net protocol and the device or software 10 of the non-Art-Net protocol; when the device or software 11 of the Art-Net protocol receives the Art-Net protocol data, the Art-Net protocol data is converted into non-Art-Net protocol data according to the corresponding conversion relation and is sent to the device or software 10 of the non-Art-Net protocol, so that the problem that the target device or software cannot receive the Art-Net data under the condition that the target device or software is in a standard network which is not specified by the Art-Net protocol when the Art-Net protocol is used for controlling the dimming device or software is solved, various dimming devices can be controlled conveniently, and the dimming control quality and reliability of the control device are improved.
The present embodiment provides a method for processing Art-Net data, and fig. 3 is a flowchart of a method for processing Art-Net data according to an embodiment of the present application, and as shown in fig. 3, the flowchart includes the following steps:
step S301, the non-Art-Net protocol device or software 10 sends non-Art-Net protocol data to the Art-Net protocol device or software 11, wherein a corresponding conversion relation between the Art-Net protocol data and the non-Art-Net protocol data is established between the Art-Net protocol device or software 11 and the non-Art-Net protocol device or software 10, optionally, the non-Art-Net protocol device or software 10 refers to a device or software supporting a general character string or 16-system character string instruction protocol, and the Art-Net protocol device or software 11 refers to console device or console class control software supporting Art-Net data input or DMX data input; in addition, Art-Net is an ethernet protocol based on TCP/IP protocol stack, and aims to allow remote transmission of a large amount of DMX512 data using standard network technology, where DMX512 is a traditional digital dimming protocol, defines a standard for controlling lighting devices and accessories to transmit digital data, and is a de facto international standard, all lighting consoles and controlled devices are compatible with the protocol standard of DMX512, Art-Net is an advanced dimming network protocol of the later DMX512 era, and uses a wide range of ethernet technology to transmit DMX512 data commonly used in the industry, thereby meeting the most urgent and most common application requirements of users. Fig. 4 is a schematic diagram of an Art-Net tool interface for mapping non-Art-Net protocol data into Art-Net protocol data according to an embodiment of the present invention, and as shown in fig. 4, in this embodiment, the non-Art-Net protocol data is mapped into Art-Net protocol data that can be received by the device or software 11 of Art-Net protocol, so as to solve the problem of communication failure and improve the quality and accuracy of dimming control.
Step S302, when receiving the Art-Net protocol data, the Art-Net protocol device or software 11 converts the Art-Net protocol data into non-Art-Net protocol data according to the corresponding conversion relationship, and sends the non-Art-Net protocol data to the non-Art-Net protocol device or software 10, wherein the non-Art-Net protocol device or software 10 refers to lighting, sound, stage machinery and various effect control devices applied to theatres, auditoriums and stages in large and medium sizes, FIG. 5 is an Art-Net tool interface schematic diagram in which the Art-Net protocol data is mapped into the non-Art-Net protocol data according to the embodiment of the present application, as shown in FIG. 5, the embodiment uses the Art-Net tool to map the Art-Net protocol data sent by the Art-Net network interface device into the non-Art-Net protocol data to control the non-Art-Net protocol device or software 10, the unified control of different light and stage control equipment is effectively realized, the wiring is simple, only one network is needed, the control signal and various electromagnetic signals are isolated from each other and do not interfere with each other, and the reliability of the system operation is greatly improved.
Through the above steps S301 to S302, compared with the prior Art, in the case where the network where the target device or software is located is not the 2.0.0.0/8 or 10.0.0.0/8 network specified by the Art-Net protocol, the target device or software cannot receive the Art-Net data. In the embodiment, non-Art-Net protocol equipment or software 10 is adopted to send non-Art-Net protocol data to Art-Net protocol equipment or software 11, wherein a corresponding conversion relation between the Art-Net protocol data and the non-Art-Net protocol data is established between the Art-Net protocol equipment or software 11 and the non-Art-Net protocol equipment or software 10; when the device or software 11 of the Art-Net protocol receives the Art-Net protocol data, the Art-Net protocol data is converted into non-Art-Net protocol data according to the corresponding conversion relation and is sent to the device or software 10 of the non-Art-Net protocol, so that the problem that the target device or software cannot receive the Art-Net data under the condition that the network of the target device or software is not a standard network specified by the Art-Net protocol when the Art-Net protocol is used for controlling the dimming device or software in the prior Art is solved, various dimming devices can be controlled conveniently, and the dimming control quality and reliability of the control device are improved.
In some embodiments, in the case that the device or software 11 of the Art-Net protocol sends multiple Art-Net protocol data, a local virtual network or physical network with an IP address segment of 2.0.0.0/8 or 10.0.0.0/8 is configured in the device or software 11 of the Art-Net protocol for receiving the Art-Net protocol data, and when the Art-Net protocol data is received, the value of the field with the "field" and the value of the field with the "channel" in the Art-Net protocol data are modified, or the Art-Net protocol data are forwarded to other networks, wherein the field is a data parameter defined in the Art-Net protocol and has a value of 15 bits binary, and the range of the field is 0 to 32767, and 32768 available fields. In addition, a channel is a data parameter defined in the Art-Net protocol, and the data format is a byte array, one element in the byte array corresponds to one channel, and the byte array is typically 512 bytes of data, that is, 512 channels, wherein each element has a value ranging from 0 to 255(00-FF), that is, corresponds to each channel value. Fig. 6 is a schematic diagram of an environment for converting Art to Net domain, according to an embodiment of the present application, as shown in fig. 6, fig. 7 is a schematic diagram of an Art-Net tool interface for converting Art to Net domain, according to an embodiment of the present application, as shown in fig. 7, optionally, a specific implementation method for converting data in a field where a "domain" of Art-Net protocol data is modified is as follows: monitoring a default data sending port UDP 6454 specified by an Art-Net protocol to obtain source data, wherein the data specified by the Art-Net protocol is sent by a UDP protocol, the UDP has broadcast and unicast, all hosts in a network receive the data during broadcast, and the unicast limits the data to be sent to the hosts; and then, modifying the data of the field where the corresponding domain is located in the obtained source data into a new value, thereby realizing domain switching or controlling other domains.
In some embodiments, the corresponding conversion relationship between the Art-Net protocol data and the non-Art-Net protocol data comprises: under the condition of sending non-Art-Net protocol data, establishing a mapping relation table of a UDP (user Datagram protocol) or TCP (Transmission control protocol) instruction and a channel corresponding to a forwarding domain; under the condition of sending Art-Net protocol data, a mapping relation table of forwarding data and a designated domain and a channel is established, optionally, UDP is a user data packet protocol in a TCP/IP protocol set, the program is small and simple, connection does not need to be established, the processing speed is high, and the basic multipoint transmission addressing and data transmission functions can be provided; optionally, the TCP is a connection-oriented, reliable, byte stream-based transmission control protocol, and the TCP protocol is responsible for dividing data into a plurality of data packets, and adding a packet header to each data packet, where the packet header has a corresponding number, so as to ensure that the data can be sequentially restored to an original format at a data receiving end, and if data loss, data distortion, and the like occur during transmission, the TCP protocol automatically requires data retransmission, thereby ensuring the quality of data transmission.
In some of these embodiments, mapping the Art-Net protocol data to a location on the screen includes: establishing a mapping relation table of the designated position on the screen and the domain and the channel, monitoring the channel corresponding to the Art-Net protocol data, and triggering a mouse click event when the mouse moves to the designated position on the screen under the condition that the channel value of the channel meets a triggering condition, wherein optionally, the triggering condition is that the channel value is 255, and at the moment, the mouse moves to the designated position on the screen to trigger the mouse click event. According to the embodiment, the mouse is used for clicking the trigger event, so that the operation can be simplified, and the efficiency is improved.
In some of these embodiments, sending the Art-Net protocol data comprises: and in a preset time period, opening a channel of a specified domain, sending the Art-Net protocol data to a specified place through the channel of the specified domain, wherein the preset time can be set according to a control task, for example, establishing a timing task, and specifying the channel switch state of the domain, and after the specified time is reached, sending the Art-Net protocol data to the specified place through the channel of the specified domain, wherein the switch state is closed when the channel value of the channel of the specified domain is 0, and the switch state is opened when the channel value of the channel of the specified domain is 255. The embodiment utilizes the timing function to realize the triggering of the channel of the designated domain at the designated time, thereby reducing the operation of repeated tasks and improving the efficiency.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
The present embodiment further provides a system for processing Art-Net data, which is used to implement the foregoing embodiments and preferred embodiments, and the description of the system is omitted here for brevity. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 8 is a block diagram of an Art-Net data processing system according to an embodiment of the present application, and as shown in fig. 8, the system includes a transmitting module 81, a control module 82, and a receiving module 83:
the sending module 81 is used for sending the non-Art-Net protocol data to the device or software of the Art-Net protocol by the device or software of the non-Art-Net protocol, wherein a corresponding conversion relation between the Art-Net protocol data and the non-Art-Net protocol data is established between the device or software of the Art-Net protocol and the device or software of the non-Art-Net protocol; the control module 82 is used for converting the Art-Net protocol data into non-Art-Net protocol data according to the corresponding conversion relation when the Art-Net protocol data is received by the equipment or software of the Art-Net protocol; and the receiving module 83 is used for receiving corresponding non-Art-Net protocol data by the non-Art-Net protocol equipment or software.
Through the system, the sending module 81 can solve the problem of communication obstacle and improve the dimming control quality and accuracy by mapping non-Art-Net protocol data into the Art-Net protocol data which can be received by the equipment or software of the Art-Net protocol, in addition, a plurality of equipment can be connected in one network, and the connection distance is long, so that the cost for constructing a large-scale dimming network is low; the control module 82 maps the Art-Net protocol data sent by the equipment using the Art-Net network interface into corresponding non-Art-Net protocol data to control the equipment or software of the non-Art-Net protocol, so that the unified control of different lighting and stage control equipment is effectively realized, the wiring is simple, only one network is needed, the control signal and various electromagnetic signals are mutually isolated and do not interfere with each other, and the reliability of the system operation is greatly improved; the receiving module 83 is used for receiving data corresponding to the non-Art-Net protocol by various non-Art-Net protocol devices or software. The whole system solves the problem that when the Art-Net protocol is used for controlling the dimming equipment or software, the target equipment or software cannot receive the Art-Net data under the condition that the network where the target equipment or software is located is not a standard network specified by the Art-Net protocol, and the dimming control quality and reliability of various control equipment are improved.
In some embodiments, in the case that the device or software in the Art-Net protocol sends multiple Art-Net protocol data, a local virtual network or physical network with an IP address segment of 2.0.0.0/8 or 10.0.0.0/8 is configured in the device or software in the Art-Net protocol for receiving the Art-Net protocol data, and after receiving the Art-Net protocol data, the Art-Net tool modifies the value of the field with the "field" and the value of the field with the "channel" in the Art-Net protocol data or forwards the Art-Net protocol data to other networks, wherein the field is a data parameter defined in the Art-Net protocol and has a value of 15 bits binary, and the range of the field is 0 to 32767, which total 32768 available fields. Optionally, a specific implementation method for modifying the data in the field where the "domain" of the Art-Net protocol data is located to convert the domain is as follows: monitoring a default data sending port UDP 6454 specified by an Art-Net protocol to obtain source data, wherein the data specified by the Art-Net protocol is sent by a UDP protocol, the UDP has broadcast and unicast, all hosts in a network receive the data during broadcast, and the unicast limits the data to be sent to the hosts; and then, modifying the data of the field where the corresponding domain is located in the obtained source data into a new value, thereby realizing domain switching or controlling other domains.
In some embodiments, the corresponding conversion relationship between the Art-Net protocol data and the non-Art-Net protocol data in the sending module 81 includes: under the condition of sending non-Art-Net protocol data, the Art-Net tool establishes a mapping relation table of a UDP or TCP instruction and a channel corresponding to a forwarding domain; under the condition of sending the Art-Net protocol data, the Art-Net tool establishes a mapping relation table of forwarding data and a designated domain and a channel, optionally, UDP is a user data packet protocol in a TCP/IP protocol set, the program is small and simple, connection does not need to be established, the processing speed is high, and the basic multipoint transmission addressing and data transmission functions can be provided; optionally, the TCP is a connection-oriented, reliable, byte stream-based transmission control protocol, and the TCP protocol is responsible for dividing data into a plurality of data packets, and adding a packet header to each data packet, where the packet header has a corresponding number, so as to ensure that the data can be sequentially restored to an original format at a data receiving end, and if data loss, data distortion, and the like occur during transmission, the TCP protocol automatically requires data retransmission, thereby ensuring the quality of data transmission.
In some of these embodiments, mapping the Art-Net protocol data to an on-screen location in the control module 82 includes: the Art-Net tool establishes a mapping relation table of the designated position on the screen and the domain and the channel, monitors the channel corresponding to the Art-Net protocol data, and triggers a mouse click event when the mouse moves to the designated position on the screen under the condition that the channel value of the channel meets the triggering condition, wherein optionally, the triggering condition is that the channel value is 255, and at the moment, the mouse moves to the designated position on the screen to trigger the mouse click event. According to the embodiment, the mouse is used for clicking the trigger event, so that the operation can be simplified, and the efficiency is improved.
In some of these embodiments, sending the Art-Net protocol data comprises: and in a preset time period, opening a channel of a specified domain, sending the Art-Net protocol data to a specified place through the channel of the specified domain, wherein the preset time can be set according to a control task, for example, establishing a timing task, and specifying the channel switch state of the domain, and after the specified time is reached, sending the Art-Net protocol data to the specified place through the channel of the specified domain, wherein the switch state is closed when the channel value of the channel of the specified domain is 0, and the switch state is opened when the channel value of the channel of the specified domain is 255. The embodiment utilizes the timing function to realize the triggering of the channel of the designated domain at the designated time, thereby reducing the operation of repeated tasks and improving the efficiency.
The present invention will be described in detail with reference to the following application scenarios.
The technical scheme of the Art-Net data processing in the embodiment comprises the following steps:
s1, the device or software of the non-Art-Net protocol of the computer in the public network server or local network, or the device or software of the Art-Net protocol such as software control console or console software, that is, the device or software of the non-Art-Net protocol sends the data of the non-Art-Net protocol to the computer in the local network by using UDP or TCP, and then the Art-Net tool forwards the data of the non-Art-Net protocol to the device or software of the Art-Net protocol corresponding to the data of the non-Art-Net protocol;
s2, when the device or software for sending the Art-Net data is needed to control the device or software of the non-Art-Net protocol, the Art-Net protocol data is mapped to the corresponding non-Art-Net protocol data through the Art-Net tool and forwarded to the device or software of the relevant non-Art-Net protocol;
s3, multiple devices or software supporting the Art-Net protocol exist in the network, that is, when multiple Art-Net data outputs exist in a single network, in order to avoid data collision and make the most of the current network resources, the Art-Net tool can be used to forward the domain to the available idle domain.
Wherein, the Art-Net tool comprises the following functions:
(1) Art-Net converts TCP/UDP: mapping the Art-Net channel data into non-Art-Net protocol data, and forwarding by using TCP or UDP;
(2) Art-Net domain transfer: changing the value of the domain in the Art-Net protocol data and forwarding the domain;
(3) UDP-to-Art-Net: mapping non-Art-Net protocol data into an Art-Net channel value, or forwarding data conforming to an Art-Net protocol format;
(4) external control: receiving non-Art-Net protocol data sent by TCP or UDP, and forwarding the non-Art-Net protocol data by using TCP or UDP, or mapping the non-Art-Net protocol data into a specific Art-Net channel value;
(5) keyboard and mouse simulation: mapping Art-Net channel data to a designated mouse position to realize mouse simulated click;
(6) timing tasks: simple Art-Net timing trigger control;
(7) and (3) feedback management: the node state can be fed back by matching with a management tool;
(8) the discovery of Art-Net: and scanning and finding equipment supporting the Art-Net protocol in each network.
By the system, the problem that when the Art-Net protocol is used for controlling the dimming equipment or software, the target equipment or software cannot receive Art-Net data under the condition that the network where the target equipment or software is located is not a standard network specified by the Art-Net protocol is solved, various dimming equipment can be controlled conveniently, and the dimming control quality and reliability of the control equipment are improved.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In addition, in combination with the method for processing Art-Net data in the foregoing embodiments, embodiments of the present application may provide a storage medium to implement. The storage medium having stored thereon a computer program; the computer program, when executed by a processor, implements any of the methods of Art-Net data processing in the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be understood by those skilled in the art that various features of the above-described embodiments can be combined in any combination, and for the sake of brevity, all possible combinations of features in the above-described embodiments are not described in detail, but rather, all combinations of features which are not inconsistent with each other should be construed as being within the scope of the present disclosure.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method for processing Art-Net data is applied to an Art-Net data processing system in the environment of controlling lighting equipment, and the system comprises: the device or software of the Art-Net protocol, the device or software of the non-Art-Net protocol, the said data handling's method includes:
the device or software of the non-Art-Net protocol sends non-Art-Net protocol data to the device or software of the Art-Net protocol, wherein a corresponding conversion relation between the Art-Net protocol data and the non-Art-Net protocol data is established between the device or software of the Art-Net protocol and the device or software of the non-Art-Net protocol;
and when the device or software of the Art-Net protocol receives the Art-Net protocol data, converting the Art-Net protocol data into non-Art-Net protocol data according to the corresponding conversion relation, and sending the non-Art-Net protocol data to the device or software of the non-Art-Net protocol.
2. The method according to claim 1, wherein in the case where the device or software of the Art-Net protocol transmits a plurality of Art-Net protocol data, the method comprises:
and configuring a local virtual network or an entity network with an IP address field of 2.0.0.0/8 or 10.0.0.0/8 in the equipment or software of the Art-Net protocol for receiving the Art-Net protocol data, and modifying the value of a field with a 'domain' and the value of a field with a 'channel' in the Art-Net protocol data or forwarding the Art-Net protocol data to other networks after receiving the Art-Net protocol data.
3. The method of claim 1, wherein the corresponding conversion relationship between the Art-Net protocol data and the non-Art-Net protocol data comprises:
under the condition of sending the non-Art-Net protocol data, establishing a mapping relation table of a UDP (user Datagram protocol) or TCP (Transmission control protocol) instruction and a channel corresponding to a forwarding domain;
and under the condition of sending the Art-Net protocol data, establishing a mapping relation table of forwarding data and a designated domain and channel.
4. The method of claim 1, wherein mapping the Art-Net protocol data to a location on the screen comprises:
and establishing a mapping relation table of the appointed position on the screen and the domain and the channel, monitoring the channel corresponding to the Art-Net protocol data, and triggering a mouse click event when the mouse moves to the appointed position of the screen under the condition that the channel value of the channel meets the triggering condition.
5. The method of claim 1, wherein sending Art-Net protocol data comprises:
and in a preset time period, opening a channel of a designated domain, and transmitting the Art-Net protocol data to a designated place through the channel of the designated domain.
6. A system for Art-Net data processing, the system comprising: equipment or software of an Art-Net protocol, equipment or software of a non-Art-Net protocol;
the device or software of the non-Art-Net protocol sends non-Art-Net protocol data to the device or software of the Art-Net protocol, wherein a corresponding conversion relation between the Art-Net protocol data and the non-Art-Net protocol data is established between the device or software of the Art-Net protocol and the device or software of the non-Art-Net protocol;
and when the device or software of the Art-Net protocol receives the Art-Net protocol data, converting the Art-Net protocol data into non-Art-Net protocol data according to the corresponding conversion relation, and sending the non-Art-Net protocol data to the device or software of the non-Art-Net protocol.
7. The system according to claim 1, wherein in the case where the device or software of the Art-Net protocol transmits a plurality of Art-Net protocol data, the system comprises:
and configuring a local virtual network or an entity network with an IP address segment of 2.0.0.0/8 or 10.0.0.0/8 in the equipment or software of the Art-Net protocol for receiving the Art-Net protocol data, wherein after receiving the Art-Net protocol data, the Art-Net tool modifies the value of a field with a 'domain' and the value of a field with a 'channel' in the Art-Net protocol data, or forwards the Art-Net protocol data to other networks.
8. The system of claim 1, wherein the corresponding translation relationship between the Art-Net protocol data and the non-Art-Net protocol data comprises:
under the condition of sending the non-Art-Net protocol data, the Art-Net tool establishes a mapping relation table of a UDP or TCP instruction and a channel corresponding to a forwarding domain;
and under the condition of sending the Art-Net protocol data, the Art-Net tool establishes a mapping relation table of forwarding data and a designated domain and channel.
9. The system of claim 1, wherein mapping the Art-Net protocol data to a location on the screen comprises:
the Art-Net tool establishes a mapping relation table of the designated position on the screen, the domain and the channel, monitors the channel corresponding to the Art-Net protocol data, and triggers a mouse click event when the mouse moves to the designated position on the screen under the condition that the channel value of the channel meets the triggering condition.
10. The system of claim 1, wherein sending Art-Net protocol data comprises:
and in a preset time period, the Art-Net tool starts a channel of a designated domain and sends the Art-Net protocol data to a designated place through the channel of the designated domain.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011030566.0A CN112291195A (en) | 2020-09-27 | 2020-09-27 | Art-Net data processing method and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011030566.0A CN112291195A (en) | 2020-09-27 | 2020-09-27 | Art-Net data processing method and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN112291195A true CN112291195A (en) | 2021-01-29 |
Family
ID=74421508
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011030566.0A Pending CN112291195A (en) | 2020-09-27 | 2020-09-27 | Art-Net data processing method and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112291195A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101990333A (en) * | 2009-08-05 | 2011-03-23 | 余昌盛 | Multi-protocol lamplight control system based on PC (Personal Computer) and miniature converter |
| US20170104605A1 (en) * | 2015-10-08 | 2017-04-13 | Abl Ip Holding Llc | Broadcast message translation in a network device |
| CN107422704A (en) * | 2017-06-23 | 2017-12-01 | 陕西科技大学 | A kind of networking landscape lighting control system based on RDM and Art net protocols |
| CN109218301A (en) * | 2018-09-05 | 2019-01-15 | 天津市滨海新区信息技术创新中心 | The method and apparatus of the frame head mapping of software definition between multi-protocols |
-
2020
- 2020-09-27 CN CN202011030566.0A patent/CN112291195A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101990333A (en) * | 2009-08-05 | 2011-03-23 | 余昌盛 | Multi-protocol lamplight control system based on PC (Personal Computer) and miniature converter |
| US20170104605A1 (en) * | 2015-10-08 | 2017-04-13 | Abl Ip Holding Llc | Broadcast message translation in a network device |
| CN107422704A (en) * | 2017-06-23 | 2017-12-01 | 陕西科技大学 | A kind of networking landscape lighting control system based on RDM and Art net protocols |
| CN109218301A (en) * | 2018-09-05 | 2019-01-15 | 天津市滨海新区信息技术创新中心 | The method and apparatus of the frame head mapping of software definition between multi-protocols |
Non-Patent Citations (2)
| Title |
|---|
| 张玉杰等: "《智能照明系统KNX与DALI协议网关的设计及实现》", 《计算机测量与控制》 * |
| 张玉杰等: "LED景观照明系统设计与实现", 《电子器件》 * |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111294399B (en) | A data transmission method and device | |
| Bergmann et al. | A CoAP-gateway for smart homes | |
| RU2645280C1 (en) | Method of multi-address broadcasting, apparatus and system for program-configurable network | |
| CN103973828A (en) | Method and device for acquiring IP (internet protocol) addresses for DHCP (dynamic host configuration protocol) clients | |
| CN104618194A (en) | Software definition network message monitoring method, SDN controller and switching devices | |
| CN107360030A (en) | A kind of DALI intelligent lightings extension system and extended method | |
| Krongbaramee et al. | Implementation of sdn stateful firewall on data plane using open vswitch | |
| JP6627964B2 (en) | SDN-based ARP implementation method and apparatus | |
| US10609125B2 (en) | Method and system for transmitting communication data | |
| CN103236964B (en) | Based on DS-Lite implementation method and the CPE access device thereof of Linux | |
| CN104202300A (en) | Data communication method and device based on network isolating device | |
| KR101755829B1 (en) | Method and apparatus for processing address resolution protocol in software defined networking environment | |
| CN104518973A (en) | SDN (software defined network) environment based reliable multicast data transport method | |
| CN108881247A (en) | Message forwarding method, device, gateway and storage medium | |
| CN106130991A (en) | A kind of data forwarding method and device | |
| JP2024180503A (en) | COMMUNICATION CONTROL DEVICE AND COMMUNICATION CONTROL PROGRAM | |
| TW202125291A (en) | Gateway device with built-in server module and communication system thereof | |
| CN105379198A (en) | Forwarding control method, driver and SDN | |
| CN112291195A (en) | Art-Net data processing method and system | |
| CN108512737B (en) | Data center IP layer interconnection method and SDN controller | |
| US8353024B2 (en) | Method of transmitting information effectively in server/client network and server and client apparatuses using the same | |
| KR101666724B1 (en) | Method, Server and Apparatus For P2P Connection | |
| CN116743832A (en) | Network element service interface creation method and device and related equipment | |
| Chiu et al. | Design the dns-like smart switch for heterogeneous network base on sdn architecture | |
| CN109413641B (en) | Network system, communication method, device, equipment and storage medium based on MESH |
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 |
Application publication date: 20210129 |
|
| RJ01 | Rejection of invention patent application after publication |