Arduino does the wire trick

theodleif

Member
Aug 5, 2014
21
8
0
Aachen
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);         
 }
 

Attachments

heavy_metal_man

Senior Member
Nov 6, 2011
2,779
760
0
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
 

matekaneve

Senior Member
May 6, 2011
837
485
93
Stirling
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!