English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 31 July 2018, 23:02   #1
plasmab
Banned
plasmab's Avatar
 
Join Date: Sep 2016
Location: UK
Posts: 2,917
Echo main console to serial port

Dumb question.

I want to be able to pipe/echo anything printed in the initial amiga os console to the serial port at start up time. Preferably by specifying some command in the startup sequence.

I have managed to get a new console on the serial port but i want to echo what is written to the console window to the serial port. I am not starting workbench. Simply running an executable from floppy with a lot of output that i want to capture via the serial port.

My startup-sequence currently is :

C:MyCommand

and my floppy disk contains C/MyCommand and S/Startup-Sequence only. I have no other drives and writing to floppy is not an option.

I do not need the serial port to be interactive but if it is thats not a problem.

EDIT: I'll happily take code to fprintf() to the serial port also if anyone knows how.
plasmab is offline  
Old 01 August 2018, 00:31   #2
kolla
Registered User
kolla's Avatar
 
Join Date: Nov 2007
Location: Trondheim, Norway
Posts: 1,567
Do you need to see output in the console too, or is it enough to just see it on serial port?
The obvious thing to try is...
Code:
C:MyCommand >SER:
kolla is offline  
Old 01 August 2018, 00:46   #3
nogginthenog
Amigan

 
Join Date: Feb 2012
Location: London
Posts: 677
AUX: is unbuffered serial I think?.
There is a KPrintF() in debug.lib but I guess you know that.
nogginthenog is offline  
Old 01 August 2018, 01:36   #4
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 3,679
Exactly. Redirect to AUX:.
idrougge is offline  
Old 01 August 2018, 22:25   #5
plasmab
Banned
plasmab's Avatar
 
Join Date: Sep 2016
Location: UK
Posts: 2,917
Quote:
Originally Posted by idrougge View Post
Exactly. Redirect to AUX:.
That doesnt work on a minimal disk though. Just popup up a dialog saying Please insert disk AUX: or SER: in any drive.
plasmab is offline  
Old 01 August 2018, 22:30   #6
plasmab
Banned
plasmab's Avatar
 
Join Date: Sep 2016
Location: UK
Posts: 2,917
Quote:
Originally Posted by nogginthenog View Post
AUX: is unbuffered serial I think?.
There is a KPrintF() in debug.lib but I guess you know that.
I didnt know that but my vbcc install says debug.lib doesnt exist. :/

At least -ldebug didnt find a library.
plasmab is offline  
Old 01 August 2018, 22:39   #7
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 2,112
Quote:
Originally Posted by plasmab View Post
That doesnt work on a minimal disk though. Just popup up a dialog saying Please insert disk AUX: or SER: in any drive.
You may need to add aux-handler or how it is called on disk and a mount file.
daxb is offline  
Old 02 August 2018, 06:26   #8
modrobert
old bearded fool

modrobert's Avatar
 
Join Date: Jan 2010
Location: Bangkok
Age: 51
Posts: 503
http://aminet.net/package/dev/debug/cop
modrobert is offline  
Old 04 August 2018, 20:19   #9
plasmab
Banned
plasmab's Avatar
 
Join Date: Sep 2016
Location: UK
Posts: 2,917
Quote:
Originally Posted by modrobert View Post
Not useful for my purposes. I use diagrom for that.
plasmab is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial Port? EugeneNine support.FS-UAE 5 23 February 2017 02:09
Debugging over Serial-Port sigma63 support.WinUAE 1 14 March 2016 20:02
Serial Console xArtx Coders. General 8 31 January 2015 05:39
Serial port, parallel port, and pipe device mount errors Samurai_Crow support.FS-UAE 4 13 March 2014 01:04
Lightgun with serial port cebulba support.Hardware 1 10 December 2003 15:05

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 20:47.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.07292 seconds with 13 queries