(12-03-2020, 07:39 AM)Zebulon Walton Wrote: Is GPS tracking of the Pinephone still active if it is turned off and no other action is taken (battery left in place)? Or is it necessary to remove the battery and/or turn off the DIP switch to disable the GPS?
I want to say the modem actually isn't powered while the PinePhone is turned off.
(12-03-2020, 02:57 PM)marcih Wrote: If you can read schematics
I tried. :-)
Can't say if I'm right, but
somebody could verify this with a multimeter. I have an idea for that at the end of this post.
Schematics are
here. I'm looking at "PinePhone v1.2b Released Schematic.pdf". Datasheets
here, where you can find the Allwinner A64 SoC datasheet, "A64_Datasheet_V1.1.pdf".
Page 6 is the "
Power" page. It has the battery connector J600, and the positive battery terminal goes to VBAT. VBAT basically just goes through a resistor and connects to 4G-VBAT.
Page 15 is the "
Modem 4G" page. Like @
marcih says, the GPS functionality is provided by the cell modem, the EG25-G, which is U1500.
The modem killswitch is SW1-A. Pretty sure in the "off" position, the switch is open.
The "baseband" and "RF" power to the modem are provided by VBAT_BB, which isn't the same signal as VBAT. The connection goes like
VBAT -> 4G-VBAT -> VBAT_BB.
But for power to go from 4G-VBAT to VBAT_BB, the transistor Q1500 has to be "on".
I _think_ that Q1500 would by default be "off". To turn it on, _another_ transistor Q1501 has to be "on". Why? I think there's a lot of power going through Q1500. I guess it requires two levels of gates. Ask a hardware developer.
I _think_ that Q1501 is also "off" by default. To turn it on, I think two conditions need to happen. 1) SW1-A must be on. 2) PL7-4G-PWR-BAT must be "high".
Page 5 is the "
CPU" page. PL7-4G-PWR-BAT is an output from the Allwinner SoC, the main processor chip, U1. While the Allwinner SoC is powered off, PL7-4G-PWR-BAT should be at "high impedance" with no pull up/down. Meaning this signal is basically connected to nothing. Importantly, it's not driven "high".
Putting it together: To me, this means, when the PinePhone is off... regardless of the position of SW1-A... Q1501 is off, so Q1500 is off, so the modem's power supply VBAT_BB isn't connected to the battery.
To verify: Take apart a PinePhone. Maybe just need to remove the second plastic cover with the screws in it? The modem is already visible after popping off the first cover, you just can't see the pins under the second cover. Now, with the phone powered on and the modem enabled, check the voltage of the VBAT_BB and VBAT_RF pins with a multimeter, confirming that you see like 3 V or 4 V or something. Now power the phone off and check again.
It's either on or it's off, right? Then we'll really know.
There's a "Quectel_EG25-G_Hardware_Design_V1.2.pdf" document on the net somewhere which shows VBAT_BB and VBAT_RF as pins 57, 58, 59, 60. Looking at a picture of the mainboard, I can see those pins are exposed. Just have to count them, and I don't think it's even a problem if you use too big a probe with shaky hands and short any of pins 57 through 60 together. They're all connected together anyways on the mainboard. You wouldn't want to short those out to something else though, like the modem's metal case, which I'm going to say is probably grounded :-P