usb, short for Universal Serial Bus, is an industry standard developed by USB Implementers Forum Inc that defines the cables, connectors and communications protocols used in a bus for connection, communication and power supply between computers and electronic devices.
Questions tagged [usb]
11 questions
8
votes
8 answers
When is a device driver needed and when is it OK to read/write directly to the port?
I'm having a difficult time understanding when device drivers are needed, and when its fine to just talk directly to a port controller via the OS-provided serial/parallel/USB/etc. driver.
For instance, Example 1: let's take OpenBCI, an open source…

smeeb
- 4,820
- 10
- 30
- 49
6
votes
2 answers
How does a USB device whether know to draw 500mA, 1A or 2.1A from a computer USB port?
I'm having some issues with my Nexus 7 drawing just 500mA from a USB port able to supply 2.1A (test with my iPad). Details in this question. However, there is a comment posted "The Nexus obviously detects the 'data' pin connected, and assumes it is…

DeepSpace101
- 1,394
- 5
- 14
- 26
5
votes
1 answer
Driving Linux input events from serial device
I'd like to build a RaspberryPi-based device that can communicate with my Linux laptop over USB (don't think it matters, but I'll be using a custom made USB dongle that has an FTDI chip on it, and my laptop will have the FTDI drivers installed on…

smeeb
- 4,820
- 10
- 30
- 49
4
votes
1 answer
SPI vs SCI on TI processor
I have a Texas Instruments development board: LAUNCHXL-F28027.
I'm confused on the difference between SPI (Serial Peripheral Interface) and SCI (Serial Communications Interface). What are their differences and where do they overlap as functionality?…

tomab
- 171
- 1
- 7
3
votes
3 answers
Read data from a device through usb port at high frequency
I need to know if I can get acceleration data from an IMU at 500Hz via USB.
I've been going through the code that the manufacturer provides and trying to improve it. Right now I cannot go faster than 166Hz. Things I've tried:
Switched from…

cauchi
- 1,192
- 2
- 13
- 22
1
vote
1 answer
How exactly does USB integration work from the micro controller end?
I have no prior USB integration and about 8 months of learning embedded systems on Atmel devices. I am trying to use an Atmel SAM L series to connect over USB to a computer. The use case is for data transfer. Specifically, the MCU will be gathering…

Nate San
- 11
- 1
1
vote
1 answer
Developing a cross-platform interface for writing to hardware like PicKit OR USB over the web?
I thought long and hard on weather to put this question in programmers or stack overflow. Please let me know if this is not the right place and I will post it to SO.
My friend and I am developing a display board that would need some configuration…

Stack Exchanger
- 11
- 1
0
votes
3 answers
Best Way to Access Hardware per COM Serial Port over USB Adapter
We are starting a total new Branch at our firm. I am usually developing database interfaces or internal server/client applications/tools for our company, but I never had to do something with hardware.
Szenario
My Boss want to sell a device, which…

Ello
- 144
- 1
- 4
0
votes
2 answers
How are interrupts implemented in practice?
Consider an USB device that is receiving data over a wireless network and an application running on the PC is reading this data. Now, on many languages (consider C# DataReceived), we have event handling mechanisms to detect if Data has arrived or…

Shamim Hafiz - MSFT
- 4,123
- 7
- 38
- 46
-1
votes
1 answer
Determine file type and then decompile to edit source
I'm new to this type of programming, but proficient in web development... looking to expand my palette a little.
I have this file. In Windows 7 the file properties window claims its a 'system file', my assumption is that this is a generic…

Joe
- 103
- 3
-2
votes
1 answer
Loading My Custom OS from USB flash drive
Suppose I want to create a portable OS, that needs a USB flash drive only to work. and i wrote my boatloader in the first sector to be loaded by the BIOS, from here on, what can I do to load my OS kernel, which is located somewhere in a USB drive?

HumbleUser
- 17