|
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)
|
Message is in Reply To:
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
|
|
|
|