Groups | Search | Server Info | Login | Register


Groups > comp.os.psos > #9

Re: pSOS+ still in use?

From Martin Raabe <Martin.Raabe@NOSPAM_BaSystem.de>
Newsgroups comp.os.psos
Subject Re: pSOS+ still in use?
Date 2014-08-08 00:28 +0200
Organization BaSystem Martin Raabe
Message-ID <ls0uic$o70$1@online.de> (permalink)
References <k2kbco$eoo$1@news.albasani.net> <b2cdb3da-4415-4b61-a696-cb8a3c9be622@googlegroups.com> <looi8o$cdv$1@online.de> <a395e23c-c757-4e42-a4af-95c9c2d6c5dc@googlegroups.com>

Show all headers | View raw


Am 05.08.2014 um 15:03 schrieb jeanfrancois.fourre@gmail.com:
> Hello Martin
> 
> Thanks for your reply.
> I had read some documentation on redirect stdout and I have seen that "freopen" was the function which able me to do that but I don't understand how I have to call the function, what argument I have to use ?
> First, I think that SC_PREPC has to be set to YES to activate a set of functions like "printf".
> Then I have to call "freopen" but I dont understand the prototype of the function :
> 
> FILE * freopen ( const char * filename, const char * mode, FILE * stream );
> 
> stream is the stream that I want to reopen, in my case stdout or stderr
> mode is the access mode, in my case "w" or "w+"
> 
> filename gives me more problem.
> How can I specify my serial link ?
> I don't find any example for it. I have find several example for a file, with or without pathname but never for a material device.
> Can you help me ?
> I use pSOSystem 2.5 and a PowerPC 8270.
> The serial link is already used by a applicative task, is it forbidden ?
> Can I specify the configuration of the link (baud rate, bit start, bit stop, nb data bit) to Psos ?
> 
> Thanks a lot
> 
> Jean-Francois
> 


Hello Jean-Francois,
the serial line is a device, which can be addresses as major and minor
device number. You should be able to see this in the application
examples. The major number is determined in the config file, the minor
number is hard coded in thre respective driver.
To change baudrate etc. do the settings before the freopen.
Attention: Please negitioate the settings with the "applicative task" as
well as the use of it. The serial line could be sharable, but I'm not
quite sure.

Unfortunately I don't have a running pSOSystem / license.

In my former life I sold pSOSystem to the european world. :-)

Hope it helps

Martin

-- 
BaSystem Martin Raabe
E: Martin.Raabe<at>B-a-S-y-s-t-e-m<dot>de

Back to comp.os.psos | Previous | NextPrevious in thread | Find similar


Thread

pSOS+ still in use? "Johann Klasek - swap last two domainparts" <johann+usenet@at.klasek.invalid> - 2012-09-10 09:20 +0000
  Re: pSOS+ still in use? jeanfrancois.fourre@gmail.com - 2014-04-14 02:08 -0700
    Re: pSOS+ still in use? Martin Raabe <Martin.Raabe@NOSPAM_BaSystem.de> - 2014-06-29 10:20 +0200
      Re: pSOS+ still in use? jeanfrancois.fourre@gmail.com - 2014-08-05 06:03 -0700
        Re: pSOS+ still in use? Martin Raabe <Martin.Raabe@NOSPAM_BaSystem.de> - 2014-08-08 00:28 +0200

csiph-web