Hacking Project Lilygo-T-Dongle-S3-PS4-Payload-Launcher

Status
Not open for further replies.

bigking94

Well-Known Member
Newcomer
Joined
Jun 5, 2020
Messages
69
Trophies
0
Age
37
XP
328
Country
Germany
That sounds great, yes, a possibility to wake up the USB stick would be great.

I look forward to further improvements from you.

THANK YOU very much ^^
 

mrdude

Developer
OP
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
That sounds great, yes, a possibility to wake up the USB stick would be great.

I look forward to further improvements from you.

THANK YOU very much ^^
FYI the code is now done for enable/disable deepsleep once the payload is sent, also redirecting the loader to index2.html.

zbL5p4C.png


Post automatically merged:

OP Updated with new firmware and Modded PS-Phive files, added mods to the config page as per the above post.

Added the following Telegram Bot commands:

/help - Show the help menu.
/mac - Show the dongle's MAC address.
/sleep - Put the dongle into sleep mode.
/restart - Restart the dongle.
/reset - Remove the dongle's config files.
/erase - Wipe clean the dongle's fat partition.
 
Last edited by mrdude,

bigking94

Well-Known Member
Newcomer
Joined
Jun 5, 2020
Messages
69
Trophies
0
Age
37
XP
328
Country
Germany
Good evening mrdube, tell me in what order do I have to flash which file exactly?

1.T-Dongle-S3.Bootloader
2.T-Dongle-S3.Partitions
3.T-Dongle-S3.Firmware
4.No-OTA partition

Thank you for your precise explanation!

How are the settings on the Flasher Tool to be set?
Looks different than yours on the graphic about the question.

Thank you for the explanation and the little guide!
Post automatically merged:

Question because if I do the following flashing sequence from your latest package!

1.T-Dongle-S3.Bootloader
2.T-Dongle-S3.Partitions
3.T-Dongle-S3.Firmware

and then try to enter Telegram Bot, the stick crashes and the writing on the LED display of the USB stick no longer moves.

Hangs somehow. !

So the question am I doing something wrong?

Second question before I had 14.22MB free, with your new package 9.77MB Only ... is that right or wrong?
1234.jpg

Thanks for your help !
 
Last edited by bigking94,

mrdude

Developer
OP
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
Good evening mrdube, tell me in what order do I have to flash which file exactly?

1.T-Dongle-S3.Bootloader
2.T-Dongle-S3.Partitions
3.T-Dongle-S3.Firmware
4.No-OTA partition

Thank you for your precise explanation!

How are the settings on the Flasher Tool to be set?
Looks different than yours on the graphic about the question.

Thank you for the explanation and the little guide!
Post automatically merged:

Question because if I do the following flashing sequence from your latest package!

1.T-Dongle-S3.Bootloader
2.T-Dongle-S3.Partitions
3.T-Dongle-S3.Firmware

and then try to enter Telegram Bot, the stick crashes and the writing on the LED display of the USB stick no longer moves.

Hangs somehow. !

So the question am I doing something wrong?

Second question before I had 14.22MB free, with your new package 9.77MB Only ... is that right or wrong?
View attachment 355080

Thanks for your help !
You don't need to flash the no-ota partition - if you do that you are changing the layout of the chip after you flash the firmware - so that's why it is crashing.

Flash the bins in this oder - as I already mentioned, (read the thread properly)
1: Bootloader, partitons, flash.
2: Open your web browser in your pc and navigate to the IP address of the dongle http://1.2.3.4/admin.html
3: In the config page, format the dongle to clear all old config files and web files.
4: The dongle will reboot so reconnect to it then add your telegram details and then load ps-phive if you want - there's no need for them if you don't care about those.
 

bigking94

Well-Known Member
Newcomer
Joined
Jun 5, 2020
Messages
69
Trophies
0
Age
37
XP
328
Country
Germany
It doesn't work, the S3 now shows nothing more on the display, only the colors light up!

I'm trying to flash the old package! Hope everything works again.
Post automatically merged:

With the old package, my S3 runs without errors!....

What do I do with the flash, can you help me?

The old S3 package works great. I flash the new one, I have problems!
Post automatically merged:

So now I've flashed everything again, everything works great. But as soon as I enter the Telegram Bot, my display hangs and no longer runs on the USB stick, why is that?
Post automatically merged:

Very strange, I deactivate the checkmark for Telegram Bot .... the display continues to run perfectly!

I didn't have that with the previous version. With bot the system kind of hangs. Can you help me to delete the memory I've already done formatting!
Post automatically merged:

S3New files + PS-PHIVE V3.0 Mod 2 ....he shows me that!
1234.jpg
Post automatically merged:

So summary!

Everything works automatically, including redirecting to index2.html!
But if I switch on the bot, the writing on the display hangs and from there the stick causes problems. So something is probably wrong with the bot!

Hope you recognize the problem and can help me!

Thank you
Post automatically merged:

After restarting the PS4, there is even a message from the bot!

PS4 Dongle - http://192.168.10.123/admin.html

But I can't get to the website, the display hangs and doesn't continue!
 
Last edited by bigking94,

mrdude

Developer
OP
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
It doesn't work, the S3 now shows nothing more on the display, only the colors light up!

I'm trying to flash the old package! Hope everything works again.
Post automatically merged:

With the old package, my S3 runs without errors!....

What do I do with the flash, can you help me?

The old S3 package works great. I flash the new one, I have problems!
Post automatically merged:

So now I've flashed everything again, everything works great. But as soon as I enter the Telegram Bot, my display hangs and no longer runs on the USB stick, why is that?
Post automatically merged:

Very strange, I deactivate the checkmark for Telegram Bot .... the display continues to run perfectly!

I didn't have that with the previous version. With bot the system kind of hangs. Can you help me to delete the memory I've already done formatting!
Post automatically merged:

S3New files + PS-PHIVE V3.0 Mod 2 ....he shows me that!
View attachment 355090
Post automatically merged:

So summary!

Everything works automatically, including redirecting to index2.html!
But if I switch on the bot, the writing on the display hangs and from there the stick causes problems. So something is probably wrong with the bot!

Hope you recognize the problem and can help me!

Thank you
Post automatically merged:

After restarting the PS4, there is even a message from the bot!

PS4 Dongle - http://192.168.10.123/admin.html

But I can't get to the website, the display hangs and doesn't continue!
My lcd screen is smashed just now, I've got a new one coming soon so can'test the lcd until it arrives. Software wise everything is working for me so I am not sure why it doesn't work for you, open your web browser and format the fat partition, then connect to PS4-Hack and go to http://1.2.3.4/Config.ini and post it here.
 

bigking94

Well-Known Member
Newcomer
Joined
Jun 5, 2020
Messages
69
Trophies
0
Age
37
XP
328
Country
Germany
No Telegram Bot !

AP_SSID=PS4-Hack
AP_PASS=
WEBSERVER_IP=1.2.3.4
WEBSERVER_PORT=80
SUBNET_MASK=255.255.255.0
WIFI_SSID=FRITZ!Box 7590 OG
WIFI_PASS=
WIFI_HOST=PS4-S3
USEAP=true
CONWIFI=true
USBWAIT=3000
ESPSLEEP=true
SLEEPTIME=10
payload=goldhen.bin
payload_name=GoldHEN
bot_token=
chat_id=
CONFTELE=false
CONPL=true
Redirect=true

Yes Telegram Bot !

AP_SSID=PS4-Hack
AP_PASS=
WEBSERVER_IP=1.2.3.4
WEBSERVER_PORT=80
SUBNET_MASK=255.255.255.0
WIFI_SSID=FRITZ!Box 7590 OG
WIFI_PASS=
WIFI_HOST=PS4-S3
USEAP=true
CONWIFI=true
USBWAIT=3000
ESPSLEEP=true
SLEEPTIME=10
payload=goldhen.bin
payload_name=GoldHEN
bot_token=
chat_id=
CONFTELE=true
CONPL=true
Redirect=true
 

mrdude

Developer
OP
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
Dude, remove your bot token and chatid or other people will be able to use it. What I'll do it put those into my dongle - then you should get a message on telegram. Let me know if you get it, Disable to bot for now on your dongle. Ill test in about 5 minutes.
 
  • Like
Reactions: bigking94

bigking94

Well-Known Member
Newcomer
Joined
Jun 5, 2020
Messages
69
Trophies
0
Age
37
XP
328
Country
Germany
No Telegram Bot !

AP_SSID=PS4-Hack
AP_PASS=
WEBSERVER_IP=1.2.3.4
WEBSERVER_PORT=80
SUBNET_MASK=255.255.255.0
WIFI_SSID=FRITZ!Box 7590 OG
WIFI_PASS=
WIFI_HOST=PS4-S3
USEAP=true
CONWIFI=true
USBWAIT=3000
ESPSLEEP=true
SLEEPTIME=10
payload=goldhen.bin
payload_name=GoldHEN
bot_token=
chat_id=
CONFTELE=false
CONPL=true
Redirect=true

Yes Telegram Bot ! (Screen is frozen)

AP_SSID=PS4-Hack
AP_PASS=
WEBSERVER_IP=1.2.3.4
WEBSERVER_PORT=80
SUBNET_MASK=255.255.255.0
WIFI_SSID=FRITZ!Box 7590 OG
WIFI_PASS=
WIFI_HOST=PS4-S3
USEAP=true
CONWIFI=true
USBWAIT=3000
ESPSLEEP=true
SLEEPTIME=10
payload=goldhen.bin
payload_name=GoldHEN
bot_token=
chat_id=
CONFTELE=true
CONPL=true
Redirect=true

Telegram-Bot !
1234.jpg1234.jpg
 

bigking94

Well-Known Member
Newcomer
Joined
Jun 5, 2020
Messages
69
Trophies
0
Age
37
XP
328
Country
Germany
Yes

It seems that you sent me something worked 20:58 and 20:59 !

But I still have problems!

1234.jpg

20:58 and 20:59 !
 

mrdude

Developer
OP
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
Will it then also test whether error still exists!

Thank You mrdube !
The lcd works fine so it's nothing to do with the lcd - I don't get the errors on my dongle. Let me check the variables in the code to see if I missed something. I'll be about 20 minutes.
 

mrdude

Developer
OP
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
I've had a look at the code but can't see any issues, in the main (loop) void I have this:

Code:
if (UseTG && selfserver == "wifimode"){
    check_messages();
  }

This just checks to see if you are using wifi and telegram bot is enabled, then if both those values are true it runs this code:

Code:
void check_messages(){
  if (millis() > lastTimeBotRan + botRequestDelay)  {
    int numNewMessages = bot.getUpdates(bot.last_message_received + 1);
    while(numNewMessages) {
      handleNewMessages(numNewMessages);
      numNewMessages = bot.getUpdates(bot.last_message_received + 1);
    }
    message_status = 1;
    lastTimeBotRan = millis();
  }
}

This bit of code sends the messages to telegram:
Code:
// Handle what happens when you receive new messages
void handleNewMessages(int numNewMessages) {

  for (int i=0; i<numNewMessages; i++) {
    // Chat id of the requester
    String text = "";
    String chat_id = String(bot.messages[i].chat_id);
    if (chat_id != CHAT_ID){
      bot.sendMessage(chat_id, "Unauthorized user", "");
      continue;
    }
    
    // Print the received message
    if (message_status == 1){
      text = bot.messages[i].text;
    }

    //https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/issues/38

    if (text == "/start" || text == "/help" ) {
      String welcome = "PS4 dongle commands.\n";
      welcome += "/help - Show this help menu.\n";
      welcome += "/mac - Show the dongle's MAC address.\n";
      welcome += "/sleep - Put the dongle into sleep mode.\n";
      welcome += "/restart - Restart the dongle.\n";
      welcome += "/reset - Remove the dongle's config files.\n";
      welcome += "/erase - Wipe clean the dongle's fat partition.\n";
      bot.sendMessage(chat_id, welcome, "");
    }

    if (text == "/mac") {
      message_status = 0;
      bot.sendMessage(chat_id, "MAC: " + MacAddress(), "");
    }
    
    if (text == "/restart") {
      message_status = 0;
      bot.sendMessage(chat_id, "Restart commencing", "");
      ESP.restart();
    }

    if (text == "/reset") {
      message_status = 0;
      bot.sendMessage(chat_id, "Defaults reset - (AP mode reactivated),", "");
      hardreset(); //show visual warning
      resetconfig();
    }

    if (text == "/sleep") {
      message_status = 0;
      bot.sendMessage(chat_id, "Dongle shutdown activated)", "");
      deepsleep();
    }

    if (text == "/erase") {
      message_status = 0;
      bot.sendMessage(chat_id, "Erase fat partition (AP mode reactivated)", "");
      hardreset(); //show visual warning
      handleFormat();
    }
    else{
      message_status = 0;
    }
  }
}

None of the variables used in that function are used anywhere else in the sketch so I am not sure why you are having issues, I am not having any.

I'll compile the firmware again and upload it and you can see if the issue persists.
 
  • Like
Reactions: bigking94

mrdude

Developer
OP
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
OKAY

Thank You !
OK dude, I'm having an issue with my PC just now, windows did an update and it's messup up my Arduino environment, so I can't get the program to compile. I'll need to re-install Arduino and my libraries. Check back later or tomorrow ok and I'll post the firmware here.

Doh! scrap that, I'm an idiot - I was programming a switch dongle earlier and forgot to change the boards back, give me 20 minutes.
 
  • Like
Reactions: bigking94

bigking94

Well-Known Member
Newcomer
Joined
Jun 5, 2020
Messages
69
Trophies
0
Age
37
XP
328
Country
Germany
OKAY no problem, take it easy... I'm awake and ready... as soon as you've uploaded it. Will the test it !

Thank You !
 

mrdude

Developer
OP
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,227
OKAY no problem, take it easy... I'm awake and ready... as soon as you've uploaded it. Will the test it !

Thank You !
Sorry about the delay, I'm testing out just now trying to see if I can get it to crash. I won't be too much longer - maybe another 20 minutes or so.
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    AncientBoi @ AncientBoi: Can I get his ☎️ # :shy::blush: