![]() |
Re: RoboDS First Test
[quote=raystubbs;1486768]
Quote:
|
Re: RoboDS First Test
[quote=lopsided98;1486808]
Quote:
|
Re: RoboDS First Test
I tried to test the app today with our robot, and I was able to get control, but I ran into a problem. After somewhere between 5-10 seconds, the robot would disable and I would have to toggle the enable/disable button to get it to start again. Also, sometimes it seemed to emergency stop and the only way I could get control again was to restart the robot. Do you have any idea what could be going on here, because I don't have much experience with the protocol? I'll try to dig through the network code soon and see if I can figure out what's going on.
I also pushed an update with the ability to switch layouts and a packet capture from while I was testing. |
Re: RoboDS First Test
Quote:
I don't remember what the constant is called or its default value, and can't check right now because I'm typing this from an ancient, phone with a tiny keypad. Ijll look at the code when I get the chance and try to give a better reply. |
Re: RoboDS First Test
I looked at the code, the constant
private final int DISCONNECT_DELAY = 1000; //Two secondscontrols how long the connection can last without receiving a valid packet from the rio, if the rio waits longer than 1000 (1 second) then the manager disconnects. Though the comment in the above code says "Two seconds" the code was changes since then and I guess I neglected to change the comment. The other major untested change I made is in when the packets are sent. In the original system I made the DS send a packet every 20 ms regardless of whether it received a packet from the rio or not, in the current system the manager establishes connection with the rio, then it waits for the rio to receive a packet from the rio and responds with a packet of its own. This system could move the packets time-stamp outside of when the rio expects to receive a packet. I don't think this should happen, but it might. So I recommend changing the DISCONNECT_DELAY to about 3000 and testing it before messing with the comm code. |
Re: RoboDS First Test
Quote:
I took a look at your capture, communication seems to continue throughout the first 10 seconds, of course I could not look at every packet. The packets seem to be enabled throughout and there doesn't seem to be any estop. If you could capture while you connect to the robot up to when the app disconnects, and not restart the connection then I might be able to figure it out. |
Re: RoboDS First Test
I'm working on a Wireshark dissector for the protocol, so I'll see if I can find anything unusual, and I'll try to get better data next week when I can test the robot again.
|
Re: RoboDS First Test
Any update on this app?
|
Re: RoboDS First Test
Yes. I stopped developing it since I lost access to a Rio. Bot
lopsided98 has been developing and last I've heard the app should be working, but is yet untested. His repo is here https://github.com/RobotsByTheC/RoboDS. You can download the code and build it or you can ask him for an APK. Let me know how it works will you. |
Re: RoboDS First Test
Thanks.
|
Re: RoboDS First Test
I would be careful, though, as I can't guarantee that it won't cause unintended behavior. Now that school has started again, I should be able to test it fairly soon.
|
Re: RoboDS First Test
Sure. Thanks for opening this up for others and continuing to work on it. I've begun forking the code because I want to use static joystick configuration. Did you find anything via wireshark that might cause issues? Did the 3 second timeout prevent the disconnects you mentioned a while back?
|
Re: RoboDS First Test
Quote:
Also, what do you mean by static joystick configuration? |
Re: RoboDS First Test
By static joystick I mean doing away with the joystick editor and having axes and buttons hard coded.
Have you committed the theoretical robot control fix to your git? |
Re: RoboDS First Test
Quote:
|
| All times are GMT -5. The time now is 16:24. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi