Hi All
I have some problem. My task is following: i need to start my application talking with our USB device when device get connected to USB port. I’m not sure where to start. Should i write user mode driver or kernel mode? How to start application (can i do it from driver?)? Should application talk with device through my own driver or it may use ordinary USB interface? What is this “ordinary USB interface”? How usually these task get implemented?
Check out the WINUSB article at www.osronline.com maybe you can just write an application…
–Mark Cariddi
OSR Open Systems Resources, Inc
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of eskon@cn.ru
Sent: Thursday, November 04, 2010 9:32 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] USB driver writing help need
Hi All
I have some problem. My task is following: i need to start my application talking with our USB device when device get connected to USB port. I’m not sure where to start. Should i write user mode driver or kernel mode? How to start application (can i do it from driver?)? Should application talk with device through my own driver or it may use ordinary USB interface? What is this “ordinary USB interface”? How usually these task get implemented?
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Yes, WinUSB is good for application level USB programming, but as i said above i need run my application automatically when device get connected. And winUSB can’t help here as i understood from referred article. So do i need write own filter driver? Will it work on XP too?
Drivers can’t launch apps,l. Period. So wither your app runs all the time and is in silent mode until tour device appears, or you have a service which starts the app. What type of usb is it? What does it do?
d
dent from a phpne with no keynoard
-----Original Message-----
From: eskon@cn.ru
Sent: November 04, 2010 7:23 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] USB driver writing help need
Yes, WinUSB is good for application level USB programming, but as i said above i need run my application automatically when device get connected. And winUSB can’t help here as i understood from referred article. So do i need write own filter driver? Will it work on XP too?
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Well, if you need to run your application automatically when your device is detected, is not going to be helped by writing a driver. You need your application to run and waited to get notified when a new device gets added to the system so that you can determine if your device is now present.
Mark Cariddi
OSR Open Systems Resource, Inc.
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of eskon@cn.ru
Sent: Thursday, November 04, 2010 10:25 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] USB driver writing help need
Yes, WinUSB is good for application level USB programming, but as i said above i need run my application automatically when device get connected. And winUSB can’t help here as i understood from referred article. So do i need write own filter driver? Will it work on XP too?
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Ok, perhaps best way is to write service app with GUI using WinUSB and
sitting in the tray and launch GUI when device appears.
It’s a custom device and i just need look some information stored in it and
sometime upload another data to device. So it’s enough to have service app
with GUI.
----- Original Message -----
From: “Doron Holan”
To: “Windows System Software Devs Interest List”
Sent: Thursday, November 04, 2010 8:42 PM
Subject: RE: RE:[ntdev] USB driver writing help need
Drivers can’t launch apps,l. Period. So wither your app runs all the time
and is in silent mode until tour device appears, or you have a service which
starts the app. What type of usb is it? What does it do?
d
dent from a phpne with no keynoard
-----Original Message-----
From: eskon@cn.ru
Sent: November 04, 2010 7:23 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] USB driver writing help need
Yes, WinUSB is good for application level USB programming, but as i said
above i need run my application automatically when device get connected. And
winUSB can’t help here as i understood from referred article. So do i need
write own filter driver? Will it work on XP too?
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Hmm but if you have a usermode driver, it is already kind of application, isn’t it? And it can launch other apps if you still want more?
–pa
> Hmm but if you have a usermode driver, it is already kind of application, isn’t it? And it can launch
other apps
It runs in another desktop context.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
>kernel mode? How to start application (can i do it from driver?)?
I assume that the app is suggested to be UI one.
If so, then the app must be started with correct desktop context. To do so, you can write 2 apps - one tiny helper started from Run registry key in correct desktop context at user logon, another main app which is started by the tiny helper when the device arrives.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
> Ok, perhaps best way is to write service app with GUI
Services with GUI are no more supported in Vista+.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
On 11/04/2010 03:57 PM, Сергей Кондрюков wrote:
Ok, perhaps best way is to write service app with GUI using WinUSB and
sitting in the tray and launch GUI when device appears.
Perhaps not: for my taste there are too many of these “helper apps”.
Why are users of the device not allowed to start the application
manually? Is this device the most important thing in their life?
Or is it so severely broken that the device won’t work anymore if the
associated application is not present when it is connected?
If an app checks for an update *once* at system startup and then
terminates itself, I don’t mind. Everything else has to *prove* its
value and right to run in the background, otherwise it WILL be removed.
Because these users use this computer just to use device, because
these users doesn’t know computer enough and prefer just to plug
device and see interface. They don’t want to go through start menu and
select program and so on. They just need read few small records from
device and may be write new one. It is part of their work, small part
and they don’t want waste much time to do it.
On 05.11.2010, at 21:29, Hagen Patzke wrote:
On 11/04/2010 03:57 PM, Сергей Кондрюков wrote:
> Ok, perhaps best way is to write service app with GUI using WinUSB
> and
> sitting in the tray and launch GUI when device appears.Perhaps not: for my taste there are too many of these “helper apps”.
Why are users of the device not allowed to start the application
manually? Is this device the most important thing in their life?Or is it so severely broken that the device won’t work anymore if the
associated application is not present when it is connected?If an app checks for an update *once* at system startup and then
terminates itself, I don’t mind. Everything else has to *prove* its
value and right to run in the background, otherwise it WILL be
removed.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminarsTo unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Then just register the app to Startup folder on Windows shell and all is done.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
“Sergey Kondryukov” wrote in message news:xxxxx@ntdev…
Because these users use this computer just to use device, because
these users doesn’t know computer enough and prefer just to plug
device and see interface. They don’t want to go through start menu and
select program and so on. They just need read few small records from
device and may be write new one. It is part of their work, small part
and they don’t want waste much time to do it.
On 05.11.2010, at 21:29, Hagen Patzke wrote:
> On 11/04/2010 03:57 PM, Сергей Кондрюков wrote:
>> Ok, perhaps best way is to write service app with GUI using WinUSB
>> and
>> sitting in the tray and launch GUI when device appears.
>
> Perhaps not: for my taste there are too many of these “helper apps”.
>
> Why are users of the device not allowed to start the application
> manually? Is this device the most important thing in their life?
>
> Or is it so severely broken that the device won’t work anymore if the
> associated application is not present when it is connected?
>
>
> If an app checks for an update once at system startup and then
> terminates itself, I don’t mind. Everything else has to prove its
> value and right to run in the background, otherwise it WILL be
> removed.
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer