Go to Post I've always believed that being who I was will not limit me to who I will be. That's what keeps me trying to learn more and become a better person. Otherwise I would've settled being someone ordinary and not care about anything around my life. - Ken Leung [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 02-04-2008, 08:38
Doug Leppard's Avatar
Doug Leppard Doug Leppard is offline
Registered User
FRC #1902 (Exploding Bacon)
Team Role: Engineer
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Orlando
Posts: 435
Doug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond repute
Send a message via AIM to Doug Leppard
Serial data out of the programming port

We are using a data logger see url:
http://www.sparkfun.com/commerce/pro...roducts_id=752

We are using the programming port, not the TTL level port 2, we tried that but could not get it to work well. We use a TTL to RS232 level converter to be able to use that port.

The logger works on the programming port but at times the competition drivers think that they loose control when it is plugged in.

Looking at the specs of the logger once a buffer is filled up it switches to another buffer to write out the data. It may be sending out a wait for buffer signal, I am not sure.

Question, if the logger tells the port to wait for data to be received will that cause the RC and thus the OI not to process the data and cause the loss of control for the operators of the robot?
__________________
Doug Leppard
  #2   Spotlight this post!  
Unread 05-04-2008, 18:06
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: Serial data out of the programming port

I could be wrong, but it's my understanding that the port is always "waiting" for data. I believe an ISR runs every time new data arrives and stores the new data on a ring buffer.

If the RC doesn't process data at a certain rate the "watch dog" timer tells the system to reboot. So if it is freezing watch for an RC reset.


Nathan
__________________
Save money with PriceWombat, a shopping comparison and price tracking tool (that I made!).

Check out my hobby electronics business!

My former robotics team: Huntington County 4-H Robotics
  #3   Spotlight this post!  
Unread 05-04-2008, 18:57
Doug Leppard's Avatar
Doug Leppard Doug Leppard is offline
Registered User
FRC #1902 (Exploding Bacon)
Team Role: Engineer
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Orlando
Posts: 435
Doug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond repute
Send a message via AIM to Doug Leppard
Re: Serial data out of the programming port

Quote:
Originally Posted by Nathan View Post
I could be wrong, but it's my understanding that the port is always "waiting" for data. I believe an ISR runs every time new data arrives and stores the new data on a ring buffer.

If the RC doesn't process data at a certain rate the "watch dog" timer tells the system to reboot. So if it is freezing watch for an RC reset.

Nathan
How longs does the reset take and how do you tell if it is reset?
__________________
Doug Leppard
  #4   Spotlight this post!  
Unread 05-04-2008, 22:57
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: Serial data out of the programming port

I don't know how long it takes. I do know in the past when I've downloaded some bad code to the RC (infinate loop for example..) the RC reset itself because the lights cycled off and then came back on. I assumed that was the "watchdog" timer that I've heard about, but it's possible it was just a freak of nature :-)

Do you always make sure the backup battery is charged? We've lost control of our robot (not a competition) in when the backup battery was low.

How do you get the debugging data to your chip, and how fast do you put it there? I integrated a camera through the TTL port and for the longest time had problems because I was printing something out during an interrupt routine.


Nathan
__________________
Save money with PriceWombat, a shopping comparison and price tracking tool (that I made!).

Check out my hobby electronics business!

My former robotics team: Huntington County 4-H Robotics
  #5   Spotlight this post!  
Unread 06-04-2008, 07:47
Doug Leppard's Avatar
Doug Leppard Doug Leppard is offline
Registered User
FRC #1902 (Exploding Bacon)
Team Role: Engineer
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Orlando
Posts: 435
Doug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond repute
Send a message via AIM to Doug Leppard
Re: Serial data out of the programming port

We tried the TTL port but it didn't work right, so we are using the programming port just like if you had your laptop hooked up.

I only suspect that it causes the loss of control, the drivers said when it was in they had problems but when it was off they had no probelms.

Who knows.
__________________
Doug Leppard
  #6   Spotlight this post!  
Unread 07-04-2008, 08:53
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Serial data out of the programming port

Doug,

I'm not sure if a wait commend via flow control will effect the RC and cause it to stall. I feel that it is very unlikely, and that RC just ignores any type of flow control. But, to be sure if I was in you situation I would build a serial cable with only ground and RX pins connected on the logger end. This would assure that you logger isn't effecting the RC it wouldn't be able to send any data back to the RC.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
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
Does reading from the serial port work? Alan Anderson Programming 16 29-01-2008 07:15
Programming the vex microcontroller to respond to commands on the serial port crashoverride02 Programming 1 20-10-2006 14:17
Programming Vex Starter Kit To Recieve From Serial Port firetrap FIRST Tech Challenge 0 26-09-2005 17:27
TTL port to a serial port on a demo board ImmortalAres Programming 16 09-07-2005 23:44
Serial Port Programming phrontist General Forum 1 07-02-2004 16:13


All times are GMT -5. The time now is 00:57.

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