News for hackers. Stuff that matters.
Re:Tell HN: My phone just told me to check for moisture in t... by nibbleshifter on Saturday September 10, 2022 @08:31AM (#32790041)
Get this sometimes on my pixel 4a if I am out and its raining heavily. It also disables the USB until its no longer wet.

I haven't looked into how it works, but I guess it senses a short across some of the pins inside?

Useful feature to prevent the phone cooking itself.

Re:Tell HN: My phone just told me to check for moisture in t... by joezydeco on Saturday September 10, 2022 @10:15AM (#32790848)
Most USB ports have a chip between it and the host controller for electrostatic discharge (ESD) protection. The nicer ones can also sense shorts and overcurrent on the lines and signal the processor that something is up.

Example: https://www.maximintegrated.com/en/products/power/protection...

Re:Tell HN: My phone just told me to check for moisture in t... by lagrange77 on Saturday September 10, 2022 @03:25PM (#32793828)
Maxim integrated really has a chip for everything
Re:Tell HN: My phone just told me to check for moisture in t... by joezydeco on Saturday September 10, 2022 @05:24PM (#32794693)
And availability for nobody, even before the pandemic. I always cringe when someone specs Maxim. It's impossible to get eval kits.
Re:Tell HN: My phone just told me to check for moisture in t... by mbrndtgn on Saturday September 10, 2022 @09:00AM (#32790222)
>[...] but I guess it senses a short across some of the pins inside?

Most lithium ion chargers have (or should have) some kind of short circuit protection. It would make sense that the internal charging unit could make this information available to the operating system.

Re:Tell HN: My phone just told me to check for moisture in t... by glmeece on Monday September 12, 2022 @10:14AM (#32810615)
My wife was at a meeting, and a friend's kid spilled water all over the table they were sitting at (her phone was sitting on the table). Same thing - Pixel 4a indicated it wouldn't use the USB-C port until water or debris was removed. I used a Q-tip a few hours after the fact (she had cleaned it to the best of her ability), and that seemed to do the trick.