New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
aggie6600
Old
#21  
Senior Member
Thanks Meter 6
Posts: 106
Join Date: Sep 2007
So this will allow you to fast charge without needing a custom kernel?
Phones:
i500 -> PPC 6600 -> PPC 6700 -> Touch -> Hero -> Evo 4G - CM7 -> Nexus LTE
Tablets:
Nook Color - CM7 -> TF101 - Revolver
 
soundwire
Old
(Last edited by soundwire; 8th May 2012 at 06:18 PM.)
#22  
Member
Thanks Meter 24
Posts: 57
Join Date: Jan 2009
I haven't tried this out yet as I don't have an aTtiny85 handy but I put together a quick arduino sketch for the microcontroller novice like myself.

Code:
// Arduino sketch for an aTtiny85 

void setup()
{
  pinMode(1, OUTPUT);       // SPIDIF/Phone pin / hardware pin 6
  pinMode(0, OUTPUT);      // Led pin / hardware pin 5
  attachInterrupt(0, wake, FALLING); // innterupt "o" is on digital pin 2 hardware pin 7
}

void loop()
{
  digitalWrite(0, HIGH);
  delay(1500);
  digitalWrite(0, LOW);
  delay(1500);
}

void wake()
{
  detachInterrupt(0)          // Turn Intterupt off
  digitalWrite(1, HIGH);  
  delay(50);                  //Dock Type Delay, 50mS for desk, 100mS for car
  digitalWrite(1, LOW);
  delay(50);                  //Charge type delay, 50mS for High current, 100mS for low
  digitalWrite(1, HIGH);
  delay(100);                 //Audio Connection delay, 50mS for connected, 100mS for disconnected
  digitalWrite(1, LOW);
  delay(600);
  attachInterrupt(0, wake, FALLING); // Turn intterupt back on 
}


---------- Post added at 07:27 PM ---------- Previous post was at 07:22 PM ----------

Quote:
Originally Posted by aggie6600 View Post
So this will allow you to fast charge without needing a custom kernel?
The idea is to be able to make a dock with a microcontroller in it that signals the phone the right settings for the dock. So yes it will set the phone to (AC) fast charge mode if you have it set to that.
The Following 2 Users Say Thank You to soundwire For This Useful Post: [ Click to Expand ]
 
silverchris
Old
#23  
Junior Member - OP
Thanks Meter 20
Posts: 28
Join Date: May 2009
Location: Orangeville
Quote:
Originally Posted by soundwire View Post
I haven't tried this out yet as I don't have an aTtiny85 handy but I put together a quick arduino sketch for the microcontroller novice like myself.

Code:
// Arduino sketch for an aTtiny85 

void wakeResponce()
{
  detachInterrupt(0)          // Turn Intterupt off
  digitalWrite(1, HIGH);  
  delay(50);                  //Dock Type Delay, 50mS for desk, 100mS for car
  digitalWrite(1, LOW);
  delay(50);                  //Charge type delay, 50mS for High current, 100mS for low
  digitalWrite(1, HIGH);
  delay(100);                 //Audio Connection delay, 50mS for connected, 100mS for disconnected
  digitalWrite(1, LOW);
  delay(600);
  attachInterrupt(0, wakeResponce, FALLING); // Turn intterupt back on 
}

void setup()
{
  pinMode(1, OUTPUT);       // SPIDIF/Phone pin / hardware pin 6
  pinMode(0, OUTPUT);      // Led pin / hardware pin 5
  attachInterrupt(0, wakeResponce, FALLING); // innterupt "o" is on digital pin 2 hardware pin 7
}

void loop()
{
   while(1)
   {
        // Loop forever and blink led connected to pin0 
        count++;
        if(count < 200000){
        digitalWrite(0, HIGH);
        }
        if(count > 200000){
        digitalWrite(0, LOW);
        }
        if(count == 400000){
        count = 0;
        }
   }
}


---------- Post added at 07:27 PM ---------- Previous post was at 07:22 PM ----------



The idea is to be able to make a dock with a microcontroller in it that signals the phone the right settings for the dock. So yes it will set the phone to (AC) fast charge mode if you have it set to that.
A small thing I was going to note, and add to my firmware, is that we should be measuring the wake pulse if possible. As my code is right now, it responds to all pulses, including spdif data. Which will really mess with the data, resulting in something the SPDIF receiver/DAC will not enjoy.

But otherwise, that code gets the general gist of it.

Other note, the phone does report that it is in AC Charge mode when docked.

I am going to see if I can find something that I can drag out to my shop to see if the SPDIF data will feed directly into a stereo
The Following User Says Thank You to silverchris For This Useful Post: [ Click to Expand ]
 
subvertz
Old
#24  
subvertz's Avatar
Senior Member
Thanks Meter 71
Posts: 269
Join Date: Feb 2012
Location: Bergen
You guys are incredible for actually going through with this. Its way more work that just using the fast charge kernels, but inspiring! Don't know if you saw or not, but Expansys said the Samsung docks are all manufactured, and they are trying to get an early shipment to France by the end of the month. Ya'll might still beat 'em!
I might even tear apart my Frankendock to solder something to the middle pin...
Denso TP-100, SE T61z, Moto RAZR V3, Motoi576, Nokia E52, HTC Desire HD, Samsung Galaxy Nexus withFNVPower!
and now NEXUS 7 !!!
 
mephi
Old
#25  
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Jul 2006
Couldn't you get it to respond to the first wake pulse and just not reattach the interrupt? That'd stop it from responding to the spdif audio signals.

Matt

Sent from my Galaxy Nexus using XDA
 
anton2009
Old
(Last edited by anton2009; 4th May 2012 at 09:39 AM.)
#26  
anton2009's Avatar
Senior Member
Thanks Meter 225
Posts: 806
Join Date: Aug 2010
Location: Lincoln, NE
Hey guys. How would I go about taking apart my galaxy nexus pogo dock? I want to do some remodeling so that it will fit the i515 variant...

---------
Never mind i figured it out
Attached Thumbnails
Click image for larger version

Name:	2012-05-04 03.36.58.jpg
Views:	714
Size:	251.4 KB
ID:	1040177  
 
ellesshoo
Old
#27  
Senior Member
Thanks Meter 116
Posts: 438
Join Date: Jul 2010
Quote:
Originally Posted by anton2009 View Post
Hey guys. How would I go about taking apart my galaxy nexus pogo dock? I want to do some remodeling so that it will fit the i515 variant...

---------
Never mind i figured it out
Any chance you could undo those screws, flip the board over, and get us a good shot of the component side of that board?
The Following User Says Thank You to ellesshoo For This Useful Post: [ Click to Expand ]
 
silverchris
Old
#28  
Junior Member - OP
Thanks Meter 20
Posts: 28
Join Date: May 2009
Location: Orangeville
Quote:
Originally Posted by mephi View Post
Couldn't you get it to respond to the first wake pulse and just not reattach the interrupt? That'd stop it from responding to the spdif audio signals.

Matt

Sent from my Galaxy Nexus using XDA
Ya, but then if you took the phone out and put it back in, nothing would happen, because your microcontroller isn't listening for the pulse anymore.
 
soundwire
Old
#29  
Member
Thanks Meter 24
Posts: 57
Join Date: Jan 2009
I have already posted pics awhile ago..

http://forum.xda-developers.com/show....php?t=1626139

Sent from my Galaxy Nexus using XDA
The Following User Says Thank You to soundwire For This Useful Post: [ Click to Expand ]
 
jonnyg1097
Old
#30  
Senior Member
Thanks Meter 108
Posts: 1,316
Join Date: Oct 2010
Location: Toronto
I wish I knew what I was reading in this thread so I could help out in some fashion