TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

USB in a Nutshell (2010)

111 点作者 throwaway71271超过 1 年前

10 条评论

magnat超过 1 年前
I also recommend USB Made Simple [1], which has similar vibe to this site, but also includes USB 2.0 description and is a bit more detailed on electrical&#x2F;low level aspects.<p>For an actual implementation, see V-USB [2] - surprisingly readable software library for bit-banging USB on AVR (Arduino&#x2F;ATTiny&#x2F;ATMega)<p>[1] <a href="https:&#x2F;&#x2F;www.usbmadesimple.co.uk&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;www.usbmadesimple.co.uk&#x2F;index.html</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;obdev&#x2F;v-usb">https:&#x2F;&#x2F;github.com&#x2F;obdev&#x2F;v-usb</a>
评论 #39587746 未加载
userbinator超过 1 年前
2010, when USB was still relatively simple (3.0 had just came out, and it and subsequent revisions is when things started to get really crazy) and many more websites were still highly readable documents like this one.
vardump超过 1 年前
Not perfect, but a pretty good resource. I referenced this a lot while developing a USB device driver and a USB stack on the device side.
ranger_danger大约 1 年前
I just recently had to read this to understand enough to implement a USB device on a PIC32, but there&#x27;s still some more clarifying info I&#x27;d like to see.<p>For example, there&#x27;s almost no information anywhere online on how the polling is supposed to work for noticing interrupt requests from the device. Is this typically handled at the OS level and the application writer does not mess with it? I still don&#x27;t know.<p>The reason I ask is because while trying to implement USB on my PIC32, I observed USB traffic via wireshark of another third party custom HID device that I was trying to mimic. This device, once you pressed a button on it, wireshark would show INTERRUPT IN requests coming from the device, without any programs open. However with my own USB device implementation, I couldn&#x27;t get this to happen, no matter how hard I tried. I just happen to try opening the USB device from an application and trying to read from it, at which point my interrupt IN transfers magically showed up in wireshark and starting working. I still don&#x27;t understand why that&#x27;s necessary when my third-party device can do it all by itself.
zabzonk超过 1 年前
ooh, does anyone remember what it was like plugging in a device _before_ USB? even re-plugging a mouse (for example) would crash the whole system.
评论 #39585435 未加载
评论 #39586108 未加载
评论 #39585649 未加载
评论 #39586853 未加载
评论 #39587861 未加载
Macha超过 1 年前
Regarding the article date, I&#x27;m pretty sure this is older than 2010, with the description of USB 2.0 as new and poorly adopted (USB 2.0 was released in 2000, 3.0 in 2008)
vbezhenar超过 1 年前
USB is surprisingly simple. Not very simple, but it’s possible for a determined developer to understand and implement driver within a reasonable amount of time. At least early versions. Before I dive into it, I thought it was complete magic.
评论 #39586621 未加载
throwaway71271超过 1 年前
I am trying to add usb floppy support for the esp32 host and this site is helping me a lot.<p>The current esp32 mass storage driver supports only bulk only transfer scsi, but usb floppies (those with the uf001f chip) use CBI(control&#x2F;bulk&#x2F;interrupt) and also UFI has a bit different command set: <a href="https:&#x2F;&#x2F;www.usb.org&#x2F;sites&#x2F;default&#x2F;files&#x2F;usbmass-ufi10.pdf" rel="nofollow">https:&#x2F;&#x2F;www.usb.org&#x2F;sites&#x2F;default&#x2F;files&#x2F;usbmass-ufi10.pdf</a><p>By using this site, a cheap logic analyzer and usbpcap for windows, I am trying to go around reading all the usb docs :)
elwesties超过 1 年前
I was 100% sure I was about to see a USB drive made out of a nut shell when I clicked on that link. Both disappointed and not :P
评论 #39586848 未加载
FounderBurr超过 1 年前
Reading and understanding documentation is a true waste of time. I just press the ‘I can has usb?’ Button and it lays works well enough for me to sell to people.