?
Solved

USB data detection circuit

Posted on 2009-05-06
12
Medium Priority
?
1,712 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 49

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
Ransomware Attacks Keeping You Up at Night?

Will your organization be ransomware's next victim?  The good news is that these attacks are predicable and therefore preventable. Learn more about how you can  stop a ransomware attacks before encryption takes place with our Ransomware Prevention Kit!

 

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 49

Accepted Solution

by:
dbrunton earned 336 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 332 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 332 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

Technology Partners: 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

pc, laptop  monitor connection configurations
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.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

762 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