Solved

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

Posted on 2006-10-23
3
677 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Not needed 13 120
Android development question 2 54
printf performancy 11 71
Select specific duplicate row based on specific criteria 4 56
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

830 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