Re: serial port communuication
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Thu, 15 Feb 2007 11:32:44 -0500
Show your code.
joe
On 15 Feb 2007 03:23:45 -0800, "hari" <haricibi83@xxxxxxxxx> wrote:
On Feb 15, 2:00 pm, "hari" <haricib...@xxxxxxxxx> wrote:Joseph M. Newcomer [MVP]
On Feb 15, 12:21 pm, Fenster <fens...@xxxxxxxxxxxxx> wrote:
In message <OmuisKHUHHA.4...@xxxxxxxxxxxxxxxxxxxx>, Ian Semmel
<any...@xxxxxxxxxxxxxxxxx> writes
Are you using SetCommState on the port ?
If so, are you first doing a GetCommState ? This sets up the DCB
structure to valid values
"hari" <haricib...@xxxxxxxxx> wrote in message
news:1171455246.402743.203120@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,
I m communicating to a printer device through serial port.It
is failing to open the port,but when I disable and enable the com port
in device manager,it works fine(i.e)it communicates with the printer
and reads the configuration settings of the printer).
Regards
Hari
I would be wary of using/trusting GetCommState(), lots of people seem to
have problems with this function, see other threads/newsgroups.
--
Fenster- Hide quoted text -
- Show quoted text -
After CreateFile , the API's are failing,
(setcommstate,getcommstate,SetCommTimeouts).On giving
Getlasterror(),it gives error code 1 .(Incorrect function).but after
disabling and enabling com port in Device manager,all the API are
passing. :(
Regards
Hari- Hide quoted text -
- Show quoted text -
Hi all
After CreateFile , the API's are failing,
(setcommstate,getcommstate,SetCommTimeouts).On giving
Getlasterror(),it gives error code 1 .(Incorrect function).but after
disabling and enabling com port in Device manager,all the API are
working:(
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- serial port communuication
- From: hari
- Re: serial port communuication
- From: Ian Semmel
- Re: serial port communuication
- From: Fenster
- Re: serial port communuication
- From: hari
- Re: serial port communuication
- From: hari
- serial port communuication
- Prev by Date: Re: serial port communuication
- Next by Date: Re: CListCtrl derived class and disabling item selection
- Previous by thread: Re: serial port communuication
- Next by thread: Re: serial port communuication
- Index(es):
Relevant Pages
|