To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 19734
19733  |  19735
Subject: 
RCX comunications - UDP/IP???
Newsgroups: 
lugnet.robotics
Date: 
Thu, 5 Dec 2002 04:03:25 GMT
Viewed: 
601 times
  
Is the RCX capable of broadcasting a message without handshaking similar to
UDP/IP using NQC?  For those that arent familar, UDP simply broadcast a
packet and doesn't require a confirmation that the packet was recieved
unlike its brother TCP/IP

This is for a race car on the discussion that I would like the car to
broadcast an Identifier, lap time or otherwise for "pit board" type
communications between the multiple cars and a separate RCX trackside.

any code example would be great.

Jeff Wood



Message has 2 Replies:
  Re: RCX comunications - UDP/IP???
 
(...) THe simple 'SendMessage(c)' command in NQC doesn't do any handshaking - and (of course) it broadcasts. (...) THe 'SendMessage' command only sends a single byte - and one problem with this is that if you want to send a multi-byte message, it (...) (22 years ago, 5-Dec-02, to lugnet.robotics)
  Re: RCX comunications - UDP/IP???
 
Using LNP (included in BrickOS) you can broadcast a packet using lnp_integrity_write(). Such a packet is guaranteed to arrive intact if it arrives at all. Each RCX must have a "listener" set up for the port you broadcast on. LNP addressing normally (...) (22 years ago, 5-Dec-02, to lugnet.robotics)

3 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