Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jun 2006 15:50:18 -0500
From:      Derek Ragona <derek@computinginnovations.com>
To:        "Andrew Falanga" <af300wsm@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: Serial programming on FreeBSD 6.0 RELEASE
Message-ID:  <6.0.0.22.2.20060622154002.02588490@mail.computinginnovations.com>
In-Reply-To: <340a29540606221255xd82aa33qf0dc96b95cb0cb12@mail.gmail.com >
References:  <340a29540606220828i500905afq6d1ff81cf095cf88@mail.gmail.com> <6.0.0.22.2.20060622115945.02533de8@mail.computinginnovations.com> <340a29540606221119o16cab29ak5ae46156a3feca09@mail.gmail.com> <6.0.0.22.2.20060622132439.0253b160@mail.computinginnovations.com> <340a29540606221139w7b257b26j5c115c3976bd2927@mail.gmail.com> <6.0.0.22.2.20060622134310.02533080@mail.computinginnovations.com> <340a29540606221157s71e3fb15n4187b4329722fbab@mail.gmail.com> <6.0.0.22.2.20060622141710.0203b870@mail.computinginnovations.com> <340a29540606221255xd82aa33qf0dc96b95cb0cb12@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Let me try this again.  Programing the uart directly means directly 
manipulating the serial port chip.  Programing in c or c++ does not usually 
do this, as you normally would open the device/file and simply read or 
write to it.  In opening the device you need to set it to unbuffered in the 
flags when you do the open call.

         -Derek


At 02:55 PM 6/22/2006, Andrew Falanga wrote:
>I'm not sure I understand what you mean.
>
>Andy
>
>On 6/22/06, Derek Ragona 
><<mailto:derek@computinginnovations.com>derek@computinginnovations.com > wrote:
>>Kermit may be manipulating the uart directly.
>>
>>Unless you are not getting the uart to flush the characters.  I have only 
>>had that problem with doing low-level direct programing.  Typically not a 
>>problem with high-level coding where you just open the device and set it 
>>for non-buffered output.
>>
>>Your problem though may be in the stack overflows.  You may need to 
>>explicitly compile and link it with a larger stack.  It may be these 
>>overflows causing the output to never get there.
>>
>>         -Derek
>>
>>
>>
>>At 01:57 PM 6/22/2006, Andrew Falanga wrote:
>>Unfortunately, it looks like getty isn't running on /dev/cuad1.  I did 
>>the ps command you suggest below and it apears that getty is only running 
>>on the virtual terminals (ttyvx).
>>
>>Would you have any idea what it is that kermit is doing differently that I?
>>
>>Andy
>>
>>On 6/22/06, Derek Ragona 
>><<mailto:derek@computinginnovations.com>derek@computinginnovations.com> wrote:
>>>I would do a
>>>ps -ax|more
>>>to see what is running.
>>>
>>>Depending on your version FreeBSD may not have enabled the getty in 
>>>/etc/ttys
>>>
>>>         -Derek
>>>
>>
>>
>>--
>>This message has been scanned for viruses and
>>dangerous content by <http://www.mailscanner.info/>MailScanner, and is
>>believed to be clean.
>>MailScanner thanks <http://www.transtec.co.uk/>transtec Computers for 
>>their support.
>>
>>--
>>This message has been scanned for viruses and
>>dangerous content by <http://www.mailscanner.info/>MailScanner, and is
>>believed to be clean.
>>MailScanner thanks <http://www.transtec.co.uk/>transtec Computers for 
>>their support.
>
>
>--
>This message has been scanned for viruses and
>dangerous content by <http://www.mailscanner.info/>MailScanner, and is
>believed to be clean.
>MailScanner thanks <http://www.transtec.co.uk/>transtec Computers for 
>their support.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.0.22.2.20060622154002.02588490>