Two options:
#1
The logs indicate trouble codes/LEDs being active. You can try to clear those trouble codes and then try the script again. It's possible having trouble codes causes the DSC system to return multiple codes at a time.
#2
Adjust the script to try to interpret the responses as containing multi-lines.
Look for the following lines:
while ($r =~ /^922/) {
if ($r =~ /^680/) {l0gt("SUCCESS: $scode is the installer code"); exit(0); }
unless ($response =~ /$wanted/) { goto X; }
Replace with:
while ($r =~ /^922/m) {
if ($r =~ /^680/m) {l0gt("SUCCESS: $scode is the installer code"); exit(0); }
unless ($response =~ /$wanted/m) { goto X; }
Thanks,
- Edirol
mJack wrote:Hi there,
I am currently trying the perl script but it seem that I am in a loop. I also do not have any logs created in the txt file and I do not see any code attemp (I've try yesterday for hours and its identical as the below sample).
EVL3
DSC PC1616
Device:folder users$ perl -w dsc.pl
Name "main::t" used only once: possible typo at dsc.pl line 54.
[20200918_125615] DEBUG: Connected to EnvisaLink
[20200918_125615] response: '5053CD\r\n' (length 8)
[20200918_125615] sent data '005user54\r\n' (length 11)
[20200918_125615] response: '5000052A\r\n5051CB\r\n' (length 18)
[20200918_125615] DEBUG: Correct EnvisaLink password
[20200918_125615] DEBUG: Start installer mode entry cycle
[20200918_125615] sent data '0711*82B\r\n' (length 10)
[20200918_125615] response: '5000712D\r\n' (length 10)
[20200918_125616] response: '51080FE\r\n8411CE\r\n9229D\r\n' (length 24)
[20200918_125644] response: '5109100\r\n6501CC\r\n8401CD\r\n' (length 25)
[20200918_125649] response: '51110F8\r\n849090E\r\n' (length 18)
[20200918_125649] response: '51080FE\r\n' (length 9)
[20200918_125650] response: '51100F7\r\n5109100\r\n6501CC\r\n' (length 26)
[20200918_130059] response: '51110F8\r\n849090E\r\n' (length 18)
[20200918_130100] response: '51080FE\r\n51100F7\r\n5109100\r\n6501CC\r\n' (length 35)
[20200918_130452] response: '60900332\r\n6531CF\r\n' (length 18)
[20200918_130457] response: '6100032A\r\n6501CC\r\n' (length 18)
[20200918_130509] response: '51110F8\r\n849090E\r\n' (length 18)
[20200918_130510] response: '51080FE\r\n51100F7\r\n5109100\r\n6501CC\r\n' (length 35)
[20200918_130624] response: '60900433\r\n6531CF\r\n' (length 18)
[20200918_130627] response: '6100042B\r\n' (length 10)
[20200918_130628] response: '6501CC\r\n' (length 8)
[20200918_130919] response: '51110F8\r\n849090E\r\n' (length 18)
[20200918_130920] response: '51080FE\r\n51100F7\r\n5109100\r\n6501CC\r\n' (length 35)
[20200918_131044] response: '60900130\r\n51090FF\r\n6511CD\r\n' (length 27)
[20200918_131139] response: '61000128\r\n5109100\r\n6501CC\r\n' (length 27)
[20200918_131155] response: '60900332\r\n' (length 10)
[20200918_131156] response: '6531CF\r\n' (length 8)
[20200918_131200] response: '6100032A\r\n' (length 10)
[20200918_131200] response: '6501CC\r\n' (length 8)
[20200918_131221] response: '60900231\r\n51090FF\r\n6511CD\r\n' (length 27)
[20200918_131329] response: '51110F8\r\n849090E\r\n' (length 18)
[20200918_131330] response: '51080FE\r\n51100F7\r\n51090FF\r\n6511CD\r\n' (length 35)
[20200918_131545] response: '60900332\r\n' (length 10)
[20200918_131546] response: '61000229\r\n5109100\r\n6531CF\r\n' (length 27)
[20200918_131550] response: '6100032A\r\n' (length 10)
[20200918_131550] response: '6501CC\r\n' (length 8)
[20200918_131739] response: '51110F8\r\n849090E\r\n' (length 18)
[20200918_131740] response: '51080FE\r\n51100F7\r\n5109100\r\n6501CC\r\n' (length 35)
[20200918_132007] response: '60900332\r\n6531CF\r\n' (length 18)
[20200918_132011] response: '6100032A\r\n6501CC\r\n' (length 18)
[20200918_132150] response: '51110F8\r\n849090E\r\n' (length 18)
[20200918_132150] response: '51080FE\r\n' (length 9)
[20200918_132150] response: '51100F7\r\n5109100\r\n6501CC\r\n' (length 26)
...
any idea?
Much appreciated.
thanks!
Mike
Wicky wrote:Hi Edirol,
Thanks for your code. I am trying yours now in my DSC 5010, Envisalink 4, Pi Raspbian. Two days now still running no luck. How do I know what is current progress from screen output? Is it working as it should be?
Post some of the screen output here:
[20200619_085258] response: '8411CE\r\n51100F7\r\n5109100\r\n6501CC\r\n8401CD\r\n' (length 42)
[20200619_085604] response: '60900231\r\n6531CF\r\n' (length 18)
[20200619_085615] response: '61000229\r\n' (length 10)
[20200619_085615] response: '6501CC\r\n' (length 8)
[20200619_085707] response: '51110F8\r\n51080FE\r\n8490C18\r\n' (length 27)
[20200619_085707] response: '8411CE\r\n51100F7\r\n5109100\r\n6501CC\r\n8401CD\r\n' (length 42)
[20200619_085739] response: '60900231\r\n6531CF\r\n' (length 18)
[20200619_085740] response: '61000229\r\n' (length 10)
[20200619_085741] response: '6501CC\r\n' (length 8)
[20200619_090044] response: '60900231\r\n6531CF\r\n' (length 18)
[20200619_090045] response: '61000229\r\n6501CC\r\n' (length 18)
[20200619_090057] response: '60900231\r\n' (length 10)
[20200619_090058] response: '6531CF\r\n' (length 8)
[20200619_090101] response: '61000229\r\n6501CC\r\n' (length 18)
[20200619_090116] response: '51110F8\r\n51080FE\r\n8490C18\r\n' (length 27)
[20200619_090117] response: '8411CE\r\n51100F7\r\n5109100\r\n6501CC\r\n8401CD\r\n' (length 42)
[20200619_090328] response: '60900231\r\n6531CF\r\n' (length 18)
[20200619_090339] response: '61000229\r\n6501CC\r\n' (length 18)
[20200619_090526] response: '51110F8\r\n51080FE\r\n8490C18\r\n' (length 27)
[20200619_090526] response: '8411CE\r\n51100F7\r\n5109100\r\n6501CC\r\n8401CD\r\n' (length 42)
[20200619_090935] response: '51110F8\r\n51080FE\r\n8490C18\r\n' (length 27)
[20200619_090935] response: '8411CE\r\n51100F7\r\n5109100\r\n6501CC\r\n8401CD\r\n' (length 42)
[20200619_091157] response: '60900231\r\n6531CF\r\n' (length 18)
[20200619_091158] response: '61000229\r\n6501CC\r\n' (length 18)
[20200619_091202] response: '60900231\r\n6531CF\r\n' (length 18)
[20200619_091204] response: '61000229\r\n' (length 10)
[20200619_091205] response: '6501CC\r\n' (length 8)
[20200619_091206] response: '60900231\r\n6531CF\r\n' (length 18)
[20200619_091216] response: '61000229\r\n6501CC\r\n' (length 18)
[20200619_091225] response: '60900231\r\n6531CF\r\n' (length 18)
[20200619_091234] response: '61000229\r\n6501CC\r\n' (length 18)
[20200619_091240] response: '60900231\r\n6531CF\r\n' (length 18)
[20200619_091243] response: '61000229\r\n6501CC\r\n' (length 18)
[20200619_091344] response: '51110F8\r\n51080FE\r\n8490C18\r\n' (length 27)
[20200619_091345] response: '8411CE\r\n51100F7\r\n5109100\r\n6501CC\r\n8401CD\r\n' (length 42)
[20200619_091410] response: '60900231\r\n6531CF\r\n' (length 18)
[20200619_091413] response: '61000229\r\n6501CC\r\n' (length 18)
[20200619_091430] response: '60900231\r\n6531CF\r\n' (length 18)
[20200619_091439] response: '61000229\r\n6501CC\r\n' (length 18)
[20200619_091454] response: '60900231\r\n6531CF\r\n' (length 18)
[20200619_091458] response: '61000229\r\n6501CC\r\n' (length 18)
Wicky