Go to Post Doctor the drill, or doctor your hand. Easy choice. Let's all make the right one. - Molten [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 20-10-2006, 11:49
P1d40n3's Avatar
P1d40n3 P1d40n3 is offline
Commander Programmer
AKA: Adam Burch
FRC #0842 (Falcon Robotics)
Team Role: Programmer
 
Join Date: Aug 2006
Rookie Year: 2006
Location: Phoenix, Arizona
Posts: 14
P1d40n3 has a spectacular aura aboutP1d40n3 has a spectacular aura aboutP1d40n3 has a spectacular aura about
Re: Help with linking OI and RC over Internet....

Quote:
Originally Posted by cdfps
I probbably have the c cgi source as well as the web pages used, and maybe some documentation. If you want I can take a look and send it along to you.
That would be very nice. But how did the laptop connect to the RC? Or was the laptop acting as the RC?

The original plan was to have the Operator Interface connected to the first GW21W, and have that GW connect to the other GW via the schools WiFi. This last GW would then send the OI data to the RC. But appentally, the OI and RC use non-spec communications...

Quote:
I think pairing up the OI/RC works, as long as you have a remote kill switch. Talking to the RC via serial port with those adapters is likely to work much better.
When you say the serial port, do you mean the Program port, or the TTL pin-thingies?
  #17   Spotlight this post!  
Unread 20-10-2006, 11:57
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Help with linking OI and RC over Internet....

Quote:
Originally Posted by Tom Bottiglieri
Yes, but the connection from the host computer to the robot would not be broken. The connection from the client to host computer over the internet would. The robot would still think the OI is present, even if it was giving garbage data. It may not be very probable, but this system is just an injury waiting to happen.
This isn't the way it works. The RC goes into disabled mode if it doesn't receive a valid packet within some (short) timeframe. Garbage data will not keep the connection alive. There's a checksum on each packet that must pass, as well as receiving the correct team number and probably a few other things. These checks are all still in place even when using the tether. Well, technically I guess the team number check is removed since it will just program whatever team number it finds, but the checksum must still pass.

{edit}OK, I realize that this setup isn't quite what I was thinking. I thought you were just trying to remotely locate the OI but still use the OI for controls. How would someone remotely over the Internet actually control the robot? Are you thinking of interfacing a computer to the OI to do it?

I think the suggestion of going straight to the program port is the best. And, I don't think you even need to put the OI on the robot - if you set it to team number 0 it will run in autonomous mode without the OI (I believe). Then, just put all your code to read in commands from the serial port in the autonomous loop.

This would be an interesting experiment to try in a safe environment, but again I don't think you should use this in the halls. Even with a webcam on there, think of the problems: if the webcam stream stops, whoever is driving remotely may not realize what the robot is actually doing. Additionally, webcam streaming over the Internet usually involves several seconds of buffering. This means that what you see on the screen will be several seconds old, so by the time you see someone in the way of the robot and move to avoid them it may already be too late and you've already hit them. I can't imagine the school would ever allow you to do this anyway due to the liability. Are you going to have eveyone in school wear safety glasses? {/edit}

Last edited by Dave Flowerday : 20-10-2006 at 12:05.
  #18   Spotlight this post!  
Unread 20-10-2006, 13:04
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Help with linking OI and RC over Internet....

The OI sends data through the dashboard port even when its not connected to the robot. You could set the OI to output the OI values, and connect your WiFi serial things to the dashboard of the OI and the program port of the RC. You would get all the joystick and switch information through this connection. You could also write software to drive the robot from a computer.

You would still need to write the software to interpret the dashboard data, but that is well documented, and would be relatively easy.

I did not check to see if the 2006 OI will output the values, but while I was typing this I tested a 2005 OI and it worked the way I expected.

The dashboard specs are in the install folder of IFI Dahsboard or aviable from IFI's website.

Hope this helps
__________________
Eric Haskins KC9JVH
  #19   Spotlight this post!  
Unread 20-10-2006, 13:11
Hieb Hieb is offline
Registered User
no team
Team Role: Teacher
 
Join Date: Mar 2004
Rookie Year: 2004
Location: St. Louis, MO
Posts: 125
Hieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to behold
Re: Help with linking OI and RC over Internet....

Quote:
Originally Posted by P1d40n3
When you say the serial port, do you mean the Program port, or the TTL pin-thingies?
I was refering to the 4 pin connection that the camera uses. I'm sorry I can't provide you with more detail, but when I first considered this a couple months ago it was because I stumbled across an adapter or wifi web device that I thought would work for just this application. Unfortunately I've been spending more time trying to raise money so we can compete this year and not enough playing with robots.
  #20   Spotlight this post!  
Unread 20-10-2006, 18:19
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Help with linking OI and RC over Internet....

Quote:
Originally Posted by P1d40n3
That would be very nice. But how did the laptop connect to the RC? Or was the laptop acting as the RC?

The original plan was to have the Operator Interface connected to the first GW21W, and have that GW connect to the other GW via the schools WiFi. This last GW would then send the OI data to the RC. But appentally, the OI and RC use non-spec communications...



When you say the serial port, do you mean the Program port, or the TTL pin-thingies?
You could use either, but I was referring to the program port.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #21   Spotlight this post!  
Unread 21-10-2006, 00:38
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Help with linking OI and RC over Internet....

Quote:
Originally Posted by EHaskins
The OI sends data through the dashboard port even when its not connected to the robot. You could set the OI to output the OI values, and connect your WiFi serial things to the dashboard of the OI and the program port of the RC. You would get all the joystick and switch information through this connection. You could also write software to drive the robot from a computer.

You would still need to write the software to interpret the dashboard data, but that is well documented, and would be relatively easy.
Note that the OI requires some kind of connection before sending data, even if it's just a radio w/o a robot. I think of the dashboard as the raw data sent or recieved; if the OI isn't trying to send data, you won't get it on the dashboard.

What this means is that an OI without a tether or a radio won't send data. (At least the 2005 won't.)
  #22   Spotlight this post!  
Unread 21-10-2006, 12:53
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Help with linking OI and RC over Internet....

I tested it and got good values from an OI with a radio, but no robot near by. I have not tried it without a radio, but what I said above will work as long as you have a radio connected to the OI.
__________________
Eric Haskins KC9JVH
  #23   Spotlight this post!  
Unread 23-10-2006, 10:40
P1d40n3's Avatar
P1d40n3 P1d40n3 is offline
Commander Programmer
AKA: Adam Burch
FRC #0842 (Falcon Robotics)
Team Role: Programmer
 
Join Date: Aug 2006
Rookie Year: 2006
Location: Phoenix, Arizona
Posts: 14
P1d40n3 has a spectacular aura aboutP1d40n3 has a spectacular aura aboutP1d40n3 has a spectacular aura about
Re: Help with linking OI and RC over Internet....

Quote:
Originally Posted by Matt Krass
You could use either, but I was referring to the program port.
Forgive my ignorance, but how on earth would you do that? Does the code even have alias' for the program port?
  #24   Spotlight this post!  
Unread 23-10-2006, 12:22
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Help with linking OI and RC over Internet....

If memory serves (and it may not, it's been a while since I touched one of these) the standard C functions printf() and scanf() are tied to that port, allowing scanf() to receive data from it and printf() to output. The only problem I can see with that is scanf() may be blocking and thus might break the timing of the code. Kevins Bells and Whistles 2006 camera code used the serial port for receiving single byte commands to control the camera, maybe look in to how he did it? I think it involved accessing the serial received buffer and plucking the data right out of there, which is how I typically use serial ports on 8-bit micros.

If this reply made no sense to you, sorry, I'm just getting up (Colleges are full of strange germs that tend to crush freshman). If you'd like to talk more one on one I can try to elaborate on it for you.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #25   Spotlight this post!  
Unread 23-10-2006, 13:08
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Help with linking OI and RC over Internet....

You should download Kevin's serial port code(this is what he used for the camera) from www.kevin.org/frc. If you search CD you can find alot of help for this serial port driver. To use the code you follow the instructions in the readme to add the code to you r project, and configure the speed and other setting for each port.

Most of what you would use in your code is explained in the readme or in this thread http://www.chiefdelphi.com/forums/sh...ad.php?t=31931.

If you have any questions PM or e-mail me haskinseric@hotmail.com.
__________________
Eric Haskins KC9JVH
  #26   Spotlight this post!  
Unread 26-10-2006, 06:52
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Re: Help with linking OI and RC over Internet....

This is not an ideal solution, but you could get something working fairly quickly using this dashboard framework: http://www.chiefdelphi.com/media/papers/1765

That application includes a UDP packet relay that will forward the incoming data packets from the serial port to another instance of the dashboard running on a separate PC. It allows you to share the data stream over a network. You would have to write a dashboard view control for the laptop on the robot to forward the command to the RC, but since you can define the protocol you can keep it simple.

The system would involve two PCs, the OI, RC, and a wireless network:
1) Laptop1 connected to the OI running the dashboard app configured to forward packets to laptop2.

2) Laptop2 connected to the RC via the programming port running the dashboard app with your custom view to package and send commands to the RC. Laptop2 is set up as UDP listener.

3) Custom code running on the RC to listen for commands on the serial port and update the motor outputs. Robot needs a robust set of collision sensors to disable the robot when it hits something. Also requires a watchdog timer to disable motors if data is not received within a threshold time limit.

4) MSN Messenger running on both laptops with an active videoconference open.
  #27   Spotlight this post!  
Unread 26-10-2006, 20:15
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Help with linking OI and RC over Internet....

Why would you have a computer on the robot? The dashboard data is not that complicated. If you had the dashboard data being feed through the wifi serial ports, and a WiFi camera on the robot you wouldn't have a problem. There is no reason to risk your laptop on a robot.
__________________
Eric Haskins KC9JVH
  #28   Spotlight this post!  
Unread 27-10-2006, 06:49
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Re: Help with linking OI and RC over Internet....

Quote:
Originally Posted by EHaskins
Why would you have a computer on the robot? The dashboard data is not that complicated. If you had the dashboard data being feed through the wifi serial ports, and a WiFi camera on the robot you wouldn't have a problem. There is no reason to risk your laptop on a robot.
I guess I should have qualified the comments. If you do NOT have $400 worth of wifi serial adapters, but do have an old laptop, if would be fairly straight-forward to prototype something similar. For the price of one wifi webcam you could get two USB webcams, one for the robot and one for the operator. If you use MSN Messenger and open a videoconference to the robot you get bidirectional video and audio, useful for telling people to get back to class. Plus, if they can see you they might be more willing to cooperate.
  #29   Spotlight this post!  
Unread 28-10-2006, 15:02
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Re: Help with linking OI and RC over Internet....

Several years ago I wrote a VB application to control the robovation (mini RC) controller from a PC using a serial cable on the program port. I don't know if the latency of the wifi adapters would affect it, but you can give it a shot. The code should port to the full size robot controller, but if you have a mini-rc you can use it without making any modifications. When you run setup it will add help.txt to the installation folder with basic information about how to get it working. The joysticks don't automatically re-center when you release them, but right-clicking will do it.

http://members.cox.net/seanwitte
Attached Thumbnails
Click image for larger version

Name:	screenshot.png
Views:	25
Size:	36.2 KB
ID:	4691  

Last edited by seanwitte : 29-10-2006 at 09:04.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet over a Cell Phone LBK Rules Chit-Chat 4 01-03-2006 17:03
Dynamic Linking with PHP plutonium83 Website Design/Showcase 6 12-01-2005 19:41
Internet Explorer Download Help Clark Gilbert Chit-Chat 6 05-01-2004 01:09
Help with Autocad and Bryce 5 Keith Chester Inventor 0 25-03-2002 17:33


All times are GMT -5. The time now is 02:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi