I'm building a simple G1 based solution to track my car using the phone's GPS capabilities.
Basically, the desired solution is that the G1 is wired to the car's accessory power system, and when the car is either started or the key is in the accessory position, the phone will be turned on and report its GPS coordinates occasionally.
I have most of the pieces put together for this... A G1 running cyanogenmod 6.1, a hacked up car charger that I can wire directly to car power, and some preliminary test software.
My problem, is that the phone doesn't automatically power up when plugged in. The problem scenario will be something like:
1) Car turns off
2) Phone goes on battery power.
3) I go on vacation and don't drive the car for two weeks.
4) Phone battery dies at some point.
5) Restart the car.
6) Battery starts charging. Phone never turns on. GPS tracking does not resume.
Any ideas on how to work around number 6? I don't supposed there's a firmware mod or something that changes the power-on behavior?
All ideas (even crazy mechanical ones) are welcome.
-Paul B. Davis
This is just an idea, so don't read too far into this...
How willing are you to modify the phone?
Here's why:
Ok...When you push the power button, it completes a circuit, causing the phone to power on.
1. Mod the phone, with a relay. This relay would switch one time per power cycle. Allowing for a quick one time completion of the power circuit, forcing the phone to power on when the car does. ...Turn the car off, the relay clicks again, turning the phone off. (Set the power button to turn off when pressed instead of sleep.) ..You could also go as far as to use a software mod to have the phone start a macro when the power button is pushed. This macro saves current state of whatever is running, then powers off. there are paid apps to do this BTW.
2. Set this program you will be using to autostart with the phone.
Viola... Problem solved. ...Easier said than done, I know. Just a thought though. Great idea BTW.
G1 Car Phone Power
Easer said than done.
Is a bit of an understatement.
even takeing off the case and seting up a relay onto the on/off button would not be a very neat solution. As a ciruit connected simply to the on/off button would not know the current state of the phone .
Is it off yet? is it on yet.
And simply checking the charging current would not reliably tell you if the phone is on or off . So you would need to find a power pin on the processor tracks that is held to vcc when the phone is on.
Hope this gives you some ideas.
This turned out to be an interesting project (and a PITA). I'll post pics at some point before I permanently deploy.
What I ended up doing was sort of splitting the difference on the relay issue.
As you suggested, I ultimately could not find anything approaching a software/firmware based solution for power-up on charger connect. To solve this problem, I took the phone apart until I got to the front button panel, and soldered small leads to the two sides of the power switch.
This was a particularly harrowing solder job, because the power switch conductors are actually tiny copper plates sealed into a flexible film. To get at them you have to partially dissect the film, remove the top half of the power's membrane switch, and then solder to the tiny plates without melting the film.
Anyway, once the leads were in place, I reassembled the phone. This was also a slight PITA because the front panel is engineered with no free space and now has to accommodate the new leads coming off the power switch.
After reassembly, I found a cheap timed relay circuit board that trips its relay for a variable length of seconds or minutes, and then goes dormant until being de-energized and then re-energized. I wired the relay to the power leads in parallel with a momentary power switch, wired the relay circuit to car power, set the circuit to 10 seconds, and it worked perfectly. Phone turns on every time.
It's not entirely deterministic, but I'm OK with it. Realistically, when has your phone ever NOT turned on when you held down the power button for 10 seconds?
The other half of the project was to catch the charger disconnect (car turning off) and power down. This was far simpler to implement, as the phone is rooted and I have access to everything I need to shut off.
I created a simple BroadcastReceiver that catches ACTION_POWER_DISCONNECTED and runs this little block of code to turn off the device:
Code:
Process proc = Runtime.getRuntime().exec("su -");
java.io.OutputStream os = proc.getOutputStream();
os.write("reboot -p\n".getBytes());
os.flush();
os.close();
I haven't tested it extensively, but it seems to work as expected every time.
I could make this a little more deterministic by creating a service that watches the charger connected state and initiates a shutdown when it notices a state change to "disconnected," but it's not clear to me that a BroadcastReceiver is any more unreliable than a service that can be pushed out of memory.
I loaded it all up into a little plastic case, and it seems to work pretty well, so far.
-PBD
My Note 4 (N910F) wasn't recording media-audio, none of the voice-call apps worked, recording video or audio didn't record anything. Regular calls on the cell network worked flawless though!
So i decided to open it up and see if maybe anything got wet. I cleaned some dust carefully with pressured air and some soft cotton buds for the contact points and put it back together again.
Now the device won't start at all anymore.
I can connect the charger on USB and it does show that it's charging and almost full and i can push the menu button to get that screen again after it turns black.
I can connect it to a PC, it detects the device as well.
What i can not do however is turn it on with the power button. Nor does it show the charging screen when i press it shortly.
I suspected there's something off with the switch so i measured it.
Pin 3 and 4 are shorted by default (vibrator motor i assume). Pin 1 and 2 short when i push the button. So that seems to be as it is supposed to be as well.
I have no idea why it doesn't start or get the power-on signal.
Is there anything else i can measure or somehow i can force the device to start by connecting points on the back of the mainboard?
Any help would be appreciated.
Hi Guys, After a random problem one day that included missing apps on the home screen and controller not functioning at all -- I did the following:
Memory card in card slot removed and re-inserted (32gb set as storage and many apps transferred to it freeing up the first 16gb). Rebooted shield and could now find apps , but controller was still only working via USB lead connected to Shield TV. Previously i had experienced similar problems and this had worked before, along with holding controller buttons for 20+ seconds to reset it.
Next step was:
I fully charged the controller as this had proved to be a problem a few times before when having strange controller issues. THIS WAS WHEN I REALISED the following also;
1) Had to input all account details again for Google account, Nvidia Account, You tube account, Steam account etc.etc..
2) Home button no longer works as the home button and also cannot double click to get the screen showing all open apps. It does make audio clicks as normal AND does show the streaming options/picture saving options when you long press it, (so the button is functioning of sorts.) I have since realised that the back button next to the Nvidia light button now works like the home button but you cannot double click it to show all open apps.
3) When I click on the google icon at the top left of the home screen next to the KB icon for voice searches. It does not work. ( though you tube speech searches work fine) It does accept searches after pressing the Nvidia button though when on the home screen.
4) The developer options in the settings menu were always on previously but, now it says that these options are on but "unavailable for this user" when pressed and are greyed out.
5) on/off sensor button on the top of the shield no longer works. (this is very similar to my wife Shield upstairs but hers is a 2017 model. She uses the remote or controller to turn off via the settings menu.
So......thinking of just resetting the Shield to factory settings and starting again but wanted advice before doing this and perhaps adding to the issues???
It seems to me that given all the different problems this is the only way??? My gut is actually telling me that it's an update that has happened and it has confused the 2017 model with mine???? or am I just seeing GHOSTS???
Any constructive advice would be appreciated.
I was trying to get rid of bloatware on my Full Guard with ADB and I went a little overboard; needless to say something broke, and now it's almost bricked.
When I start it up, it loads the Wear OS animation, but then the watch face flickers black every second or so. Pressing the main button toggles between a black screen and my blinking watch face, and my touches are being registered/shown on screen but are ignored. If I hold the main button for a second a grey background with Google's microphone symbol flashes, and if I keep holding it the power dialog appears - and works - as normal. It also goes to sleep after a while, but that's about all it does. I tried connecting it to ADB wirelessly, but it wasn't even connecting to my Wi-Fi (I confirmed with a LAN scanner). I can't connect my phone to it via Bluetooth either.
Is there a way to enter recovery/fastboot mode - without ADB, obviously - from which I can do a factory reset? If so, what button combination would work? I found no guides online, probably because it's not that widely used, and got no comments on Reddit... Any ideas?
Hi everybody
Suddenly the remote of my Chromecast 4 does not command the chromecast. I have found two solutions;
1) The first is remove the batteries of the remote while pressing home button and then insert the batteries until light flashes. But ligth don't flash in a gap of time of 5 minutoes . The green light is always on all the time
2) The most dangerous is reset the chromecast (In this case it won't be a trouble wether I have the control working but it does not work). I have two cell phones at home with Google tv control but I'm, afraid that if I made a hardware reset of the chromecast these android apps don't work and if remote does not work either I could not handle chromecast.
Any suggestion?
Thanks a lot
NO RESPONSE . CLOSE THIS POST