Hello,
I'm using an Arduino MKR GSM 1400 board, which has a BQ24195L charger circuit. I installed the jumpers to connect the D+/D- lines to the charger chip. It reliably detects when I am connected to a USB host (REG08[7:6] = 01), sets the input current limit to 100mA, and then transitions to HIZ. I have an interrupt handler installed that takes it out of HIZ, so I can detect when it is disconnected and plugged in again. But no matter what charger I connect, it always reports power good and unknown (REG08[7:6] = 00). All of the chargers appear to have D+/D- shorted, one of them explicitly says it supports BC 1.2, and I even tried cobbling up a cable that directly shorted the D+/D- lines, but nothing ever reports adapter (REG08[7:6] = 10). Does it interfere with detection if the D+/D- lines are connected to the D+/D- of the microcontroller in addition to being connected to the charger chip? Or is there something else I'm missing?
Thanks,
Tony