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 / 1034
  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 (...) (24 years ago, 15-May-00, to lugnet.robotics.rcx.legos)
 
  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 (...) (24 years ago, 16-May-00, to lugnet.robotics.rcx.legos)
 
  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 (...) (24 years ago, 17-May-00, to lugnet.robotics.rcx.legos)
 
  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. (24 years ago, 17-May-00, to lugnet.robotics.rcx.legos)
 
  Re: lnp communication question
 
Remember the medium... cheap IR basically stinks for transmission. You get transients from the lights in your room, the outdoors, yadda, yadda. Luis (wishing for RF like the Europeans get ;) (...) ---...--- "Going to California with an aching in my (...) (24 years ago, 17-May-00, to lugnet.robotics.rcx.legos)
 
  Re: lnp communication question
 
(...) Ok, this brings up more questions :). I have never had any problems with errors when sending messages. Sometimes the message is not recieved but when it is, I have never seen any errors in the transmission. Am I missing your point? Second, (...) (24 years ago, 20-May-00, to lugnet.robotics.rcx.legos)
 
  Re: lnp communication question
 
(...) lnp does a checksum and throws away bad data. I think it is a 1 byte checksum so 1 out of 256 errors gets through anyway. There is no retry so timeout and retry has to be handled by some higher level code. (24 years ago, 21-May-00, to lugnet.robotics.rcx.legos)

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