To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 1413
1412  |  1414
Subject: 
Sending ir packets
Newsgroups: 
lugnet.robotics.rcx
Date: 
Thu, 20 Sep 2001 15:41:00 GMT
Viewed: 
1704 times
  
I am writing a program, and it doesnt work. Right now im just trying to
make sure I can interface with the serial port properly. So I am sending:

55 ff 00 51 ae 03 fc 54 ab

At 2400 baud, 8 data bits, odd parity, and one stop bit.

It doesnt work. The light on the ir tower turns on, but the rcx does
nothing.

When i run "nqc -raw 5103" it works just fine, so its not the rcx or the
tower.

So, my questions are:
1. Is that packet malformed?
2. How does one calculate the checksum?

Thanks,
Trevyn.
--
    /"\
    \ /  ASCII Ribbon Campaign - Say NO to HTML in email and news
     X
    / \



Message has 3 Replies:
  Re: Sending ir packets
 
(...) (URL) get you loads of info. Björn (23 years ago, 20-Sep-01, to lugnet.robotics.rcx)
  Re: Sending ir packets
 
Check the source code for NQC (in rcx/RCX_Link.cpp), or even use it as your underlying comms library. You may spot something Dave does that you don't.. Phil. (...) (23 years ago, 29-Sep-01, to lugnet.robotics.rcx)
  Re: Sending ir packets
 
(...) Here ya go: Remember start bit (sometimes called 2 stop bit mode) 55 00 D1 ~D1...Dn ~Dn C ~C Add all the normal D parts in a single Byte for Chksum. Code chunk for example ... unsigned char MuxStr[] ={0x55,0xf7,0x08,0x0...xf8,0x07}; count = 7; (...) (23 years ago, 29-Sep-01, to lugnet.robotics.rcx)

4 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR