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
37 views

Automatic charging and power switch between USB and LiPo battery

I am designing a board which can be powered over USB and includes the use of a LiPo battery along with its charger circuit. When the USB is connected, it charges the battery as well as powers the ...
0
votes
0answers
28 views

Limit voltage from a Peltier module to 5 Volts

I'm looking to make a simple device to charge my battery pack when I don't have access to an outlet. The Peltier module I'm thinking about using is a "TECI 4905" module that at first glance seems to ...
0
votes
3answers
104 views

Unrecognized usb3.0 device using non-standard connector

I Have two PCBs,pin out define as follows ,the host pcb is A connector,and the device pcb is B connector. I use the 1.25pitch connectors&USB3.0 cable to connect two boards,but the host board ...
0
votes
1answer
45 views

Can an Arduino Pro Micro act as a USB hid and usb host device at the same time?

I know that the Pro Micro can act as a HID device. As far as I understand the Pro Micro can also act as a USB Host using a usb-host adapter (shield) - right? Now can the pro micro be both a device ...
0
votes
0answers
25 views

Determining memory compatibility with USB mass storage controller

I am studying the functionality of modern flash drives/pen drives/mass storage devices. Most of these devices appear quite simple in function; typically using a readily available USB host controller ...
0
votes
1answer
60 views

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

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
99 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
73 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)...
2
votes
2answers
67 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
66 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
89 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
74 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
72 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
26 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
61 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
42 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
210 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
624 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
59 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
291 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
84 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
77 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 ...
2
votes
2answers
283 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
46 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
131 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
28 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
143 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
66 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
189 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
335 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
110 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
49 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
618 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
47 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
129 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
107 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
122 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
199 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
1k 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
44 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
41 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
95 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
176 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
256 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
64 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
84 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
467 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 ...