View Single Post
  #12   Spotlight this post!  
Unread 14-10-2010, 19:27
Frank Neuperger Frank Neuperger is offline
Registered User
FRC #0842
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Gilbert, AZ
Posts: 90
Frank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to beholdFrank Neuperger is a splendid one to behold
Re: Control FTC4314's robot over the web

The applet that runs on your PC to give you the viewing window and the control buttons is part of the process of preventing additional connect requests to the bot if someone is already connected. The java applet on your machine checks the Samantha using http: (port 80) to see if anyone is connected to the Samantha already. This is the same status html page that has the battery voltages etc. If no one is connected yet, the applet on your browser continues and connects you to the robot. There may be a possible race condition in terms of second user attempting to connect but the ultimate back up mechanism that prevents more than one connection from being accepted is that the Samantha only allows one TCP connection on the control port (not the status port) anyway.

Will eventually do some sort of driver queuing system but it needs a server somewhere to act as the central memory keeping track of requests.... checking the blacklist etc. Probably one of the PC's here with the bot.

An update in the next couple days will put status info like battery voltage and current drivers IP address on the applet for people to watch as they are waiting to drive. It updates at ~ 1 Hz.

One of our hopes in doing this is that FRC or FTC will consider a Tele-present mode in addition to Autonomous and Tele-operated modes.

Regards
Frank
FTC 4314
FRC 39
NURC 0x27
__________________
======================
FRC 842
FTC 4314
Team 0x27 (NURC, Sparkfun AVC)
Formerly with FRC 39 (now in cryosleep).

Last edited by Frank Neuperger : 15-10-2010 at 01:27. Reason: polish
Reply With Quote