Questions tagged [usb-device]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
123 views

PCB,DIY USB Mobile Phone Charger. Shield to GND?

Little project using a step down converter that steps down 13v from a car battery to 5v 3A. I have added Decoupling capacitors and so on to the 5v line for filtering(Probably gone overkill) but im ...
1
vote
0answers
416 views

Devices USB grounding

I just opened a PC a client brought, with some software problems. While fixing those problems I opened the case to check if there was something that needed maintenance and I noticed the USB shield ...
-2
votes
1answer
49 views

HID Device that would allow to track usage

Would it be possible to implement a HID device that would be capable of tracking computer usage - such as - 1/ computer being woken up 2/ Keyboard, mouse and/or touchscreen being active A HID device ...
1
vote
1answer
108 views

How can a USB charger with USB-A connector handle 3 Ampere?

Today I saw a USB Wall charger for sale and it claimed it can output 3 amps at 5V and it only had one USB port. USB specs say a dedicated charging port is rated for 1.8A. So how is this charger USB ...
0
votes
0answers
70 views

USB port identification

I have to come up with an architecture for a system where PC communicates to two identical(but independent) micro controllers(in-built usb controller) over 2 USB channels. I don't have experience in ...
0
votes
1answer
3k views

STM32F072C8 - USB communication issue

I am trying to use the built-it USB to implement a simple HID device in STM32F072. Of course, it is not working. This is my first experience with USB, so I needed some help in figuring out what could ...
0
votes
1answer
245 views

Is it possible to connect USB printer to Atmega8 [closed]

I have a usb thermal printer, that I want to control using Hex commands in its datasheet from cheap micro-controllers. But to do that I need to create USB host in my board and it requires more than ...
3
votes
1answer
2k views

STM32F070 - firmware-controlled USB connection and HSE activation

I'm developing firmware for a low power USB 2.0 Full Speed device (12 Mbps) which uses an STM32F070CB microcontroller. The clock source for the USB module will be the High Speed External (HSE) ...
0
votes
3answers
5k views

Modifying USB Battery (Portable Power Banks) to charge while charging (to use as ups)

I've been checking all the questions and can find many similar ones, but unfortunately none that addresses my problem. I ended up reading many interesting questions and answers (including e.g. this ...
0
votes
1answer
1k views

Use mobile to power external LED(bulb) via a Micro USB port?

I have heard people using OTG cable and a USB cable to charge one mobile from another mobile. I was wondering, Could I use the micro USB port directly to power external devices like LEDs. I cut up ...
1
vote
0answers
3k views

STM32 USB_CDC Firmware to autodetect by Linux

We are developing a custom board to control brushless DC motors. The board has STM32F405RGTx. We are now trying to make USB CDC communication work. We generated the code using STM32CubeMX. ...
-1
votes
1answer
932 views

On an AC-DC adapter, what is the use of the mA number printed on it? [duplicate]

releted to this question I wonder what the use of the number of mA printed on an AC-DC adapter/converter means. I am charging a Bluetooth headset, which came with ...
0
votes
0answers
622 views

STM32F401 USB D+ Pull Up

I am using an STM32F401 microprocessor I understand that for a regular STM32F4 I don't need a pull-up for USB However I don't know what happens for the case of OTG Do I need a pull up on the D+ line ...
0
votes
1answer
158 views

USB Type-C EMCA cable - where does the mux happen?

If I wanted to re-route SBU1 and SBU2 to a separate controller because I only intend to use the USB 2.0 capabilities of the wire - Do I have to worry about the EMCA chip interfering? Does the USB ...
4
votes
2answers
2k views

How to _disable_ USB on STM32F1xx?

I have a battery-powered device using an STM32F107. The device works and I am currently working on minimizing its power consumption. One of the bigger current draws is the USB subsystem itself, using ...
-1
votes
2answers
1k views

ATmega32U4 with TXLED and RXLED as output pins and USB functionality

I use ATmel ATmega32U4 in a schematic which copies Arduino Leonardo almost completely. So, Caterina-Leonardo bootloader works fine with it. Unfortunately, I have run out of all available output pins. ...
0
votes
1answer
113 views

PIC18 problem with flash programming [closed]

Firstly, I have to say that I'm new to PIC family. I am trying to build USB-CAN converter from USB-TIN page using PIC18f14k50 microcontroller, PICkit3 programmer and MPLAB IDE. After writing hex file ...
1
vote
2answers
2k views

“CH340” usb-serial interface chip drivers cause AVR reset problems under Windows / Linux

Attaching a "Nano V3.0" arduino clone device to a Windows 7 PC's USB port causes the ATMega328P on the device to misbehave and lock up. We are deliberately NOT using the Arduino toolchain - we are ...
3
votes
0answers
1k views

STM32F0 USB device - unexpected Device_Qualifier descriptor request

Edit I may not have asked the correct questions here. Please do not attempt to answer before I edit again to remove this message. Summary I'm developing firmware for a USB device, and I can't get ...
1
vote
4answers
578 views

Which TWO wires to disconnect to disable USB mouse

As there is more choice in DPDT switches than there is for 4PDT switches I am wondering which TWO connections are the best to disconnect to disable a USB mouse? I need an easy to use switch that ...
1
vote
1answer
716 views

How to convert an existing design from USB Mini/Micro to use USB Type-C connector?

What does it convert a design from USB Mini or Micro connector to a USB type-C connector? To have a more specific question, take for example FTDI Basic (schematic below) which is USB/Serial converter ...
0
votes
1answer
9k views

What is the difference between 2.4A output with or without Qualcomm Quick Charge 2 or 3?

I am looking to get a 12V USB charger for my car for the cigarette lighter. I see there are some that offer 2.4A output per USB port with and without Qualcomm Quick Charge, but how does Qualcomm Quick ...
1
vote
2answers
1k views

Can i connect Power source (like usb charger) parallel connection with power bank output for keep Uninterruptible power supply (UPS)

I have a question about uninterruptible power supply (do it yourself). I have a simple power bank and relay (or light) i want that my relay will be always on even the power adapter are disconnected. ...
0
votes
1answer
1k views

STM32F7 CubeMX FreeRTOS and USB CDC

I'm using FreeRTOS generated with the help of CubeMX. Everything was working fine until I added USB CDC unit. When I used CDC_Transmit_FS() before starting kernel, I could receive data over USB. ...
0
votes
1answer
2k views

GL850G without over-current protection

i am using the GL850G in gang mode for a circuit without over current protection to extend my available USB ports. on power up the crystal starts oscillating for around 40ms then stops. then i using a ...
1
vote
1answer
210 views

How do I trigger a MCP2200 / FT245RL chip

In my original post I thought I had this turkey nailed, sadly not :( I've got a pnp laser distance sensor and a Denkovi USB relay board. I'm planning on using the laser to trigger the IOs on the ...
2
votes
1answer
4k views

What is GMAC/EMAC and does it define a physical connection to an ethernet chip?

Background I'm trying to understand if there is a dedicated protocol that dictates the way CPU on an embedded board is connected to an Ethernet chip. For example if it's some dedicated equivalent to ...
4
votes
3answers
4k views

Structure of a usb 2.0 connector [duplicate]

What is the role of the outer metal connector? (the one with two square holes) Does it have a potential? Is it insulated from the 4 pins? Are the 4 pins insulated from each other?
0
votes
1answer
1k views

Laptop does not detect Stm32f4 discovery board

I am newbie here , if i posted wrong site i am sorry :) I have bought discovery board to learn arm programing , but when i plug board to laptop via usb, there is no sign of 'device plugged' even on ...
1
vote
3answers
237 views

Using two separate USB connectors, one for power and one for data: do I tie their grounds?

for a project I'm working on I am required to have two USB connectors: the first is used to provide data and power to only one IC of the board the second is used to provide power only to everything ...
3
votes
1answer
1k views

Hardware-level detection of USB3.0 vs USB2.0

I'm designing a USB battery charger, and I'm trying to use simple hardware (ICs are fine, just nothing that I have to upload firmware onto preferrably) to detect whether or not the USB socket I'm ...
1
vote
1answer
164 views

How to put an external antenna on a wireless card

I have a USB wireless card and the listing said the following (If any use) "Mini 150Mbps USB WiFi Wireless Adapter Network LAN Card 802.11n/g/b 2.4GHz". I am wondering how I could put an external ...
1
vote
1answer
602 views

SERIAL/USB game controller reverse engineer

I recently acquired a Logitech Wingman Formula Force from a thrift store. This controller is marketed as USB or serial port. By default the controller ships with a native serial connector, but then ...
-1
votes
1answer
158 views

How does shift register works as I/O multiplexer

I was checking on eBay for a CNC controller. I came across this unit, which provides 64 buttons. The micro is a 28pin PIC chip but there are 8x LS165A IC's on it. I am guessing there is some sort of ...
0
votes
1answer
183 views

USB device with separate switch-mode supply. Do I just connect the grounds? Are ground loops an issue?

I'm designing a device which uses an FT201X USB I2C bridge for driving a series of LED controllers. The total LED current would far exceed the few hundred milliamps that a USB port will allow me to ...
3
votes
1answer
1k views

USB connector durability: plug vs socket

I've been searching for information about USB connectors durability and I have found those numbers: Type-A: 1,500 plug-unplug cycles Mini-A: 1,000 plug-unplug cycles Mini-B: 5,000 plug-unplug cycles ...
4
votes
1answer
419 views

How can I detect a safe eject of mass storage device on STM32?

I use usb module of STM32F103C8T6 to be a mass storage device, which allows user to edit some config files in the project. I want to exit mass storage mode as soon as the user eject the disk, I tried ...
0
votes
1answer
61 views

USB is not recognized by device manager but seen by vender's software

I am trying to acquire data in real time from a sensor mounted on an evaluation board. This evaluation board has a software, when I connect the USB to PC, it automatically recognizes the USB and it ...
6
votes
2answers
2k views

USB CDC : Help with Zero Packets

I'm trying to understand the need for Zero packets in USB-CDC transmissions. From what I gather, this seems to touch upon some grey areas of the USB spec or in differences in implementation of host ...
0
votes
0answers
142 views

How do you initialize the target cpu using the usbWiggler API?

I'm trying to use usbWiggler to communicate with a board that has 4 ICs. Through the usbWiggler API I have been trying to write and read from the board. However the CPU on the board is not one of the ...
0
votes
1answer
228 views

MicroSD memory Card to USB

I am searching for a circuit or any technical documentation or interfacing IC to design the MicroSD memory card to USB. I am very well aware of Adapter available in ...
-2
votes
2answers
878 views

How to measure the actual bits of data transfer over a USB cable? [closed]

EDIT 1 I am doing an investigation and I have to do an experiment and write a report based on different USB speeds. Edit 2 To explain my investigation again, I am trying to measure the rate of data ...
-1
votes
2answers
96 views

Can we control our computer's USB port? [closed]

what i want to do is : I want to connect a USB fan to my laptop and through programming want to turn on and turn off the fan. Is it possible to do so? Please post your valuable suggestions.
0
votes
1answer
1k views

STM32 HAL_PCD_EP_Transmit work only once

I'm developing a USB composite device with the Nucleo-F446ZE. I'm adding a Virtual com port and I have some trouble to send back data. I receive everything from the computer but when I try to send ...
0
votes
2answers
151 views

Battery charging from different USB modes

I am designing a USB based charger for a Li ion battery. Now, the charging could be from a simple USB connected to a PC (that sources about 500mAmps) or from a DCD USB charger adapter. Now, I am ...
1
vote
1answer
830 views

STM32F4 USB CDC Communication transfers only specific characters without noise?

I'm working with STM32F407VET6 board. And I'm trying to make communication between my PC and Micro Controller via sample which transmits what it receives through USB. I've created USB Device example ...
2
votes
5answers
6k views

Does USB cable quality matters (affects in someway the signal) on audio interface (or DAC)?

I was wondering this for quite a while. Usb cables are purely digital signal so in theory no one should care about its quality if it does the job well and transfer the signal to the end (ones and ...
0
votes
1answer
89 views

USB data detection [closed]

I am new to USB communication. I am studying the USB communication and protocol. I have always wondered about how USB devices actually communicate. I have a microcontroller with USB peripheral. I am ...
1
vote
1answer
714 views

USB & 12V-Power-Supply simultaneously - Diode?

I'm currently designing a (fairly easy) circuit, which is powered by an ordinary 12V Power Supply. To flash the embedded µC and/or get debugging output, I use an onboard USB-UART-Interface. To make ...
1
vote
0answers
236 views

Atmel ARM, USB, and an SD Card as a MSD?

I'm currently trying to run the SAM L21 as both a CDC and an MSD over USB. Thankfully there is example code here to get me started. I can move files into the on-board ram just like any other storage ...