Closed amackera closed 7 years ago
@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 https://github.com/monome/libmonome/blob/a3ae9aa7a6b38cfdcd7539a5a234b3065fc10f41/examples/test.c#L28) 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 :(
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.
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?