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 / 876
875  |  877
Subject: 
Communication between NQC and VisualBasic
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Thu, 30 Nov 2000 09:16:16 GMT
Viewed: 
2141 times
  
I would like to experiment with communication between two autonomous robots.
Unfortunately I can't afford a second RCX.
So I would like to this thing with the RCX and my PC.

Is there a way to write a NQC program that interacts with a Visual Basic (or
Perl or C++) program with messages just like two RCXs would interact?

I know I have full acces to all the RCX-features with SPIRIT.OCX and I can
control the RCX completely from the PC. But this is not what I want. I want
them to communicate as independend systems over a simple communication
channel. Each side shoud run its own program. Is this possible?



TZS



Message has 3 Replies:
  Re: Communication between NQC and VisualBasic
 
It seems that you want to run an RCX emulator on the PC side that can use the PC IR Tower as if it was the internal transmitter in the RCX brick. Thus you could run NQC generated bytecode in your robot, and NCQ generated bytecode on your PC. I know (...) (24 years ago, 30-Nov-00, to lugnet.robotics.rcx.nqc)
  Re: Communication between NQC and VisualBasic
 
(...) Unfortunately, Spirit.ocx doesn't support sending messages. However, the packet protocol is pretty simple so as long as you can access the serial port directly you should be able to build message packets. See the following web pages for more (...) (24 years ago, 1-Dec-00, to lugnet.robotics.rcx.nqc)
  Re: Communication between NQC and VisualBasic
 
(URL) is my scanner source code made by NQC and Visual Basic In this case, i used StartTask(), StopTask(), SetVar(), Poll(), etc. from the LEGO's control. (24 years ago, 3-Dec-00, to lugnet.robotics.rcx.nqc)

5 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