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 / 3992
3991  |  3993
Subject: 
problem running LNPD on Debian, LNP programs on the PC side
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 21 Nov 2006 18:30:01 GMT
Viewed: 
14853 times
  
Hi everyone, I'm doing my thesis using Brickos and LNP on Debian, with a RCX 2.0
and an IR tower USB, LNP because I need to have a constant communication between
the pc and several RCXs.

I'm using brickos lnpd_0.9.0-1 stable, lnpd_0.9.0-1_i386.deb on a debian system
with kernel
kernel-image-2.6.8-3-386_2.6.8-16sarge5_i386.deb. Everything works fine,
downloading programs to RCX, compiling programs ... but when I try to use  the
lnpd on the pc side I get the following errors:

1. In the log file (lnpd.log):
        0:Info > created lock file /var/lock/LCK..legousbtower0
        0:Fatal > /dev/usb/legousbtower0 is not a tty

2. In the command lines:
debian:~/diego/pcrcx/pc# export RCXTTY=/dev/usb/legousbtower0
debian:~/diego/pcrcx/pc# ./lnpd
Usage: /etc/init.d/lnpd {start|stop|restart|force-reload}
debian:~/diego/pcrcx/pc# ./lnpd start
lnpd: Starting daemon with options=[--fast RCXTTY=/dev/usb/legousbtower0   --log=/var/log/lnpd.log ]
Starting BrickOS LNP Daemon: lnpd.
debian:~/diego/pcrcx/pc# ./pc
lnp_init: Connection refused
debian:~/diego/pcrcx/pc# ./lnpd stop


I know that the problem comes from the relation RCXTTY=/dev/usb/legousbtower0
with Lnpd in file lnpd.conf but I don't know what to do for slove this problem.
the lnpd.conf is this:

# Configurable command-line options for lnpd(8)
#
#   NOTE: this is a POSIX shell fragment
#
#  Logging options
#
#OPT_LOG="-l" # log to syslog
#OPT_LOG="--log=/var/log/lnpd.log" # log to specified file
#OPT_LOG="" # to disable logging
OPT_LOG="--log=/var/log/lnpd.log" # log to specified file
#
#  Communication speed options
#
#OPT_FAST="--fast"
OPT_FAST=""
#
# Logging Detail [see lnpd(8)]
#
#OPT_DEBUG="-vavil"
OPT_DEBUG=""
#
# The serial device to which the IR Tower is attached
#OPT_TTY="--tty=/dev/ttyS0"
OPT_TTY="RCXTTY=/dev/usb/legousbtower0"

#OPT_TTY="--tty=/dev/ttyS1"


Anyone who can help with this problem with LNPD, I 'll be very thankful.

Diego



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