To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1949
1948  |  1950
Subject: 
Re: Fix for remote patch
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sat, 21 Jul 2001 22:59:08 GMT
Viewed: 
1502 times
  
Its good to know that there is a bug and that there is someone who knows
how to fix it.

I'll post a diff eventually, but in the meantime, just apply the remote
patch from sourceforge, open util/dll-src/rcxtty.c, find the following
block, and make the changes to the two lines marked //!!!

  // Serial settings
  FillMemory(&dcb, sizeof(dcb), 0);
  if (!GetCommState(fd, &dcb)) { // get current DCB
    // Error in GetCommState
    myperror("GetCommState");
    return -1;
  } else {
    dcb.ByteSize = 8;
    dcb.Parity   = (highspeed ? 0 : 1);  //!!!  //
0-4=no,odd,even,mark,space
    dcb.StopBits = 0;   // 0,1,2 = 1, 1.5, 2
    dcb.fBinary  = TRUE ;
    dcb.fParity  = (highspeed ? FALSE : TRUE) ;    //!!!
    dcb.fAbortOnError = FALSE ;
    dcb.BaudRate = (highspeed ? CBR_4800 : CBR_2400); // Update DCB rate.

Could you maybe send me some sample code for the rcx and the win32 side ?
I dont want anything special just a few lines of code for each side (rcx • and
win32)

Um... I'm talking about remote-control -> RCX transmission. There is no
win32 side.
(Not that PC<->RCX communication isn't interesting. I have downloaded
WinLNP, and intend to experiment with it soon. [To find, just do a goole
search for WinLNP])

Max.



Message has 1 Reply:
  remote control
 
hi all, ive been out of the loop for a while now (summer vacation). so if this has been discused lately forgive my ignorance. im working on a program that lets me control the RCX from a PC using the IR tower. im using legOS 2.4 on redhat 6.1. i am (...) (23 years ago, 23-Jul-01, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: Fix for remote patch
 
(...) Hi, Its good to know that there is a bug and that there is someone who knows how to fix it. Could you maybe send me some sample code for the rcx and the win32 side ? I dont want anything special just a few lines of code for each side (rcx and (...) (23 years ago, 21-Jul-01, to lugnet.robotics.rcx.legos)

4 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR