To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 249
248  |  250
Subject: 
PC <> RCX Communication?
Newsgroups: 
lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc
Date: 
Sat, 27 Nov 1999 15:53:53 GMT
Viewed: 
205 times
  
Quick question: is there a way for the rcx to send data to the PC (and
possibly vice versa)?

I have a scanner base built, and ideally I would like a way to communicate
with the RCX, with the PC controlling the movement of the scanner. I could
probably use live control, but the timings need to be very precise so it
really needs the RCX being told to move x units by the pc, and doing the
timing of the move for itself.

Basically I am looking for a way to SendMessage() to the RCX, and a way to
receive messages sent by the RCX. The code onboard the RCX is NQC, and
ideally I would like to use VB+Spirit.ocx to receive messages from the 'bot
and control it by sending it messages.

The robot is controlled by interpreting Message() and sends back information
using SendMessage(), now I need the same kind of functionality at the PC
end. Anything which runs/compiles on NT4 would do...

Regards,
Kornel Lambert (Email: kornel@black-hole.co.uk) (Mobile: 0780 885 3178)
               (Phone: 0181 408 0796) (PGP Key: www.kornel.com/pgp.asc)
               (Email-to-Pager: pager@kornel.com) (Web: www.kornel.com)



Message has 3 Replies:
  Re: PC <> RCX Communication?
 
Have a look at my page : (URL) buit a scanner with bidirectionnal control. Client (RCX) software written with NQC, 'server' (master=pc) soft written in borland delphi 3.0. But you can do the same with VB. It does quite exactly wath you want. This (...) (25 years ago, 27-Nov-99, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
  Re: PC <> RCX Communication?
 
(...) If you just listen to the 'message'es you send out from the RCX, you see them coming in. On unix just do something like cat /dev/cuaa0 It also works with most IRda ports, such as thouse found on the iMac and most laptops. Though I found the (...) (25 years ago, 27-Nov-99, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
  Re: PC <> RCX Communication?
 
(...) The op-code for sending a message is $F7 "set message". Unfortunately somehow it is left out of spirit.ocx, so you have to go down to the serial protocol in order to use it. See (URL) for the details. If you want to stick to spirit.ocx, you (...) (25 years ago, 29-Nov-99, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)

8 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