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 / 1036
1035  |  1037
Subject: 
Re: lnp communication question
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 16 May 2000 15:32:55 GMT
Viewed: 
3969 times
  
In lugnet.robotics.rcx.legos, Pavel Petrovic writes:
> Hello Tobias,
> 
> > When using lnp_integrity_write(&data, length), what is the length
> > argument used for? The data can only be one byte long if I understand
> > it correctly. Can I use the length argument to send an additional byte
> > of information?
> 
> Why do you think there's only 1 byte that can be sent?
> If your data buffer is longer, bytes are sent one-by-one
> serially in a packet...

So the length-argument tells lnp_integrity_write how many bytes to send?
Doesn't that mean that it would be possible to send an array consisting of many
integers, for example? How would this be done?

> Do you have some particular plans with your RCXs?

We plan to build a six-legged lego robot, which will then learn to walk using
genetic programming.

Tobias



Message has 1 Reply:
  Re: lnp communication question
 
You just pass an array and give the length, to send it. In theory you can send packets with a size up to 255 bytes (look in this group, the info is in here somewhere), but sending 1 byte has a packet loss of aprox. 1% and 4 bytes aprox. 10%, over (...) (26 years ago, 17-May-00, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: lnp communication question
 
Hello Tobias, (...) Why do you think there's only 1 byte that can be sent? If your data buffer is longer, bytes are sent one-by-one serially in a packet... (...) look into lnp.c and you will see that both lnp_integrity_xxx and lnp_addressing_xxx are (...) (26 years ago, 15-May-00, to lugnet.robotics.rcx.legos)

8 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
    

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