Go to Post That's right 10 years and this is the first time ever that the school wanted anything to do with the FIRST team. - RoteAugen [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 08-03-2007, 15:09
yoyodyne yoyodyne is offline
Registered User
AKA: Greg Smith
FRC #0116 (Epsilon Delta)
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Reston, VA
Posts: 61
yoyodyne is a splendid one to beholdyoyodyne is a splendid one to beholdyoyodyne is a splendid one to beholdyoyodyne is a splendid one to beholdyoyodyne is a splendid one to beholdyoyodyne is a splendid one to beholdyoyodyne is a splendid one to behold
Camera problem Serial Port 2 Inserting Extra Null Bytes?

Hi All,

I saw a thread on the camera working correctly for longer after a power cycle and a mention by Kevin Watson that you might have to hold the reset switch on the RC? for 5 seconds but I can't seem to find those posts. Anyway, we are having the same problem. Last night, I captured the binary data from the RC to the CAMERA and from the camera to the RC and what I found was that a zero byte is inserted into the data stream from the RC to the camera every now and then. The camera NCK's and our code which was not expecting that times out on the ack and tries to re-initialize the camera which will struggle to get acks from the CR packets and finally get T packets coming again for about a second. We are putting the camera in polled mode [PM11] so that we can correlate the virtual window settings with the next T-packet returned from the camera.

Anyway, the attached file shows a binary dump of the traffic from the RC to the camera in a state where there is no target so no VW commands are sent, only TC packets each time the camera ACKs.

Notice that byte 885 and byte 1358 are inserted 0's. I was hoping that the delta would be some function of the serial port buffer size but 473 in this case is pretty strange. I guess I will collect more data tonigh - our second Fix-It-Window this week and see if I can find a correlation. The binary file was collected using TeraTerm. Any suggestions would be appreciated. Obviously I will be looking at the serial port driver and interrupt code. Oh, this is KW's 10-Jan-2006 serial code, I think the latest.
Attached Files
File Type: txt RC_TO_CAM.txt (13.1 KB, 24 views)
 


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
Scripting Setup and the Camera + Serial Port Drivers CJO Programming 22 11-01-2006 17:42
TTL port to a serial port on a demo board ImmortalAres Programming 16 09-07-2005 23:44
Problem with communicating with STAMP through serial port Skabana159 Technical Discussion 2 06-02-2003 21:10
Ever seen this serial port problem before??? Aidan F. Browne Programming 5 05-02-2003 12:03
No Serial Port Jeff Waegelin Programming 15 09-01-2003 22:29


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

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