11
submitted 1 week ago by SteevyT@beehaw.org to c/askbeehaw@beehaw.org

I wish this was a joke. Bosch used USB Micro-A on some of their e-bike motors to connect to a phone, which is USB C. The only one I've been able to find is the one Bosch made that's like 3 inches long and basically useless.

top 24 comments
sorted by: hot top controversial new old
[-] jarfil@beehaw.org 1 points 6 days ago

Would a USB-C extender work with the Bosch made cable?

[-] SteevyT@beehaw.org 1 points 6 days ago

It appears that either this or making my own cable are my options. Although, the person who wants it really does not want a "janky" looking cable. Im trying to figure this out as a favor to the local bike shop to pacify a problematic customer of theirs.

[-] jarfil@beehaw.org 1 points 5 days ago

does not want a "janky" looking cable

I'm wondering... could you use a USB-C female-to-female adapter, hook the Bosch cable into it, and hide the whole contraption somewhere, so that it would look like the bike came with a USB-C port?

[-] SteevyT@beehaw.org 2 points 5 days ago

Not really, could maybe camouflage it in with the brake/shifter cables, but not truly hide it anywhere. Also, when I say the Bosch cable is short, it's like 3 or 4 inches long, at that length I dont think I could get the joint anywhere good to hide.

[-] SteevyT@beehaw.org 1 points 6 days ago

It appears that either this or creating my own cable are my options.

[-] BurningRiver@beehaw.org 1 points 6 days ago

So not this? Sorry if I’m misunderstanding, I’m more of a visual person.

https://www.amazon.com/Smays-2-Pack-Transfer-Charging-Android/dp/B0DZ6QRRHJ

[-] SteevyT@beehaw.org 1 points 6 days ago* (last edited 6 days ago)

The C end is correct, the B end physically fits, but I can't get anything to happen. The port on the Ebike is Micro A for some insane reason.

Edit: Bottom left of this picture.

[-] Onomatopoeia@lemmy.cafe 5 points 1 week ago* (last edited 1 week ago)

A to C is a standard cable, should be able to find them online.

Quick Charge works over A to C.

Edit: Just realized you meant USB Micro A to USB C. Wow, I haven't seen a Micro A in years.

[-] Toes@ani.social 5 points 1 week ago

Would an extension cable work for you?

[-] SteevyT@beehaw.org 4 points 1 week ago

That was my suggestion too, single cable would be preferred.

[-] Onomatopoeia@lemmy.cafe 2 points 1 week ago

To help with the extension idea, they could glue together the connection (I use Goop adhesive, super strong, but removable). You could also heat shrink the connection.

[-] SteevyT@beehaw.org 1 points 1 week ago

Heat shrink is the way I would go, but man, Im not sure how well that's going to work with the end coming off the short cable being a 90° connector.

[-] 1adam12@lemmy.ml 3 points 1 week ago

I assume you mean micro-b? If so, Infinite Cables has options.

Link

[-] SteevyT@beehaw.org 6 points 1 week ago

That's the insane part, I actually mean A.

[-] unmagical@lemmy.ml 5 points 1 week ago

AFAIK There's not a Micro-A exclusive receptacle. There's Micro-B and Micro-AB (which accepts both) receptacles though.

Given that, see if you have a Micro B cable laying around and see if it physically fits in the port, if so just use a Micro-B to Usb-C.

[-] SteevyT@beehaw.org 3 points 1 week ago* (last edited 1 week ago)

Holy shit, it actually fits, no clue if the connection is good, I'll need to find an adapter to go with my test cord.

Edit: Well, with the A to C adapter I have I cant get the cord to make a connection.

[-] unmagical@lemmy.ml 3 points 1 week ago

I think you'll probably have a difficult time getting an adapter to work--possibly even a Micro-B to type-C cable.

Here's where it gets annoying.

USB is traditionally directed; you have a host and a client. This was codified in the physical standard until type-C. Type-A ports (and the respective jacks) are intended for hosts while type-B was intended for clients. A usb-C to micro-B cable therefore will be intended to provide power/data from the C side to the B side and in almost every case this will not work in the other direction.

In your case the battery bank is intended as a host to provide power. You might find a Micro-B to C that works, but it'll probably be out of spec.

So why does the Micro-AB port exist? Well the micro part implies your device is mobile. Being mobile might mean you have a battery, and having a battery means you might want to charge it. That means your device can likely operate as a host (to charge your phone) OR a client (to charge your battery) through the same port.

Since type-C is intended to be fully reversible the type-C port and cable will have wiring to facilitate that. However a Micro-B is intended to be directional and with a fixed orientation so the wiring, even from a type-C jack will facilitate that.

I wish I'd remembered that before the false hope, but it completely slipped my mind.

You will probably be able to use a USB-C extender if the only problem is that the original cable is too short. They have some at Walmart for $2 USD.

[-] shishka_b0b@lemmy.zip 2 points 1 week ago* (last edited 1 week ago)

All micro USB-A ports can be used with a micro USB-B cable so you either have a bad cable, adapter, or port.

Edit: This is very incorrect and my degree in Electrical and Computer Engineering should be revoked any minute now lol. I was confusing micro USB-A with micro USB 3.0 (which definitely doesn't make the mistake any better). Leaving it up though bc deleting it feels like an attempt to hide my imperfections so if anyone happens to somehow stumble across this in the future, THIS IS NOT THE WAY

[-] ByteSorcerer@beehaw.org 2 points 1 week ago

A micro USB-AB port has an extra electrical contact which is shorted together with another pin (probably with ground, but I don't remember) when a USB-A connector is inserted, but left unconnected when a USB-A connector is inserted. Some USB driver chips require this extra pin to be shorted to enter host/master mode.

This is done because to have USB communication one device needs to be the master, and the other the slave. Micro and mini USB cables handle this by having an A type connector on one side and a B type on the other side, and whichever device sees the A side will act as the master.

In OP's case the firmware is probably expecting the device to act as the master, but with a B type connector inserted it's unable to do so.

[-] SteevyT@beehaw.org 2 points 1 week ago* (last edited 6 days ago)

I wonder if I could make a micro B appear as an A if I could find what pins to short...

[-] ByteSorcerer@beehaw.org 2 points 5 days ago

I know that you can make a USB mini B connection appear as an USB mini A, because I have seen someone do that. He just made a small ball of aluminium foil and shoved it into the connector. The pins that need to be shorted are next to eachother and at the side (but I don't remember if it was the left or right side), so it was still doable to get it in the right place. Micro USB is internally very similar, so it should be possible there too, but the inside is quite a bit smaller so it'll be a lot harder.

In your case it might be easier to solder 2 cables together. It is a bit annoying to solder USB cables together because the cables are shielded, but there are only 4 internal wires and the data rates are low enough that it doesn't really matter if the shielding is imperfect. USB OTG cables should have an A type connector, and they are generally relatively cheap and easy to obtain. To get the USB-C connector, use a cable that has a USB 2 type of connector on the other side (regular, mini or micro), to make sure that the cable only has the USB 2 wires (USB 3 cables have extra wires in them, which aren't really feasible to extend).

[-] SteevyT@beehaw.org 2 points 5 days ago

Any guesses on where to find that info? USB standard info seems to be... challenging to find. Like, I have an easier time navigating and understanding NHTSA or UL standards level of challenging.

[-] ByteSorcerer@beehaw.org 2 points 4 days ago

I just searched, and the Wikipedia page on USB contains some basic information. If the connector is facing towards you and the clips to secure the cable are facing down, then the pins are numbered 1-5 from left to right. Pin 4 is the "ID" pin which is used to detect if the A or B type connector is inserted, and pin 5 is the ground. In an A type connector those two pins are bridged, so you'd want to short those two pins together if you want the device you plug it in to see your type B cable as if it has a type A connector (the connector is a slightly different shape, but that doesn't matter, it'll still fit and the ID pin is the only method used to detect the connector type).

If you short the pins together by inserting something conductive inside the connector then you'll likely also short them to the case, but that shouldn't matter as the case is internally almost always connected to the ground too.

If you take the route of soldering two cables together, I looked into it a bit more and it's apparently a bigger mess than I anticipated. Hardware manufacturers have always treated the USB specs as more of a suggestion than as fixed standards, and apparently this is by far the worst when it comes to micro USB. Most phones and tablets with micro USB which support OTG use the type B receptacle instead of the AB receptacle, even though according to the standards only the AB receptacle is allowed for a device that can act as the host. The majority of micro USB OTG cables are then designed for such devices and use a type B connector for the host side. So if you use an OTG cable to harvest the micro-A connector from, make sure you get a standards-compliant cable. You can see the difference by the shape: for the proper micro-A connector the metal casing on the outside is rectangular in shape, while for the much more common micro-B connector it is roughly trapezoidal. According to the standards the plastic inside the connector should also be white for a type A connector (and black for type B), but those colours are probably the most often violated part of the standards.

[-] 1adam12@lemmy.ml 2 points 1 week ago

I didn’t even know that was a thing! I understand your frustration now

this post was submitted on 01 Aug 2025
11 points (100.0% liked)

AskBeehaw

2370 readers
1 users here now

An open-ended community for asking and answering various questions! Permissive of asks, AMAs, and OOTLs (out-of-the-loop) alike.

In the absence of flairs, questions requesting more thought-out answers can be marked by putting [SERIOUS] in the title.


Subcommunity of Chat


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS