Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [usb-device]

Quesions about the design of USB devices that connect to a USB host, such as a PC.

0
votes
1answer
58 views

Can two usb gaming controllers be wired together to act as one? [on hold]

Let's say I have two USB gaming controllers. Those generic ones. Is it possible to make it so they work as one? So if you press Left in Controller one and B on controller 2, they both get sent and ...
0
votes
1answer
67 views

STM32F103 USB CDC [closed]

I have a strange problem with USB CDC mode in STM32F103. I have designed PCB with STM32F103 microcontroller and an accelerometer which streams data through USB to PC. I have used STM32CubeMX wizard. ...
0
votes
2answers
44 views

USB hub circuit

I have a custom made USB hub with 4 USB ports. It gets 5V max 500mA. Below is the datasheet for the hub chip http://minipcsale.ru/images/Minix-Neo-X8-h/GL852G.pdf now my question is If i connect 4 ...
12
votes
6answers
2k views

USB device with 2 ports - how to protect against user plugging in both

I've got a Full speed USB device which I want to provide 2 ports for - one each on opposite ends of the enclosure. This is so the cable can be connected wherever is most convenient. My MCU (atmega32u4)...
1
vote
2answers
57 views

What are the limitations of the USB Composite device

I am looking at coding a USB device that is capable of encapsulating two USB devices. I would like to create a HID keyboard with a single extra USB port. A mass storage device would be connected to ...
-1
votes
2answers
64 views

How to have USB act as a programmable power source? [closed]

I am interested in making a USB device that on 1 end, is a male usb that plugs into a PC like windows. On the other end is something that has a positive and negative terminal (or wire end). I want to ...
0
votes
1answer
86 views

2 Computers 1 USB Device (circuit help) [closed]

I have a project with a custom USB device that pumps out a stream of data every 1.125 seconds to a Raspberry Pi running Windows 10 IoT, and occasionally receives an 8-byte command. The USB device and ...
0
votes
1answer
68 views

In USB 2.0, what's the maximum delay between SETUP and DATA0 packets?

In the setup stage of a USB control transfer, the host sends both the SETUP and the DATA0 packets. Assuming that the device has received the SETUP packet, how long should it wait for the DATA0 packet? ...
0
votes
0answers
49 views

speed up USB VCP

How I can speed data transfer over USB VCP? I have h743zi-nucleo board. I have already set CDC_DATA_FS_MAX_PACKET_SIZE to 256. Is there any other room for making this thing faster? What can I do on PC ...
0
votes
0answers
24 views

can't figure out why my micronucleus/V-USB setup doesn't work

I built a small attiny85-based board using vusb and essentially the schematic of the discontinued Sparkfun "AVR Stick" (at least on the usb/uC side; see https://www.sparkfun.com/datasheets/Widgets/AVR-...
0
votes
1answer
60 views

Same serial command, different serial replies

I have a device (a traffic counter) that communicate with my computer throught Serial Port. To extract data from this device, I use a specific software. I'm also using a Serial Port Monitor to check ...
0
votes
2answers
85 views

USB type-B sockets vs USB Mini-B sockets [closed]

Most Programmers hardware equipped with USB type-B connectors for connecting to PC. USB Mini-B connectors are much less used in device programmers. Have the USB type-B connectors any advantages or ...
0
votes
1answer
36 views

USB 2.0 full speed audio class max sampling frequency?

what is the maximum achivable sampling frequency when using USB 2.0 full speed isochronous audio transfer and stereo 24bit format (recording only) ? when no compression is used !
0
votes
0answers
122 views

How do I need to configure USB_FS in STM32H7 to use it as virtual serial port?

I have h743zi-nucleo board and I'm trying to configure USB_FS to use it as COM port. What I do now: In cubeMX: What I do now: Initialize all peripheral in Default mode (this is the dialogue option) ...
4
votes
3answers
592 views

How to test for USB dropouts on STM32F?

I've got a devices that is really strange, it drops USB periodically. By periodically I mean on a weekly (or biweekly) basis. By dropping out I mean windows loses the handle to the driver. Dropouts a ...
0
votes
1answer
49 views

AT90USB162 not detected in windows

I have an AT90USB162, have it set up like this: I'm trying to program the chip using Atmel FLIP, but I can't because it's not detected. What could be the problem and how can I fix it?
0
votes
1answer
39 views

One-time fuse for disconnecting/breaking signal path

I am looking for an IC solution, ideally, but alternatively also could use a tiny circuit that would allow to accomplish the following feature: Trigger an event by MCU that will fuse-out/disconnect ...
1
vote
1answer
75 views

LAN9500A Ethernet Adapter

I'm designing a USB-to-Ethernet adapter (actually a prototype of a piece of a larger board). As those following my questions will know, I've had some ups and downs getting the USB part working, but ...
0
votes
1answer
75 views

Is there any way a usb device can identify the usb host operating system? [closed]

Is there any way for the USB device to know if it is connected to a Windows or to a Mac without the installation of a third party software? Maybe there is a way to "ask" a question via USB and figure ...
1
vote
2answers
162 views

How to make a DIY Flash Drive?

There have been previous versions of this question that were closed since "there is no reason to create a one-off actual thumb drive", however, I have a very specific idea for a USB flash drive in ...
1
vote
1answer
44 views

How to limit current on parallel outputs from a power supply?

So I am trying to make a USB power dock for multiple devices. I have a 5v 20A power supply. If I connect 10 USB ports in parallel, is there a way to cap their current to 5v 2A? I don't want to fry my ...
0
votes
1answer
130 views

What USB-2 cabling hardware do I need to connect two Windows 10 computers together? [closed]

I want to run a .NET app in each of the two computers, so that they send and receive data through USB-2. What kind of cable adapter will do this? BACKGROUND: I need to build a GUI on Windows that ...
0
votes
0answers
27 views

Random generating USB bcdDevice field

I'm working on an embedded project involving USB 2.0 and STM32F3 MCU. I need to generated the bcdDevice field for the device descriptor and the serial number string (which can be arbitrarly long). I ...
0
votes
2answers
129 views

USB 5V 2.1A Charger Destroys Device

I have a USB powered device with an internal Li-Ion battery that has overheated and died. After looking for similar events online I found that charging on a 2.1A charger can damage or destroy the ...
0
votes
2answers
58 views

Soldering USB cable to the bottom of USB connector

I have a USB device with a type A jack connector (see photo). I am integrating this device as a part of another device and due to requirements for ruggedness I would like to have a fully soldered USB ...
0
votes
1answer
40 views

Large LED Array powered via USB

I am working on building a keyboard at the moment and I have run into an issue. I need to power 79 led backlights on the keyboard but I have no idea how to do this given that the power is coming via ...
0
votes
1answer
161 views

USB Bus Powered with LDO device example

I'm planning to use the FT232R in my USB device. The device consists of the FT232R and a dsPIC33EP64MC202 (Basically speaking, the FT232 and a microcontroller only). On the FT232R's datasheet, at the ...
0
votes
3answers
198 views

What is the difference between usb root hub and usb host controller?

From the oracle wiki (usb controller): The USB host controller has an embedded hub called the root hub. The ports that are visible at the system's back panel are the ports of the root hub. ...
1
vote
3answers
102 views

Doubt about USB bus powered device

I want to improve my project to be more robust, because it needs to be available 24 hours a day. Initially, my design had one microcontroller and a USB (FT232R) interface. The FT232 is 5V powered and ...
0
votes
2answers
45 views

RS232 Bridge cable stopping after some time

Im trying to reverse engineer a very old DOS program that connects with a machine using RS232, for this i setup a typical in the middle connection like this: From Computer A to PC A connection im ...
0
votes
1answer
397 views

STM32L4 USB Device with VBUS Sensing

I'm trying to get the CubeMX generated sample CDC application working on STM32l475VG IoT board. By following a document from ST Community, I was able to get the clock configuration right and the CDC ...
0
votes
1answer
43 views

Micro-USB Octopus

I've been searching around for a splitter-type / octopus device that will let me charge many (8) devices over micro-usb from a single outlet. My assumption has been (but correct me if I'm wrong) that ...
0
votes
1answer
116 views

How can I test the resistor on my USB connector?

I have purchased some USB-C connectors that I use to build my own cables with (I have separate "host" and "device" side connectors for various cable assemblies), and I was wondering how I might go ...
1
vote
1answer
97 views

USB 2 data over Cat5 cable

I'm looking to extend two USB 2 devices with one 5 meter long cable. From what I've read, one can run USB 2 fine over Cat5e cable (as long as it's <5m). My question is whether it really matters if ...
0
votes
1answer
94 views

Unexpectedly drawing power over serial tx/rx? What to do?

I have this TTL-to-USB-serial device (supposedly from WINGONEER, who doesn't seem to have any documentation on how to use it): https://www.amazon.com/gp/product/B06XY18XLL I'm using it to hook up ...
1
vote
1answer
178 views

USB 2.0 circuit

I am designing and using a USB 2.0 (High-Speed) specification circuit. The circuit is shown as below. Sometimes CPU cannot recognize the USB stick (USB 2.0 High speed). At first, I changed the ...
0
votes
0answers
767 views

after replacing micro usb port, tablet charges only 450mah [duplicate]

I changed micro usb port which was broken (it takes out from motherboard) on tablet. On motherboard are 5 contacts and one is damaged (4. - it is for data transfer, ID). I solder +5 VDC contact and ...
0
votes
1answer
42 views

How to receive data from RS-422 or RS-232 device in linux

I'm very new in this linux device driver and communication things. If i have to connect this kind of devices with a computer, and receive the data, than how should i start it? should i create a device ...
0
votes
0answers
38 views

USB A 2.0 +5V bus interfering with Vsys?

I want to have a USB connector on my PCB that will act only as host for joysticks. It will be a USB2.0 A connector. The voltage supplied for this is from +5V_Vsys. My question is what happens when a ...
0
votes
1answer
91 views

Analyzing USB signals [closed]

I'm experimenting with HID lately. And I need to know more about the physical output signal of a USB keyboard. My goal in the end is to put a small data logger in between the USB-keyboard an a ...
0
votes
3answers
175 views

Any idea on this USB interface type?

The USB charging port is on a AOBO spy camera, ive no charging cable and this doesnt appear to me to be standard. Instructions with the device indicate it is a USB interface port. The instructions ...
0
votes
1answer
211 views

USB-C UFP and DFP Not Working Properly with ONLY Samsung Mobile Phones

I have a UFP device (basically just a light) that I am trying to sink for power only. The "light" has a micro-B plug, which then plugs into a micro-B port on a PCB, that then includes a USB-C plug ...
0
votes
0answers
57 views

How are the USB packets generated on VCOM Port (USB CDC)?

I'm trying to understand how a virtual com port sends the packets over USB. The reason behind is that I want to send packets from a PC to an MCU configured as a Communication Device Class. If I send ...
0
votes
1answer
76 views

Use USB-C cable as multiples regular copper wires

Could it be possible to use a USB-C Cable to USB-C Cable with both end controlled by me, just for use as simple copper wires, without negotiation, etc... Because i would not be using the USB protocol. ...
3
votes
1answer
342 views

How is crc5 calculated for a usb token?

I captured the usb packets on a usb1.1 mouse using a generic 24mhz logic analyzer. here is the sigrok capture for the first token. as per the usb docs.. a CRC5 is calculated for the token by taking ...
0
votes
4answers
125 views

uln2003a: Switching ground of device works, however, optional USB function of device doesn't work correctly

I use the uln2003a to switch a device (with use of a MCU) that is capable doing several things, like fm-radio, bluetooth, playing MP3's etc. It also provides an USB ...
0
votes
1answer
68 views

Type-C Cable : Different between Active cable, Passive Cable, EMCA

Please anyone help me to clarify different btw Active cable, Passive cable, EMCA. Their definition seem difficult to understand. Additional, in USB-TypeC Specification from usb.org: ...
0
votes
1answer
46 views

USB Link state is dissconnected while exiting from deepsleep

I'm developing USB Hibernation feature on on of the platform which use Synopsis DWC3 USB controller. When USB alone resumes from suspend state there is no issue. But I'm facing an issue while my ...
1
vote
1answer
980 views

stm32 CDC USB - Unknown device (error code 43) [closed]

I face a problem with making custom PCB with STM32F103C8T6 FS CDC but whole story looked like this. I've made small test app using CubeMX and IAR on cheap PC from china with same MCU - in terminal on ...
0
votes
2answers
263 views

can i be host usb without OTG and USB-A on stm32

Okay, hello everyone ! I'm a little bit confused with USB possibility and stm32 MCU ! I have a stm32l433rb and it has just an usb full speed (device) capabilities. In the other hand, on my hardware,...