View Single Post
  #2   Spotlight this post!  
Unread 24-01-2006, 14:53
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Serial Commands on MPLAB

Kevin's code puts the camera in "raw" mode, which does not want the '\r' after the parameters. The first byte after the command (here it's a 1) says how many more bytes will follow. I'm pretty sure an extraneous return at that point will have a real chance of waking the camera up immediately after you tell it to sleep.

I don't have a camera handy to test whether or not an ACK comes back after a sleep command, but it's easy for you to connect the camera serial port directly to a terminal and try it for yourself.