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 / 1688
1687  |  1689
Subject: 
Re: legos 0.2.4 and LNP
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 8 Feb 2001 21:45:38 GMT
Viewed: 
1381 times
  
Kenneth Johansen <kennethj@stud.cs.uit.no> writes:

hi everybody.
im currently trying to insert a radio device on my RCX so as to get radio
communication between my computer
and my RCX, but im having some trouble.

my electronics guy cant quite get it to work and as such has asked me to display
all information recieved on the RCX on the
display.

sooo....i have tried lookin around in the LNP code, but im a bit in the dark
here.

anyone out there know how to display all overhead code sent with the LNP and not
just the message it self ?

You should look in the kernel source.  In lnp.c there is the
lnp_integrity_byte() function which is called every time a byte is
received.  You could modify it to display data as soon as it's received, or
copy it in a buffer for later display.

as i understand it the code sent using the mindstorm default program will look
something like this:
55 ff 00 f7 08 12 ed 09 f6

but that is not true when using LNP.

If you are interested in the format of LNP packet, here it is.

Integrity packets:  F0 xx (xx bytes of data follow) cc
Addressing packets: F1 xx dd ss (xx - 2 bytes of data) cc

The first byte is constant, it identifies the packet type.  The second byte
is the length of the following data (not counting the last byte).  For
addressing layer packets only follow two bytes, destination and source
addresses.  The last byte (`cc' above) is a checksum.

bye
Bernardo



Message is in Reply To:
  legos 0.2.4 and LNP
 
hi everybody. im currently trying to insert a radio device on my RCX so as to get radio communication between my computer and my RCX, but im having some trouble. my electronics guy cant quite get it to work and as such has asked me to display all (...) (24 years ago, 8-Feb-01, to lugnet.robotics.rcx.legos)

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