Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
uberbus:moodlamp [2011/02/13 10:03] – udev rules 2001:a60:10ff:c401:4eed:deff:fe2d:4546uberbus:moodlamp [2015/12/02 20:32] – [Preparations] 9r
Line 1: Line 1:
-To use moodlamps with the IPv6 enabled uberbus you have to follow the steps outlined on this page.+To use moodlamps with the IPv6 enabled [[start|uberbus]] you have to follow the steps outlined on this page.
  
 ====== Preparations ====== ====== Preparations ======
Line 5: Line 5:
  
 To use the lamp with the uberbus a new firmware has to be flashed. To build your new firmware follow these steps on a Debian based Linux computer: To use the lamp with the uberbus a new firmware has to be flashed. To build your new firmware follow these steps on a Debian based Linux computer:
 +
 +:!: Note: There seems to be an obscure issue with current versions (tested with 4.9.2 and 5.2.0) of gcc that results in non-functional firmware even though the build process finishes successfully. Working firmware can be build using gcc 4.5.3 included in e.g. ubuntu precise.
  
 <code> <code>
-apt-get install gcc-avr avr-libc avrdude make subversion +apt-get install gcc-avr avr-libc avrdude make git 
-svn co https://brezn.muc.ccc.de/svn/uberbus/ +git clone git://github.com/muccc/uberbus.git 
-cd uberbus/trunk/fimrware/moodlamp-rf+cd uberbus/fimrware/moodlamp-rf
 make make
 </code> </code>
Line 29: Line 31:
 If your lamp has a RF chip you have to set the jumper JP1 on the 6 pin connector on the bottom of the lamp to enable it. See the following picture: If your lamp has a RF chip you have to set the jumper JP1 on the 6 pin connector on the bottom of the lamp to enable it. See the following picture:
  
-TODOinsert picture+{{:uberbus:moodlamp_rf-jumper.jpg?250}}
  
 ====== Software ====== ====== Software ======
Line 45: Line 47:
  
 <code> <code>
-cd uberbus/trunk/software/simplelamp+cd uberbus/software/simplelamp
 ./simplelamp.py /dev/ttyUSB0 ./simplelamp.py /dev/ttyUSB0
 </code> </code>
Line 84: Line 86:
  
 ===== ubd ===== ===== ubd =====
-When running an installation using ubd have a look at its wiki page for instructions.+When running an installation using ubd have a look at its [[uberbus:ubd|wiki page]] for instructions.
  
 ====== Clients ====== ====== Clients ======
Line 91: Line 93:
 Currently there are two folders with example scripts for lamps attached to the uberbus: Currently there are two folders with example scripts for lamps attached to the uberbus:
 ===== Python clients ===== ===== Python clients =====
-Under uberbus/trunk/software/pythonlib a small library to access the uberbus and lamps attached to the ueberbus is provided.+Under uberbus/software/pythonlib a small library to access the uberbus and lamps attached to the ueberbus is provided.
  
 See the Readme file included in this directory on how to use those scripts. TODO: create Readme file See the Readme file included in this directory on how to use those scripts. TODO: create Readme file
Line 97: Line 99:
 A simple example to fade a lamp to a specified color in a specified time is fade.py. You can use it the following way: A simple example to fade a lamp to a specified color in a specified time is fade.py. You can use it the following way:
 <code> <code>
-uberbus/trunk/software/pythonlib/fade.py <IPv6 address of lamp> <Red value> <Green value> <Blue value> <Time in seconds>+uberbus/software/pythonlib/fade.py <IPv6 address of lamp> <Red value> <Green value> <Blue value> <Time in seconds>
 </code> </code>
  
 The fadeexample script fades a lamp in a loop by sending fade commands to an IPv6 address associated with a lamp. The fadeexample script fades a lamp in a loop by sending fade commands to an IPv6 address associated with a lamp.
 <code> <code>
-uberbus/trunk/software/bashscripts/fadeexample <IPv6 address of lamp> <Time in seconds>+uberbus/software/bashscripts/fadeexample <IPv6 address of lamp> <Time in seconds>
 </code> </code>
  
Line 111: Line 113:
  
 ===== bash clients ===== ===== bash clients =====
-Under uberbus/trunk/software/bashscripts some examples using bash and netcat are provided.+Under uberbus/software/bashscripts some examples using bash and netcat are provided.
  
 The blink script blinks a lamp by sending color commands via UDP to an IPv6 address associated with a lamp. The blink script blinks a lamp by sending color commands via UDP to an IPv6 address associated with a lamp.
  
 <code> <code>
-uberbus/trunk/software/bashscripts/blink <IPv6 address of lamp>+uberbus/software/bashscripts/blink <IPv6 address of lamp>
 </code> </code>
  
 When using this script with the simplelamp server all lamps connected via RS485 or in reach of the wireless transmitter will start to fade if When using this script with the simplelamp server all lamps connected via RS485 or in reach of the wireless transmitter will start to fade if
 they receive the commands. they receive the commands.