To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 143
142  |  144
Subject: 
Re: LNP Repost
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sat, 17 Apr 1999 10:24:12 GMT
Viewed: 
1005 times
  
Jacob S. Barrett wrote:

I thought it might be good to repost this with some changes...

Okay a little smaller...  Only a 4 byte header...

|0|1|2|3|4|5|6|7|0|1|2|3|4|5|6|7|0|1|2|3|4|5|6|7|0|1|2|3|4|5|6|7|
-----------------------------------------------------------------
| 0xF   |  VER  | TOADDR  | PORT| FRADDR  | PORT|  PAYLOADLEN   |
-----------------------------------------------------------------
/                          PAYLOAD                              /
-----------------------------------------------------------------
/                 PAYLOAD        /            CRC16             |
-----------------------------------------------------------------

0-3: The first nibble with help the OS understand that this incoming
data is
the LNP protocol.

4-5: The version number of the protocol we are using.  Only gives us 16
tries to get it right...

Actually, no. On attempt 16, you reserve some more bits further down for
the new version number :-)

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi



Message has 1 Reply:
  RE: LNP Repost
 
Very true, but lets try hard not to add any more bytes to the header. The smaller the better since the packets are probably pretty small. -Jake -----Original Message----- From: Ben Laurie [mailto:ben@algroup.co.uk] Sent: Saturday, April 17, 1999 (...) (25 years ago, 17-Apr-99, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  LNP Repost
 
I thought it might be good to repost this with some changes... Okay a little smaller... Only a 4 byte header... |0|1|2|3|4|5|6|7|0|1...3|4|5|6|7| ---...--- | 0xF | VER | TOADDR | PORT| FRADDR | PORT| PAYLOADLEN | ---...--- / PAYLOAD / ---...--- / (...) (25 years ago, 16-Apr-99, to lugnet.robotics.rcx.legos)

21 Messages in This Thread:






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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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