Re: USB Client Driver Development by JeremyT
JeremyT
Mon Oct 25 18:25:04 CDT 2004
Well in our host/device implementation the host isn't the desktop it's a
board with micro and host controller. I just use the desktop on occasion for
testing until I get an updated rev for the dev board.
So how exactly can an application on the device know if the host has
connected to it, from a software standpoint? Does the configuration of the
serial port on the device side need to be setup in any specific way?
After I figured out that I needed to disable USB with active sync, I did
notice with my USB analyzer that the connection was shutdown automatically
after a bit by windows. Which I guess relates to the repllog.exe issue
mentioned earlier. How do you disable that feature? Thanks for all the help.
"David Liao (MS)" wrote:
> Like Bruce said, If your CE device has USB function and you want to
> connected to Desktop, You may use Serial Function driver on CE device side,
> because there is a driver (called WCEUSBSH.SYS) available on desktop side.
> They are simulating serial port on both end. Because serial driver only can
> be opened by one application, so if you want to use this connection, you
> have to disable ActiveSync application on both end.
>
> David Liao
>
>
> "Jeremy" <Jeremy@discussions.microsoft.com> wrote in message
> news:1572A382-5545-4E66-BEA0-A52FB58DCC9B@microsoft.com...
> > Sorry I used some mis-leading terminology in the first part of the last
> > post.
> > I meant to say how do you know in software when a host connects to the
> > device. I'm strictly seeking information related to the client/device
> > side. I
> > think the rest of the post should be clear now.
> >
> > "David Liao (MS)" wrote:
> >
> >> I am confused by this conversation. One time, it sound like you are
> >> talking
> >> about USB Host Driver. Right now, it looks like to me you are talking
> >> about
> >> USB Function(Device) Driver to me. They are different.
> >>
> >> Because of USB Host has to talk to USB Function device, so, it depends
> >> what
> >> you are talking about, the answer may completely different.
> >>
> >> David Liao.
> >>
> >> "Jeremy" <Jeremy@discussions.microsoft.com> wrote in message
> >> news:81CFC086-F1C9-401A-A2AA-60CF10C9BD69@microsoft.com...
> >> >I guess I'm confused about how you're going to know when a device
> >> >connects
> >> >or
> >> > disconnects based on having a COM connection. Will you receive some
> >> > sort
> >> > of
> >> > notification on the port? Is the programmer responsible for serializing
> >> > and
> >> > deserializing data going out and coming in? All data sent down will
> >> > need
> >> > to
> >> > be in correctly formatted USB packets right? Also is there a way to
> >> > know
> >> > when
> >> > a full packet has been received other then knowing the length of the
> >> > data
> >> > and
> >> > the actual USB packet structures?
> >> >
> >> > Why does repllog.exe need to be disabled? Is it because it's a stream
> >> > and
> >> > you don't know when data will be coming in and out.
> >> >
> >> > "Bruce Eitman (eMVP)" wrote:
> >> >
> >> >> What information are you looking for? It is a COM driver, so it works
> >> >> just
> >> >> like the driver that you used to use.
> >> >>
> >> >> You may want to consider using the ActiveSync connection though,
> >> >> unless
> >> >> you
> >> >> don't need it. I'm not an expert on that, but I think that you do
> >> >> socketed
> >> >> communication.
> >> >>
> >> >> --
> >> >> Bruce Eitman (eMVP)
> >> >> Senior Engineer
> >> >> beitman AT applieddata DOT net
> >> >>
> >> >> Applied Data Systems
> >> >> www.applieddata.net
> >> >> An ISO 9001:2000 Registered Company
> >> >> Microsoft WEP Gold-level Member
> >> >>
> >> >> Do have an opinion on the effectiveness of Microsoft Windows Mobile
> >> >> and
> >> >> Embedded newsgroups? Let us know!
> >> >> https://www.windowsembeddedeval.com/community/newsgroups
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
>
>