#define POGO_ID_CARDOCK 100 #define POGO_ID_DESKDOCK 200
Those of us that have built our own car pogo docks are already AC charging. Any of the ROM+kernels with fast charge override will do it. You also need to ensure your 12V source puts out over 500 milliamps. Placing an NFC tag in the dock can perform all the dock shifting functions. See here or here.
So it looks like the code I was looking at was out of date. The new code is similar but is slightly more complex, allowing for charge current and audio device connection to be transferred from the dock to the phone.
I so far have accidentally put the phone in car dock mode. But I have yet to repeat that.
/* The below constants are in milliseconds */ #define POGO_WAKE_PERIOD 100 #define POGO_ID_PERIOD_TIMEOUT 750 #define POGO_ID_DESKDOCK 50 #define POGO_ID_CARDOCK 100 #define POGO_ID_CHARGER 50 #define POGO_ID_USB 100 #define POGO_ID_AUDIO 50 #define POGO_ID_NO_AUDIO 100 #define POGO_ENTER_SPDIF_WAIT_PERIOD 100 #define POGO_ID_PERIOD_TOLERANCE 20 #define POGO_DET_DEBOUNCE 80
|Thread Tools||Search this Thread|