Solved

USB data detection circuit

Posted on 2009-05-06
12
1,618 Views
Last Modified: 2012-05-06
I'm looking for a circuit to detect a USB signal (activity, no activity). When there is activity at the USB port I want an LED connected to port to turn on (or start blinking), when there is NO activity the LED will turn off.
I would really appreciate if someone can help me find on solving this problem
0
Comment
Question by:Tico_technologies
  • 3
  • 2
  • 2
  • +3
12 Comments
 
LVL 48

Expert Comment

by:dbrunton
ID: 24323271
There are these cables which might do what you want.

http://www.pctoys.com/usbacflcaaco.html
0
 

Author Comment

by:Tico_technologies
ID: 24326569
Yes, that is correct, this cable does what I need it to do, however, I'm actually looking for the schematic for this type of circuit or at least how I can make one myself. I'm currently working on a project that will use that flashing action (activity) to be fed into another circuit.
0
 
LVL 91

Expert Comment

by:nobus
ID: 24326676
0
 

Author Comment

by:Tico_technologies
ID: 24326885
Nobus:
Thanks for the link, however, it is just a very basic tutorial of what a USB cable is. I'm looking for a circuit schematic, something that actually works, that I can use in my project. Or least and idea of how I can do this.
Thanks
0
 
LVL 91

Expert Comment

by:nobus
ID: 24327982
sorry, it's all i found.
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 48

Accepted Solution

by:
dbrunton earned 84 total points
ID: 24332620
This is a counter for USB activity.  Most of the other stuff I can find for activity requires wiring to a USB chip.

http://www.bobhobby.com/2008/04/22/usb-physical-hit-counter-based-on-avr-attiny25/
0
 

Assisted Solution

by:stoop_ed
stoop_ed earned 83 total points
ID: 24338531
What kind of activity are you trying to detect?
This is more difficult than you probably expect because of the way USB works. If the device is connected, the host (computer usually) will continuously send Start of Frame packets to the device even if it is not actively being used. So if you are looking at the electrical signals, you will always see packets going to the device. The only time there is no activity on the lines is if the device is in "USB suspend" which usually only happens if the computer is asleep or if the device is disabled in device manager.

The easiest way might be to monitor the amount of power going to the device. Most devices will consume more power from the USB bus if they are active. (assuming the device is not externally powered) But this would be very device specific behavior.
0
 

Author Comment

by:Tico_technologies
ID: 24339154
Stoop ed:
Thank you for strearing me in the right direction. I was not aware of this USB behaviour, I was expecting that there would be no activity at the port when there was no data transfer between PC and USB device.
I'm trying to develop a customized USB switch. I want to share a USB flash drive between a PC and another USB device. The PC initially would load some piece of software into the flash drive, then external device would read this flash drive and upgrade from it; so basically once the write operation is done on the flash drive form the PC, a relay would switch or onnect the USB flash drive (power and data lines) to the USB device.
I have not found any device (USB switch or bridge) that does what I need. These devices require installation of drivers on the PC and the USB device I have. My USB device can only read flash drives and upgrade from them, I cannot do any windows driver type of installation.
So I'm trying to create a custom switch, but I'm just brainstorming with sensing the data lines.
Thanks for any asistance you can offer me.
0
 
LVL 1

Assisted Solution

by:tnndesign
tnndesign earned 83 total points
ID: 32829491
Have you examinined the USB/USB2.0 specification?
They have an electrical doc which documents the electrical parameters of the USB bus whilst communicating. A simple micro-based solution would probably due to the trick.

Like what has been mentioned, you could sense the power drain on the port and/or presence of bus pull-ups (indicating speed of device) as well. But this wouldn't give an accurate indication of whether the device is transmitting, but rather the presence of the device only.

See:
http://www.beyondlogic.org/usbnutshell/usb2.htm
http://www.usb.org/developers/docs/
0
 
LVL 13

Expert Comment

by:compfixer101
ID: 34415437
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
Great sound, comfort and fit, excellent build quality, versatility, compatibility. These are just some of the many reasons for choosing a headset from Sennheiser.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now