How to convert eCWPK to dCWPK

gazoil12

Member
Joined
Sep 4, 2016
Messages
35
Reaction score
16
int pin = 13; // LED PIN

const int stbPin = A1; // stb trigger input ( RESET )
const int A20Pin = A2; // Axx pin output


int x = 10;
int y = 10;
int done = 0;


void setup()
{

Serial.begin(9600);
pinMode(LED_BUILTIN, OUTPUT);
pinMode(stbPin, INPUT);
pinMode(A20Pin, OUTPUT);
pinMode(13, OUTPUT); // setup glitch point
delay(2000); // time to glitch begin after stb start
digitalWrite(pin, HIGH); // glitch ON
delay(1000); // wait 1000 = 1 second left
digitalWrite(pin, LOW); // glitch OFF

}




void loop()
{

if (digitalRead(stbPin) == HIGH && done == 0 && x <= 2000 && y <=1000 )
{
Serial.write("STB POWERED ON ...\n");

// Begin Glitch
Serial.write("Delay_X: ");
Serial.print(x);
Serial.write(" ");
digitalWrite(A20Pin, HIGH);
delay(x);
digitalWrite(A20Pin, LOW);

x = x+5;

digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(500); // 1 seconde de delai
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(5000); // wait for 5 seconds

}

}
 

adas

DW Member +
Joined
Feb 14, 2018
Messages
103
Reaction score
46
Thank you for an interesting approach @M.Rashid
I had a moment to see what you did.
I just wanted to add that there is a difference if we work under the uboot or official bootloader.
Good luck in your development.

Cau Adas
 

Kimoghost

New Member +
Joined
Jul 15, 2022
Messages
9
Reaction score
1
Hello friends I have a Sti7111 device and a digital package card, is there someone who can help me operate the device on Oscam
 
TEST
Top