[SOLVED] [RASPBIAN]-[MAC] connected to boblightd - nothing happens

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Bub4 Offline
Member
Posts: 50
Joined: Aug 2011
Reputation: 0
Location: Germany
Post: #1
Hello All,

Following my setup:
Mac Mini 2010, OS 10.7.5 - xbmc 12.3
Arduino Uno with 50 WS2801 LEDs
raspberry (raspbian) -> for daemon ONLY

boblightd is running on raspberry and xbmc connects to boblightd succesfull.
Here is my boblight.conf: http://pastebin.com/L0yJ7wcC


I made the boblightd by following a german guide:

Quote:sudo apt-get update
sudo apt-get install make gcc g++ subversion

Quote:svn checkout http://boblight.googlecode.com/svn/trunk/ /home/pi/boblight_source

Quote:cd /home/pi/boblight_source/
./configure --without-portaudio --without-x11 --without-libusb

Quote:make; sudo make install

Quote:cd ~
wget https://github.com/brooc/boblight-rpi/ra...t-dispmanx
chmod 755 boblight-dispmanx

Quote:sudo nano /etc/rc.local

Quote:/usr/local/bin/boblightd -f &
/home/pi/boblight-dispmanx -b on -o interpolation=1 -o speed=90 -o threshold=35 -o autospeed=0 -o saturation=1 -o value=1 -p 100 -i 0.1 -f /dev/null &



Unfortunately nothing happens with the LEDs on xbmc.
And I really have no idea why.
I checked if the serial port and IP is correct and both definitely is.
If I do the boblight-constant command, raspberry tells me that "Connection to boblightd opened"

Does anyone have an idea what I did wrong?

Thank you

EDIT: Just want to add some more Information.
If I run the standalone adalight/processing tool, the lights work properly.

I used the guide above because it made sense to me.
If anyone has another guide, which describes how to setup a boblight daemon, I would be happy to try that!
...I'm not sure, if the dispmanx option make sense, because I read this in combination with raspbmc only.
(This post was last modified: 2014-02-26 08:15 by Bub4.)
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,208
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #2
boblight-dispmanx <- this is a client - you don't even need that when you want to use the addon (also it could interfer with it - so don't use it).

just start the boblightd (/usr/local/bin/boblightd -f &) and then start XBMC. Does this work then?

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Bub4 Offline
Member
Posts: 50
Joined: Aug 2011
Reputation: 0
Location: Germany
Post: #3
Hi Memphiz,

just tried with boblightd only.
I removed the dispmanx from start-up as first step and tried again
As second step I deleted boblight-dispmanx and tried again.
Both unsuccessful, I'm afraid. LEDs stay dark
find quote
Bub4 Offline
Member
Posts: 50
Joined: Aug 2011
Reputation: 0
Location: Germany
Post: #4
Hi again,

I set the debug "on" just to look what happens:

http://pastebin.com/289V7bKd

Corresponding boblight.conf:
http://pastebin.com/CWzQUva9


Because I usually have an USB switch between the arduino and the Mac, I tried also the direct attach...
I checked if the tty.usbmodem Port is correct before I started boblight-constant.

Hope this helps
(This post was last modified: 2014-02-18 20:45 by Bub4.)
find quote
Bub4 Offline
Member
Posts: 50
Joined: Aug 2011
Reputation: 0
Location: Germany
Post: #5
Hi All,

I did some testing with an iMac and 10.9, because Maverick seems not to have all that problems during startup etc., but got the same result:
ERROR: ambilight: /dev/tty.usbmodemxxx: open() No such file or directory

I'll re-install raspbian an setup the Daemon again WITH libusb and boblight-x11.
Hope that this will help Big Grin

Thanks
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,208
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #6
Well it is obvious ... /dev/tty.usbmodemxxx is not there - seeems the device is called different (keep in mind it is case sensitive!)

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Bub4 Offline
Member
Posts: 50
Joined: Aug 2011
Reputation: 0
Location: Germany
Post: #7
Thanks Memphiz

I hoped that libusb includes some kind of USB drivers that may help at the connection.

But what else can I do as to ask the terminal: ls /dev/tty.* ?
I type-in what the terminal tells me. And there are no other USB devices...
So Terminal may not tell me the correct name of the serial port?
I checked the available serial ports in the Arduino Sofrware as well and this is always equivalent to Terminal.

I would appreciate, if you or someone else could give me some hint.

Thanks

edit:
Memphiz, I'm aware that you are a very busy man and I don't want you to spend much resource to my non-XBMC problem...
I'll, of course, ask google as well... Just want to let you know that.
Thank you for your support!
(This post was last modified: 2014-02-24 14:03 by Bub4.)
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,208
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #8
Plug in the arduino and then hit "dmesg" ... have a look at the last lines there it might show you where the devices is located in the /dev/ directory. At the worst you are missing a kernel driver for that arduino serial2usb converter. In that case you could just post the last lines of "dmesg" after plugging the arduino in...

Yes i am busy of course - but your problem only needs me to type some words - nothing i need to test or code for you (which would be the real time burner) - so i'm ok with that....

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Bub4 Offline
Member
Posts: 50
Joined: Aug 2011
Reputation: 0
Location: Germany
Post: #9
what I get is:

Quote:AppleUSBCDCACMData: Version number - 4.1.22, Input buffers 8, Output buffers 16
AppleUSBCDC: Version number - 4.1.22

after plugging in.

first tried "sudo dmesg"
then "sudo dmesg | grep -i usb"

Both brought the same

Thanks
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,208
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #10
I thought we are talking about raspbian ... try the same on raspbian ...

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Bub4 Offline
Member
Posts: 50
Joined: Aug 2011
Reputation: 0
Location: Germany
Post: #11
Ähm..
Sorry, but the daemon runs on raspbian. The arduino is plugged to the mac. I run the daemon over network to serve the Mac. So you ment that I have to hook-up the arduino to the raspberry to find out the port? That doesn't made sense to me...? However - I'll try that...

Tanks again
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,208
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #12
Ha you are confusing me.

The daemon (boblightd) has to run on the same device where the arduino is connected to. So imo - connect the arduino to the raspbian - get the /dev/tty.blahbah device - adapt the boblightd.conf on the raspbian with that device. Then connect your clients via network to the raspbian.

That's how it is ment to be done if you ask me.

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Bub4 Offline
Member
Posts: 50
Joined: Aug 2011
Reputation: 0
Location: Germany
Post: #13
Honestly

I Love You Memphiz!

Don't know how I could thought this Arduino has to be plugged to the Mac.
I'm sure sou think I'm stupid - Lololol

You gave me the hint! So I really Love You!
You have no idea how many hours I tried to get it work.

Kaum macht mans richtig, schon gehts!


Many many thanks
(This post was last modified: 2014-02-25 19:45 by Bub4.)
find quote