Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get examples to work #35

Closed
amackera opened this issue Oct 16, 2013 · 2 comments
Closed

Can't get examples to work #35

amackera opened this issue Oct 16, 2013 · 2 comments

Comments

@amackera
Copy link

Hello,

I'm trying to get the examples to work that ship with libmonome.

I can connect to my monome with serialosc, and even monomeserial. However, when I run the compiled example programs there is no output on the monome, and none in my console either.

uname -a reports: Linux ragnarok 3.11.4-1-ARCH #1 SMP PREEMPT Sat Oct 5 21:22:51 CEST 2013 x86_64 GNU/Linux

Any advice on how to go about debugging?

@simonvanderveldt
Copy link
Member

simonvanderveldt commented Sep 14, 2017

@amackera I know this is an old issue, but I just ran into this issue as well. Seems like we have/had the same issue.
What does serialoscd tell you on the console? On which port is your grid registered? serialoscd should say something like

serialosc [m<serialnr>]: connected, server running on port <someport>

The issue lies within the examples, which are hardcoded to expect the monome to be reachable on port 8080 (see for example

#define DEFAULT_MONOME_DEVICE "osc.udp://127.0.0.1:8080/monome"
) and the fact that your grid probably isn't registered on that port.

So to make the examples work your grid should listen to port 8080 (on the same machine). To do so stop serialoscd and edit ~/.config/serialosc/m<serialnr>.conf.
Update it so the port setting in the server section is set to 8080.

server {
  port = 8080
}

Now start serialoscd again, plugin your grid and you should see that it's now made available on port 8080

serialosc [m<serialnr>]: connected, server running on port 8080

Now the examples should work.

A quick overview of what they do/should show you:
./test should give a nice lightshow
./simple seems to do nothing, but will light up the buttons you press
./life currently not working, but normally you just press a bunch of buttons at once and watch it unfold. See #49 for a fix for it
./torture Probably what it says on the tin, crashes my grid pretty much immediately :(

@tehn tehn closed this as completed Sep 22, 2017
@tehn
Copy link
Member

tehn commented Sep 22, 2017

examples need an overhaul if this is the case. and the general structure of the examples.

libmonome examples should be non-serialosc examples. any example that requires serialosc seems like it should live in the serialosc repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants