Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Detecting USB Device pluged in USB port

Status
Not open for further replies.

xmen_xwk

Full Member level 3
Joined
Sep 12, 2014
Messages
172
Helped
2
Reputation
4
Reaction score
2
Trophy points
18
Activity points
1,373
I have an arduino and 7 Port USB Hub. I want to make the USB Hub more smarter by adding an arduino to it.

What I'm trying to do is, whenever a device is pluged(offline or online) into USB Hub port, I want arduino to detect it. If anything is plugged in or not in any of these ports. Some devices can be working as plugged in means online(eg. pendrive), but some could be not working, like an offline printer, or a phone charging wire.

How can I detect this kind of this ? I think I would need sensors. But can a microcontroller do that alone ? I think not, so what should it need ?

Any ideas would help.

Thank you
 

ads-ee

Super Moderator
Staff member
Joined
Sep 10, 2013
Messages
7,807
Helped
1,810
Reputation
3,630
Reaction score
1,769
Trophy points
1,393
Location
USA
Activity points
58,934
Unless you make a custom board based on the USB hub, you're not likely going to have much success making your hub "smart".

The USB controller chip interface to the logic is where you want to check for what you are trying to do. Tapping into the USB connector signals will likely degrade the signaling on the cable enough that you will probably have problems with TX/RX of data on that USB port. But to connect to the USB controller chip you'll have to disconnect that interface from the PCB (as the PCB drives/receives the signals) to let the micro have exclusive access it. This is not something you want to attempt. There is a reason why there are micros with built in USB controllers, so the USB interface can be made "smart".
 

hobbyckts

Advanced Member level 1
Joined
Mar 12, 2015
Messages
481
Helped
88
Reputation
176
Reaction score
85
Trophy points
28
Activity points
2,457
Utilising sensor will not solve the problems of yours.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top