Re: Serial Port RS232
- From: "Rick \"Nutcase\" Rogers" <rick@xxxxxxxx>
- Date: Fri, 15 Apr 2005 21:17:06 -0400
Hi,
The command prompt within Windows uses the device drivers to execute the
commands - keep in mind that this is not DOS even though it looks like it,
it's just an emulator. A program written to directly address the hardware
via the program code without going through this layer won't work in
protected mode.
--
Best of Luck,
Rick Rogers, aka "Nutcase" - Microsoft MVP
http://mvp.support.microsoft.com/
Associate Expert - WindowsXP Expert Zone
www.microsoft.com/windowsxp/expertzone
Windows help - www.rickrogers.org
"Pop" <nobody@xxxxxxxxxxxxxxxxxxx> wrote in message
news:%23IzMaleQFHA.3544@xxxxxxxxxxxxxxxxxxxxxxx
> Rick, really?
> I suspect I'm either not understanding the question or the answer, not
> sure which. Nor do I know if it's "direct access" for sure, but I thought
> it was:
>
> The following commands both worked just now, from a Command Prompt within
> windows; I didn't try from a booted command prompt:
> copy fname lpt1:
> copy fname lpt2:
> Then I slapped both into a batch file and ran it, and got the same results
> except the batch file I could add the command to FF the paper & so I
> didn't have to manually press the FF button on the printer.
>
> Oh, XP Pro SP2/updates, one Serial connected, one USB connected. printer.
>
> Wouldn't QDOS do the same thing? It seems not, from your response.
>
> Why do I care?
> Because I'm in the process of writing some similar basic routines and plan
> to print to a printer at completion. They're batch files with calls to
> .exe's to do the "real" work.
>
> Guess I'd better go test it; but even if it works it'll leave me with the
> curiousity; what am I missing?. Comments please?
>
> TIA,
>
> Pop
>
> "Rick "Nutcase" Rogers" <rick@xxxxxxxx> wrote in message
> news:u3odo8UQFHA.1096@xxxxxxxxxxxxxxxxxxxxxxx
>> Hi,
>>
>> If you are trying to talk directly to the serial port, it won't work.
>> WinXP doesn't allow direct hardware addressing by a program.
>>
>> --
>> Best of Luck,
>>
>> Rick Rogers, aka "Nutcase" - Microsoft MVP
>> http://mvp.support.microsoft.com/
>> Associate Expert - WindowsXP Expert Zone
>> www.microsoft.com/windowsxp/expertzone
>> Windows help - www.rickrogers.org
>>
>> "hans.vdpl" <hans.vdpl@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:14DA8AAD-E3CD-437C-B9F0-9EFF76DF8387@xxxxxxxxxxxxxxxx
>>>I would like to send esc chr sequences and content to a serial printer
>>>via
>>> the rs232 com1 port on my XP Pro pc . This goes without any problems on
>>> a
>>> windows 98 SE pc , but on my XP pc I get a device timeout . The program
>>> is a
>>> dos QBasic code .Appreciating any help .
>>>
>>> Hans
>>
>>
>
>
.
- Follow-Ups:
- Re: Serial Port RS232
- From: Pop
- Re: Serial Port RS232
- References:
- Serial Port RS232
- From: hans.vdpl
- Re: Serial Port RS232
- From: Rick \"Nutcase\" Rogers
- Re: Serial Port RS232
- From: Pop
- Serial Port RS232
- Prev by Date: Re: Auto Disconnect
- Next by Date: Re: Start Menu
- Previous by thread: Re: Serial Port RS232
- Next by thread: Re: Serial Port RS232
- Index(es):