How can I limit USB2.0 transfer rate on linux?

I have a simple project which can limit USB2.0 transfer rate on linux. With this program users can select any transfer speed they want, let say 10 Mbps. But I don't know where to start or what to do. I will be very glad if you have any idea. An useful library or function or whatever. Thanks in advance for any help.

-------------Problems Reply------------

If you want to limit GLOBAL USB2.0 rate on the whole system, then you must probably write a Linux Kernel module. Learning kernel programming is very hard and not something that is considered a "simple project".

If you want to do it for a simple application then just put some timers in the program that "throtte" data writing/reading according to user selection. Notice that this code has to be in the application itself.

Related post

What is the best way to figure out the transfer rate of a wxWidgets socket. Is there a built in way to do this, or would I be better getting the time before a transfer of data and then after its done and comparing them? I ask because I want to be abl

I'm programming a file transfer handler with speed limit feature, the rate based on user level. How do I control/calculate transfer rate in HttpHandler?. Some asp.net resource tell me that use Thread.Sleep will block asp.net thread pool. ------------

I have a problem that requires me to calculate the maximum upload and download available, then limit my program's usage to a percentage of it. However, I can't think of a good way to find the maximums. At the moment, the only solution I can come up w

I just purchased an Acer Aspire V5.571 w/ 8Gig of RAM and a 750 Gig HD, i5 processor. I am seeing some horribly slow transfer rates. I copied about 3 gigs to a new NTFS partition and it took about 10 minutes. I copied about 7 gigs to a USB2 device an

When I check my score for my computer I notice that disc data transfer rate is the smallest number. Could someone tell me what this means, and also how I improve it. Thank you --------------Solutions------------- Hello June, Without getting overly de

Original Title: message of can perform faster is attached to usb 2.0 port but ones that show cannot be selected__ Freecom 400GB hard drive usb 2.0 very very slow transfer rate (946Kb < 1Mb) --------------Solutions------------- Hey barry75, What is

Can I determine from an ASP.NET application the transfer rate, i.e. how many KB per second are transferd? --------------Solutions------------- You can set some performance counters on ASP.NET. See here for some examples. Some specific ones that may h

I'm using TeraTerm to transfer a file through a dial up connection, for this I will use ttl scripts in both ends to automatize it. I would like to measure the time it takes to transfer the file, or the transfer rate... but I don't know how to do it?

I have some code that does a bunch of HTTP GETs, POSTs, and PUTs using Commons HttpClient 3.1. I'd like to provide a current transfer speed indicator in my GUI, but was unable to find any methods for determining the transfer rate of a HttpMethod bein

Is there any way to easly know Transferrate between server/client during un filupload upload? Because uploading a file of 4,13Mb take about 5 or 6 minutes.... Is there anyway we can track it, by writing it in flatfile, email, response.write anything!

I have written a small WPF widget using C# that displays the current CPU activity, RAM used and disk activity as three small percentage type bars. I have used the following PerformanceCounters for this: (diskCounter PerformanceCounter returns current

how to find out the data transfer rate while sending and recieving the data from server in android application. --------------Solutions------------- You could add some code within your download/upload code such as for instance: InputStream is = ...;

i want to measure current download speed. im sending huge file over tcp. how can i capture the transfer rate every second? if i use IPv4InterfaceStatistics or similar method, instead of capturing the file transfer rate, i capture the device transfer

Possible Duplicate: Python urllib2 Progress Hook I have a script which uploads a file with urllib2. I have the timeout set but i believe it wont go off if my transfer stalls. I'm wondering if there's anyway of monitoring the urllib2 transfer and make

I've got a 1-Gig EBS Volume mounted to an EC2 instance, I am copying 600MB of binary data from a Local Hard Drive (via RDS Connection) and the copying process windows is showing 10 Hours remaining. Though I have a High Speed connection (100+Mbps) Wha

There is no doubt that USB Flash drive is much faster than hard disk drive (except solid state) as a typical HDD contains moving parts. But the fact is that transmission of data from USB flash drive to system is slower than hard drive's. When my syst

I've implemented a simple multi-threaded HTTP server for my programming assignment a couple weeks ago. In this assignment users specified a document size via browser (like localhost:port/250 for a 250 bytes long document) and my program created a htm

How to calculate the transfer rate speed in kilobyte per second, i used stopwatch but it doesnt work , because it gives me an error about div on zero ( count / 0) public void sendFile(string filePath) { Stopwatch stopWatch = new Stopwatch(); FileInfo

I look for ideas how to speed up message transfers through RabbitMQ. I installed the latest version on Windows 64 bit, running a server on my local machine on which I also publish and consume to/from through a C# implementation. I initially maxed out