I am using a SM-T510 as a head unit in my car. I have edited the lpm file so that the tablet auto turns on whenever power is connected.
That part works fine, but when it boots up it doesn't show that it is charging or connected to usb at all. If I unplug and replug the usb cable it starts charging.
Any ideas what would cause that? Any workarounds to programmatically solve this without having to disconnect and reconnect every time I start the car?
This is what is providing power
Nissan 370Z - MK1.7 Electronics
Plug & Play Audio, Accessory and Charge for your 370Z Plastics Kit
workshoptwelve.com
I don't think its really related but here is the lpm contents
Bash:
#!/system/bin/sh
/system/bin/lpm.orig &
while [ true ]; do
bat_proc=`cat /sys/class/power_supply/battery/capacity`
if [ $bat_proc -gt 10 ]; then
sleep 3 && /system/bin/reboot
fi
sleep 5
done
Related
I have several 5V usb chargers and 2 car chargers the today I went for an hour drive with only the phone on and bluetooth after 1 hour the power had gone down 5% !!!! I tried another car charger going home for 1 hour result was the same.
I then plugged the Leo into a 240V to 5V no name usb charger at home for 2 hrs and the power went down 5%.
I then plugged it into the HTC USB charger (from my HD 1) and within a few minuits it was up 2%.
I know this is mad all the chargers are rated at 5V at 1A
I also note it will not charge when plugged into a PC usb.
The sounds crazy
does anyone have any ideas ?
Yes
I have an Idea - there is an option called "do not charge fom USB when phone is on"
(Or something like that) - on my device - the default was "on" -
meaning - it did not charge when it thought there is a data connection going on
Try searching for this option . . .
(If I find it - ill edit this post - and add the path to it)
Edit:
The path to this option is:
Settings -> menu->all settings -> system -> power->battery -> "When phone ..."
was your LED blinking when you plug the cable to your Leo, or it shows an amber light and stays permanently on?
If it's the former, your phone might have a problem with charging. It happens to my first set, and my set couldn't charge at all. The charger and battery were diagnosed to be ok, it was the unit itself that has a problem. Brought it back to the dealer and have it exchanged 1-1.
Light ON
Sorry forgot to mention the light was on continously on yellow. So it appears that it was charging.
The other setting was under settings -> System -> Power -> battery
When the phone is on do not charge the battery when conected to a PC and I do have this unchecked.
I also noticed this, Plugged mine into the car, and lost about 2% battery, was playing a game on the phone at them time... Its seems to take quite a while to charge
Car Charger
Has anyone charged you Leo sucessfully with a car charger if so could you provide me with the type of charger and the specifications.
Thanks
This May not necessarily be a fault with the device; i noticed the same functionality with my TG01; it would not initially charge on other same spec chargers except the one it shipped with.
Its possible that there is some sort of voltage requirement that these MicroUSB chargers require that are not being met by MiniUSB Adapters.
Expansys do a car charger for the device, there Product Code: 188895 not sure if its HTC branded or not.
Make sure your charger has at least 1A output. But, I still have the problem when charging too.
You need to look at how much Amperes your car charger has.
If its 0.7 amps like most cheap ones, no wonder. You need to use a 1 amp car charger minimum, especially if you have GPS and data connection running.
Hint: get a charger intended for use with a standard car GPS unit - they are typically 1.5 amps, and then you need a converter plug from standard to micro-usb.
Hey all..
I have my tab installed in my dash of my car. I am running Jt's CM7 and am also running the tasker app.
Right now i have it all set where then the car starts up power goes to the charger and it switched to an AC mode profile. When off it switches to non Ac mode and i have it set to screen timeout to 7 seconds and to turn on airplane mode.
tasker can also sense when it is in usb charge mode.
I would love to be able to make a charging cable that will charge at AC mode or full current.. then when the car is off make the charger charge at usb mode or low current charge
Has anyone got any ideas? I was thinking about the hacked charging usb cables that allowed the non samsung cables to pull full current.
If i got 2.1 amp usb charger, then built the resistors into the usb cable to fool it into full current mode it should work in AC mode, put a relay on the 2 wires with the resistors to break the connection when the car is off, forcing usb charge mode.
Would this work? Any one else got any other ideas?
kamakazie2 said:
Right now i have it all set where then the car starts up power goes to the charger and it switched to an AC mode profile. When off it switches to non Ac mode and i have it set to screen timeout to 7 seconds and to turn on airplane mode.
I would love to be able to make a charging cable that will charge at AC mode or full current.. then when the car is off make the charger charge at usb mode or low current charge
Click to expand...
Click to collapse
I don't understand.... if when the car is off, no power is supplied to the charger (lighter port?), how/where will you get power to provide for the usb, low current charging mode.
Also if you can supply power when the car is off, why bother switching to a low current mode? The gtab will charge (at high current), until it is fully charged, at which point it will stop charging and little further current will be drawn.
Also, you don't want resistors in the circuit, a current limiter would be better, but also I believe that the gtab switches charging mode NOT based on current capacity, but on whether data lines in the USB cable are shorted... I'm hazy on this but will check it later...
Overall, I don't understand your project...
from another post:
There is a little trick actually in original Samsung Tab charger: lines D+ and D- (contacts 2 and 3) are short-circuited, and there are 2 resistors between them and +5 and GND contacts. 30 KOhm between +5 and 2/3, and 10 KOhm between 2/3 and GND. When you connect the charger (or USB port of PC) to the Tab, it first checks contacts 2 and 3 - if they are shortened, then it "thinks" that some charger is connected to it, not PC port. Then it measures voltage between 1 - 2/3 and 2/3 - 4, and if there is a predefined ratio, it "understands" that it is connected to AC charger and gets full power from it. I made this dongle myself in 15 minutes using standard USB cable (male/female), good knife (to peel off plastic from cable connectors), 2 resistors and soldering iron. Now my Tab can be smoothly charged from any 3-rd party iPad charger and original HTC Hero charger. A charger must be rated for output current not less than 1 A.
Click to expand...
Click to collapse
Thanks for the post.. let me clarify the purpose
In the current setup i use the change of status from no power to ac charging to trigger the tablet to wake up and sleep using the tasker application.
AC Mode happens when the car is on and powers up the charger. when this happens tasker will wake up the tablet.. set screen time out to never and disable airplane mode.
No power mode happens when the car is off and the charger is no longer powered. Tasker will set timeout to 7 seconds and turn on airplane mode.
Currently this setup works well, however i would like to have slacker radio auto refresh overnight when im home and connected to wifi. the problem is slacker will no refresh when there is no charger active. also it i dont drive the car for a few days eventually the battery will drain. I would also like to have wifi and 3g on so i can remotley sync mp3's with the device when i am home.
My attempted solution would be to always have power going to the tablet. But i still need a trigger to tell the tablet to wake up and shut down.
My idea would be to have a charger that will charge like the official samsung charger where the tablet recogcnizes it is being charged by a high current charger and not by an unsupported charger where it charges with the small lightning bolt in the battery icon which is the usb low current charger.
What i have read is that you can build a usb charge cable that will force the high current charge if you take a usb cable and place a 33k and 10k ohm resistor on the data + and - wires and connect them to the power and ground wires as in the sticky post.
http://forum.xda-developers.com/showthread.php?t=975558
If i can get a relay that will take the same car charger and have 2 states by opening and closing the resistor circuit.
1. the charger will operate with the resistors on the data lines causing high current mode and triggering AC mode
2. the charger will operate without the resistors on the data lines causing low current mode and triggering usb power mode.
Then i can use tasker to read the different state and power on and off the tablet when the circuit is active.
thus i can keep the teblet always charging as it needs and still retain my triggers to wake and sleep the tablet.
Unless there is some other trigger i can use.. possibly make a bluetooth device that will connect when the car is on.. then i can use that trigger to wake and sleep... I need to think out of the box on this one
-----
Now that i think about it.. if i just keep the charger plugged in without modification i can use a switched bluetooth device to trigger a state change. Tasker can read if a specific bluetooth device is paried then i can switch profiles.
So then i need to find a bluetooth device that i can have power up when the car is on then shut off when the car is off. solving my problem.
I know this thread is a little old but below is a schematic that should do what you want, i.e. provide full charging when car ignition is on and trickle charge when ignition is off. This circuit requires a 12v single pole, double throw relay, 2ea 22k resistors, and 1ea 33k and 10k resistors (1% tolerance). The 33k and 10k resistors provide a 1.25v voltage divider while the 2-22k resistors provide a 2.5v voltage divider (they might not be needed but on a non-Samsung charger D+ is ~2.7v while D- is ~2.0v). Note that the light blue lines between the normally closed terminal (NC) and the common terminal (COM) of the relay and the coil represent the wiper arm and armature and are not connections you make.
The relay coil gets 12v from the car's ignition only when the key is on and the ground for the coil comes from the car's body or a ground wire. The power (+5v) & ground (GND) for the voltage dividers come from the 2amp car charger as does the power for the 30 pin connector.
Radio Shack relay p/n 275-248 should work, and all can be mounted on multipurpose circuit board p/n 276-150 which should fit in project box p/n 270-1801. Unfortunately Radio Shack doesn't carry 1% tolerance resistors so some place like Digikey or Newark Electronics would be a good source.
Code:
VCC = +5v from car charger
VDD = GND from car charger
[COLOR="Red"]┌─ ──[RELAY]── ─┐[/COLOR]
┌─────────────────────Θ [COLOR="Red"]|[/COLOR] ─Θ VCC {RED}[COLOR="Green"]\[/COLOR]
┌─▒▒▒─┴─▒▒▒─┐ [COLOR="Red"]|[/COLOR] (NC)[COLOR="DeepSkyBlue"] \[/COLOR] [COLOR="Red"]|[/COLOR] [COLOR="Green"]\[/COLOR]
│ 22k 22k │ [COLOR="Red"]|[/COLOR] [COLOR="DeepSkyBlue"]|\[/COLOR] (COM)[COLOR="Red"]|[/COLOR] ┌─Θ D- {WHT} [COLOR="Green"]\[/COLOR]
VCC Θ─┤ ├─Θ VDD [COLOR="Red"]|[/COLOR] [COLOR="DeepSkyBlue"]|[/COLOR] Θ────────┤ [COLOR="Green"]> TO 30 PIN[/COLOR]
{RED} │ 33k 10k │ {BLK} [COLOR="Red"]|[/COLOR] [COLOR="DeepSkyBlue"]|[/COLOR] [COLOR="Red"]|[/COLOR] └─Θ D+ {GRN} [COLOR="Green"]/[/COLOR]
└─▒▒▒─┬─▒▒▒─┘ [COLOR="Red"]|[/COLOR] (NO) [COLOR="DeepSkyBlue"]|[/COLOR] [COLOR="Red"]|[/COLOR] [COLOR="Green"]/[/COLOR]
└─────────────────────Θ[COLOR="DeepSkyBlue"]|[/COLOR] [COLOR="rED"]|[/COLOR] ─Θ VDD {BLK}[COLOR="Green"]/[/COLOR]
[COLOR="Red"]|[/COLOR] ┌──[COLOR="DeepSkyBlue"]|[/COLOR]───┐ [COLOR="Red"]|[/COLOR]
[COLOR="Red"]|[/COLOR] ┌─┤ COIL ├─┐ [COLOR="Red"]|[/COLOR]
[COLOR="Red"]|[/COLOR] │ └──────┘ │ [COLOR="Red"]|[/COLOR]
[COLOR="Red"]|[/COLOR] Θ Θ [COLOR="Red"]|[/COLOR]
[COLOR="Red"]|[/COLOR] +12v GND[COLOR="Red"]|[/COLOR]
[COLOR="Red"]| [COLOR="DarkOrchid"](car ignition)[/COLOR]|[/COLOR]
[COLOR="Red"]└─ ── ── ── ── ─┘[/COLOR]
Hi folks.
I am looking into installing my Nexus 7 permanently in the car, needing the use of being able to charge it, and use an USB DAC at the same time.
This page promises to have an ROM that is able to do that, but I have been unable to get that to work at all. I do not want to upgrade to 4.2.x due to the known bugs, so it's 4.1.2 for me at the moment.
http://goo.gl/fQ2LL
Using a stock ROM i am able to start/stop playback with Tasker registering "AC charge" - How do i go about this when using an OTG-Charge ROM ?
I do not want to charge the tablet when i'm not driving the car, what happens to the USB DAC when the power is cut, does it lose sync with the Nexus 7, and requires a reboot to function again?
So in short this is what I had in mind:
Ignition on -> Tasker registering AC power, starts playing music.
Ignition off -> Tasker registering power is off, pauses music, tablet go to sleep after at set amount of time.
I am realising that this may not even be possible, I can't see how the USB connection should survive, when the power is being cut, but maybe some of you more experienced guys can chime in on this subject.
I would rather not make any modifications to the tablet, but if this is neccessary to make it work, i'll have to do it (e.g. feed power directly to the battery with Li-Ion charging circuit.
Any other ideas of letting Tasker know that the car is started ? I have a bluetooth handsfree in the car, but that is connected to my iPhone, so I cannot use that as a wakeup function when that connects as Tasker do not have any "Blutooth Near" functions...
I've tried to connect 5V to the POGO pins on the side, but it won't charge the battery this way (it's enabled in the 4,2,x ROM afaik)
I've wired up my USB OTG cable like this: http://goo.gl/vqc3F
Any ideas is very welcome, as I cannot see how to do this.
Regards,
// Per.
I'm looking at doing the same thing but also a USB flash drive and also a Joycon EX Steering Wheel Control PC Interface via USB.
What I'm debating on doing is instead of hooking the charger to the ignition to turn on n off with he car I'm thinking about using constant power and hooking up an input on the joy on to the ignition 12V and setting the screen to come on n off with the car.
Unfortunately this means the tablet will be on the charger 24/7 but not sure how else to make sure everything reconnects as it should.
Anyone else have any ideas?
Sent from my Nexus 7 using xda app-developers app
I'm planning on doing a car install with all the bells and whistles also:
Joycon Ex
USB DAC (E10 or Behringer?)
USB Hard drive
Powered USB Hub
From what I've read of other threads, some people have trouble getting the DAC to reconnect after power changes, and some don't. In general, the rule of thumb is as long as the N7 is booted with the DAC attached, you should be able to unplug (or stop powering it), and then start again. There seem to be some behavioral exceptions with this (e.g. if you don't stop audio playback before putting the tablet to sleep with tasker, when it wakes up, you may need to fiddle with it before it starts working again).
It's a long thread, but I'd recommend reading this:
rootzwiki.com/topic/30615-can-you-charge-usb-host-mode-simultaneously/page__st__140
Timur has provided multiple patches that are trying to satisfy everyone's exceptions in trying to get this working.
Whenever I plug something (mouse, keyboard, flash drive) using an OTG cable it works for a few seconds, then it stops. Sometimes it gets reconnected and disconnected and sometimes it won't recognize the OTG cable until a full shutdown (sometimes even after that).
I'd like to know if replacing the I/O assembly would help fix the problem.
Here are some considerations:
1) I tested it using lots of cables, so this is not a faulty cable problem
2) I've used a lot of ROMs and Kernels (4.2.2, 4.3), CyanogenMod, Timur, Stock...
3) I've noticed no problem when charging or using the Nexus 7 plugget on the PC
4) cat /proc/kmsg shows that a random interrupt is triggered when the device is plugged on Nexus 7.
I have knowledge of programming and compiled my own kernel disabling the interrupt that get HOST --> SUSPEND.
Then the device keeps working, so I suspect this is really a hardware problem.
Which brings me back to my first question:
Do you think that replacing the I/O assembly would solve this issue?
Thanks in advance to anyone willing to help.
First: How do I get my Nexus 7 to charge from the OTG cable? I can connect USB devices to it but connecting the power cable of the Y doesn't seem to do anything.
Second: Is it possible to wake from tapping?
Related threads:
http://forum.xda-developers.com/showthread.php?t=2776308
(references using the Nexus 2013)
All other threads I've found relating to the OTG cable charging reference Timur's ROM which is no longer available. Is there another solution?
I've got a Nexus 2012 Wifi and all the hardware (USB DAC, amp, wiring, etc) to install this in my car. My last 2 hurdles before ripping the dash apart is the charging while connected to a USB hub and how to wake the tablet up. I was afraid of leaving the screen on all the time would burn it out and drain the battery. I wanted the ability to turn the tablet on without having the keys in the ignition. I guess I could forego that requirement and just have the tablet always on and only turn on in the ACC position.
For the wake I am thinking of creating a mechanical switch that activates the button. The power button on the tablet now will be concealed by the bezel once installed in the dash. There is an app that works but it doesn't really wake from sleep but rather creates a black screen that is tappable. I really wanted the thing to go to sleep and then wake with a tap.
I also wanted the newer android version, 6 or greater. I flashed with CM 7.1 and it works great save the two issues I'm having. Even if I had access to Timur's ROM it hasn't been updated since 4.something so I would want it newer anyway.
Any ideas or suggestions?
Thanks in advance.
I installed the BeanStalk 6.19 and I am now able to OTG charge and double-tap to wake device (no extra settings as it was included with the ROM).
My problem now is it seems to only want to OTG charge when I first plug in the OTG cable to the tablet. If it's charging and I turn off the power to the OTG (like disconnect the charging cable connected to the OTG) and then plug that charging cable back in it will not charge until I reconnect the OTG cable to the tablet. I wanted to hide the cable behind the bezel of the dashboard.
I was hoping to switch the power to the USB hub that is connected to the OTG charge cable with the ACC line from the ignition. This way I wouldn't be draining the battery at all when the keys are not in the ignition. It's only 12.5 watts so I guess I could leave it on all the time. It's getting cold here this time of year so I didn't want any type of extra drain on the battery when I didn't need it.
Any suggestions?