Ethernet to MIDI&RS232 + DMX512 (+Artnet) Interface
Ethernet to MIDI&RS232 + DMX512 (+Artnet) Interface
0
Project description
- The basic mode is?1:1 "transparent" byte transfer?between wired Ethernet and the combined MIDI&RS-232 port. MIDI baudrate is supported as well as standard PC baudrates. The baudrate is configured by ASCII command or with semi-automatic baud rate detection.
- ASCII / binary conversion: it is possible to send any (binary) byte coded as ASCII text via Ethernet to the interface, which transmits it in raw binary mode from MIDI/RS-232 OUT. This mode is useful to enable ASCII based PC software or manual terminal input to communicate with MIDI (or any other binary oriented protocol). Vice versa, every binary byte received at MIDI/RS-232 IN is retransmitted coded as ASCII text via Ethernet.
- A complete universe of?512 DMX channels?is supported: --- DMX control is possible by an?ASCII text based command set --- the?MiniDMX protocol?is implemented as a quasi subset of the ASCII command set. --- or alternatitively by a?MIDI Channel Message based command set These commands can be sent simultaneously through Ethernet (UDP or TCP) and via the combined MIDI & RS-232 port --- up to 128 presets (=user defining lighting scenes) can be stored permanently and recalled by command
- Configuration?of communication parameters like IP-addresses is possible by UDP, Telnet or conventional RS-232.
- OSC (Open Sound Control) formatted data packets, received via Ethernet, are decoded and the binary content is transmitted?from MIDI OUT (or RS-232 depending on the baud rate setting). Because OSC is not designed around a well defined set of methods (i.e. commands) - like MIDI is, some predefined methods of the most popular OSC implementations are implemented, as is "Touch OSC" and "Control". Additionally a special set of MIDI and DMX oriented OSC methods is implemented.
- To provide more flexibility,?a simple compiler for user defined OSC methods is built in. This way, almost every OSC method generated by 3rd party devices may be recoded to corresponding MIDI or DMX specific or general serial output. Vice versa, every byte received at MIDI IN is accumulated into appropriately timed OSC formatted packets and retransmitted via Ethernet. All OSC methods/commands are fully documented, no specific drivers are required. For comfortable editing and test of user defined OSC methods, a special OSC mode has been introduced: Editing is done via the RS-232 port while simultaneously the OSC messages can be sent via Ethernet. Binary OSC released serial output from the MIDI&RS-232 port is transformed into readable ASCII text then.
Hardware essentials
- The heart of the circuit is a microcontroller ATmega1284P clocked with 12 MHz. The 40pin DIL case demands no special skills for manual assembly.
- An Atmel compatible programming connector is provided on the PCB. After programming jumpers are placed there to select the different modes of operation, including configuration modes. Instead of jumpers, a set of switches may be mounted at the front panel, see photo above. Change of modes initates a quick warm start. This way TCP gets not disconnected during mode change as long as TCP is possible in the new mode.
- The actual hardware version is equiped with an optoisolated MIDI IN, which is wired-or connected with a separate single transistor RS-232 input. The MIDI OUT driver is built with an HCMOS inverter, which drives RS-232 too. Both share the same microcontroller USART. This unconventional circuit is very simple but works reliably up to 115200 baud. DMX OUT is driven by a second USART.
- Pinheads for MIDI I/O, RS-232 and DMX OUT are located at the PCB. These should be wired to conventional connectors with metal flange, which are easier to mount in a DIY project than connectors directly soldered on the PCB.
- The Ethernet frontend is designed with a Wiznet WIZ810MJ module using the Indirect Bus Interface mode. This provides a high data throughput combined with a simple hardware.
- Power supply: a switching regulator with input voltage range 8-28Vdc is placed on the reference PCB.
- The layout of the PCB is held simple with a single wire layer.
- The PCB design fits into a low cost plastic standalone enclosure ("Eurobox") as well as into a rugged aluminium one ("Fischer?Elektronik?FRAME" PCB ?size??100x75mm).
Pure Data demonstration and test patcher for OSC
Pure Data demonstration and test patcher for ASCII commands via RS-232
Documents
-
OSC supporting firmware hex code for ATmega1284P
-
single layer PCB layout (1:1 TIF format)
-
Detailled construction- and operation manual (PDF file).
