LanBox-LC manual v2.0b1

Using MIDI or Serial communications
 


 
Index

Introduction
 
What's in the box
 What's not in the box
 New versions & support

Getting started
 
Macintosh network setup
 PC/Mac Serial setup
 MIDI setup
 The LanBox
 Software to use
 About fixtures & DMX

What's under the hood
 LCII firmware operation
 LC+ firmware operation

Using MIDI or Serial
 
MIDI communications
 Serial communications
 Contact/button trggers

FAQ and Specs
 
LanBox FAQ
 DMX FAQ
 CE & FCC specs

Introduction to MIDI or Serial communications with the LanBox-LC

MIDI is a very often used protocol in the music world, so there are lots of controllers that can be used together with the LanBox-LC . We'll give you some examples.

The most simple way is to connect a MIDI keyboard directly to the LanBox-LC (through the MIDI interface of course). You can play notes on the keyboard and the lights on the corresponding DMX channels will follow what you play. If you select an instrument on the keyboard (which is a program change) you select a scene in the LanBox-LC. (Make sure the MIDI send channel on the keyboard corresponds with the MIDI receive channel on the LanBox-LC.

Another powerfull way to control lights is using a programmable MIDI command station with sliders and/or buttons, like the Peavey PC1600 X.

The more expensive MIDI keyboards have built-in sequencers. You can use these sequencers to make the light show run in sync with the (MIDI) song. Reserve one MIDI track for the LanBox-LC. You still have the option of using select scenes (program changes) or individual DMX control (note-on) or both.

The only problem with using a sequencer for individual DMX control is that a sequencer will send note-on and note-offs in pairs. On a note-off the LanBox-LC will set the corresponding DMX channel to zero. However you can use the Sustain (Collect note-offs) or the Portamento (Ignore note-offs) Controllers to prevent this.

Of course you can use more advanced computer based sequencers (like EMagics Logic, MOTUs Performer or Cubase), for the same purpose. These sequencers normally give you a lot more control, but you'll need a (portable) computer in your setup.

On the Macintosh you can use the MAX MIDI programming environment to let you imagination really run wild. With MAX you can do very complicated MIDI tricks in a very simple way. In the LanBox-LC bundled software you can find examples of how to use the LanBox-LC with MAX.

 
 

The LanBox-LC primary communications channel is the AppleTalk network protocol. However it is also possible to communicate with the LanBox-LC through the serial port. Through this port scenes (CueLists) can be selected and specific light channels can be controlled directly.

Connection
The LanBox-LC has a Mini DIN connector at the front labeled 'Serial'. A standard Macintosh serial cable (Mac to Mac) will make the serial connection to the modem or printer port of any Macintosh. Wintel PCs usually have a 9 pole D connector for their serial port. We optionally sell a special PC - LanBox cable, which has on on side a 9 pole female D connector and on the other side the 8 pole mini DIN connector.

Baudrate
The serial communication works with Baudrates of 38400/19200/9600, no parity, 8 bit, one stop bit and no handshake. The LanBox-LC is shipped with 38400 baud setting, but this can be changed using LCtools or for the "plus" fimware with LCedit+.

Protocol
The protocol used for the serial connection is ASCII (hex) based. A typical command should be like this: *00010005# (select scene 5 for the LCII).

 
 

Using MIDI communications with the LanBox-LC

In order to use the LanBox-LC with MIDI, you need to connect the optional MIDI adapter to the serial port of the box before power up (the LanBox-LC will automaticly detect the MIDI adapter at power up), using the following startup procedure:

* Turn on the box, with MIDI adapter connected
* Wait until the yellow led is blinking.

If the LCII firmware is installed, initialize in this way , using MIDI channel 15:
* Send 127 with controller 112 (stop sequencer)
* Send MIDI controller 123 (panic) or send for all channels NoteOns with velocity 0
* Send 20 with controller 111 (set output to edit buffer)
* Optionally sent 127 with controller 65 in order to ignore all NoteOffs

If the LC+ firmware is installed, initialize in this way , using MIDI channel 1:
* Send 0 with controller 73 (stop sequencer)
* Send 127 with controller 87 (clear engine)
* Optionally sent 127 with controller 65 in order to ignore all NoteOffs

From now on any NoteOn will map to the same light channel + 1, so NoteOn, pitch=64, vel= 100 results in light channel 65 goes to 200 (2*100). If the default 1 to 1 mapping of the DMX patcher is not changed, the light channels are fed to the corresponding DMX output channels.

Note: Besides the above commands there are (especialy in the LC+) many more MIDI commands which can be used. The LCII MIDI command set can be found in the LCII user manual, while the very extensive MIDI command set for the LC+ firmware can be found in the "LC+ Reference" manual and the "LC+ Cmd Chart".

Note: The LC+ can also be controlled by SysEx and MSC (MIDI Show Control) commands.

 
 

  Using Serial ASCII communications with the LanBox-LC

In order to use the LanBox-LC with ASCII, you need to make a serial connection to the serial port of the box before power up and using the following startup procedure:

* Turn on the box, with a serial cable connected
* Wait until the yellow led is blinking.

If the LCII firmware is installed, initialize in this way , using 38.4 kb, 8 data bits, 1 stop bit, no handshake:
* Send *00080000# (stop sequencer)
* Send *01000000# (clear all channels)
* Send *02000006# (set all outputs to edit buffer)

From now the command *01xx00vv# will set light channel xx (hex), to DMX value vv (hex). If the default 1 to 1 mapping of the DMX patcher is not changed, the light channels are fed to the corresponding DMX output channels.

If the LC+ firmware is installed, initialize in this way , using 38.4 kb, 8 data bits, 1 stop bit, no handshake:
* Send *490100# (stop sequencer of Engine A)
* Send *5701# (clear Engine A)

From now the command *c901xxvv# will set light channel xx (hex), to DMX value vv (hex). If the default 1 to 1 mapping of the DMX patcher is not changed, the light channels are fed to the corresponding DMX output channels.

Note: Besides the above commands there are (especialy in the LC+) many more ASCII commands which can be used. The LCII ASCII command set can be found in the LCII user manual, while the very extensive ASCII command set for the LC+ firmware can be found in the "LC+ Reference" manual and the "LC+ Cmd Chart".

 
 

  Using a contact switch as trigger

The LanBox-LC can be used stand alone (without a computer attached to it). Users have expressed the need for attaching some sort of switch device to restart the LanBox-LC light program. Besides the serial commands, that can easily be built into some hand held remote control, we've also build in support for a contact switch.

Connection
The LanBox-LC has a Mini DIN connector at the front labeled 'Serial'. The LanBox-LC supports an NC (normally closed) contact between pin 2 and 3 of the serial port. When using the LCII firmware the pins 2 and 3 should be shorted at startup, so the LanBox-LCII can detect the switch and initialize the switch handler.

Protocol with the LCII firmware:
As long as pins 2 and 3 are shorted the sequencer will run. As soon as the contact between pin 2 and 3 is broken the sequencer will stop running and hold the last scene. When pins 2 and 3 are shorted again, the sequencer will start running at scene 1.

Protocol with the LC+ firmware:
With the step action "hold until switch" it's possible to wait for a closed as well as an open contact.

Note
We will not supply an actual switch, just supporting the possibility in software.

 
 

 
To previous section, To next section 

Introduction | Getting started | Under the hood | MIDI&Serial | FAQ&Specs

  


Last updated: 31-07-2000
by: Fokko
Copyright 1997..2000 CDS advanced technology bv. LanBox is a registered trademark of CDS advanced technology bv. All other names referenced are the service marks, trademarks or registered trademarks of their respective companies.
Comments or suggestions: webmaster@cds.nl , Questions and info: info@cds.nl.