Let me first explain my config...
I wanted to make a remote on my phone for my PS3. So far, I have been using Unified Remote but there are many products with the same concept. The Remote control server is installed on a Windows machine. I also have on my LAN a loyal Pogoplug E02 (Armv5 board with 4 USB and 256 Mb RAM) running Archlinux for the last 3 years and serving as a NAS.
My idea was to put a BT dongle on the Linux box and use it as a Gimx server. I compiled/installed Gimx from source on the plug. It might not be as easy as having packages and a few things need to be adapted but it does not take long to figure it all out. At the end of the day I have a perfectly functional Gimx command-line-only server. At this stage, I fell in love with the project.
I start the server on a SSH console (Linux box):
Code: Select all
gimx --config SixaxisUsb.xml --hci 0 --nograb -s 192.168.1.50:9615 -b XX:XX:XX:XX:XX:XX
Code: Select all
gimx -d 192.168.1.50:9615 --event "up(255)"
gimx -d 192.168.1.50:9615 --event "up(0)"
So far so good. Everything works like a charm. Now, here are 2 little problems I have with this config.
1) How should I start the Gimx "server"? I tried to turn it into a systemd service (which can conveniently be started remotely). No error but it does not work either. I thought of writing a small TCP server, run it as a daemon and call it to start Gimx But I am unclear whether I will be able to run Gimx in a non-interactive mode. Am I missing something?
2) When using Gimx in Windows with the -d option as quoted above, if the remote Gimx does not reply, it just sits there forever. If I use the same command locally I get "Recvfrom: Connection refused" and it exits right away. Is there a time-out option I could set? Also, the error would be nice actually since that would give the "status" of the remote server (NO connection need to start it).
Of course, the alternative is probably to build a USB adapter and plug it directly in the Windows machine. I confessed having flashed an Arduino Micro Leonardo tonight and it works also beautifully. But it would just be much easier in my current setup if I could actually connect wirelessly to the PS3. Hence I still favor the little Linux box and the BT dongle.
Thank you for reading!