Subject:
|
Re: LNPD problem..again :)
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Tue, 28 Nov 2000 20:45:01 GMT
|
Viewed:
|
1512 times
|
| |
| |
On Tue, 28 Nov 2000, Kenneth Johansen wrote:
> hi everybody, im having some trouble with LNPD and was hoping someone
> out there might get me on the
> right track again :)
>
>
> PC side:
> #define MY_PORT 8
> #define DEST_HOST 0
> #define DEST_PORT 0
> #define DEST_ADDR (DEST_HOST << 4 | DEST_PORT)
>
> i am trying to send an "int data[10]" array (all in all 40 bytes), but
> when i do the
> result = lnp_addressing_write(data,len,DEST_ADDR,MY_PORT);
> the result retuns an TX_FAILURE indicating a collision.
> i can see on the LCD display on the RCX that it starts recieving , but
> that is only for a fraction of a second.
Have you set up a packet handler on the RCX before sending this? I would
guess that if there isn't one, you'll run into something like TCP's
"connection refused", which might be what you're seeing. Otherwise, I
assume that other LNP stuff (e.g. dll) works under the same conditions? If
neither of those are in the right direction, can you code up a very simple
test case that fails, and either send it to me or post it somewhere?
Looking at the whole thing might help.
--
"Say not, 'I have found the truth,' but rather, 'I have found a truth.'
"Say not, 'I have found the path of the soul.' Say rather, 'I have met the
soul walking upon my path.'" -- Khalil Gibran
Mike Ash - <http://www.mikeash.com/>, <mailto:mail@mikeash.com>
|
|
Message is in Reply To:
| | LNPD problem..again :)
|
| hi everybody, im having some trouble with LNPD and was hoping someone out there might get me on the right track again :) PC side: #define MY_PORT 8 #define DEST_HOST 0 #define DEST_PORT 0 #define DEST_ADDR (DEST_HOST << 4 | DEST_PORT) i am trying to (...) (24 years ago, 28-Nov-00, to lugnet.robotics.rcx.legos)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|