|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||||
|
|||||
|
Re: Dashboard Port Decoder
If I had a 2003 OI hooked to the 2003 FRC, could I still have data in from the 2006 dashboard port? Wouldn't the OI be taking the tether port which is where i would have data coming in? Could I take the data from the dashboard port on the 2006 OI and send it to a digital input on the 2003 FRC? Why does the 2003 FRC require a OI if I am using the other data as an "OI"? I guess I am just clinging on to hopeless thoughts here. I am probably going to have to get an EDU-BOT PIC controller. If I got one, how would I interface the data from the dashboard port in C (there is no SERIN in C, at least not that I know of.)
Jacob Komar Revised Comments: I guess I overlooked part of your previous post. If I used a previous years FRC, that would be all that I need. How would I specify what I want the input to be on the serial port though, if I'm programming it in C? That would be easy in PBASIC, because I could specify it using SERIN. I am not greatly familiar with C, so maybe there is a way to port the bytes to variables. Last edited by whytheheckme : 02-03-2006 at 00:21. Reason: Oversight |
|
#17
|
||||
|
||||
|
Re: Dashboard Port Decoder
Quote:
Quote:
Quote:
Quote:
|
|
#18
|
|||||
|
|||||
|
Re: Dashboard Port Decoder
If I use the program port to the dashboard port, could I have two SERIN commands? Also, the computer does not have enough storage for 2*26 varible bytes.
Jacob Komar |
|
#19
|
||||
|
||||
|
Re: Dashboard Port Decoder
Quote:
|
|
#20
|
|||||
|
|||||
|
Re: Dashboard Port Decoder
Would my input in the SERIN command be 1/0 instead of COMA/COMB?
When I do this, I get the Basic Run Err on the OI. Jacob Komar |
|
#21
|
||||
|
||||
|
Re: Dashboard Port Decoder
Quote:
basic run error means your code is getting stuck. |
|
#22
|
|||||
|
|||||
|
Re: Dashboard Port Decoder
Here is the BASIC code. I added the SERIN after the one that is already there. I have the dashboard port hooked to the Program port via a null modem cable. I have also tried it with a direct serial. The null gives me basic run err and the direct gives me basic init err.
Thank you, Jacob Komar I attached the file. get rid of the .txt to get the bsx. |
|
#23
|
||||
|
||||
|
Re: Dashboard Port Decoder
Quote:
the line should read Serin 16, 110, [oi_sw... Pin 16 is connected to the input pin of the program port. You need to use a baud rate of 19,200. 110 instructs a baud of 19,200 (as calculated from the formula in the basic stamp manual). This might not work. The datasheet strongly cautions against using a baud higher that 4800 or the stamp might not be able to keep up. |
|
#24
|
|||||
|
|||||
|
Re: Dashboard Port Decoder
After changing the code, I still get the Basic Run Err light. I tried disabling the Serin COMA/COMB and it still sees the operator interface and runs without it. I still get the Basic Run Err though. I also tried toning the Baud rate down.
Jacob Komar Revised Comments: If I remove ALL of the serin commands, I also get the Basic Run Err. Could this mean that it doesn't see the serin 16 as a valid command? Last edited by whytheheckme : 02-03-2006 at 19:27. |
|
#25
|
||||
|
||||
|
Re: Dashboard Port Decoder
Quote:
BTW: you cannot "tone down" the baud rate or the communication will become totally corrupted. You will be listening at a different rate than data is being sent by the dashboard. Also it is essentially receiving "BS" data. Data from the dashboard port is not in the format that is expected. This may be causing some later piece of code to screw up. Last edited by Rickertsen2 : 02-03-2006 at 19:47. |
|
#26
|
|||||
|
|||||
|
Re: Dashboard Port Decoder
I removed all of the code afterward, so it's not hanging up there. Even if the baud rate is wrong, shouldn't it still try to recieve data? If I unplug the dashboard cable going to the program port, it still gives me the error. Should it do this? Where can I find out about that port 16 thing?
Jacob Komar |
|
#27
|
||||
|
||||
|
Re: Dashboard Port Decoder
Quote:
|
|
#28
|
|||||
|
|||||
|
Re: Dashboard Port Decoder
I just obtained a VEX computer, which has a com port adapter and digital I/Os. It can be programmed in C. What C code would I use to interpret the data stream from the dashboard port through the built in com connector thingy?
Jacob Komar |
|
#29
|
||||
|
||||
|
Re: Dashboard Port Decoder
Quote:
-------------- edit --------------- I downloaded the default VEX code and documentation. The VEX controller looks to be almost identical to the EDU and full size RC. This is a good thing. I will give you some example code sometime tomorrow. |
|
#30
|
|||||
|
|||||
|
Re: Dashboard Port Decoder
That would be great. I was sucessfully able to download to the computer using the IFI loader, so now its just a matter of writing the code. If you could give me some sample input code, that would be great.
Jacob Komar |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Updated: Serial Port Driver Code | Kevin Watson | Programming | 4 | 05-02-2005 18:39 |
| New Serial Port Driver | Kevin Watson | Programming | 16 | 09-01-2005 01:56 |
| Weird Output from Dashboard Port | Ian W. | Programming | 9 | 06-03-2004 21:33 |
| Dashreader.dll: A Visual Basic .NET user control to read the dashboard port | Ameya | Programming | 4 | 12-01-2003 23:40 |
| Dashboard Decoder Release Version 1.0 Now Available! | archiver | 2000 | 1 | 23-06-2002 22:50 |