|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Does anyone know what pin is used for programming/debug on the Basic Stamp module?
Thanks in advance. |
|
#2
|
|||||
|
|||||
|
What is it you need to know?
Quote:
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. ![]() |
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
|||||
|
|||||
|
DEBUG is a special case of the SEROUT command
Near the end of the documentation pages for the DEBUG command, it states:
Quote:
![]() |
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
|||
|
|||
|
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
|
|||
|
|||
|
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.
|
|
#8
|
|||
|
|||
|
They said they'd publish the new spec soon.
Maybe we'll catch you at the Canadian Regional in Toronto. ![]() |
|
#9
|
||||||
|
||||||
|
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
|
|||
|
|||
|
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.
|
|
#11
|
||||
|
||||
|
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
|
|||
|
|||
|
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. |
|
#13
|
|||
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |