Re: serial port communuication
- From: "hari" <haricibi83@xxxxxxxxx>
- Date: 15 Feb 2007 03:23:45 -0800
On Feb 15, 2:00 pm, "hari" <haricib...@xxxxxxxxx> wrote:
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:(
.
- Follow-Ups:
- Re: serial port communuication
- From: Joseph M . Newcomer
- Re: serial port communuication
- 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
- serial port communuication
- Prev by Date: CHotKeyCtrl and Window key (winkey)?
- Next by Date: Re: Is Microsoft Visual studio 2005 upgraded version of Microsoft VC++ 6?
- Previous by thread: Re: serial port communuication
- Next by thread: Re: serial port communuication
- Index(es):
Relevant Pages
|