|
I may be wrong about when/where it got introduced, I never used it. AFAIR all that was involved is getting the USB driver up and running early on.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Vaclav_Sal wrote: Thanks, but I have not found any "tell windows" options.
Could I do this - remove the page file from the "offending drive" and than add one to where OS wants it?
I have not try that. But I susspect it may not work.
I think it should. If you found the dialog to remove an old pagefile and add a new one that's what I was referring to. AFAIK there wasn't any fine grained interface between automatic and user defined behavior.
3x12=36
2x12=24
1x12=12
0x12=18
|
|
|
|
|
I have about 12 years Windows Kernel experience and want to get into LInux.
Seeing as its always better to have a real project to work on, does anyone need a Linux driver doing? Might take a bit longer than a seasoned Linux pro, but it will be free and well done!
"It is a remarkable fact that despite the worldwide expenditure of perhaps US$50 billion since 1990, and the efforts of tens of thousands of scientists worldwide, no human climate signal has yet been detected that is distinct from natural variation."
Bob Carter, Research Professor of Geology, James Cook University, Townsville
|
|
|
|
|
If you're still looking for a project, I've always seen recommendations to only buy laptops with intel wifi cards because 3rd party driver support is lousy. If keeping knowledge about how your employer's windows drivers work separate isn't a problem writing a driver for one of the missing chips would be beneficial.
3x12=36
2x12=24
1x12=12
0x12=18
|
|
|
|
|
Dan Neely wrote: 3rd party driver support is lousy
I have seen some bad stuff form the likes of sony and symantec even.
ANyway, whats the card you had in mind (dont forget it will talk to the OS HW via a stock kind of a chip, which will have ports and memory mappings (possibly), so the actuall WLAN chip used isnt going to impact the driver hugely..
"It is a remarkable fact that despite the worldwide expenditure of perhaps US$50 billion since 1990, and the efforts of tens of thousands of scientists worldwide, no human climate signal has yet been detected that is distinct from natural variation."
Bob Carter, Research Professor of Geology, James Cook University, Townsville
modified on Wednesday, February 9, 2011 11:25 AM
|
|
|
|
|
I need to know what is the rate limitation of USB virtual com port.
Is the rate is the limitation of the USB ( ~57 MB/s ) or the limiration is simple com port ( ~115200 baud ) ?
Thanks.
|
|
|
|
|
I've done some 115kbd through USB-to-serial cables, no problem. They do try and make multi-byte data packets on USB, which is fine for the data throughput; I do expect they are somewhat slow in dealing with the control lines, so if you plan on creating high-frequency signals on say DTR or RTS, it might be a lot worse than it is on a regular RS232C port.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Speed is limited by hardware, so in this case you havent got a UART in the link, you have a USB cable probably doing bulk transfers and run at each end by a driver that registers itself as a seriall driver with the system and supports all the usual serial functionality (set get baud, set wait chars, timeouts etc etc etc).
In fact I have written such a driver for a USB 3G product (some years ago and which actually had 30% of the world market and 80% of the european market, so it was widely used! )
Anyway, basically, when the device was run through the serial port (using dial up networking (DUN)) the throughput is entirely limited by the USB speed (when hooked direct to a base station emulator. In ral life it is of course limited by network coverage).
I actually also wrote an NDIS driver for the same device which presented the device as an ethernet device. Its throughput was slightly higher than DUN.
"It is a remarkable fact that despite the worldwide expenditure of perhaps US$50 billion since 1990, and the efforts of tens of thousands of scientists worldwide, no human climate signal has yet been detected that is distinct from natural variation."
Bob Carter, Research Professor of Geology, James Cook University, Townsville
|
|
|
|
|
Hello,
I have some simple card that will be use to transfer video from webCam to the PC.
Now, i need to write a drive to this card and make sure that the video will be seen by some other application that i already wrote.
The card is not sit in the pc - so i using UBS to connect to the card that will be sit in some other 'box'.
I download the DDK - and i was reading about how to do it.
But now i don't know how to start.
Is there any code example and some good reference that i can learn to know how to start and how to do it ?
Thanks.
|
|
|
|
|
The reference materials you are looking for are here[^] (and elsewhere on the web via Google). However, be warned that writing drivers is not a trivial task so unless you have good solid Windows programming experience you may find it something of an uphill struggle.
I must get a clever new signature for 2011.
|
|
|
|
|
Give up.
If this is in anyway anything other than a study project, ie if its of any comercial value tell your boss to get a kernel contractor in. What you are facing is a learnign curve as steep as a black holes gravity well, and will probably take you 2 years to even get running, let alone be stable.
I say this becaus you had to come here and say "where do I start".
You have, I take it, downloaded the WDK/DDK and have read the entire section on video and USB? No, didnt think so. If you had you would know where to start and would have specific quesiotns, like USB bus protocols, bulk transfer sizes, isochronous pipes and the like.
"It is a remarkable fact that despite the worldwide expenditure of perhaps US$50 billion since 1990, and the efforts of tens of thousands of scientists worldwide, no human climate signal has yet been detected that is distinct from natural variation."
Bob Carter, Research Professor of Geology, James Cook University, Townsville
|
|
|
|
|
Hi,
I just got an Intel DP55WG main board. The problem is that when I switch it on, I get an 3b code. The computer doesn't even show the boot screen, hence I cannot access the BIOS. (The error code is not documented in the manual). Then the whole system restarts, and repeats until I switch off the PSU.
I tried different memory modules, Gfx cards with no success.
Any ideas?
Thanks in advance
--------------------------------
Specs :
CPU : i5-650
Ram : Kingston 1333 DDR3 (4gig)
GFX Card : XFX Radeon HD5750
PSU : 650 Watt
|
|
|
|
|
Cool. Sounds like completely screwed up hardware. What did Google say about the 3b error?
"It is a remarkable fact that despite the worldwide expenditure of perhaps US$50 billion since 1990, and the efforts of tens of thousands of scientists worldwide, no human climate signal has yet been detected that is distinct from natural variation."
Bob Carter, Research Professor of Geology, James Cook University, Townsville
|
|
|
|
|
Couldn't find anything. I managed to fix the problem though. 2 words : Firmware update
From what I could see the Intel Mainboard is not compatible with the processor I am using, but the firmware upgrade fixes teh problem. (I am not sure how they could get that wrong, since both are Intel)
Thank god I am not a techie full time 
|
|
|
|
|
Ah, I thought you didnt get the BIOS up. Even without a CPU you would still get a BIOS.
"It is a remarkable fact that despite the worldwide expenditure of perhaps US$50 billion since 1990, and the efforts of tens of thousands of scientists worldwide, no human climate signal has yet been detected that is distinct from natural variation."
Bob Carter, Research Professor of Geology, James Cook University, Townsville
|
|
|
|
|
In general each new generation of CPU will need slightly different settings to work; getting the settings to the board requires a firmware update. The board may be new to you, but if it was made before the CPU it doesn't matter...
3x12=36
2x12=24
1x12=12
0x12=18
|
|
|
|
|
Hi.
Excuse me about my bad english.
I develop First stage of a bootloader. Now I write it in first sector (sector number 0) of a hard disk. Then attach that hard disk to the system. When I turn on that system, it can't found my bootloader and run old bootloader that saved in hard disk.
I search first 1,000,000 sectors of hard disk but old bootloader not found. What is location of old bootloader? If I Know it's location, I can write my bootloader in that location then BIOS can find my bootloader and run it.
Thanks alot.
|
|
|
|
|
What is the best way to go about debugging this issue (in addition to google?)
When we unplug and replug a custom HID device enough times on a low-ish-end machine (XP Pro SP3), Windows stops recognizing new USB connects and disconnects on any USB port (any device class). We turned on the Driver Verifier, and got a 0xC9 bugcheck (DRIVER_VERIFIER_IOMANAGER_VIOLATION), with an error code of 0x21D (An IRP dispatch handler has not properly detached from the stack below it upon receiving a remove IRP - Not entirely sure what that means, but from what I've read on MSDN (See Summary of Guidelines for Pending IRPs)[^], it looks like something is keeping the "post-processing" from running on a disconnect). The driver file that was referenced is HIDCORE.SYS (I think...I didn't actually see the error, this is what my colleague told me). We are using the HID driver built into Windows.
The problem only occurs when a utility we wrote is running that sends a few commands to the device. While this utility is running, we can connect and disconnect the device any from 3 to 30 times before the USB "locks up". Any connected devices still work, but no new connect/disconnect events are recognized. It's most reproducible on lower-end machines, but will occasionally happen on a medium-end PC. The only way out of this is to reboot.
We've made sure we're closing all our file handles to the device when we get a disconnect event. We don't have a whole lot of experience debugging low-level driver-related problems. Any suggestions would be greatly appreciated.
I'm sure there's some bit of information I'm missing, but any suggestions would be greatly appreciated.
Dybs
The shout of progress is not "Eureka!" it's "Strange... that's not what i expected". - peterchen
|
|
|
|
|
Is your app registering for device plug and play events using RegisterDeviceNotification?
And dont forgwet its a two stage, first you register for events by device classm then by handle when your device arrives.
Faiing to handle this wil screw up the windows plug and play state and leave drivers locked in memory (which is what you have here).
"It is a remarkable fact that despite the worldwide expenditure of perhaps US$50 billion since 1990, and the efforts of tens of thousands of scientists worldwide, no human climate signal has yet been detected that is distinct from natural variation."
Bob Carter, Research Professor of Geology, James Cook University, Townsville
|
|
|
|
|
In a Windows C++ environment during writing to a log file I observe a periodic hiccup of approx 16 milliseconds in between writes. So I wrote a little function that writes out 20,000 sequentially numbered messages using a while loop. Approximately every 3000 to 4000 messages I see a 16 millisecond delay. This is with no programmatic flushing. With flushing after each write it happens after approx. every 2000 messages.
How can I get around this recurring hiccup? Would a solid state disk solve this problem? Or at least dramatic reduce the hiccup time?
Thanks
ak
|
|
|
|
|
I suggest you calculate the number of bytes moved in between two hiccups, and I bet it will be a multiple of the sector size (512B), possibly simply the cluster size (which could be the next power of 2 multiple of 512B that exceeds the partition size divided by 64K).
What probably is happening is a new cluster needs to be allocated, causing an update of the FAT table. A possible workaround would be to preallocate the file, which implies you need to know and allocate the maximum size before you start writing the data. A possible approach is by using a "memory mapped file".
AFAIK solid state disks are faster, especially when reading data and hopping around (their seek time is much better). So the same problem would exist, at a much smaller scale.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
modified on Tuesday, January 11, 2011 7:41 PM
|
|
|
|
|
Luc Pattyn wrote: AFAIK solid state disks are faster, especially when reading data and hopping around (their seek time is much better). So the same problem would exist, at a much smaller scale.
You have a potential much bigger problem with SSDs.
You cant erase single cells in an SSD, but instead it erases pretty large blocks of data (usually 128kB).
So if you change a few bytes in a file, the drive will write another block, and mark the original block for deletion, and do the actual delete whenever it's idle.
If you use an SSD for logging purposes, it might never get idle for long enough to get the erasing done and you would end up with a drive that's not having any free blocks despite being far from full.
When this happens you will get a hiccup of a totally different magnitude.
|
|
|
|
|
Interesting. So for continuous writes, the app should not flush, and one should have Windows cache the file in chunks that correspond to the block size of the SSD, avoiding almost all partial-block writes. Not sure that can be organized easily.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Even in a degraded state (and forcing that is getting hard even for benchmarkers) a current generation SSD will still outperform a mechanical drive.
3x12=36
2x12=24
1x12=12
0x12=18
|
|
|
|
|
The original response talks about preallocating files. I'd like to try an experiment with this approach and just see what the improvement is. Can anyone suggest some VS c++ code that will accomplish this. 1) preallocated file creation, that would be reused with each running of the program 2) code that opens the file 3) code that sequencially writes ascii data msgs to the file starting at the beginning.
Thanks
|
|
|
|
|