Re: [OpenIndiana-discuss] tip & ttydefs questions

2012-09-03 Thread Gary Mills
On Mon, Sep 03, 2012 at 10:10:23AM -0700, Reginald Beardsley wrote:
> 
>  I'm playing w/ a microcontroller (MSP430G2553) which communicates
> via RS-232 using a Keyspan USB<->RS-232 adapter and tip.

So, you are running `tip' on the OI computer, using it to connect to
the microcontroller over the serial line.  `tip' uses the /etc/remote
file to configure the connection.  See `man remote' for information.
Are you connecting through /dev/cua/a or /dev/cua/b?  Those are the
first two serial ports for calling out to another system.  For logging
in, they are named /dev/term/a and /dev/term/b .

>  I have two native forths that run on the MCU but w/ different
> handling of NL & CR in the output.

>  On one I'm missing the CR, so the output from line to line moves
> across and down the terminal window.

`tip' is supposed to behave like an ASCII terminal, sending a CR when
you type the [Enter] key.  The remote system is supposed to echo the
line as you type it, and then add a LF.  Something's wrong here.

>  I *expect* "opost onlcr" in /etc/ttydefs to fix this, but it seems
> not to have any effect. When does /etc/ttydefs get read? Is what the
> remote computer sends back input or output relative to a terminal
> window?  Should this be set via stty?  I've tried that also w/o
> detectable effect.

No, that file is only read by `ttymon', the daemon that handles
serial port logins.  I assume that the microcontroller is not logging
in to the OI computer.

>  The more I read, the more confused I get.  So far as I can tell, I
> can't configure the port as only an outbound connection, but must
> run login on it.  Harmless, but annoying.  But there are so many
> programs involved nothing is clear.

No, that's not necessary.  `man tip' should have useful information.

-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] tip & ttydefs questions

2012-09-03 Thread Reginald Beardsley

I read the man page for remote as saying that what is sent *to* the remote host 
for end-of-line is '\n' by default.  It's what is coming back, but not playing 
well w/ the terminal window.

Certain changes to /etc/remote seem to have no effect.  However I still don't 
know when that gets read.  But even removing and reinstating the service 
doesn't seem to help.

The problem is:

ok
   ok
  ok

instead of:

ok
ok
ok

FWIW the Sparc boot monitor is in forth.

I've asked the author if the behavior is readily changeable.  That is w/o 
reassembly.  Though I'll do that if I have to.

I have two forth interpreters that run on the MCU. One works fine.  The other 
doesn't.

You're *supposed* to be able to adjust for such behavior.  That's what all the 
terminal and line discipline code is for.  But Solaris got it badly wrong.  
There are so many pieces to the puzzle it's ridiculous.

Reg

--- On Mon, 9/3/12, Michael Stapleton  wrote:

> From: Michael Stapleton 
> Subject: Re: [OpenIndiana-discuss] tip & ttydefs questions
> To: "Discussion list for OpenIndiana" 
> Date: Monday, September 3, 2012, 5:48 PM
> Have you looked at your /etc/remote
> settings? Might be something there?
> 
> Why do you need DOS new line? Is there something on the
> controller that
> can be configured?
> 
> 
> #man remote
> .
> .
> .
>  pr
>            (str)
> Character  that  indicates  end-of-line 
> on  the
>            remote
> host.  The default value is  `\n'.
> 
> 
> Mike
> 


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] tip & ttydefs questions

2012-09-03 Thread Michael Stapleton
Have you looked at your /etc/remote settings? Might be something there?

Why do you need DOS new line? Is there something on the controller that
can be configured?


#man remote
.
.
.
 pr
   (str) Character  that  indicates  end-of-line  on  the
   remote host.  The default value is  `\n'.


Mike

On Mon, 2012-09-03 at 13:23 -0700, Reginald Beardsley wrote:

> Thanks.  I'll give that a go.  Kermit simply showed what I already knew.  I'm 
> getting a newline but no carriage return. Kermit will map a carriage return 
> to a newline, but not a newline to the pair. 
> 
> Strangely stty will not allow me to change certain things, but the man page 
> gives no indication of when or why.
> 
> Evi Nemeth et al after remarking that it adds great complexity w/ little 
> increase in functionality conclude the section on setting up terminals under 
> Solaris w/ "Have fun."
> 
> It's ridiculous that something so trivial would be such a hassle.
> 
> sigh..
> 
> --- On Mon, 9/3/12, Joshua M. Clulow  wrote:
> 
> > From: Joshua M. Clulow 
> > Subject: Re: [OpenIndiana-discuss] tip & ttydefs questions
> > To: "Discussion list for OpenIndiana" 
> > Date: Monday, September 3, 2012, 3:10 PM
> > On 3 September 2012 10:10, Reginald
> > Beardsley 
> > wrote:
> > > I'm playing w/ a microcontroller (MSP430G2553) which
> > communicates via RS-232 using a Keyspan USB<->RS-232
> > adapter and tip.
> > > Suggestions?  I'm about to build kermit, which
> > will probably solve things.
> > 
> > If you have GNU screen available you might give that a try
> > -- I'm
> > pretty sure there's a binary package in the repository.
> > 
> > e.g. 
> > http://embeddedfreak.wordpress.com/2008/08/12/using-gnu-screen-to-debug-your-serial-port/
> > 
> > -- 
> > Joshua M. Clulow
> > UNIX Admin/Developer
> > http://blog.sysmgr.org
> > 
> > ___
> > OpenIndiana-discuss mailing list
> > OpenIndiana-discuss@openindiana.org
> > http://openindiana.org/mailman/listinfo/openindiana-discuss
> > 
> 
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] tip & ttydefs questions

2012-09-03 Thread Reginald Beardsley
Thanks.  I'll give that a go.  Kermit simply showed what I already knew.  I'm 
getting a newline but no carriage return. Kermit will map a carriage return to 
a newline, but not a newline to the pair. 

Strangely stty will not allow me to change certain things, but the man page 
gives no indication of when or why.

Evi Nemeth et al after remarking that it adds great complexity w/ little 
increase in functionality conclude the section on setting up terminals under 
Solaris w/ "Have fun."

It's ridiculous that something so trivial would be such a hassle.

sigh..

--- On Mon, 9/3/12, Joshua M. Clulow  wrote:

> From: Joshua M. Clulow 
> Subject: Re: [OpenIndiana-discuss] tip & ttydefs questions
> To: "Discussion list for OpenIndiana" 
> Date: Monday, September 3, 2012, 3:10 PM
> On 3 September 2012 10:10, Reginald
> Beardsley 
> wrote:
> > I'm playing w/ a microcontroller (MSP430G2553) which
> communicates via RS-232 using a Keyspan USB<->RS-232
> adapter and tip.
> > Suggestions?  I'm about to build kermit, which
> will probably solve things.
> 
> If you have GNU screen available you might give that a try
> -- I'm
> pretty sure there's a binary package in the repository.
> 
> e.g. 
> http://embeddedfreak.wordpress.com/2008/08/12/using-gnu-screen-to-debug-your-serial-port/
> 
> -- 
> Joshua M. Clulow
> UNIX Admin/Developer
> http://blog.sysmgr.org
> 
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] tip & ttydefs questions

2012-09-03 Thread Joshua M. Clulow
On 3 September 2012 10:10, Reginald Beardsley  wrote:
> I'm playing w/ a microcontroller (MSP430G2553) which communicates via RS-232 
> using a Keyspan USB<->RS-232 adapter and tip.
> Suggestions?  I'm about to build kermit, which will probably solve things.

If you have GNU screen available you might give that a try -- I'm
pretty sure there's a binary package in the repository.

e.g. 
http://embeddedfreak.wordpress.com/2008/08/12/using-gnu-screen-to-debug-your-serial-port/

-- 
Joshua M. Clulow
UNIX Admin/Developer
http://blog.sysmgr.org

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] tip & ttydefs questions

2012-09-03 Thread Reginald Beardsley
I'm playing w/ a microcontroller (MSP430G2553) which communicates via RS-232 
using a Keyspan USB<->RS-232 adapter and tip.

I have two native forths that run on the MCU but w/ different handling of NL & 
CR in the output.

On one I'm missing the CR, so the output from line to line moves across and 
down the terminal window.

I *expect* "opost onlcr" in /etc/ttydefs to fix this, but it seems not to have 
any effect. When does /etc/ttydefs get read? Is what the remote computer sends 
back input or output relative to a terminal window?  Should this be set via 
stty?  I've tried that also w/o detectable effect.

The more I read, the more confused I get.  So far as I can tell, I can't 
configure the port as only an outbound connection, but must run login on it.  
Harmless, but annoying.  But there are so many programs involved nothing is 
clear.

Suggestions?  I'm about to build kermit, which will probably solve things. 

I realize this has always been a can of worms.  My canonical test of new sys 
admins was to mention modems.  If they flinched I knew they were experienced.  
But it annoys me that I can't make tip do what I want.

Have Fun!
Reg

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss