Go to Post Life can be painfully short and you never know how things could change in an instant. It never hurts to say thank you. - Karthik [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
  #1   Spotlight this post!  
Unread 19-10-2006, 10:56
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
Help with linking OI and RC over Internet....

My team is trying out an interesting project; namely, we are making a robotic hall monitor that can be controlled over the Internet. But we've hit a roadblock of sorts.

We have 2 GW21W's, one connected to the Tether port on the OI, and one to the Tether port on the RC. I know that the two are connected (their status pages say they're connected to each other), but for some reason, there is no data passing between them. What I'm thinking the problem is that the serial port on the RC GW21W is improperly configured for outputting to the RC.

So what I need to know is this (If indeed my theory is right);

The flow control scheme that the RC uses, and the bit parity. Also, if you have any ideas (pitfalls to look out for, questions, etc.) feel free to post them.

A thousand thanks to all those help us .

-commander Adam 'P1' Burch
  #2   Spotlight this post!  
Unread 19-10-2006, 11:05
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,186
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Help with linking OI and RC over Internet....

http://www.ifirobotics.com/radio_modem.shtml
9600bps Full Duplex. Not sure if that helps. For the bit parity, I would say just brute force it and try all of the available options.

I hope you're going to have some kind of local object detection system on the robot, or at least some kind of emergency shut-off in case of packet drop. The last thing you want is a router to shut off and your robot to slam into a person in the hall.
  #3   Spotlight this post!  
Unread 19-10-2006, 11:10
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: Help with linking OI and RC over Internet....

Quote:
Originally Posted by P1d40n3
We have 2 GW21W's, one connected to the Tether port on the OI, and one to the Tether port on the RC. I know that the two are connected (their status pages say they're connected to each other), but for some reason, there is no data passing between them. What I'm thinking the problem is that the serial port on the RC GW21W is improperly configured for outputting to the RC.
I'm not particularly familiar with the communication schemes used by the RC, but have you gotten these boxes working with other serial devices? You've probably already tried this, but if the problem lies in the GW21W instead of the RC, you could be banging your head against the wall. Try putting another serial device through them and see if that works.
  #4   Spotlight this post!  
Unread 19-10-2006, 11:17
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....

If I remember right radio and possibly the tether ports are rs422 not rs232.
__________________
Eric Haskins KC9JVH
  #5   Spotlight this post!  
Unread 19-10-2006, 11:42
divergentdave divergentdave is offline
Registered User
FRC #1816 (Green Machine)
 
Join Date: Jun 2006
Rookie Year: 2007
Location: MN
Posts: 35
divergentdave is a jewel in the roughdivergentdave is a jewel in the roughdivergentdave is a jewel in the rough
Send a message via AIM to divergentdave
Re: Help with linking OI and RC over Internet....

You may want to investigate the tether specs further, because I think that the OI might be trying to draw power from the robot through it. If your serial connectors don't supply voltage through the right pin, it might turn on some failsafe feature on the OI.
__________________
Team 1816 - The Green Machine
  #6   Spotlight this post!  
Unread 19-10-2006, 12:29
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,673
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Help with linking OI and RC over Internet....

To further add to the confusion, it's possible that the tether uses characters that could confuse your adapter. It looks like COM1 will switch to a console if you send 'Z' or 'z' 3 times in a row. So I'd be safe and use COM2.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #7   Spotlight this post!  
Unread 19-10-2006, 12:49
Tristan Lall's Avatar
Tristan Lall Tristan Lall is offline
Registered User
FRC #0188 (Woburn Robotics)
 
Join Date: Aug 2001
Rookie Year: 1999
Location: Toronto, ON
Posts: 2,484
Tristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond repute
Re: Help with linking OI and RC over Internet....

That serial box is available with RS-422, according to the specifications (well, one place says -422, but there are no subsequent mentions of it). You might want to ask whoever sold it to you to exchange it for the RS-422 model, to connect via the radio ports instead. With luck, the hardware would treat it identically to the E-Wave modems that we use now.
  #8   Spotlight this post!  
Unread 19-10-2006, 13:11
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,673
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Help with linking OI and RC over Internet....

Think again, Tristan.

IFI Radio to Wifi FAQ

Modems have tons of commands that tell the modem how to connect to the other modem, etc. The RC isn't expecting to see an OI at the end of the radio port. When its setup commands aren't replied to, it just won't work. If this did work, you could just hookup the RC to OI with an RS-422 crossover cable and get much better max distance than with the tether thanks to the differential signalling.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #9   Spotlight this post!  
Unread 19-10-2006, 16:56
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 divergentdave
You may want to investigate the tether specs further, because I think that the OI might be trying to draw power from the robot through it. If your serial connectors don't supply voltage through the right pin, it might turn on some failsafe feature on the OI.
The OI only draws power from the RC if it isn't plugged into the wall. (Personal experience: Plugging-in OI can solve "chasing LEDs" problem.)
  #10   Spotlight this post!  
Unread 19-10-2006, 21:34
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....

Thanks for help all!

Just so we're clear, the team and P1 also plan to attach a wireless webcam to the robot, so as to get a live feed from the robot. The goal is to set it up as a hall monitor you cna use from anywhere in the world. As long as you have the right password.
  #11   Spotlight this post!  
Unread 19-10-2006, 22:09
cdfps cdfps is offline
Registered User
AKA: Ross Kowalski
FRC #0348 (Norwell Robotics)
Team Role: Teacher
 
Join Date: May 2005
Rookie Year: 2004
Location: massachusetts
Posts: 19
cdfps is an unknown quantity at this point
Re: Help with linking OI and RC over Internet....

I read the posts and I don't fully understand what you are doing. I get the perception that you want a computer somewhere in the building and the robots f in the hall.

The last time I did this, I put a laptop on the robot, used a free timelife giveaway usb camera, a power wheels 6 wheeler, a car battery ,ran Libranet with apache, and wrote CGI in c to control the 225in/oz steppers I was using to move it.

The stepper driver kept the motors constantly hot so battery life was low.

The forward, backward, etc, etc scripts were called when a button on the web page was clicked.

The robot was a simple build and worked easily from inside the school, getting through the school firewall waws a lot harder.

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.

For a while I had a telerobotic tethered turtle in my office which anyone in school could access. Turns out there are two kinds of people. The kind that spin the telerobotic turtle around 5000 times to wrap up it's teather and the kind that would drive it into you.
  #12   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?
  #13   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.
  #14   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!)
  #15   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?
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 01:27.

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