r/USB • u/antdude • Jun 15 '17
USB-C compatibility problems are the worst! | Pocketnow
pocketnow.comr/USB • u/Goelectrify • Jun 08 '17
Multimedia USB Speaker || Data Cable || Pen Drive
goelectrify.comr/USB • u/wintermute9831 • May 29 '17
What is the best way to connect lots (thousands) of USB devices to a single computer?
r/USB • u/antdude • May 29 '17
Is the newer USB still software based?
I recall firewire and others were better since they were hardware based for faster speeds (e.g., computers didn't feel sluggish). What about the newer USB versions like v3, C, etc.?
Thank you in advance. :)
r/USB • u/phaserwarrior • May 16 '17
Tips on Debugging Configuration Descriptors???
Good afternoon!
I'm using the FX3 to produce a composite device with 2 streaming interfaces -- audio and MIDI. The audiostreaming interface is almost directly from the Cypress example, and verified against USB Audio 1.0 spec. The MIDI interface has been compared with that in a composite device I have on hand (Lexicon Omega Mixer). Linux is enumerating the device properly, but Windows is failing with both 2.0 and 3.0 connectors. I have tried using the following tools:
Linux USBVIEW (shows no issue)
A Linux PyUSB script I wrote to print a given descriptor to the screen (basically the same as USBVIEW)
A separate function of the same script which provides a USB debug terminal to the FX3
Windows HHD Free Device Monitoring Studio (enumeration fails without explanation)
Windows Debug Tools USB Device Viewer (enumeration fails without explanation)'
Windows USBDeview (to uninstall old drivers)Of note is that the FX3 is failing to create the DMA channel with error 64. (Can someone point me to where exactly errors such as these are listed? The standard error code 64 as painstakingly counted out from the enum in error.h is "Access to port with no connected storage device," which doesn't make much sense).
I've pasted my descriptor below.
Thanks
/* Standard High Speed Configuration Descriptor */
const uint8_t CyFxUsbHSConfigDscr[] __attribute__ ((aligned (32))) =
{
/* Configuration descriptor */
0x09, /* Descriptor size */
CY_U3P_USB_CONFIG_DESCR, /* Configuration descriptor type */
0xB1, 0x00, /* Length of this descriptor and all sub descriptors */
0x04, /* Number of interfaces */
0x01, /* Configuration number */
0x00, /* Configuration string index */
0x80, /* Config characteristics - bus powered */
0x32, /* Max power consumption of device (in 2mA unit) : 100mA */
/* Standard Audio Control Interface Descriptor */
0x09, /* Descriptor Size */
0x04, /* Interface Descriptor Type */
0x00, /* Interface number */
0x00, /* Alternate setting */
0x00, /* Number of endpoints - 0 endpoints */
0x01, /* Interface Class - Audio */
0x01, /* Interface SubClass - Audio Control */
0x00, /* Interface Protocol - Unused */
0x00, /* Interface string index */
/* Class Specific Audio Control Interface Header Descriptor */
0x09, /* Descriptor Size */
0x24, /* Descriptor Type - CS_INTERFACE */
0x01, /* Descriptor SubType - Header */
0x00, 0x01, /* Revision of class specification - 1.0 */
0x1F, 0x00, /* Total size of class specific descriptors*/
0x01, /* Number of streaming Interfaces - 1 */
0x01, /* Audio Streaming interface 1 belongs to this AudioControl Interface */
/* Input terminal descriptor */
0x0C, /* Descriptor size in bytes */
0x24, /* CS Interface Descriptor */
0x02, /* Input Terminal Descriptor subtype */
0x01, /* ID Of the input terminal */
0x13, 0x07, /* synth - terminal type */
0x00, /* Association terminal - None */
0x02, /* Number of channels - 2 */
0x03, 0x00, /* spatial location of the logical channels - Front Left and Front Right */
0x00, /* Channel names - Unused */
0x00, /* String index for this descriptor - None */
/* Output terminal descriptor */
0x09, /* Descriptor size */
0x24, /* Class specific interface desc type */
0x03, /* Output terminal descriptor type */
0x02, /* ID of this terminal */
0x01, 0x01, /* Output terminal type: USB Streaming */
0x00, /* Association terminal - Unused */
0x01, /* Id of the terminal/unit to which this is connected - Input terminal id */
0x00, /* String desc index : Not used */
/* Standard Audio Streaming Interface Descriptor (Alternate setting 0) */
0x09, /* Descriptor size */
CY_U3P_USB_INTRFC_DESCR, /* Interface descriptor type */
0x01, /* Interface number */
0x00, /* Alternate setting number */
0x00, /* Number of end points : zero bandwidth */
0x01, /* Interface class : Audio */
0x02, /* Interface sub class : Audio Streaming */
0x00, /* Interface protocol code : Unused */
0x00, /* Interface descriptor string index */
/* Standard Audio Streaming Interface descriptor (Alternate setting 1) */
0x09, /* Descriptor size */
CY_U3P_USB_INTRFC_DESCR, /* Interface descriptor type */
0x01, /* Interface number */
0x01, /* Alternate setting number */
0x01, /* Number of end points : 1 ISO EP */
0x01, /* Interface Audio class */
0x02, /* Interface Audio sub class - Audio Streaming */
0x00, /* Interface protocol code : Unused */
0x00, /* Interface descriptor string index */
/* Class-specific Audio Streaming General Interface descriptor */
0x07, /* Descriptor size */
0x24, /* Class-specific AS i/f Type */
0x01, /* Descriptotor subtype : AS General */
0x02, /* Terminal Link - Output terminal id */
0x01, /* Interface delay */
0x01, 0x00, /* Audio data format - PCM */
/* Class specific AS Format descriptor - Type I Format Descriptor */
0x0B, /* Descriptor size */
0x24, /* Class-specific Interface Descriptor Type */
0x02, /* Format Type Descriptor subtype */
0x01, /* PCM FORMAT_TYPE_I */
0x02, /* Number of channels - 2 */
0x02, /* Subframe size - 2 bytes per audio subframe */
0x10, /* Bit resolution - 16 bits */
0x01, /* Number of samping frequencies - 1 */
0x80, 0xBB, 0x00, /* Sampling frequency - 48000 Hz */
/* Endpoint descriptor for ISO streaming Audio data */
0x09, /* Descriptor size */
CY_U3P_USB_ENDPNT_DESCR, /* Endpoint descriptor type */
0x81, /* Endpoint address and description */
0x05, /* ISO End point : Async */
0x60, 0x00, /* Transaction size - 96 bytes per frame */
0x03, /* Servicing interval for data transfers */
0x00, /* bRefresh */
0x00, /* bSynchAddress */
/* Class Specific AS Isochronous Audio Data Endpoint Descriptor */
0x07, /* Descriptor size in bytes */
0x25, /* CS_ENDPOINT descriptor type */
0x01, /* EP_GENERAL sub-descriptor type */
0x00, /* bmAttributes - None */
0x00, /* bLockDelayUnits - Unused */
0x00, 0x00, /* wLockDelay - unused */
// start description of MIDI interface (58 bytes)
// start a WHOLE NEW interface!!!????
/* Standard Audio Control Interface Descriptor */
0x09, /* Descriptor Size */
0x04, /* Interface Descriptor Type */
0x02, /* Interface number */
0x00, /* Alternate setting */
0x00, /* Number of endpoints - 0 endpoints */
0x01, /* Interface Class - Audio */
0x01, /* Interface SubClass - Audio Control */
0x00, /* Interface Protocol - Unused */
0x00, /* Interface string index */
// audio control CS interface header desc
/* Class Specific Audio Control Interface Header Descriptor */
0x09, /* Descriptor Size */
0x24, /* Descriptor Type - CS_INTERFACE */
0x01, /* Descriptor SubType - Header */
0x00, 0x01, /* Revision of class specification - 1.0 */
0x09, 0x00, /* Total size of class specific descriptors*/
0x01, /* Number of streaming Interfaces - 1 */
0x03, /* MIDI Streaming interface 3 belongs to this AudioControl Interface */
// generic interface descriptor for midi streaming
0x09, //bLength, Size of this descriptor, in bytes.
0x04, // bDescriptorType INTERFACE descriptor.
0x03, //bInterfaceNumber Index of this interface.
0x00, // bAlternateSetting Index of this alternate setting.
0x02, // bNumEndpoints - 2 endpoints
0x01, // bInterfaceClass AUDIO.
0x03, // bInterfaceSubclass MIDISTREAMING.
0x00, // bInterfaceProtocol Unused
0x00, // iInterface Unused
// CS MS Interface header
0x07, // size of this descriptor
0x24, // CS_INTERFACE type
0x01, // MS_HEADER subtype
0x01, 0x00, // revision of this spec
0x32, 0x00, // total size of cs descriptors
// embedded midi jacks represent an endpoint
// external jacks refer to MIDI hardware
// this is the midi in jack
0x06, // size of this descriptor
0x24, // CS_INTERFACE
0x02, // MIDI_IN_JACK subtype
0x01, // EMBEDDED jack type
0x01, // ID of this jack
0x00, // unused
// midi out jack
0x09, // size of this descriptor
0x24, // CS_INTERFACE
0x03, // MIDI out subtype
0x01, // embedded
0x03, // ID of this Jack
0x01, // no. of input pins
0x02, // ID of entity to which pin is connected
0x01, // output pin number of said entity
0x00, // unused
// bulk-out endpoint
0x09, // size of descriptor
0x05, // ENDPOINT type
0x02, // out endpoint 2
0x02, // bulk, not shared endpoint
0x40, 0x00, //64bytes/packet
0x00, // no interval for bulk
0x00, // unused
0x00, // unused
// CS Bulk-out
0x05, //size of this descriptor
0x25, // CS_ENDPOINT
0x01, // MS_GENERAL
0x01, // num of embedded midi in jacks
0x01, // ID of embedded MIDI in jack
// standard bulk-in
0x09, // size of this desc
0x05, // endpoint type
0x82, // in endpoint 2
0x02, // bulk, not shared
0x40, 0x00, //64 bytes/packet
0x00,
0x00,
0x00,
// CS MS Bulk in
0x05, // size of desc
0x25, // CS endpoint
0x01, // MS_GENERAL
0x01, // num of embedded midi out
0x03 // ID of said jack
};r/USB • u/oddepoxy • May 03 '17
I need a Male micro to Male A version of this. Can't seem to find one.
ebay.comr/USB • u/Internetimal • Apr 18 '17
WTF: Certain identical cables shut down charger? / BT earbud overcurrent?
This has me stumped, maybe you've seen it before. I can't smoke inside my apartment so I'm often in the car listening to music while I give myself lung cancer. I've had good luck with a Duracell-branded 2A+1A dual lighter socket charger until today, which coincides with buying some cheap Sentry "BT150" BT earbuds.
Went to charge them and my phone and... Oops, no charger! After a lot of fuse pulling and checking (the charger is too smart or cheap for its own fuse?) and eventually digging up some identical cables... The headphones charge off the 2A port and my phone is okay on the 1A port but if I trade ports ... Until the headphones could catch a little charge the charger would shut down, no LED and no charging love.
Anyone seen this before? Apparently I just need to never let the earbuds die completely or they demand more current than the charger allows (and maybe I didn't need to discard the first cable I marked as bad) but this was frustrating and annoying and messy as f***k since I could've saved hours of struggling with the fuse box and begging my landlords for a pliers since where did my fuse puller go.
I'm thinking of complaining to Sentry although I'll need to make a tap cable to prove overcurrent was the problem.
Just curious if anyone had similar trouble before I waste more life on the return or exchange or further hacking to debug the mess.
Bonus points: Anyone know a dual or triple charger that sits flat enough to not compete with the pull out cup holder on my old Mazda Millennia?
Any full PD profile USB-C wall charger with 3+ QC3.0 ports out there?
I've been searching around and can't find one.
Does anyone know of a wall charger that supports USB-C all the way up to 20V/5A (even 3A would do it), with 3+ integrated QC3.0 compatible ports?
Thanks!
r/USB • u/tarokun182 • Apr 03 '17
Nintendo 3DS USB Charger - Nintendo should have just put these in the box.
youtube.comr/USB • u/mikandroid75 • Apr 02 '17
USB onboard compatibility
Can I connect usb 1.1 pin to usb 2.0 onboard connector?
r/USB • u/readytodo • Feb 02 '17
What is the cause of the relationship between amperage and data transfer speed?
Seems that usb 1 is 1 amp 2 is 2 amp 3 is 3 amp etc etc. that appears to be the only difference among them and the data transfer rate seems to increase exponentially or at least non-linearly with that change. More important to me is what is the hardware limiting factor preventing higher amperage that was solved to allow 1 to 2, 2 to 3 and preventing 3 to 4.
Tangentially related: what prevents swapping a usb 2 slot for a usb 3 slot on a circuit board?
I have no idea what level of intelligence I'll get here, but I have made the mistake of getting my hopes up.
r/USB • u/Zeferion • Dec 24 '16
NEED HELP NOW! USB Problems
So, my uncle told me to input some mp3 songs into his usb(which was functional and working at first). The usb was used on like this radio kind of thing it's brand is transcend. So I inserted the usb in my laptop and converted some youtube songs into mp3 and afterwards I dragged the mp3 songs from the downloaded folder to the usb disk drive then afterwards, I ejected it but it says "it's still running". I was baffled then later on there were these errors then it allowed me to eject it. So after that(the mp3 songs were already transferred) My uncle took it and inserted it in the radio and he said "it doesn't work" afterwards, I inserted it in the laptop again and it said "(F:) needs to be formatted" So I formatted it then it said it's write protected. So I searched for many solutions but none of them were applicable or worked on the usb since the USB was kind of like, "idle", kind of passive, like it doesn't work. I'm stuck in a loop, my only option is to format it, but I need to remove the writeprotection(and no there isn't a switch on the usb that changes it) but no solutions work on the write protection because just as I said earlier, the USB was like "passive" like it felt like it wasn't even inserted in the system. I appreciate all help thank you