To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.trainsOpen lugnet.trains in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Trains / 21058
21057  |  21059
Subject: 
leJOS & LDCC IRP
Newsgroups: 
lugnet.robotics.rcx.java, lugnet.trains
Date: 
Fri, 12 Sep 2003 04:18:37 GMT
Viewed: 
362 times
  
Brian B. Alano wrote:
I'm writing a leJOS package to support the LDCC IR Protocol. I've been testing it
against Full Throttle. It works fine with the speed controls, but doesn't even
seem to see packets for the function commands, stop, or power commands. At first
I was just checking for the 0xF5 opcode byte, but even when I just look for any
and all packets, I don't see these other commands. I tried using another
computer, in case there was something funny with my configuration. No luck. I
traced the serial output from Full Throttle. This leads to questions 1 and 2
regarding LDCC IRP:

1. Why do some packets use fd instead of f5 for the opcode?

2. What's the purpose of the 01 in the second byte? Future use as an LDCC
controller address?

Oh, here's another LDCC IRP question:
3. in ldcc105.zip, the example file ldcc_lnp.c uses lnp_addressing_write() to
send IRP commands. Does this mean that LDCC is listening for both IRP commands
using opcode 0xf5 AND for IPR commands embedded in LNP packets?

Then a leJOS question (I think) and my real problem:
4. As far as I can tell, the only significant difference between the speed
commands and the other commands at the packet level is that the speed commands
are 6 bytes long (e.g. f5 01 01 01 80),and the others are 3 to 5 bytes long (e.g.
f5 01 04). I'm  using the Serial class to read the packets. As far as I can tell,
Serial isn't doing any validity checking on the packets, just taking whatever the
ROM gives it. I assume the ROM can read this packets or LDCC wouldn't recognize
them either. Why would the Serial class ignore the shorter packets?

Discouraged, disheartened, and fearful. Maybe I should go FORTH to brickOZ.
;)
-Brian



Message has 3 Replies:
  Re: leJOS & LDCC IRP
 
(...) I re-used a function to send command packets to the RCX that was designed for use with the original firmware, so it toggles the 0x08 bit of any repeated opcode bytes. Mark pointed this out to me when I was developing Full Throttle, but then he (...) (21 years ago, 12-Sep-03, to lugnet.robotics.rcx.java, lugnet.trains)
  Re: leJOS & LDCC IRP
 
Hi, (...) I'm having a bit of difficulty to understand what you are trying to do, as I know Lejos but not the DCC/train side of things. In particular, on which side do you want to use Lejos, sending those remote commands from an RCX or from a PC? (...) (21 years ago, 12-Sep-03, to lugnet.robotics.rcx.java, lugnet.trains)
  Re: leJOS & LDCC IRP
 
Thanks to Chris, Mark and Jürgen, I am successfully reading LDCC IRP packets with josx.rcxcomm.LLC! (I say reading, not parsing--haven't had time to clean it up, yet!) (21 years ago, 16-Sep-03, to lugnet.robotics.rcx.java, lugnet.trains)

Message is in Reply To:
  Re: leJOS & BricxCC news
 
(...) Hmmm. I was seriously considering writing a leJOS package to support the LDCC IR Protocol. (Here's why: (URL) ) What capabilities were you going to add? Depending on your timeline, you might convince me to try FORTH. (21 years ago, 7-Sep-03, to lugnet.robotics.rcx.java, lugnet.robotics.rcx, lugnet.trains, lugnet.robotics.rcx.pbforth)

14 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