From microvoice at yahoo.com Sat Jun 9 23:40:32 2007 From: microvoice at yahoo.com (Peter Subroto) Date: Sat, 9 Jun 2007 23:40:32 -0700 (PDT) Subject: [WheelCommander] WC cannot communicate with BasicStamp2SX Message-ID: <241178.56022.qm@web90405.mail.mud.yahoo.com> --0-304036186-1181457632=:56022 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I run WC Wizzard, calibrate sucessfully but I cannot get this code working with wheel commander, please more help Thx, Peter '{$STAMP BS2sx} ' {$PBASIC 2.5} baud CON 45 ' baud rate 38400 recBytes VAR Byte(4) RedLed PIN 0 Xmit PIN 6 Rcv PIN 7 Main: HIGH RedLed PAUSE 500 DEBUG "starting up", CR SEROUT Xmit, baud, ["R", LF] SERIN Rcv, baud, [STR recBytes\2] IF recBytes(0) <> "a" THEN DEBUG "cmd failed to get ack:", recBytes(0), CR ELSEIF recBytes(0) = "a" THEN DEBUG "cmd OK:", recBytes(0), CR ENDIF LOW RedLed PAUSE 500 GOTO Main END --------------------------------- Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. --0-304036186-1181457632=:56022 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit