Personal tools
The Open Lighting Project has moved!

We've launched our new site at www.openlighting.org. This wiki will remain and be updated with more technical information.

Difference between revisions of "Linux ArtNet Node"

From wiki.openlighting.org

Jump to: navigation, search
(download URL doesn't work anymore, use github sources)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[http://attain.servemp3.com/view/tao-sports-uk.html tao sports uk] [http://undeaf.servemp3.com/lib/jonsi.html jonsi] [http://casket.servemp3.com/tree-limb-branch.htm tree limb branch trimmer] [http://demean.servemp3.com/content/usdirectory.html usdirectory] [http://casual.servemp3.com/view/pulitzer-winning.html pulitzer winning journalist james] [http://undeaf.servemp3.com/lib/jack-skellington.html jack skellington screensaver] [http://strut.servemp3.com/lib/psychologist.htm psychologist robin smith] [http://deity.servemp3.com/sato-cl408e-printer.html sato cl408e printer] [http://sliver.servemp3.com/topic/shadow-of-the.html shadow of the comet] [http://artist.servemp3.com/small/new-modular-home.html new modular home prices] [http://exits.servemp3.com/engin-asterisk.html engin asterisk] [http://casual.servemp3.com/view/apple-cider-press.html apple cider press plans] [http://artist.servemp3.com/small/teasing-to-please.html teasing to please] [http://undeaf.servemp3.com/lib/university-of-ibadan.html university of ibadan] [http://gather.servemp3.com/blog/70-download.html 7.0 download free winzip] [http://deity.servemp3.com/jewelers-in.html jewelers in missouri] [http://artist.servemp3.com/small/search-our-site.html search our site] [http://bibble.servemp3.com/article/texas-nameplate.html texas nameplate company inc] [http://barnes.servemp3.com/topic/pain-in-lower-left.htm pain in lower left back area] [http://artist.servemp3.com/small/annoying-roommate.html annoying roommate] [http://priam.servemp3.com/alden-illinois.html alden illinois] [http://artist.servemp3.com/small/window-mobile.html window mobile browser] [http://gather.servemp3.com/blog/sponge-bob-3.html sponge bob 3] [http://sliver.servemp3.com/topic/strider-aragorn.html strider aragorn] [http://casual.servemp3.com/view/ktm.html k.t.m] [http://barnes.servemp3.com/topic/nearby-landforms.htm nearby landforms] [http://suffic.servemp3.com/anchor-medical.htm anchor medical] [http://deity.servemp3.com/extraccion-por-arrastre.html extraccion por arrastre de vapor] [http://prief.servemp3.com/text/mercedes-clk.html mercedes clk car] [http://artist.servemp3.com/small/index-of-swingers.html index of swingers image] [http://fatuus.servemp3.com/styles/jonah-bible-stories.html jonah bible stories] [http://priam.servemp3.com/enterprisenetwork.html enterprisenetwork] [http://attain.servemp3.com/view/asa-race-car.html asa race car for sale] [http://undeaf.servemp3.com/lib/embassy-of-pakistan.html embassy of pakistan in antalya] [http://attain.servemp3.com/view/surfside-tx.html surfside tx beach rental] [http://bibble.servemp3.com/article/mark-tansey-poster.html mark tansey poster] [http://suffic.servemp3.com/emergency-vehicle.htm emergency vehicle driver training] [http://casket.servemp3.com/anderson-brett.htm anderson brett michaels movie pam] [http://exits.servemp3.com/and-geoscientists.html and geoscientists] [http://casket.servemp3.com/pale-blonde-hair.htm pale blonde hair] [http://demean.servemp3.com/content/tarzan-is-handsome.html tarzan is handsome tarzan is strong] [http://priam.servemp3.com/maltese-picture.html maltese picture shitzu] [http://barnes.servemp3.com/topic/molly-hachet.htm molly hachet] [http://artist.servemp3.com/small/learning-program.html learning program sylvan] [http://barnes.servemp3.com/topic/microtech-alarm.htm microtech alarm] [http://priam.servemp3.com/motad-exhausts.html motad exhausts] [http://demean.servemp3.com/content/star-wrs-episode.html star wrs episode 3] [http://auger.servemp3.com/install-sound.html install sound driver] [http://suffic.servemp3.com/ti-82-calculator.htm ti 82 calculator instructions] [http://deity.servemp3.com/two-grenadiers.html two grenadiers] [http://auger.servemp3.com/icy-hot-stuntaz.html icy hot stuntaz download] [http://barnes.servemp3.com/topic/usda-forest-service.htm usda forest service fire and aviation web site] [http://casket.servemp3.com/mariemont-theatre.htm mariemont theatre cincinnati ohio] [http://casket.servemp3.com/vista-del-sol.htm vista del sol lng terminal] [http://sliver.servemp3.com/topic/mcgregor-tourney.html mcgregor tourney] [http://auger.servemp3.com/umbrellagirls-usa.html umbrellagirls usa] [http://attain.servemp3.com/view/active-movie-download.html active movie download] [http://priam.servemp3.com/quilt-label.html quilt label ideas] [http://gather.servemp3.com/blog/tel-drug.html tel drug] [http://undeaf.servemp3.com/lib/soap-leg-cramps.html soap leg cramps] [http://camel.servemp3.com/articles/mesa-boogie-dc5.html mesa boogie dc5] [http://prief.servemp3.com/text/scorch-games.html scorch games] [http://demean.servemp3.com/content/vb-net-substring.html vb net substring] [http://exits.servemp3.com/red-room-studios.html red room studios nanaimo] [http://barnes.servemp3.com/topic/machine-leasing.htm machine leasing] [http://casket.servemp3.com/listen-to-my-best.htm listen to my best friends wedding soundtrack] [http://casket.servemp3.com/artificial-glass.htm artificial glass rabbit vagina] [http://fatuus.servemp3.com/styles/santa-babara.html santa babara airport] [http://undeaf.servemp3.com/lib/kenwood-corporation.html kenwood corporation] [http://demean.servemp3.com/content/john-brandon-28.html john brandon 28 stone] [http://barnes.servemp3.com/topic/loon-mountain.htm loon mountain condo] [http://priam.servemp3.com/learn-digital-photography.html learn digital photography online] [http://barnes.servemp3.com/topic/picture-of-chinese.htm picture of chinese invention] [http://artist.servemp3.com/small/us-news-and-world.html us news and world report law school ranking] [http://undeaf.servemp3.com/lib/invasion-of-privacy.html invasion of privacy email] [http://casual.servemp3.com/view/swivel-ball.html swivel ball links] [http://artist.servemp3.com/small/waco-art-center.html waco art center] [http://casual.servemp3.com/view/nebraskan.html nebraskan] [http://priam.servemp3.com/mot-v220-slv-gsm.html mot v220 slv gsm] [http://prief.servemp3.com/text/kids-patio-furniture.html kids patio furniture] [http://artist.servemp3.com/small/tenaha-high-school.html tenaha high school] [http://artist.servemp3.com/small/equipment-georgia.html equipment georgia in restaurant sales] [http://camel.servemp3.com/articles/southern-california.html southern california regional occupational center] [http://hopest.servemp3.com/html/tl-marketing.html tl marketing] [http://strut.servemp3.com/lib/vallle.htm vallle] [http://strut.servemp3.com/lib/quaker-parrot-eats.htm quaker parrot eats my hair] [http://casket.servemp3.com/encyclopedia-free.htm encyclopedia free shakur tupac wikipedia] [http://camel.servemp3.com/articles/nutrition-consultant.html nutrition consultant courses] [http://gather.servemp3.com/blog/pure-volume-the.html pure volume the academy is] [http://suffic.servemp3.com/notre-dame-football.htm notre dame football notre dame] [http://fatuus.servemp3.com/styles/social-security.html social security wage limits] [http://casket.servemp3.com/arizona-boulders.htm arizona boulders course golf phoenix] [http://casual.servemp3.com/view/now-that-what.html now that what i call music 13] [http://camel.servemp3.com/articles/private-castings.html private castings 38] [http://hopest.servemp3.com/html/swisshotel-berlin.html swisshotel berlin germany] [http://gather.servemp3.com/blog/kiss-lyrics.html kiss lyrics detroit rock city] [http://suffic.servemp3.com/justin-waugh.htm justin waugh] [http://gather.servemp3.com/blog/i-illuminated.html i illuminated keyboard rock slim] [http://bibble.servemp3.com/article/lavender-plant.html lavender plant sales] [http://artist.servemp3.com/small/library-public.html library public sachse]
 
 
Written by Thomas Hinterberger and Simon Newton.
 
Written by Thomas Hinterberger and Simon Newton.
  
Line 14: Line 13:
 
For installation follow:  http://www.howtoforge.com/perfect_setup_debian_sarge (enter linux26 at the boot prompt to install a 2.6 kernel)
 
For installation follow:  http://www.howtoforge.com/perfect_setup_debian_sarge (enter linux26 at the boot prompt to install a 2.6 kernel)
  
Enter sometime useful for the hostname like "node1", you can leave the domain name blank.
+
Enter something useful for the hostname like "node1", you can leave the domain name blank.
  
 
Set up a user other than root on the machine.  
 
Set up a user other than root on the machine.  
Line 55: Line 54:
  
 
  # exit
 
  # exit
  $ wget http://www.erwinrol.com/downloads/software/dmx_usb_module-20040914.tar.gz
+
  $ git clone git://github.com/lowlander/dmx_usb_module.git
$ tar -zxf dmx_usb_module-20040914.tar.gz
 
 
  $ cd dmx_usb_module
 
  $ cd dmx_usb_module
 
  $ make
 
  $ make
Line 80: Line 78:
  
 
  # reboot
 
  # reboot
 
  
 
== Starting the Node ==
 
== Starting the Node ==

Latest revision as of 03:20, 25 April 2012

Written by Thomas Hinterberger and Simon Newton.

This HOWTO outlines a method for creating an ArtNetNode on an Intel/AMD32 Computer (minmum proved: PI/200 32 MB Ram/400MB Harddisk ) using an Enttec Open DMX USB Interface (not the Pro). For instructions on how to install on to a USB stick see http://d-i.pascal.at/

This howto uses the Debian Sarge Netinstall-CD-Image (100 Mb) - http://www.debian.org/releases/sarge/debian-installer/

The computer must be connected to the Internet to download the packages. Its easiest if you have a DHCP server on your network (most routers come with this feature).

Prerequisites: None. It helps if you know Linux a bit and have installed Debian before, but there is plenty of other documentation for that.

Initial Debian Install

For installation follow: http://www.howtoforge.com/perfect_setup_debian_sarge (enter linux26 at the boot prompt to install a 2.6 kernel)

Enter something useful for the hostname like "node1", you can leave the domain name blank.

Set up a user other than root on the machine.

On page 2 of the above guide, for the screen "Debian Software Configuration" , don't check any boxes. We'll install the other packages later.

On the Configuration Exim v4 you choose "No configuration at this time".

After the install completes it will present you with a login prompt. It's now time to install the ArtNet software and DMX driver.


Installation of Lighting Software

Log in with the user name and password you set up previously.

now you type to the console with the following convention:

  1. command Type command as root- to get root type 'su' followed by the root password

$ command Type command as user - to get user type exit

Edit the /etc/apt/sources.list file, you'll need to be root to do this:

$ su
# nano /etc/apt/sources.list

Add add the following line:

deb http://www.nomis52.net/data/debian ./

If you used nano to edit, you can save the file with ctrl o + enter . Then exit nano with ctrl x.

Update the package lists and install the required software:

# apt-get update
# apt-get install kernel-headers-$(uname -r) g++ make libartnet1 artnet-examples

Make a note of the version of your kernel-headers that are going to be installed.

Exit the root account, and download and compile the dmx_usb driver:

# exit
$ git clone git://github.com/lowlander/dmx_usb_module.git
$ cd dmx_usb_module
$ make
$ cd ..

Now we need to install the kernel module. Adjust these lines for your system using the version of kernel headers that were installed.

$ su
# cp dmx_usb_module/dmx_usb.ko /lib/modules/2.6.X-Y-386/kernel/drivers/usb/serial/dmx_usb.ko
# rm /lib/modules/2.6.X-Y-386/kernel/drivers/usb/serial/ftdi_sio.ko
# cd /dev
# mknod -m 666 dmx0 c 180 192

Add the following line to /etc/modules so that the dmx_usb module is loaded on startup:

 dmx_usb.ko

Again, you can do this using nano

# nano /etc/modules

Finally reboot the machine

# reboot

Starting the Node

Login to the machine with your username and password

Check that the dmx_usb module is loaded:

$ lsmod | grep dmx_usb
dmx_usb                11012  0
usbcore               114176  8 dmx_usb,ftdi_sio,usbserial,usb_storage,usbhid,uhci_hcd,ehci_hcd

You should see two lines like above. This shows that the driver has been loaded correctly.


Plug in the Enttec Open DMX USB Interface. Run dmesg and check that the device was initialized corrected:

$ dmesg
   ... heaps of output ...
usb 3-1: new full speed USB device using uhci_hcd and address 5
usb 3-1: configuration #1 chosen from 1 choice
/home/simon/dmx_usb_module/dmx_usb.c: DMX USB device now attached to dmx192

Right at the end you should see something like the 3 lines above. This means that the widget has been recognised by the dmx_usb driver.

Start the artnet node by running:

$ artnet_usb

By default the node starts up using ArtNet subnet 0 and port 0, this corresponds to Universe 0 in Magic Q PC

Running artnet_usb with the -v option gives you debug information. The following arguments are supported:

 -a <ip-address>        IP address to listen on (defaults to the address
                        of the first non loopback interface)
 -c <config_file>       Config file to use for node name and port settings
 -d <dmx-device>        device for dmx output (default /dev/dmx0)
 -p <port-address>      port address for output universe (default 0)
 -s <subnet-address>    subnet address for output universe (default 0)
 -v                     be verbose (prints data for first four channels)
 -z                     Run in a new process (handles widget disconnects cleanly)

The universe address of the port is made up from the ArtNet subnet address and the ArtNet port address. The four least significant bits are the port address, the four most significant are the subnet address.

For example :

$ artnet-usb -p 3 -s 2

sets the universe address to 0x23


Testing with DMX Workshop

Start DMX Workshop and verify that the node appears in the connected devices list.


Using the node with Magic Q PC

If you enable now Artnet Universe 0 in Magic Q from ChamSys, you have a fully functioning one universe DMX512 interface. This works much better than MagicQ alone with the Open DMX USB Windows drivers. You can also use as many universes as ArtNet supports (but at the moment only one Open DMX USB device per node is supported)