To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 853
852  |  854
Subject: 
Re: LinuxPPC and "No response from RCX" problem
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Sat, 4 Nov 2000 00:28:32 GMT
Viewed: 
2108 times
  
Chris wrote:

In lugnet.robotics.rcx.nqc, Jan-Albert van Ree writes:

Chris wrote:

    I recently bought an RIS kit and from my Windows box it works fine. When
I try using LinuxPPC off my PPC Amiga I get the following:
[root] /home/chris/nqc/nqc-2.2.r2 >bin/nqc -v -raw 10

Did you set the correct permissions for the serial ports (normally they're
only accessible by root under Linux) Do a chmod 777 for /dev/ttyS0

Umm.. note the prompt ;)) I'd done an su root before testing to avoid
permissions problems. This seems like a problem with nqc on LinuxPPC 3Q99,
but I can't understand quite what it is as the tower obviously works -
the green light is visible and it maintains a steady brightness and it works
fine from Windoze. The only thing I can think of is that the baud rate or
serial format isn't correct - the serial port works fine with my modem so
it's not a hardware problem.

Have you tried using setserial to set the correct baud rate and other
options?
Also note that when using "su" it sometimes doesn't take over all the
settings from the user account that you used to log on. Perhaps the sudo
command would work better.

For debugging purposes, here's my statserial listing for /dev/ttyS0, with
the tower on and all working.

Device: /dev/ttyS0
Signal  Pin  Pin  Direction  Status  Full
Name    (25) (9)  (computer)         Name
-----   ---  ---  ---------  ------  -----
FG       1    -      -           -   Frame Ground
TxD      2    3      out         -   Transmit Data
RxD      3    2      in          -   Receive Data
RTS      4    7      out         1   Request To Send
CTS      5    8      in          1   Clear To Send
DSR      6    6      in          0   Data Set Ready
GND      7    5      -           -   Signal Ground
DCD      8    1      in          0   Data Carrier Detect
DTR     20    4      out         1   Data Terminal Ready
RI      22    9      in          0   Ring Indicator

[javanree@burmashave /dev]$ nqc -v -raw 10
Tx: 55 ff 00 10 ef 10 ef
Rx: 55 ff 00 10 ef 10 ef 55 ff 00 ef 10 ef 10
Tx: 55 ff 00 18 e7 18 e7
Rx: 55 ff 00 18 e7 18 e7 55 ff 00 e7 18 e7 18

And baud rate is set to 2400 as well...
This did it for me.
--
Jan-Albert "Anvil" van Ree   | http://www.nl.3dgamers.com
3D Sims Archive maintainer   | http://www.3dgamers.com
Thrustmaster Resource Center | http://www.3dgamers.com/tmresourcecenter/



Message is in Reply To:
  Re: LinuxPPC and "No response from RCX" problem
 
(...) Umm.. note the prompt ;)) I'd done an su root before testing to avoid permissions problems. This seems like a problem with nqc on LinuxPPC 3Q99, but I can't understand quite what it is as the tower obviously works - the green light is visible (...) (24 years ago, 3-Nov-00, to lugnet.robotics.rcx.nqc)

11 Messages 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