Go to Post Doughnuts would probably be a pretty good alternative to churros. However, that could be open to debate. - Calvin Hartley [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 08-01-2002, 07:37
GreenDice GreenDice is offline
Registered User
#0891
 
Join Date: Jan 2002
Location: Syracuse, NY
Posts: 33
GreenDice is an unknown quantity at this point
Question Programming Port

Does anyone know what pin is used for programming/debug on the Basic Stamp module?

Thanks in advance.
__________________
Peter Liu
  #2   Spotlight this post!  
Unread 08-01-2002, 17:26
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
What is it you need to know?

Quote:
Originally posted by GreenDice
Does anyone know what pin is used for programming/debug on the Basic Stamp module?

Thanks in advance.
I'm having a hard time imagining what information you're tyring to discover.

If I remember right, the programming cable had to be modified for the pre Innovation First control system by removing a pin. Is this what you're thinking of? I don't believe this is necessary any more.

Alternately, are you wanting to know which of the DB9 pins is used to transmit/receive data? Why? Are you planning on doing something real esoteric with your custom PCB?

Be a little more specific, and maybe we can help.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #3   Spotlight this post!  
Unread 08-01-2002, 20:27
GreenDice GreenDice is offline
Registered User
#0891
 
Join Date: Jan 2002
Location: Syracuse, NY
Posts: 33
GreenDice is an unknown quantity at this point
I am trying to output debugging information to the programming port without using Debug statement. That is, use SEROUT command to output the current values of the variables to the laptop.
__________________
Peter Liu
  #4   Spotlight this post!  
Unread 08-01-2002, 20:59
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
DEBUG is a special case of the SEROUT command

Near the end of the documentation pages for the DEBUG command, it states:

Quote:
DEBUG is actually a special case of the SEROUT instruction. It is set for inverted (RS-232-compatible) serial output through the programming connector (the SOUT pin) at 9600 baud, no parity, 8 data bits, and 1 stop bit. For example,

DEBUG "Hello"

is exactly like:

SEROUT 16, $4054, ["Hello"] ' like DEBUG for BS2

in terms of function (on a BS2). The DEBUG line actually takes less program space, and is obviously easier to type.
That given, the only reason I can think of to use SEROUT instead of DEBUG, would be to use a higher baud rate than 9600 -- an interesting idea, though I am not sure how valuable that would be.... BUT to answer the original question, the pin is 16
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #5   Spotlight this post!  
Unread 08-01-2002, 22:11
GreenDice GreenDice is offline
Registered User
#0891
 
Join Date: Jan 2002
Location: Syracuse, NY
Posts: 33
GreenDice is an unknown quantity at this point
I am thinking about outputting binary data stream, containing values of all my internal variables right before sending commands to the master uP. It is very similar to the dashboard port; except this will have useful info.
__________________
Peter Liu
  #6   Spotlight this post!  
Unread 09-01-2002, 00:18
Lloyd Burns Lloyd Burns is offline
Registered User
FRC #1246 (Agincourt Robotics)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Toronto
Posts: 292
Lloyd Burns is an unknown quantity at this point
Talking The little jumper between the Dasboard port and JoyPort 1

Did you ever luck out - Innovation First will soon announce what the jumper is for, and as I understand it, it will allow the dashboard port to show the OI's about-to-be-transmitted values.

Is that what you wanted ? Me too! :-)
  #7   Spotlight this post!  
Unread 09-01-2002, 08:11
GreenDice GreenDice is offline
Registered User
#0891
 
Join Date: Jan 2002
Location: Syracuse, NY
Posts: 33
GreenDice is an unknown quantity at this point
That will be perfect. I better go home and try out the jumper. I can add code to my Dashboard Monitor program to process two different data streams. I can record and playback the data to really debug the control system.
__________________
Peter Liu
  #8   Spotlight this post!  
Unread 09-01-2002, 08:37
Lloyd Burns Lloyd Burns is offline
Registered User
FRC #1246 (Agincourt Robotics)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Toronto
Posts: 292
Lloyd Burns is an unknown quantity at this point
Thumbs up Keep watching Innovation First for Dashboard Docs

They said they'd publish the new spec soon.

Maybe we'll catch you at the Canadian Regional in Toronto.
  #9   Spotlight this post!  
Unread 09-01-2002, 08:49
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,642
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
A or B but not both

You may not be able to switch the OI to RC data packets on the fly.

My understanding is that you would be able to get EITHER the OI data OR the RC data not both.

I don't know whether the jumper can be switched on the fly or do you have to reset the OI to get the data packets to switch.

Also, even if you could, I don't think that you could do it legally (during a competition I mean) with a PC driving the switch as that seems to conflict with the rules for using PCs.

Joe J.
  #10   Spotlight this post!  
Unread 09-01-2002, 19:58
GreenDice GreenDice is offline
Registered User
#0891
 
Join Date: Jan 2002
Location: Syracuse, NY
Posts: 33
GreenDice is an unknown quantity at this point
Thumbs up

I just tried it. You can switch it anytime and it just keep running. Since it is for display only, I think you can use the laptop to show the status during the match. Personally, I think it is much more useful than what it used to output.
__________________
Peter Liu
  #11   Spotlight this post!  
Unread 09-01-2002, 20:13
Adrian Wong Adrian Wong is offline
Registered User
#0596 (SciClones)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Hopkinton, Mass.
Posts: 146
Adrian Wong is an unknown quantity at this point
Send a message via AIM to Adrian Wong
How did you confirm the output changed? Did you reverse engineer the packet data or develop a program of some sort to interpret the stream?
  #12   Spotlight this post!  
Unread 09-01-2002, 20:23
GreenDice GreenDice is offline
Registered User
#0891
 
Join Date: Jan 2002
Location: Syracuse, NY
Posts: 33
GreenDice is an unknown quantity at this point
Since the output from Pbasic uP to Master uP is also 26 bytes and follows the same message format as the normal dashboard port output, my Dashboard Monitor program can decode the messages. Although the locations of the bytes are different, I can move the joystick and see a byte changes values.

I am going to add another feature into my Dashboard Monitor to display the 16 relay output bits and the 16 PWM output.
__________________
Peter Liu
  #13   Spotlight this post!  
Unread 10-01-2002, 09:14
GreenDice GreenDice is offline
Registered User
#0891
 
Join Date: Jan 2002
Location: Syracuse, NY
Posts: 33
GreenDice is an unknown quantity at this point
Thumbs down Not too useful afterall

The data is not what the Pbasic uP going to send to the master uP to control the PWM output and Relays. Instead, it is some variation of the joystick data sent to the Pbasic uP.

IMO, so the best way to test you control program is to output your debug data via the programming port. Record it and analyze it using Excel or other software.
__________________
Peter Liu
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
Fried program slots? Jeff Waegelin Programming 18 19-03-2003 18:08
Horror Story - Laptop com port again Lloyd Burns Programming 3 17-03-2003 07:33
Ever seen this serial port problem before??? Aidan F. Browne Programming 5 05-02-2003 12:03
Dashreader.dll: A Visual Basic .NET user control to read the dashboard port Ameya Programming 4 12-01-2003 23:40
Change to Initializing Inputs and Outputs Jferrante Programming 4 07-01-2003 11:36


All times are GMT -5. The time now is 20:04.

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