Server program not responding correctly

Hello people!

I am writing a Java program that can control the robotic arm by connecting to the RIOS server and sending commands. I first wrote a little test program to see how it works out.
Tested the commands “ssc-32:ver” and “”; they are working correctly. However, when i send “project:list”, there is no response. Same for sequence and step “:list”.
Server log says that command is received, but nothing is sent back!
At first i though the problem appears because i was testing with the virtual robot arm, but when I connected the real thing, it still wont send me the lists.

Any help is appreciated!

Hello Vsomlev,

You must enter the “Play” form in RIOS for these commands to work
“” and “ssc-32:ver” are working on any RIOS form, but all other commands needs RIOS to be in the “Play” form.

to check if RIOS is in the correct form from your Java program, send a “” command, if RIOS return “Ready” , the “project:list” should works fine, and all other commands too :wink:

Thank you, Laureatus! It is working as you explained.

But I have another question. :wink: When I start playing a project, it plays it alright, but at the end of the project, the server doesn’t return anything and doesn’t accept any more commands. Also, is it possible to send a “emergency:stop” while playing a project/sequence?

Yes, emergency stop, pause/resume and stop are working while playing a project.

you can test if a project if playing sending some commands, it will return Busy" as long as a project is playing then Ready at the end

you can send these commands and test the result every 500ms for example.

You can take a look at the socket client demo C++ code to learn more.

Where can I find this demo code? :confused:

This Demo program is included in RIOS V1.05…

if this demo program is not included in your RIOS version, download the update for free here :
lynxmotion.com/images/files/firmware/rios105u.zip
The demo was not present on some V1.05, but the update will fix this.

unzip to obtain the “rios105u.exe” file then run this auto extracting archive and click “Unzip”

the demo program will be in
“C:\Program Files\RIOS_SSC-32\Socket Client Demo” by default

Thanks for pointing me to the demo. I haven’t seen it yet - the problem was in my code. I was expecting a response to the “play” command and that was stalling everything. Fixed.