TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How to fake laptop connection via USB

2 pointsby pizualmost 9 years ago
Hope we have some USB professionals here. I have an external audio sound are device that is USB powered and needs to be connected to PC/Mac/tablet for it to power up. The device has a built in mixer that offers direct monitoring, I've audio goes from input ports directly to outputs (skipping the PC). I would like to make the device work as a standalone mixer without the need to connect to a PC. I've connected the device to a USB wall socket/charger but the device doesn't power up. I suspect that the reason is that the USB charger only sends 5V power but not the data steam (to pin 2 and 3, as presumably PC does). Does anyone know if it's possible to hack the USB cable or USB wall charger to make the audio device think it's connected to a laptop? Or phrased differently, what does the device see when it's connected to PC vs a wall charger?

3 comments

oplessalmost 9 years ago
The device will see power, but very little else. USB chargers could leave the two data pins floating, tied together, or exhibiting various resistances between pins. Depending on what it&#x27;s supposedly built for charging.<p>Here&#x27;s a link to start you off with.<p><a href="http:&#x2F;&#x2F;electronics.stackexchange.com&#x2F;questions&#x2F;123172&#x2F;what-is-the-ideal-way-to-handle-data-pins-d-and-d-on-a-usb-power-adapter-to-be" rel="nofollow">http:&#x2F;&#x2F;electronics.stackexchange.com&#x2F;questions&#x2F;123172&#x2F;what-i...</a><p>Most usb devices will look for data before thinking about initialising.<p>Hard way to solve your problem: If you wanted to power it up and set it up for a certain configuration without a PC, you&#x27;d probably be best off starting to sniff the usb bus and possibly play back the results (YMMV) with an arduino or similar.<p>You&#x27;d need something along the lines of a bus pirate to do all that <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Bus_Pirate" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Bus_Pirate</a><p>Less Hard Way: Or if you&#x27;re a software person, you could just sniff the usb bus of a virtual machine, but I imagine that you may miss certain bits of handshaking, then program an arduino or similar appropriately<p>Easier way: If the device has linux drivers you could hunt down a raspberry pi zero (or a regular one, or beagle bone or any number of other ARM linux boards) and just drive it from that.
chapuexGrisalmost 9 years ago
Buy AQVOX USB Low-Noise Linear Power Supply Type-B Male to Female <a href="https:&#x2F;&#x2F;www.amazon.co.uk&#x2F;AQVOX-Low-Noise-Linear-Supply-Type-B&#x2F;dp&#x2F;B00AVWO2AG" rel="nofollow">https:&#x2F;&#x2F;www.amazon.co.uk&#x2F;AQVOX-Low-Noise-Linear-Supply-Type-...</a>
usb1337almost 9 years ago
Hope this is what u r looking 4! :-)<p><a href="http:&#x2F;&#x2F;www.aqvox.de&#x2F;usb-power_en.html" rel="nofollow">http:&#x2F;&#x2F;www.aqvox.de&#x2F;usb-power_en.html</a>