Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Arduino does the wire trick

OP theodleif

17th August 2014, 08:44 PM   |  #1  
OP Junior Member
Thanks Meter: 3
 
1 posts
Join Date:Joined: Aug 2014
In order to get their devices S-OFF a lot of people try the "wire trick". While some are lucky within minutes, others try for months until they get mad and throw their device or themselves out of the window.

Originally I tried to avoid to S-OFF my phone, but the unlock code I got from HTC revealed to be invalid.

Rumrunner didn't work as well and in the end I faced what I had tried to avoid: the wire trick.

Because I didn't want to run mad, I decided to get the job done with the help of an Arduino and a relay.

At first I tried 500 ms closed, 1750 ms open and 500 ms closed. That didn't work.

Then I tried 1000 ms closed, 1500 ms open, and 1000 ms closed. That worked instantly and now my Sensation is S-OFF.

The arduino performed very precisely. The relay caused a deviation of only 1 ms as I found out with the help of a second arduino.

I used Ubuntu 14.04 with 32 bit. ADB and Fastboot came from the distribution.

Here is the code:
Code:
#define RELAY1  3   // relay on pin 3                    
 
void setup() {    
  pinMode(RELAY1, OUTPUT);       
  digitalWrite(RELAY1,HIGH);    // high switches relay off
}

 void loop() {
   delay(15000);
   digitalWrite(RELAY1,LOW);          
   delay(1000);                                    
   digitalWrite(RELAY1,HIGH);    
   delay(1500);
   digitalWrite(RELAY1,LOW);           
   delay(1000);                                      
   digitalWrite(RELAY1,HIGH);         
 }
Attached Images
File Type: jpeg IMG-20140817.jpeg - [Click for QR Code] (149.0 KB, 146 views)
The Following 3 Users Say Thank You to theodleif For This Useful Post: [ View ]
19th August 2014, 07:50 PM   |  #2  
heavy_metal_man's Avatar
Recognized Contributor
Thanks Meter: 724
 
2,641 posts
Join Date:Joined: Nov 2011
Donate to Me
More
Quote:
Originally Posted by theodleif

In order to get their devices S-OFF a lot of people try the "wire trick". While some are lucky within minutes, others try for months until they get mad and throw their device or themselves out of the window.

Originally I tried to avoid to S-OFF my phone, but the unlock code I got from HTC revealed to be invalid.

Rumrunner didn't work as well and in the end I faced what I had tried to avoid: the wire trick.

Because I didn't want to run mad, I decided to get the job done with the help of an Arduino and a relay.

At first I tried 500 ms closed, 1750 ms open and 500 ms closed. That didn't work.

Then I tried 1000 ms closed, 1500 ms open, and 1000 ms closed. That worked instantly and now my Sensation is S-OFF.

The arduino performed very precisely. The relay caused a deviation of only 1 ms as I found out with the help of a second arduino.

I used Ubuntu 14.04 with 32 bit. ADB and Fastboot came from the distribution.

Here is the code:

Code:
#define RELAY1  3   // relay on pin 3                    
 
void setup() {    
  pinMode(RELAY1, OUTPUT);       
  digitalWrite(RELAY1,HIGH);    // high switches relay off
}

 void loop() {
   delay(15000);
   digitalWrite(RELAY1,LOW);          
   delay(1000);                                    
   digitalWrite(RELAY1,HIGH);    
   delay(1500);
   digitalWrite(RELAY1,LOW);           
   delay(1000);                                      
   digitalWrite(RELAY1,HIGH);         
 }

That's pretty cool! Thanks for sharing

Sent from my nexus 7 using Tapatalk
20th August 2014, 04:00 PM   |  #3  
matekaneve's Avatar
Senior Member
Flag Stirling
Thanks Meter: 145
 
356 posts
Join Date:Joined: May 2011
More
Picture you attached is amazing! It looks pretty much like you're really going to hack your phone! I was lucky, did the wire trick and worked for the very first time, but here we go people, another option for everyone! Thanks for sharing!
16th September 2014, 12:08 AM   |  #4  
Junior Member
Flag Warwickshire
Thanks Meter: 0
 
12 posts
Join Date:Joined: Nov 2009
More
Amazing! I'd have never found that out in a million years, thanks given!
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes