News for hackers. Stuff that matters.
Re:Apple iPod Shuffle USB interface pinout by FrostKiwi on Monday February 05, 2024 @02:17AM (#39258246)
Similar to this, among custom keyboard builders it's quite popular to have USB handled connected via TRRS headphone jacks between split keyboard halves [0] [1] and sometimes even the keyboard -> PC Connection being a custom TRRS -> USB cable or other exotic variations. [2]

[0] https://keeb.io/products/trrs-cable

[1] https://docs.splitkb.com/hc/en-us/articles/360010443660-Kyri...

[2] https://www.kingcables.org/products/custom-straight-usb-cabl...

Re:Apple iPod Shuffle USB interface pinout by serf on Monday February 05, 2024 @04:11AM (#39258962)
whats old is new again, I remember 'ergo' point-of-sale KBs from the early 80s that were joined via the same method.

it's a good reliable plug if you can cram what you need through it, I can kind of understand why people gravitate towards it in design.

Re:Apple iPod Shuffle USB interface pinout by NikkiA on Monday February 05, 2024 @10:47AM (#39262356)
4-pin mini-din and reusing s-video cables is a much better proposition, and how logitech tend to do things.
Re:Apple iPod Shuffle USB interface pinout by rollcat on Monday February 05, 2024 @03:41AM (#39258725)
USB is usually too complex for something like a simple split keyboard; the TRRS runs I2C with sth like a MCP23018-E/SP IO expander in the other half.
Re:Apple iPod Shuffle USB interface pinout by adolph on Monday February 05, 2024 @10:26AM (#39262175)
You can use a physical connector without using the standard protocol.
Re:Apple iPod Shuffle USB interface pinout by crote on Monday February 05, 2024 @01:05PM (#39264422)
Most split keyboards these days have a microcontroller in each half. IO expanders like the MCP23017/MCP23018 are fairly expensive, quite slow when used with microcontrollers like the ever-popular Pro Micro's ATmega32u4, and they really limit your hardware options on the secondary side.

It usually makes more sense to just stick a Pro Micro on each side, and have them talk serial over TRRS. As a bonus, you can connect it to your PC from either half.

Re:Apple iPod Shuffle USB interface pinout by justsomehnguy on Monday February 05, 2024 @04:48AM (#39259235)
Offtopic:

Recently I found myself in the market for a custom keyboard, to my great surprise. Custom as not as DIY but as something different than $10 OTC or even $100 Logitech.

After the hours of watching pics I decided to just see it with my own hands and went to a shop which specialize on them.

And there I confirmed the feeling what I had before - 99% of these keyboards, despite quite advanced tech gone into them on all layers, are not usable, because they are made to stroke the ego of the owner but not for the actual work. This is especially evident by the crammed right cluster which makes typing brackets, curlies and quotes quite a pain, because the Shift key is gutted and nowhere under the right pinky.

Using something else than microUSB or Type-C (for the PC connector) is just a cherry on top.

Re:Apple iPod Shuffle USB interface pinout by CarVac on Monday February 05, 2024 @08:33AM (#39261039)
You seem to be in need of not a keyboard customized for you, while judging keyboards customized for others' needs.

Come up with your own layout and get that custom design made.

Re:Apple iPod Shuffle USB interface pinout by justsomehnguy on Monday February 05, 2024 @08:49AM (#39261156)
> You seem to be in need of not a keyboard customized for you, while judging keyboards customized for others' needs.

Ah, yes, just searching for the wide RShift, on the place where it was for the last 30 years is 'customized for me'. K TNX

Re:Apple iPod Shuffle USB interface pinout by CarVac on Monday February 05, 2024 @05:39PM (#39268216)
Thumb shift is better anyway...
Re:Apple iPod Shuffle USB interface pinout by justsomehnguy on Tuesday February 06, 2024 @02:25AM (#39271768)
"You are pressing your shift wrong" Steve Jo^W^W CarVac, 2024
Re:Apple iPod Shuffle USB interface pinout by lambdas on Monday February 05, 2024 @07:28AM (#39260528)
They use USB-C to the host, the TRRS simply communicates the two halves of the split between each other. You don't plug the keyboard into the 3.5mm jack on your PC!
Re:Apple iPod Shuffle USB interface pinout by tuvan on Monday February 05, 2024 @05:50AM (#39259676)
You could just get a custom keyboard that is comfortable for you. Key mapping is generally an independent step. Most of these keyboards are completely programmable with custom keymaps and layers. Many come with blank keycap options, you can also rearrange a regular keycap set.
Re:Apple iPod Shuffle USB interface pinout by enormousness on Monday February 05, 2024 @06:52AM (#39260219)
You can't do what OP is looking for without a custom PCB. The switches and caps and mappings might be customizable but their physical position and size on the board isn't.

Despite pushing the envelope in many ways, custom keyboards can also be strangely traditionalist at the same time. Making a PCB is a risky venture and most manufacturers don't want to risk it.

A huge amount of models still use a huge 7u or larger space bar for example when something as small as 4u would suffice, and leave room for much more ergonomic placement of modifiers. (or other improvements like extra keys, keyed gaps etc.)

Re:Apple iPod Shuffle USB interface pinout by tuvan on Monday February 05, 2024 @07:04AM (#39260322)
Yes, most keyboards still have the traditional layout. But I believe many options fit what OP needs. A split keyboard such as Ergodox EZ allows access to the maximum amount of keys possible without moving your hand. You can then customize the mapping to properly distribute commonly used keys.
Re:Apple iPod Shuffle USB interface pinout by enormousness on Monday February 05, 2024 @07:14AM (#39260398)
Ergodox EZ is ortholinear. Ortholinears by their nature tend to not have spacing issues but they require (extensive) retraining.

There's a very good chance that the above poster was looking at staggered layouts if it's their first foray into custom keyboards, and not even considering orthos.

Re:Apple iPod Shuffle USB interface pinout by lpribis on Monday February 05, 2024 @06:20AM (#39259954)
While it is quite popular, TRRS is one of the worst connectors possible for a power rail (eg usb VBUS) because it all but guarantees that VBUS will be shorted to ground if you ever accidentally hot-plug it.
Re:Apple iPod Shuffle USB interface pinout by JKCalhoun on Monday February 05, 2024 @09:15AM (#39261409)
VCC is on the sleeve, last to enter the jack, GND is a ring deeper inside the jack. It's not clear to me how VCC would ever get grounded unless you pushed the connector in too far somehow.

There is a note about a diode across VCC and GND — perhaps that is to prevent this kind of short?

Re:Apple iPod Shuffle USB interface pinout by lpribis on Monday February 05, 2024 @09:52AM (#39261797)
Think about unplugging from the side thats _delivering_ the power. As you pull it out, the GND (which is further in and needs to travel out as it's unplugged) will contact the live VCC.

Even from the power consumer side, there is a chance that a single female side contact (eg VCC) may touch two adjacent TRRS sections as the plug is being removed.

Re:Apple iPod Shuffle USB interface pinout by NikkiA on Monday February 05, 2024 @10:46AM (#39262339)
Also, 3.5mm jacks and plugs WILL suffer oxidation problems from using them for power.
Re:Apple iPod Shuffle USB interface pinout by thesh4d0w on Monday February 05, 2024 @01:18PM (#39264624)
Isn't solving this as easy as just not having VCC + GND on the pins next to each other?

If you shove data in the middle, you're never going to short VCC + GND together. your data line shouldn't care about being high (5v) or low (gnd).

Re:Apple iPod Shuffle USB interface pinout by lpribis on Monday February 05, 2024 @03:46PM (#39266918)
No so, even if VCC and GND are on opposite ends of the TRRS, they will pass by eachother as the cable is unplugged.
Re:Apple iPod Shuffle USB interface pinout by calamari4065 on Monday February 05, 2024 @06:22PM (#39268592)
No, that's not how that works. If tip is ground and ring is Vcc, there is no possible way to create a dangerous short.

So lets imagine what happens to the host port when you unplug a live device. Vcc breaks first, and all other pins shift. D+ and D- are safe to short together or to ground (and I'm pretty sure safe to short to Vcc) so they don't matter much. The shield is physically out of the socket. As the connectors move, you get connections that put Vcc on the device's Data pins, through the device ground to host Data pins. This is equivalent to a large resistor between host Vcc and data pins, which is safe.

As the connector is removed, the device's ground contacts host's Vcc. Nothing happens because all the other pins are physically outside of the socket. There is no circuit, no path for the current to go. The only way it could be a problem is if the device had some external ground connection. That would create a direct short between the host's Vcc and ground.

But (correctly implemented) USB ports can safely tolerate a short from Vcc to ground. If not, it's not complicated or expensive to build protection into the device.

Even if all of the above weren't true, it's still not complicated or expensive to design a port which is tolerant to any kind of short on any pins.

What you're arguing is both not possible and wouldn't be a problem even if it were.

Re:Apple iPod Shuffle USB interface pinout by em3rgent0rdr on Saturday February 17, 2024 @03:43PM (#39413367)
also could use the switch built into the phone socket that only connects power wires when the plug is fully inserted.
Re:Apple iPod Shuffle USB interface pinout by onetimeuse92304 on Monday February 05, 2024 @09:31AM (#39261567)
There are ways to handle it. For example, before it is firmly plugged you can just sense what is happening -- us minimum voltage and high impedance to prevent sparking and to get information about the state of the mating.

You only turn on actual power when it is firmly connected and you turn it off immediately when there is any signal that it might be disconnecting.

Re:Apple iPod Shuffle USB interface pinout by crote on Monday February 05, 2024 @01:08PM (#39264468)
The trick is doing so in a way which requires basically zero hardware. DIY ergo keyboards are built around a controller like the Pro Micro - which can't do this out-of-the-box.

Having to add a bunch of components to implement such a feature isn't really worth it when switching to USB-C also solves the problem, at basically zero cost and effort. It's not spec-compliant of course, but who cares with DIY?

Re:Apple iPod Shuffle USB interface pinout by TheJoeMan on Monday February 05, 2024 @01:46PM (#39265141)
Perhaps one of these trs plugs that has a spring-loaded ground sleeve? https://www.neutrik.com/en/neutrik/products/plugs-jacks/plug...
Re:Apple iPod Shuffle USB interface pinout by user_7832 on Monday February 05, 2024 @01:55PM (#39265302)
This unfortunately isn't a new thing for experienced users, it's a relatively well known "issue"