Solved

USB data detection circuit

Posted on 2009-05-06
12
1,664 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 92

Expert Comment

by:nobus
ID: 24326676
0
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 

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 92

Expert Comment

by:nobus
ID: 24327982
sorry, it's all i found.
0
 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
robocopy 33 155
trying to format an ssd 7 49
URL to download driver for nVidia GeForce GTX 960 6 112
Exchange 2010 CAS array Load Balancing. 7 57
Does your iMac really need a hardware upgrade? Will upgrading RAM speed-up your computer? If yes, then how can you proceed? Upgrading RAM in your iMac is not as simple as it may seem. This article will help you in getting and installing right RA…
This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

732 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