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 / 3993
3992  |  3994
Subject: 
lnp sending from rcx to pc problems
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Fri, 29 Dec 2006 00:44:07 GMT
Viewed: 
14515 times
  
hi,


(1. PROBLEM) :o)
i am trying to send something from my rcx to my pc(serial tower) via
lnp. with my rcx program running i started lnpdump to see if anything
arrives at my pc, but nothing seems to arrive. with my pc-side program i
also cant receive anything. but when i start lnpdump -a or lnpdump -r
(shows raw data without interpretation) i see the sent data arriving
correctly at the pc. why is this? i tried brickos 0.2.4 0.2.5 0.2.6
without any change.. :(

the relevant lines are:


on the rcx:
#define HOST_3  3
...
int receiver = ((HOST_3 << 4) | PORT_A);
result = lnp_addressing_write(samples, 128,receiver,1);



on the pc:
...
if (lnp_init(0,0,0x30,0,0)){
     printf("killing");
     exit(1);
}
lnp_addressing_set_handler(1,data);
...
...
void data(const unsigned char *data,unsigned char length,unsigned char rc)
{
    printf("recieving data\n");
    memcpy(&(image[lines*128]),data,128);
    count++;
}


...any ideas?


(2. PROBLEM)
because the 0.2.x brickos series didnt work i added stable sources to my
apt file and downloaded brickos 0.9.0, an egcs-2.91.60 crosscompiler and
the binutils-h8300 via apt-get. As described in the docs i copied the
Makefile from the demo dir. but when i try to "make" any program the
following errors occur:

> claut@phobos:~/demo$ make myscan.lx
> /usr/h8300-hitachi-hms/bin/h8300-hitachi-hms-gcc -O2 -fno-builtin
-fomit-frame-pointer -Wall -I/usr/include/brickos
-I/usr/include/brickos/lnp -I. -I/usr/include -I/usr/include/brickos  -c
myscan.c -o myscan.o
> /usr/include/brickos/dsensor.h:118: warning: this is the location of
the previous definition
> /tmp/cc614n9t.s: Assembler messages:
> /tmp/cc614n9t.s:1: Error: no such instruction: `gcc For the Hitachi
H8/300'
> /tmp/cc614n9t.s:2: Error: no such instruction: `by Hitachi America
Ltd and Cygnus Support'
> /tmp/cc614n9t.s:3: Error: no such instruction: `release F-1' `release
F-1'> /tmp/cc614n9t.s:4: Error: junk at end of line, first unrecognized
character is `-'
> /tmp/cc614n9t.s:12: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:13: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:14: Error: no such instruction: `jsr @_motor_a_dir'
> /tmp/cc614n9t.s:15: Error: no such instruction: `rts'
> /tmp/cc614n9t.s:19: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:20: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:21: Error: no such instruction: `jsr @_motor_c_dir'
> /tmp/cc614n9t.s:22: Error: no such instruction: `rts'
> /tmp/cc614n9t.s:26: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:27: Error: no such instruction: `jsr @_motor_a_dir'
> /tmp/cc614n9t.s:28: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:29: Error: no such instruction: `jsr @_msleep'
> /tmp/cc614n9t.s:30: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:31: Error: no such instruction: `jsr @_motor_a_dir'
> /tmp/cc614n9t.s:32: Error: no such instruction: `rts'
> /tmp/cc614n9t.s:36: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:37: Error: no such instruction: `jsr @_motor_c_dir'
> /tmp/cc614n9t.s:38: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:39: Error: no such instruction: `jsr @_msleep'
> /tmp/cc614n9t.s:40: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:41: Error: no such instruction: `jsr @_motor_c_dir'
> /tmp/cc614n9t.s:42: Error: no such instruction: `rts'
> /tmp/cc614n9t.s:49: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:50: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:51: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:52: Error: no such instruction: `jsr @_motor_c_set'
> /tmp/cc614n9t.s:53: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:54: Error: no such instruction: `jsr @_msleep'
> /tmp/cc614n9t.s:55: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:56: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:57: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:58: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:59: Error: no such instruction: `bls .L63'
> /tmp/cc614n9t.s:60: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:62: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:63: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:64: Error: no such instruction: `bgt .L65'
> /tmp/cc614n9t.s:65: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:66: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:68: Error: no such instruction: `shlr r0h'
> /tmp/cc614n9t.s:69: Error: no such instruction: `rotxr r0l'
> /tmp/cc614n9t.s:70: Error: suffix or operands invalid for `add'
> /tmp/cc614n9t.s:71: Error: no such instruction: `bne .Llt1'
> /tmp/cc614n9t.s:72: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:73: Error: no such instruction: `jsr @___udivhi3'
> /tmp/cc614n9t.s:74: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:75: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:76: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:77: Error: suffix or operands invalid for `add'
> /tmp/cc614n9t.s:78: Error: suffix or operands invalid for `add'
> /tmp/cc614n9t.s:80: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:81: Error: no such instruction: `jsr @_msleep'
> /tmp/cc614n9t.s:82: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:83: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:84: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:85: Error: no such instruction: `bhi .L64'
> /tmp/cc614n9t.s:87: Error: no such instruction: `jsr @_motor_c_stop'
> /tmp/cc614n9t.s:88: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:89: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:90: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:91: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:92: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:93: Error: no such instruction: `jsr
@_lnp_addressing_write'
> /tmp/cc614n9t.s:94: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:95: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:96: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:97: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:98: Error: no such instruction: `jsr
@_lnp_addressing_write'
> /tmp/cc614n9t.s:99: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:100: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:101: Error: no such instruction: `jsr @_motor_c_set'
> /tmp/cc614n9t.s:102: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:103: Error: no such instruction: `jsr @_msleep'
> /tmp/cc614n9t.s:104: Error: suffix or operands invalid for `add'
> /tmp/cc614n9t.s:105: Error: suffix or operands invalid for `add'
> /tmp/cc614n9t.s:106: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:108: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:109: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:110: Error: no such instruction: `bhi .L69'
> /tmp/cc614n9t.s:111: Error: no such instruction: `jsr @_motor_c_stop'
> /tmp/cc614n9t.s:115: Error: no such instruction: `rts'
> /tmp/cc614n9t.s:119: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:120: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:121: Error: no such instruction: `jsr @_motor_a_set'
> /tmp/cc614n9t.s:122: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:123: Error: no such instruction: `jsr @_msleep'
> /tmp/cc614n9t.s:124: Error: no such instruction: `jsr @_motor_a_stop'
> /tmp/cc614n9t.s:125: Error: no such instruction: `rts'
> /tmp/cc614n9t.s:130: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:132: Error: no such instruction: `bset '
> /tmp/cc614n9t.s:135: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:137: Error: no such instruction: `jsr @_scanline'
> /tmp/cc614n9t.s:138: Error: no such instruction: `jsr @_linefeed'
> /tmp/cc614n9t.s:139: Error: suffix or operands invalid for `sub'
> /tmp/cc614n9t.s:140: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:141: Error: no such instruction: `bne .L81'
> /tmp/cc614n9t.s:142: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:144: Error: no such instruction: `bclr '
> /tmp/cc614n9t.s:147: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:149: Error: no such instruction: `bclr '
> /tmp/cc614n9t.s:152: Error: invalid character '.' in mnemonic
> /tmp/cc614n9t.s:154: Error: no such instruction: `rts'
> make: *** [myscan.o] Fehler 1

i am using debian etch with a 2.6 kernel and i allready tried many
reinstalls but it didnt work.
please help me, this is really drivin me nuts...



1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR