New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Controlling the LED (without the bubba package)

Want new functionality in Bubba? Discuss it here.
Locked
andrewf
Posts: 5
Joined: 03 Apr 2007, 18:55
Location: Glasgow, Scotland
Contact:

Controlling the LED (without the bubba package)

Post by andrewf »

Hi,

I've uninstalled the 'bubba' package, and I'd _really_ like for the led to stop flashing… Is there a way to control the LED? Even if it means catting files to /proc, or something...

Failing that, any chance we could download the program which controls the LED?

Best regards,

–Andrew Forrest
hotep
Posts: 9
Joined: 16 Apr 2007, 14:03

Post by hotep »

There's a thread called "How to control your LED" in the support forum.

He's a quote from it:

Just write this in the terminal.
On: /etc/init.d/led_on
Off: /etc/init.d/led_off
Blink: /etc/init.d/led_blink

end quote.

I don't have a Bubba yet. But I'm interested in why you removed the Bubba package. Maybe you don't use it so it is just consuming resources?
andrewf
Posts: 5
Joined: 03 Apr 2007, 18:55
Location: Glasgow, Scotland
Contact:

No, that's not it

Post by andrewf »

Yes.

But no.

/etc/init.d/led_* are all part of the 'bubba' package. So I don't have them any more!

Short answer to why I removed it is that I removed another package which it depends on ('samba' I think). Was just going through the process of removing all services which I’m not going to use. The machine is exposed on the Internet, you see, so the less software on it the better.
hotep
Posts: 9
Joined: 16 Apr 2007, 14:03

Post by hotep »

Sorry about that. I guess we'll have to find the source code. But I haven't been able to find any of the Bubba source code.
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Hi,

The reason for sources not being in our repos is due to the fact that we don't build our packages in the normal debian source but rather build a binary package out of our version system.

But an "easy" way to get access to the led is to extract the gpioapp from the bubba package (or the filesystem if the package is installed), its the /usr/sbin/gpioapp binary you want.

Its used to access some hw at bubba. If you look at the init scripts that uses it you can get see how its used. A short explanation here run gpioapp (as root):

"Normal" blink

Code: Select all

/usr/sbin/gpioapp blink 10000 10000
The two numerical values are the settings for the PVM used for blinking. Changing these values will alter the on and off period of the led.

Led of

Code: Select all

/usr/sbin/gpioapp off
Led on

Code: Select all

/usr/sbin/gpioapp on
/Tor
Co-founder OpenProducts and Ex Excito Developer
andrewf
Posts: 5
Joined: 03 Apr 2007, 18:55
Location: Glasgow, Scotland
Contact:

Thanks!

Post by andrewf »

That's brilliant, thanks. Just what I need. (And I might even get fancy one of these days and make it flash every time someone requests a page on my website :-)

--Andrew
hotep
Posts: 9
Joined: 16 Apr 2007, 14:03

Post by hotep »

The reason for sources not being in our repos is due to the fact that we don't build our packages in the normal debian source but rather build a binary package out of our version system.
What license do you use for excito code?

Surely there must be some GPL code in your repository. In which case you are distributing GPL code. Doesn't that mean you need to make the GPL source available?
unavowed
Posts: 4
Joined: 13 Oct 2007, 13:05

Post by unavowed »

I would like to know the answer to this question too: Under what license are the custom excito programs distributed?
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

For now we release our web-admin as our proprietary application as bundled with Bubba. The backend of the download manager, the ftd application is unreleased GPL.

If anyone is interrested in any specific parts, just let us know and we will see what we can do.

/Tor
Co-founder OpenProducts and Ex Excito Developer
Locked