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 / 1474
1473  |  1475
Subject: 
Re: LEGO remote and LNP (legOS 0.2.4)
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 23 Oct 2000 16:53:44 GMT
Viewed: 
1505 times
  
On Oct 23, Rasmus Kjeldsen wrote:
Hi

I've just got the LEGO remote control (from the Ultimate Accessory Kit), and
of cause it dosen't work with legos. So I tried to see, if anyone had done
some kind of driver to it, but I couldn't find any, and began hacking in the
legOS kernel (kernel/lnp.c), to see, if I could alter the LNP driver to accept

messages from the remote. It nearly works, but strangly enough, a couble of
bytes is missing. I receive the following bytes for "message 1": (out of my
memory)

55 ff 00 2d d2 00 ff 2d d2

But if I use a program on my Linuxbox, which receives the signal from the ir-
tower, I get:

55 ff 00 2d d2 00 ff 01 fe 2d d2
So the question is: Why are the 01 fe bytes missing???

The remote control sends with parity odd, but the rcx is programmed to
no parity.  If the parity bit has the same value as a undriven line (I
think it is logical 1), the byte is received, but otherwise the byte
gets thrown away by the serial hardware.

The fix is of course to put the serial in odd parity mode.  There was
a patch by Chris Arquiza on this list some time ago (18. July) and I'm
using it (slightly modified) without problems.  For convenience I have
now put the patch I am using at:

  http://www.informatik.uni-oldenburg.de/~delwi/legOS/remote.diff

  Jochen



Message has 2 Replies:
  Re: LEGO remote and LNP (legOS 0.2.4)
 
I'd actually really like to include Chris's patch in the official tree, but I'm informed by folks with more clue about the networking stuff than me that switching the parity bit would probably break some LNP stuff. Would everyone be happier if I (...) (24 years ago, 23-Oct-00, to lugnet.robotics.rcx.legos)
  Re: LEGO remote and LNP (legOS 0.2.4)
 
(...) 1. Applying as is caused dll program to not work. 2. I set parity to none, and dll is fixed, but then my handler only gets called when remote key is released - all key-down messages are lost. I'm just wondering what I'm doing wrong? Thanks (...) (24 years ago, 13-Jan-01, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  LEGO remote and LNP (legOS 0.2.4)
 
Hi I've just got the LEGO remote control (from the Ultimate Accessory Kit), and of cause it dosen't work with legos. So I tried to see, if anyone had done some kind of driver to it, but I couldn't find any, and began hacking in the legOS kernel (...) (24 years ago, 23-Oct-00, to lugnet.robotics.rcx.legos)

11 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