Live data from Hacker News

ACE: Apple Type-C Port Controller Secrets

blog.t8012.dev

91–100 of 132 posts

Re: ACE: Apple Type-C Port Controller Secrets

#92
post #80

Earlier quoted context omitted.

Yes, Apple seems to be very confused in this regard. They’ve committed to USB-C for all of their computers, but then are continuing to push lightning for all the other portable devices. It’s hard not to be annoyed at them about this. Enough to not buy Apple again? No, not yet, but I’d be lying if it’s not a reason why I’ve delayed purchasing a new device. It leaves a bad taste in my mouth, and makes me grumpy. So I’l…

All these complex theories/complaints about lightning. Giving them the benefit of the doubt, one good reason for not shifting to USB-C is to keep IP ratings high. Most USB-C sockets I can find are waterproof only with a matching cable plugged in.

All of the Android phones with USB C and high IP ratings makes that seem unlikely.

Re: ACE: Apple Type-C Port Controller Secrets

#93

My brand new M1 Mackbook Pro has only one working port. I didn't notice it until I tried to save something to a USB drive. Neither charging nor USB works on that port. Talking to Apple tomorrow. Hopefully still under warranty.

> Hopefully still under warranty

1 year iirc, but I still recommend extending it via AppleCare (and also other methods like credit card warranty extensions.)

Re: ACE: Apple Type-C Port Controller Secrets

#94

What bothers me, is the prevalence of counterfeit and just plain bad-quality, cheap chips. These become so low-cost that corporate buyers pretty much have no choice, but to use them. The result, is things like expensive Bluetooth headsets, crapping out, after a year. I have been through quite a few. I/O ports see a lot of use (even virtual ones). Those are some of the hardest-working chips in a device. Not a good pla…

> Those are some of the hardest-working chips in a device.

(Mis)quoting Randy Fromm, "the things that work the hardest fail the most."

I've always liked that quote, even though at the time he was referring to CRTs and the color output transistors (well, mostly). It generalizes to most anything electronic.

Re: ACE: Apple Type-C Port Controller Secrets

#95

Earlier quoted context omitted.

Aren't checksums for error detection and not error correction? As I understand it, error correction is having enough information to correct the error while error detection is only knowing an error has occurred.

reed-solomon is most likely used here. It’s the tech in CDs and ECC RAM. Checksums that also have enough data for recovery.

[deleted]

Re: ACE: Apple Type-C Port Controller Secrets

#96
post #27

Apart from the processors, I'm amazed/bewildered that USB is now complex enough, that the power component of it has its own serial communication protocol (USB-PD), which also has a vendor registry and is extensible with proprietary messages - and by the looks of it, is already in widespread use for all sorts of things that have nothing to do with power delivery. Isn't this sort of reinventing USB on top of USB?

When I lost the charger for my Nintendo DS, I was able to MacGyver one out of a piece of cardboard and two strips of aluminium foil. A quick look at the USB-A port spec, and pin locations on the similar-to-USB-but-proprietary DS charging port indicated it was a very simple construction. Amazingly, this hack worked successfully and I was able to have my yearly Elite Beat Agents binge. The hardest part was actually not…

If USB-C retains backward compatibility with the existing USB PD implementations, you’ll be able to signal that you want power by permanently affixing a shunt resistor across your two power lines. If you need more control, then you upgrade that to something like a voltage-controlled resistor so that you can do more complex signaling. But USB PD was always designed to support dumb AND CHEAP devices, so if you didn’t need the extra functionality you didn’t need to implement any complexity.

Re: ACE: Apple Type-C Port Controller Secrets

#97
post #27

Apart from the processors, I'm amazed/bewildered that USB is now complex enough, that the power component of it has its own serial communication protocol (USB-PD), which also has a vendor registry and is extensible with proprietary messages - and by the looks of it, is already in widespread use for all sorts of things that have nothing to do with power delivery. Isn't this sort of reinventing USB on top of USB?

"Oh, 'USB 3.2 Gen 2' (aka 'USB 3.1' or 'USB 3.1 Gen 2' OR 'USB 3.2 Gen 2')?"

"There's your problem, you need 'USB 3.2 Gen 2 × 2.' You idiot!"

Re: ACE: Apple Type-C Port Controller Secrets

#98

Earlier quoted context omitted.

I forgot to take my MacBook Pro's charger with me but could still charge it using my iPad's charger (USB-A to USB-C, mind you) - albeit very slowly. Still better than nothing, though. If only iPhones had USB-C…

Yes, Apple seems to be very confused in this regard. They’ve committed to USB-C for all of their computers, but then are continuing to push lightning for all the other portable devices. It’s hard not to be annoyed at them about this. Enough to not buy Apple again? No, not yet, but I’d be lying if it’s not a reason why I’ve delayed purchasing a new device. It leaves a bad taste in my mouth, and makes me grumpy. So I’l…

> Apple... committed to USB-C for all of their computers, but then are continuing to push lightning for all the other portable devices.

Ipad pro and the new ipad air have a type C connector. My phone and watch use cables that plug into the same Type C brick I use for my Mac.

But nitpicking examples aside I agree that they should ditch lightning. It's still entrenched for all the other devices.

Re: ACE: Apple Type-C Port Controller Secrets

#99
post #80

Earlier quoted context omitted.

All these complex theories/complaints about lightning. Giving them the benefit of the doubt, one good reason for not shifting to USB-C is to keep IP ratings high. Most USB-C sockets I can find are waterproof only with a matching cable plugged in.

> All these complex theories/complaints about lightning. Giving them the benefit of the doubt, one good reason for not shifting to USB-C is to keep IP ratings high. Also accessories. Sure there's a sunk costs fallacy component to it, but still: it wasn't that long ago that apple users needed to replace all their ADC accessories with lightning ones.

There’s such a long tail of it, too: I still see ADC connectors in hotel room phone docks, etc.

Re: ACE: Apple Type-C Port Controller Secrets

#100
post #33

Earlier quoted context omitted.

How would you explain this part of your argument then: > You can technically do the same with resonators but it would take much more board space, be less precise, require inductors which you want to avoid in the circuit, etc.

Many microcontrollers (PIC, STM32, atmega8 etc) include an internal RC oscillator - which is literally inside the chip itself. Zero external components required. Not only do you save the costs of using a crystal, you also save two pins - which was useful in the days of 8-pin microcontrollers like the ATtiny85. As internal RC oscillator drift rates can be as much as 10% (and vary with temperature) they're not precise…

I know next to nothing about microcontrollers, so this might be a dumb question, but how do they do the initial flashing is they can't run a serial port? Are they hooked up to something external before going on the final PCB? Do they not need a precise clock to read the onboard program from whatever's storing it?
Post reply on HN