|
In lugnet.robotics, Kornel Lambert writes:
> 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 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 <http://graphics.stanford.edu/~kekoa/rcx/> for the
details.
If you want to stick to spirit.ocx, you can use SetVar()/Poll() and a global
variable to achieve bi-directional communication between the RCX and the PC.
Cheers,
Hao-yang Wang
|
|
Message is in Reply To:
8 Messages in This Thread: ![PC <> RCX Communication? -Kornel Lambert (27-Nov-99 to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)](/news/x.gif) ![](/news/246.gif) ![Re: PC <> RCX Communication? -Philippe Jadin (27-Nov-99 to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)](/news/x.gif) ![](/news/246.gif) ![MarsRobot Updated -Rich Thompson (27-Nov-99 to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc, lugnet.general)](/news/x.gif) ![](/news/46.gif) ![Problems with "built-in" IR proximity sensor -Stefano Franchi (29-Nov-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Problems with "built-in" IR proximity sensor -Mike Kory (29-Nov-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: PC <> RCX Communication? -Kornel Lambert (27-Nov-99 to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: PC <> RCX Communication? -Dirk-Willem van Gulik (27-Nov-99 to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)](/news/x.gif)
![](/news/x.gif) ![](/news/68.gif) ![You are here](/news/here.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|