DSC Binding - recover installer code

Should you need the installer code for your DSC Power Series Control Panel, you can recover it with my script:

Thanks JjS for providing the script, its very useful. The script script went thought all numbers but came back with code not found. There were some “Receive buffer overflow” and “Installer code required” errors along the way, but other than that things seemed to work fine. Any suggestions?

The scripts emulates keypad entered numbers. Maybe it is too fast for your control panel. Try to increase sleep times in the main loop, say from 4 to 6 seconds.

Jj

Thanks again for taking the time to reply. Adding delay got rid of the buffer under runs.
This is probably not relevant to this specific post, but the script went unsuccessfully through all numbers and the messages are intermittent between “Invalid access code”, or both “Invalid access code” and “Installer code required” like below.

Testing code: 9987
OK
Invalid access code
Installer code required
Testing code: 9988
OK
Invalid access code
Testing code: 9989
OK
Invalid access code
Testing code: 9990
OK
Invalid access code
Installer code required
Testing code: 9991
OK
Invalid access code
Installer code required
Testing code: 9992
OK
Invalid access code
Testing code: 9993
OK
Invalid access code.

JjS, this is great! Thank you for the script.
script started running but then stopped after testing 0004.
Screenshot%20from%202019-11-08%2023-11-02
What did I do wrong? How do I make sure the script exits installer code? I’m afraid to kill it.

Update: script failed after a while:

PHP Fatal error: Uncaught Exception: Unable to read from socket: Success in /var/www/html/hello.php:92
Stack trace:
#0 /var/www/html/hello.php(38): readData()
#1 /var/www/html/hello.php(198): breakCode(0)
#2 {main}
thrown in /var/www/html/hello.php on line 92