# US 2009/0222841 A1 · Acceleration of receive data throughput of a usb device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2009/0222841 A1
- Document ID: US20090222841A1
- Status: Published application
- Kind: A1
- Application number: 12/041,240
- Filed: 2008-03-03
- Published: 2009-09-03
- Earliest claimed: 2008-03-03
- Assignees: Moschip Semiconductor Technology Limited
- Inventors: Abhijit Shashikant Mirajkar; Milton Joseph Fernandes
- Web page: https://patentgrep.com/patent/US20090222841A1

## CPC

- G06F 13/385: {for adaptation of a particular data processing system to different peripheral devices}
- G06F 13/102: {where the program performs an interfacing function, e.g. device driver (G06F13/105 takes precedence; contention policies within device drivers G06F9/4881; scheduling within device drivers G06F9/52)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This invention proposes a procedure by which one or more number of IRPs (IO Request Packets) can be always kept pending with the USB Host controller in order to get the incoming data as soon as it arrives. When data arrives the USB Host Controller and driver will complete the IRP Request and the USB Client driver will buffer this data if there is no READ request pending from the application layer; else it will complete the application requests with data received from the device.

## Claims

### Claim 1

A method to reduce time for which data stays with hardware in a USB subsystem in a windows operating system environment, the method comprising the steps of:
a) a USB client driver creating IO Request Packets (IRPs) to receive data from device through a USB host controller;
b) said USB client driver submitting IRPs to said USB subsystem to read any incoming data from a device;
c) having at least one IRP pending to receive any incoming data from the device;
d) copying data into a container buffer, when an IRP is completed; and
e) re-submitting IRP back to USB subsystem.

### Claim 2 (depends on 1)

The method of claim 1, where a pool of IRPs are created.

### Claim 3 (depends on 1)

The method of claim 1, where the number of IRPs created is configurable.

### Claim 4 (depends on 1)

The method of claim 1, where said container buffer is a non-paged buffer per device.

### Claim 5 (depends on 1)

The method of claim 1, the method further comprising the step of having two reference pointers, CurrentWritePosition to determine where to copy received data and CurrentReadPosition to determine to read data to feed the received data to a requesting application.

### Claim 6 (depends on 1)

The method of claim 1, the method further comprising the step of copying IRP data into said container buffer at location given by said CurrentWritePosition

### Claim 7 (depends on 1)

The method of claim 1, the method further comprising the step of reading data from said container buffer at location given by said CurrentReadPosition, when an application requests data.

### Claim 8 (depends on 1)

The method of claim 1, the method further comprising the step of copying received data from the start of said container buffer, when the end of said container buffer is reached if sufficient space is available.

### Claim 9 (depends on 1)

The method of claim 1, the method further comprising the step of holding back further scheduling of completing IRPs again to the USB subsystem until there is space available in said container buffer to hold any read data, when said container buffer is full.

### Claim 10

A method to receive data from a device through USB in a Bulk mode and reduce time for which data stays with hardware in a windows operating system environment, the method comprising the steps of:
a) a USB client driver creating a pool of IRPs to be used for reading incoming data from a USB host controller;
b) creating a non-paged buffer per device to receive data, where said non-paged buffer serves as container buffer for incoming data from said device;
c) said USB client driver creating IRPs to receive data from device through a USB host controller;
d) said USB client driver submitting created IRPs to said USB host controller to read any incoming data from a device;
e) having at least one IRP pending to receive any incoming data from said device;
f) copying data into a container buffer, when an IRP is completed; and
g) re-submitting IRP back to USB subsystem.

### Claim 11 (depends on 8)

The method of claim 8, where the number of IRPs created is configurable.

### Claim 12 (depends on 8)

The method of claim 8, the method further comprising the step of having two reference pointers, CurrentWritePosition to determine where to copy received data and CurrentReadPosition to determine to read data to feed the received data to a requesting application.

### Claim 13 (depends on 8)

The method of claim 8, the method further comprising the step of copying IRP data into said container buffer at location given by said CurrentWritePosition

### Claim 14 (depends on 8)

The method of claim 8, the method further comprising the step of reading data from said container buffer at location given by said CurrentReadPosition, when an application requests data.

### Claim 15 (depends on 8)

The method of claim 8, the method further comprising the step of copying received data from the start of said container buffer, when the end of said container buffer is reached if sufficient space is available.

### Claim 16 (depends on 8)

The method of claim 8, the method further comprising the step of holding back further scheduling of completing IRPs again to the USB subsystem until there is space available in said container buffer to hold any read data, when said container buffer is full.

### Claim 17

A computer readable medium comprising instructions to perform a method to receive data from a device through USB in a Bulk mode and reduce time for which data stays with hardware in a windows operating system environment, the computer readable medium comprising instructions to perform the steps of:
a) a USB client driver creating a pool of IRPs to be used for reading incoming data from a USB host controller;
b) creating a non-paged buffer per device to receive data, where said non-paged buffer serves as container buffer for incoming data from said device;
c) said USB client driver creating IRPs to receive data from device through a USB host controller;
d) said USB client driver submitting created IRPs to said USB host controller to read any incoming data from a device;
e) having at least one IRP pending to receive any incoming data from said device;
f) copying data into a container buffer, when an IRP is completed; and
g) re-submitting IRP back to USB subsystem.

### Claim 18 (depends on 15)

The computer readable medium of claim 15, where the number of IRPs created is configurable.

### Claim 19 (depends on 15)

The computer readable medium of claim 15, the computer readable medium further comprising instructions to perform the step of having two reference pointers, CurrentWritePosition to determine where to copy received data and CurrentReadPosition to determine to read data to feed the received data to a requesting application.

### Claim 20 (depends on 15)

The computer readable medium of claim 15, the computer readable medium further comprising instructions to perform the step of copying IRP data into said container buffer at location given by said CurrentWritePosition.

### Claim 21 (depends on 15)

The computer readable medium of claim 15, the computer readable medium further comprising instructions to perform the step of reading data from said container buffer at location given by said CurrentReadPosition, when an application requests data.

### Claim 22 (depends on 15)

The computer readable medium of claim 15, the computer readable medium further comprising instructions to perform the step of copying received data from the start of said container buffer, when the end of said container buffer is reached if sufficient space is available.

### Claim 23 (depends on 15)

The computer readable medium of claim 15, the computer readable medium further comprising instructions to perform the step of holding back further scheduling of completing IRPs again to the USB subsystem until there is space available in said container buffer to hold any read data, when said container buffer is full.

### Claim 24

A computer to perform a method to receive data from a device through USB in a Bulk mode and reduce time for which data stays with hardware in a windows operating system environment, the computer comprising of:
a) a USB host controller to control client drivers;
b) at least one USB client driver means to create a pool of IRPs to be used for reading incoming data from at least one device, where said data from said at least one device is read through said host controller, and where said client driver is adapted to keep at least one IRP pending with said host controller to receive data coming from said at least one device; and
c) a container non-paged buffer per said at least one device, to contain incoming data from said at least one device.

### Claim 25 (depends on 22)

The computer of claim 22, where said client driver is adapted to configure number of IRPs to be used.

### Claim 26 (depends on 22)

The computer of claim 22, where the client driver comprises two reference pointers, CurrentWritePosition to copy received data and CurrentReadPosition to feed buffered data.

### Claim 27 (depends on 22)

The computer of claim 22, where said container buffer is circular.
