PDA

View Full Version : xPL Not Sending IR Codes?



AndyMc
2008-08-02, 20:08
Hi All,

SqueezeCenter "appears" to have a bug that stops it sending IR (keys or raw) via xPL.

I have just installed SqueezeCenter 7.1 after running the old 6.x series. I have enabled the xPL plugin and also set the IR codes to both. This was working before I moved from 6.x.

Currently (on 7.1), I am seeing xPL broadcasts showing track info and heartbeats. I am also able to send xPL commands that are obeyed by SqueezeCentre. The problem is solely the error below when SqueezeCentre attempts to broadcast the IR key presses.

The server.log is showing the error:
"Slim::Plugin::xPL::Plugin::xplExecuteCallback (575) Warning: Called without a client: "

Looking in the code, the xPL Plugin has been called without a client set by the notify() code when a IR remote key is pressed.

Does anybody know how to fix this? I have had a brief look, but being new to the codebase I am on a steep learning curve!

Thanks in advance,
Andy.

katmic
2009-03-11, 16:28
I get also this error message:

[09-03-12 00:12:41.5633] Slim::Plugin::xPL::Plugin::xplExecuteCallback (574) Warning: Called without a client: menustatus

I'm using SC Version: 7.3.2 - 24695.

Is this in newer Versions solved?

I try to send a text command from xPLHal, but the text isn't displayed on the display. Any ideas?

greetings,
katmic

AndyMc
2009-03-11, 23:41
That warning is just that. The xPL code has not been fully updated to the current architecture. Without fully checking I don't think it is a "showstopper" for you.

If you still are having problems, please answer the following fault finding questions:

How did you send the text command?

Can you see xPL messages coming from SqueezeCenter?

Have you checked using xPL_Logger (or similiar) that the xPL message made it to the hub running on the machine that SqueezeCenter is running on?

Have you tried using xPLSend (or similiar) to send an xPL message from the command line?
eg.
./xplsend -c osd.basic command=write text='test message'


Andy.

katmic
2009-03-12, 01:10
I will try this today evening. Indeed I think that SC doesn't receive the xpl messages.
I use SC on a Synology 207+ NAS. I cannot run java on the NAS. So is there a xpl logger application to test that the xpl messages are received on the NAS and SC?

greetings
Michael

AndyMc
2009-03-12, 03:12
Indeed, you can download Gerry Duprey's xPLLIB http://www.xpl4java.org/xPL4Linux/downloads/xPLLib.tgz from his xPL website. This is C code for Linux: http://www.xpl4java.org/xPL4Linux/

This contains C source code for the above mentioned logger and xPLSend applications.

IMPORTANT: Ensure that you are running a hub on the NAS box.

I assume you are not currently running a hub for SqueezeCenter due to the lack of Java - note that the download listed above also contains a hub written in C. (His page also contains a precompiled Hub, which might be the only fix you need......)

katmic
2009-03-12, 15:25
IMPORTANT: Ensure that you are running a hub on the NAS box.

I assume you are not currently running a hub for SqueezeCenter due to the lack of Java - note that the download listed above also contains a hub written in C. (His page also contains a precompiled Hub, which might be the only fix you need......)

The mentioned precompiled hub doesn't run on Synology (Arm platform). So I downloaded the source of xPLLIB and tried to cross compile it on a Intel Linux PC. With linking I get an error message. Does anybody know what I'm doing wrong?



...
/usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-gcc -I/usr/local/arm-marvell-linux-gnu/include -O2 -pedantic -Wall -c xPL-config.c
/usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-gcc -I/usr/local/arm-marvell-linux-gnu/include -O2 -pedantic -Wall -c xPL-hub.c
Creating libxPL.so...
/usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-ld -L/usr/local/arm-marvell-linux-gnu/lib -o libxPL.so xPL-io.o xPL-utils.o xPL-service.o xPL-message.o xPL-listeners.o xPL-store.o xPL-config.o xPL-hub.o
/usr/local/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-ld: warning: cannot find entry symbol _start; defaulting to 00008074
xPL-io.o: In function `xPL_getFairlyUniqueIdent':
xPL-io.c:(.text+0x20): undefined reference to `gettimeofday'
xPL-io.c:(.text+0x54): undefined reference to `strcpy'
xPL-io.c:(.text+0x60): undefined reference to `strcat'
...



greetings,
michael