How to set DTR?

I wrote a wdm in winME,but i need to set DTR,
I can call serial.vxd?
thanks!

Anbo -Mega inc.

I wrote a wdm in winME,but i need to set DTR,
I can call serial.vxd?
thanks!

Anbo -Mega inc.

I wrote a wdm in winME,but i need to set DTR,
I can call serial.vxd?
thanks!

Anbo -Mega inc.

I don’t understand the question. Did you write your own serial device driver
and need to set DTR? To do that you will need to set bit 0 of the MCR
register.

Jim

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of xxxxx@edu.21cn.com
Sent: Saturday, October 07, 2000 5:18 AM
To: NT Developers Interest List
Subject: [ntdev] How to set DTR?

I wrote a wdm in winME,but i need to set DTR,
I can call serial.vxd?
thanks!

Anbo -Mega inc.


You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

>I don’t understand the question. Did you write your own serial device driver

and need to set DTR? To do that you will need to set bit 0 of the MCR
register.

I assume they are correctly letting the serial driver interface with the
hardware. A serial port may be connected via a USB bus, so the exact
mechanism to turn on DTR may be much more complex than setting a bit in
some hardware register.

Personally, I find it silly that you can’t open a serial port with a name
like “\MachineB\Serial0”, and have your program HERE connected to your
port over THERE. It’s really silly that if I want to use the tape drive
across the room, I can’t easily use that tape drive from my machine, or
even easily run the backup program over there to copy my files from here.
Physical location transparency for accessing hardware should absolutely be
an OS function.

  • Jan

If a serial port is connect to a USB bus then it seems to me that it would
have a USB driver that “looks like” a serial port to the modem or other
device attached to it. I wouldn’t think that serial.sys or serial.vxd, the
Win9x driver, would be involved at all.

Jim

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Jan Bottorff
Sent: Sunday, October 08, 2000 1:01 PM
To: NT Developers Interest List
Subject: [ntdev] RE: How to set DTR?

I don’t understand the question. Did you write your own serial device
driver
and need to set DTR? To do that you will need to set bit 0 of the MCR
register.

I assume they are correctly letting the serial driver interface with the
hardware. A serial port may be connected via a USB bus, so the exact
mechanism to turn on DTR may be much more complex than setting a bit in
some hardware register.

Personally, I find it silly that you can’t open a serial port with a name
like “\MachineB\Serial0”, and have your program HERE connected to your
port over THERE. It’s really silly that if I want to use the tape drive
across the room, I can’t easily use that tape drive from my machine, or
even easily run the backup program over there to copy my files from here.
Physical location transparency for accessing hardware should absolutely be
an OS function.

  • Jan

You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

I do not write my own serial device driver,
I only want to call VCOMM interface in my WDM client!(winME)

Anbo -mega inc.

----- Original Message -----
From: Jim Young
To: NT Developers Interest List
Sent: Monday, October 09, 2000 12:19 AM
Subject: [ntdev] RE: How to set DTR?

> I don’t understand the question. Did you write your own serial device driver
> and need to set DTR? To do that you will need to set bit 0 of the MCR
> register.
>
> Jim
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of xxxxx@edu.21cn.com
> Sent: Saturday, October 07, 2000 5:18 AM
> To: NT Developers Interest List
> Subject: [ntdev] How to set DTR?
>
>
> I wrote a wdm in winME,but i need to set DTR,
> I can call serial.vxd?
> thanks!
>
> Anbo -Mega inc.
>
> —
> You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@edu.21cn.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Then you need to call _VCOMM_EscapeCommFunction. This is documented in the
Win98 DDK. It shouldn’t be any different for WinMe. You will need a handle
to the VCOMM device which you get by calling _VCOMM_OpenComm.

Jim

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Anbo Peng
Sent: Sunday, October 08, 2000 6:55 PM
To: NT Developers Interest List
Subject: [ntdev] RE: How to set DTR?

I do not write my own serial device driver,
I only want to call VCOMM interface in my WDM client!(winME)

Anbo -mega inc.

----- Original Message -----
From: Jim Young
To: NT Developers Interest List
Sent: Monday, October 09, 2000 12:19 AM
Subject: [ntdev] RE: How to set DTR?

> I don’t understand the question. Did you write your own serial device
driver
> and need to set DTR? To do that you will need to set bit 0 of the MCR
> register.
>
> Jim
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of xxxxx@edu.21cn.com
> Sent: Saturday, October 07, 2000 5:18 AM
> To: NT Developers Interest List
> Subject: [ntdev] How to set DTR?
>
>
> I wrote a wdm in winME,but i need to set DTR,
> I can call serial.vxd?
> thanks!
>
> Anbo -Mega inc.
>
> —
> You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@edu.21cn.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
b­®¶¹®vµj¢Êy®™ž±m•z–yž¿¶­

Can i call VCOMM_OpenComm in WDM?Need i write wrapper?
When i link it…There is always a error “unresolved external symbol “unsigned long __cdecl LCODE__VCOMM_OpenComm (char *,unsigned long)” (?LCODE__VCOMM_OpenComm@@YAKPADK@Z)”" !

Thanks a lot!

Anbo -mega inc.

Then you need to call _VCOMM_EscapeCommFunction. This is documented in the
Win98 DDK. It shouldn’t be any different for WinMe. You will need a handle
to the VCOMM device which you get by calling _VCOMM_OpenComm.

Jim

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Anbo Peng
Sent: Sunday, October 08, 2000 6:55 PM
To: NT Developers Interest List
Subject: [ntdev] RE: How to set DTR?

I do not write my own serial device driver,
I only want to call VCOMM interface in my WDM client!(winME)

Anbo -mega inc.

----- Original Message -----
From: Jim Young
> To: NT Developers Interest List
> Sent: Monday, October 09, 2000 12:19 AM
> Subject: [ntdev] RE: How to set DTR?
>
>
> > I don’t understand the question. Did you write your own serial device
> driver
> > and need to set DTR? To do that you will need to set bit 0 of the MCR
> > register.
> >
> > Jim
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com]On Behalf Of xxxxx@edu.21cn.com
> > Sent: Saturday, October 07, 2000 5:18 AM
> > To: NT Developers Interest List
> > Subject: [ntdev] How to set DTR?
> >
> >
> > I wrote a wdm in winME,but i need to set DTR,
> > I can call serial.vxd?
> > thanks!
> >
> > Anbo -Mega inc.
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@edu.21cn.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> b???v?j?ʁy?Tz?m?.z-yz???
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@edu.21cn.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

The WinMe DDK comes with wrappers for all the VCOMM call. You will need to
link with the library vxdwraps.clb.

Jim

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Anbo Peng
Sent: Sunday, October 08, 2000 8:54 PM
To: NT Developers Interest List
Subject: [ntdev] RE: How to set DTR?

Can i call VCOMM_OpenComm in WDM?Need i write wrapper?
When i link it…There is always a error “unresolved external symbol
“unsigned long __cdecl LCODE__VCOMM_OpenComm (char *,unsigned long)”
(?LCODE__VCOMM_OpenComm@@YAKPADK@Z)”" !

Thanks a lot!

Anbo -mega inc.

Then you need to call _VCOMM_EscapeCommFunction. This is documented in the
Win98 DDK. It shouldn’t be any different for WinMe. You will need a handle
to the VCOMM device which you get by calling _VCOMM_OpenComm.

Jim

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Anbo Peng
Sent: Sunday, October 08, 2000 6:55 PM
To: NT Developers Interest List
Subject: [ntdev] RE: How to set DTR?

I do not write my own serial device driver,
I only want to call VCOMM interface in my WDM client!(winME)

Anbo -mega inc.

----- Original Message -----
From: Jim Young
> To: NT Developers Interest List
> Sent: Monday, October 09, 2000 12:19 AM
> Subject: [ntdev] RE: How to set DTR?
>
>
> > I don’t understand the question. Did you write your own serial device
> driver
> > and need to set DTR? To do that you will need to set bit 0 of the MCR
> > register.
> >
> > Jim
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com]On Behalf Of xxxxx@edu.21cn.com
> > Sent: Saturday, October 07, 2000 5:18 AM
> > To: NT Developers Interest List
> > Subject: [ntdev] How to set DTR?
> >
> >
> > I wrote a wdm in winME,but i need to set DTR,
> > I can call serial.vxd?
> > thanks!
> >
> > Anbo -Mega inc.
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
> > To unsubscribe send a blank email to $subst(‘Email.Unsub’)
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@edu.21cn.com
> > To unsubscribe send a blank email to $subst(‘Email.Unsub’)
> >
> b­®¶¹®vµj¢Êy®Tz±m.z-yz¿¶­
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@edu.21cn.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
b­®¶¹®vµj¢Êy®™ž±m•z–yž¿¶­

I add vxdwraps.clb in SOURCES file…
But there is always a error “unresolved external symbol
“unsigned long __cdecl LCODE__VCOMM_OpenComm (char *,unsigned long)”
(?LCODE__VCOMM_OpenComm@@YAKPADK@Z)”" yet !

This is my SOURCES file
TARGETNAME=ups2501
#TARGETPATH=OBJ
TARGETTYPE=DRIVER
TARGETPATH=$(BASEDIR)\lib
TARGETLIBS=$(BASEDIR)\lib\i386\free\vxdwraps.clb

INCLUDES= $(BASEDIR)\inc

SOURCES= init.cpp \
dispatch.cpp \
pnp.cpp \
ups2501.rc

NTTARGETFILES=PostBuildSteps

This is my own C source file header:

#define WANTVXDWRAPS

#include “Ioctl.h”
#include “ups2501.h”

#include <basedef.h>
#include <vmm.h>
#include <vcomm.h>

#include <vxdwraps.h>

Thanks for any help!

Anbo mega inc.

----- Original Message -----
From: Jim Young
To: NT Developers Interest List
Sent: Monday, October 09, 2000 12:41 PM
Subject: [ntdev] RE: How to set DTR?

> The WinMe DDK comes with wrappers for all the VCOMM call. You will need to
> link with the library vxdwraps.clb.
>
> Jim
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Anbo Peng
> Sent: Sunday, October 08, 2000 8:54 PM
> To: NT Developers Interest List
> Subject: [ntdev] RE: How to set DTR?
>
>
> Can i call VCOMM_OpenComm in WDM?Need i write wrapper?
> When i link it…There is always a error “unresolved external symbol
> “unsigned long cdecl LCODE VCOMM_OpenComm (char *,unsigned long)”
> (?LCODE__VCOMM_OpenComm@@YAKPADK@Z)”" !
>
> Thanks a lot!
>
> Anbo -mega inc.
>
> > Then you need to call _VCOMM_EscapeCommFunction. This is documented in the
> > Win98 DDK. It shouldn’t be any different for WinMe. You will need a handle
> > to the VCOMM device which you get by calling _VCOMM_OpenComm.
> >
> > Jim
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com]On Behalf Of Anbo Peng
> > Sent: Sunday, October 08, 2000 6:55 PM
> > To: NT Developers Interest List
> > Subject: [ntdev] RE: How to set DTR?
> >
> >
> > I do not write my own serial device driver,
> > I only want to call VCOMM interface in my WDM client!(winME)
> >
> > Anbo -mega inc.
> >
> > ----- Original Message -----
> > From: Jim Young
> > To: NT Developers Interest List
> > Sent: Monday, October 09, 2000 12:19 AM
> > Subject: [ntdev] RE: How to set DTR?
> >
> >
> > > I don’t understand the question. Did you write your own serial device
> > driver
> > > and need to set DTR? To do that you will need to set bit 0 of the MCR
> > > register.
> > >
> > > Jim
> > >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com]On Behalf Of xxxxx@edu.21cn.com
> > > Sent: Saturday, October 07, 2000 5:18 AM
> > > To: NT Developers Interest List
> > > Subject: [ntdev] How to set DTR?
> > >
> > >
> > > I wrote a wdm in winME,but i need to set DTR,
> > > I can call serial.vxd?
> > > thanks!
> > >
> > > Anbo -Mega inc.
> > >
> > > —
> > > You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > >
> > >
> > > —
> > > You are currently subscribed to ntdev as: xxxxx@edu.21cn.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > b???v?j?ʁy?Tz?m?.z-yz???
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@edu.21cn.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> b???v?j?ʁy?Tz?m?.z-yz???
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@edu.21cn.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
></vxdwraps.h></vcomm.h></vmm.h></basedef.h>

Jan Bottorff wrote:

>I don’t understand the question. Did you write your own serial device driver
>and need to set DTR? To do that you will need to set bit 0 of the MCR
>register.

I assume they are correctly letting the serial driver interface with the
hardware. A serial port may be connected via a USB bus, so the exact
mechanism to turn on DTR may be much more complex than setting a bit in
some hardware register.

Personally, I find it silly that you can’t open a serial port with a name
like “\MachineB\Serial0”, and have your program HERE connected to your
port over THERE. It’s really silly that if I want to use the tape drive
across the room, I can’t easily use that tape drive from my machine, or
even easily run the backup program over there to copy my files from here.
Physical location transparency for accessing hardware should absolutely be
an OS function.

That thought certainly brings back memories for me of 1984 when I (and
others) made a UNIX kernel implementation of the Newcastle Connection.
That implementation of a distributed system provided just the sort of
functionality you crave. Perhaps the world still isn’t ready for a fully
distributed system.

Cheers

Don Sharp

  • Jan

You are currently subscribed to ntdev as: xxxxx@dddandr.octacon.co.uk
To unsubscribe send a blank email to $subst(‘Email.Unsub’)