pj+ wrote:Yes, please create application with network permissions.
My pleasure. Without the UCI client I obviously cannot do any testing (is it possible for you to share the client with us?), but please try the following Chess for Android with network permissions, and let me know how that works for you:
to use netchess's terms, the "engineClient" will be the android phone/emulator. it will connect to an "engineServer".
If you run engineClient/engineClient.exe, you will be asked for a name, ip address, and port -- where engineServer is running.
JesseGersenson wrote:I sent a link for the application, netchess, which I use.
Do you have a client compiled for Android (ARMv5TE) that behaves as an UCI engine, but "under water" connects to a chess server? I don't see an ARM binary on the link you provided, and have no TCL compiler for Android. I was hoping pj+ could provide an ARM chess client.
AartBik wrote:[
My pleasure. Without the UCI client I obviously cannot do any testing (is it possible for you to share the client with us?), but please try the following Chess for Android with network permissions, and let me know how that works for you
Thanks Aart.
It did not work, still permission problem. I even tried to set client as setuid root, and run as it as app user, still did not work. It is connecting only as root.
When I wrote client I did not know that Tcl/Tk exists for android. Here is another one http://www.patthoyts.tk/tclkit/ . Maybe it is better to use it, I did not try.
Client is quick and dirty and tested very little. I had hostname and port hardcoded, but it was easy to change to command line input for you to try. http://www.speedyshare.com/files/269501 ... ndroid-cli
On "quit" it should quit engine running on server, kill client and leave server running for next connection.
when I am trying to import client program in Chess for Android, which is suppose to connect to port of external computer and behaves for all purposes as uci engine running on that computer, client program is not getting imported. On the other hand, on android I can run client in the shell,, and it is working very well. What is the problem here? Is Chess for Android somehow blocking external connections, permission problem or something else? Do you know how to solve it?
In shell I was running client as root
I think stockfish has this capability, have you check it?
on server (192.168.1.1)
1. mknod fifo
2. nc -l 7777 0<fifo | stockfish 1>fifo
on device
1. nc 192.168.1.1 7777
i think that should work. can't figure out how to make
nc 192.168.1.1 7777
into an executable script which could then be loaded as an engine.
i log in via ./adb shell
... then what?
pj+ wrote:
Thanks Aart.
It did not work, still permission problem. I even tried to set client as setuid root, and run as it as app user, still did not work. It is connecting only as root.
Actually it does connect. Not sure why it did not work first time. But I first wiped out chess for android and permblocker and then installed them again, and now client can connect to the socket while run by Chess for Android. I see Chess for Android sending uci and getting response, however, it does not recognize client as chess engine. It maybe due to some little thing like end of line, not sure how Chess for Android does parsing.
JesseGersenson wrote:pj+ could you please repost the file. The link to speedshare does not work.