FYI the code is now done for enable/disable deepsleep once the payload is sent, also redirecting the loader to index2.html.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 ^^
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.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 !
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.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!
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
It's weird because my dongle is working fine, I'll upload the same firmware I am using, maybe it got corrupted or something.Yes
It seems that you sent me something worked 20:58!
But I still have problems!
View attachment 355101
20:59 !
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.Will it then also test whether error still exists!
Thank You mrdube !
if (UseTG && selfserver == "wifimode"){
check_messages();
}
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();
}
}
// 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;
}
}
}
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.OKAY
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.OKAY no problem, take it easy... I'm awake and ready... as soon as you've uploaded it. Will the test it !
Thank You !