Subject:
|
Re: using the remote control with legOS
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Tue, 8 Feb 2000 09:13:46 GMT
|
Viewed:
|
2480 times
|
| |
| |
Marc wrote:
> the LNP stuff is neat, but it seem's that the remote control isn't using
> either "integrity" or "addressing" protocol
> how do I access directly the incoming IR buffer ??
with an unpatched legOS-2.3, there's no easy way to do that. The
incoming buffer is a static array inside function lnp_integrity_byte(),
it's not accessible from outside.
However, there is a hard way out (i used it during development of lnpd)
Write your own IRQ handlers for receiving and receive-errors -- you can
use the legOS-routines as a starting point -- and make the IRQ-Vectors
in RAM point to your routines. This way you can completely bypass LNP's
receive routines.
BTW, what kind of remote control are you talking about -- is it a
LEGO-part ?
Perhaps we should try to figure out what protocol this remote-control
uses and add some appropriate code to legOS.
> I didn't see any source code for "lnp_integrity_set_handler" , how does it
> work ?
the function is inlined, it's trivial -- from lnp.h:
//! set the integrity layer packet handler
extern inline void lnp_integrity_set_handler(lnp_integrity_handler_t
handler)
{
lnp_integrity_handler = handler;
}
|
|
Message has 1 Reply: | | Re: using the remote control with legOS
|
| it would be nice to be able to use both LNP and remote control (advance tactical robots) I wrote last night a small win prog to figure out how the remote is talking and this is it: +++ // LEGO REMOTE CONTROL (#9738 = ~20 USD) FOR RCX MESSAGE (...) (25 years ago, 9-Feb-00, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | using the remote control with legOS
|
| the LNP stuff is neat, but it seem's that the remote control isn't using either "integrity" or "addressing" protocol how do I access directly the incoming IR buffer ?? I didn't see any source code for "lnp_integrity_set_handler" , how does it work ? (...) (25 years ago, 7-Feb-00, to lugnet.robotics.rcx.legos)
|
3 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
|
|
|
|