Subject:
|
Re: lnp communication question
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Wed, 17 May 2000 07:13:04 GMT
|
Viewed:
|
1464 times
|
| |
| |
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 size 5, it's almost impossible to send data.
TeamLego
Tobias Bende wrote:
> 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
|
| (...) This suprises me. I have never heard of such high packet losses. How does dll do this? With some kind of ack and retry mechanism? dll seems reliable. Of course dll is going in the other direction. (25 years ago, 17-May-00, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | Re: lnp communication question
|
| (...) 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? (...) We plan to build a six-legged lego (...) (25 years ago, 16-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
|
|
|
|