To AVStream or not to AVStream
I am involved in a USB2 camera project and am trying to decide if it makes
sense to attempt to fit into the standard Microsoft video framework or to
use a proprietary approach. A second company is making this camera for me
and is going to be responsible for the driver. I will be responsible for
integrating the result into our product. Both of us are broadly (albeit
somewhat shallowly) experienced with writing KM/hardware driver code but
have very little experience with the ins and outs of AVStream drivers.
The camera has programmable image size and frame rate from 640x480 at ~60Hz
to 640x1 at kHz. There are also much slower rates with integration and
what-not. Also the pixel bit size can change from 8 to 10 bits depending on
the pixel clock. There are various other bells and whistles. It is highly
desirable handle images on a image by image basis in kernel mode for
realtime processing purposes (this may even be essential at the highest
frame rates).
My question is, does it make sense to try and do this via a AVStream/KS1
style driver or is it better to just create a completely proprietary
interface to the driver? My gut reaction is to push for a AVStream style
driver and we have experimented with this some using usbcam2. The problems
thus far are (from the driver side) dealing with the custom properties for
the camera and being a kernel streaming (or whatever the AVStream term is)
server, and (from my client side) being a ks client. On the last point (ks
client), I understand there is nearly zero documentation. I am prepared to
hunker down with the docs and try to figure this out and (or) hire a
consultant but if the answer is going to be "this won't work" then I can cut
to the chase and just go for a proprietary interface. This would certainly
be easier in the short run.
If the answer is to go for the AVStream style device, are there any
consultants reading this list who are familiar with such a project - both
from the device driver side and the client side?
Regards,
Tom Udale Tag: problem with installing signed driver Tag: 33363
How to disable printing services to detect ECP support
I currently have an option to detect ECP support during
setup of a print driver on Windows 2000 and XP. The
current implementation requires all print drivers to be
moved off of the selected parallel port because I just open
the port and issue IOCTL calls to verify which ECP modes
are supported. I would like to detect ECP compatibility
without any extra user intervention. First is their an
easy way to detect if the computer's BIOS has support for
ECP. If not is there an easy way to disable Windows'
printing services to gain access to the parallel port.
Just stopping the spooler service does not release the
ports so there must be some other way to temporarily stop
print drivers.
Thanks,
Tom Olinger Tag: problem with installing signed driver Tag: 33357
MmMapLockedPagesSpecifyCache Fails on Server 2003
My driver uses MmMapLockedPagesSpecifyCache to map a
memory allocation from the non paged pool to a user
virtual address. This has worked fine in the past, but
now I have found an Enterprise Server 2003 machine that
fails the call.
This driver is deployed on thousands of W2K and XP
machines, and even works on some Server 2003 machines.
Is there something new on Server 2003 that I should be
aware of?
Thanks
Harry Tag: problem with installing signed driver Tag: 33353
Cannot programmatically get a valid connection to a WPA enabled access point.
I am extending our wifi application to support WPA enabled cards and
access points. The code that I am trying does not give a valid DHCP
address, and hence I am not connected. I presume I can do this
through an application and do not have to be a driver. I am currently
using the PCAUSA libraries to communicate with the drivers.
I am currently trying to connect to a WPA enabled access point. The
access point has the authentication set as WPA-PSK, and it uses TKIP
data encryption. The card that we use supports WPA and supports TKIP
data encryption.
I am doing the following to connect to a WPA enabled access point.
Setting the InfrastuctureMode to Ndis802_11Infrastructure.
Setting the AuthenticationMode to Ndis802_11AuthModeWPAPSK.
Setting the EncryptionStatus to Ndis802_11Encryption2Enabled.
I then set the SSID of the access point.
Each of the above statements execute properly and do not return an
error, and when queried, return the appropiate value. At this point I
query connection status and it states that it is connected to the
access point.
At this point I have not added the key, which I think maybe where the
problem is.
int iLength = sizeof (NDIS_802_11_KEY) + 10;
PNDIS_802_11_KEY pKey = (PNDIS_802_11_KEY) new UCHAR[iLength];
memset(pKey,0,iLength);
pKey->KeyIndex = 0x80000001;
pKey->Length = iLength;
pKey->KeyLength = 10;
memcpy(pKey->KeyMaterial,”0123456789”,10);
memcpy(pKey->BSSID,BSSID,sizeof(NDIS_802_11_MAC_ADDRESS));
Even though setting the above key with the OID_802_11_ADD_KEY returns
a success, I still do not get a valid DHCP address.
Could someone tell me what I am missing, or if I have got the order of
execution incorrectly. I have read the Microsoft
802_11_network_adapter_v21.doc, but still am stuck.
Shane Tag: problem with installing signed driver Tag: 33351
pcmcia in xp
I've got a custom pcmcia R2 16bit card that has been used
in 95/98 previously. It is PCMCIA 2.1 compliant and looks
mostly like a flash card. Its tuples are incomplete with
respect to its required resource but everything else is
there (CISTPL_DEVICE, CISTPL_JEDEC_C, CISTPL_DEVICE_GEO,
CISTPL_VERS_1, CISTPL_FUNCID, CISTPL_CONFIG (.
Now, our customer wants to upgrade to xp. The driver
itself is not my problem. When I insert the card into my
xp machine, the machine hangs ... hard. CTRL-ALT-DEL
doesn't work, I can't break into Soft-Ice ... nothing,
dead as a door nail. Unfortunately, my hardware guy is on
vacation for another week and a half, and I'd rather not
wait until he gets back. Has anyone seen anything like
this with ANY pcmcia card? Tag: problem with installing signed driver Tag: 33344
alid@microsoft.com
Hi!
Did you received my last two letters in m.p.d.drivers? Its about
NdisMIndicateStatus filtering in IM drivers - I did tests with Mux and
had posted the result.
---
P.s. remove PI number from "reply-to" while answering... Tag: problem with installing signed driver Tag: 33342
OS Initial Memory Allocation
I have two identical machines. One is running W2K and the
other is running 2003.
On the W2K machine, there is 512MB of memory; of that
60632 KB is allocated to Kernel Memory. On the 2003
machine, there is 512MB, only 17,884KB gets allocated to
kernel memory.
Why is this and is there a way to change the allocation? Tag: problem with installing signed driver Tag: 33340
Accessing hardware from user-mode ?
Hi all,
Is it safe to access the hardware device registers from a user-mode
application ?
Is it the good way to develop a device driver and to avoid the complexity of
a kernel implementation ?
Thanks,
Ronan. Tag: problem with installing signed driver Tag: 33338
accessing hardware in user-mode
Hi all,
Is it safe to access the hardware device registers from a user-mode
application ?
Is it the good way to develop a device driver and to avoid the complexity of
a kernel implementation ?
Thanks,
Ronan. Tag: problem with installing signed driver Tag: 33336