Welcome, Guest. Please login or register.

Author Topic: Capturing serial output  (Read 1973 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Matt_HTopic starter

Capturing serial output
« on: August 19, 2009, 03:25:29 AM »
I've never done it before, now I need to. Can anyone walk me through it?

I've got the machines linked via a direct serial line. Should I be using null modem? What program should I use for capturing? Term? Anything special to configure?

Thanks in advance.
 

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: Capturing serial output
« Reply #1 on: August 19, 2009, 09:47:35 AM »
You'll  need a nullmodem cable/adapter if you're connecting two PC-style serial ports to each other to feed the outputs of one side into the inputs of the other side. Depending on the protocol used, that cable should also include hardware handshake lines and such. You can easily test the setup by running a terminal program on either side, 'chatting' to each other. Most terminals allow capturing, so there's nothing special here really except you'll have to match the settings (bitrate, word size (7/8), parity, stop bits, software (xon/xoff) vs hardware handshake) on both sides. If you don't know them 19200 or 9600 baud, 8N1, xon/xoff usually is a good start.
 

Offline Tension

Re: Capturing serial output
« Reply #2 on: August 19, 2009, 10:39:29 AM »
copy dh0:file to AUX:
copy AUX: to dh0:file

Make sure serial settings match on both Amigas.

Or use ProNet, I swear by it.

http://ftp.uni-paderborn.de/aminet/aminet/comm/net/ProNET34.lha

Its very easy to set up, I used it for years with no problems.
You can use a 3-wire serial cable, 7-wire serial cable, or a parallel cable.

Good luck!

Offline platon42

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 573
    • Show only replies by platon42
    • http://www.platon42.de/
Re: Capturing serial output
« Reply #3 on: August 19, 2009, 02:53:31 PM »
Quote from: Matt_H;519861
I've never done it before, now I need to. Can anyone walk me through it?

I've got the machines linked via a direct serial line. Should I be using null modem? What program should I use for capturing? Term? Anything special to configure?


Be sure to use a null modem cable. There is a famous quote by me when I got my first A4000D and wanted to port my data via serial line: "I'll take the modem cable, it's shorter than the null modem cable." The result was a fried CIA chip (a normal cable connects more lines that you want to and does not twist RX/TX as required).

If you're going to debug kprintf stuff (exec/PutChar or whatever it's called), be sure to use the command SetDebugSpeed to set it to a reasonable high baudrate (I'm using 115200 without problems). I think the shell tool is part of the phase5 dev kit, I only found the source code here with a quick search http://cd.textfiles.com/amigaformat/aformat-26-199804/-Seriously_Amiga-/Commercial/phase5/PPC/dev_45.17/Tools/SetDebugSpeed.c

On the other side, I recommend TeraTerm for Windows (unfortunately, I only handles the first 4 COM ports, so you might need to remap them if you're using a USB serial adapter), minicom for Linux (you need to disable the modem init stuff though) or Term for AmigaOS/MorphOS.

By default, the exec serial debug is 9600 bps, 8N1, no handshaking (not even XON/OFF AFAIK).
--
Regards, Chris Hodges )-> http://www.platon42.de <-(
hackerkey://v4sw7CJS$hw6/7ln6pr7+8AOP$ck0ma8u2LMw1/4Xm5l3i5TJCOTextPad/e7t2BDMNb7GHLen5a34s5IMr1g3/5ACM
 

Offline Matt_HTopic starter

Re: Capturing serial output
« Reply #4 on: August 19, 2009, 11:42:08 PM »
This is between an A1 and a Pegasos, so no CIAs to worry about there. I've now got a null modem module in the cable chain. Will report back soon with results.
 

Offline Matt_HTopic starter

Re: Capturing serial output
« Reply #5 on: August 20, 2009, 01:53:00 AM »
Success! Although OS4 just about chokes on Term. Barely works. Not a recommended combination.

Thanks, all!