Solved

Controllling the Lego RCX2.0 directly from a laptop's ir port.

Posted on 2006-10-23
3
674 Views
Last Modified: 2008-01-09
Hello.  I want to directly control a RCX2.0 from the ir port on a laptop running windows.  I know I can use the Spirit.ocx to do so by means of the tower, but I know it can be done without it since the palm can do it with the pbrick library.  I've extracted the code from there but I can't access the ir serial port when I call CreateFile, I suppose it's because windows is using it to scan for ir signals.  Must i first stop windows from using the ir port ? If so, how do I do that ?
0
Comment
Question by:jasg
3 Comments
 
LVL 5

Accepted Solution

by:
rwj04 earned 250 total points
ID: 17793775
you must close the serial port using the IR before you can use it for anything else.  

how to close it?   i don't know, im not familiar with Lego software.  how did you open it?   there should be a complimentary command to close the port if you could open it.

you could look into getting a USB/Serial adapter to give yourself a second serial port.

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question