Brother MFC-J625DW AIO Network Scan Hang - Specific Use Case












1















Ubuntu Server Version
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic



I have been working through problems with the scanner and think I have it narrowed down to one specific issue.



I am using the scan to pdf script provided by brother here.



The scanner works fine except in one circumstance. When I press the scan key it will scan but if the scanner "times out" at the next page prompt on the scanner, scanadf in the scan script hangs.



I think because this is all initiated by the brscan-skey program, as long as scanadf is hung, the computer ends up unregistering presumably because the parent program brscan-skey is waiting for scanadf to finish. To restore function, I have to manually kill scanadf.



What I've tried:



scanadf --script-wait --> no change, still hangs



nohup scanadf with & to disown --> works but scanadf and brscan-key still hung



what works: launching a kill script on a timer so that when a scan is initiated it waits 5 minutes, and then kills scanadf.



Scanning from the ADF itself works fine when initiated from server using script, using the button and flatbed works fine as long as you remember to push the button "No" for next page. This confirms all the basic underlying stuff is working.



So it seems that the cause is that the scanner is not sending or server not receiving the signal that there is no more coming when the scanner times out. Since ports are open and it works in every other circumstance I think I'm correct on the cause.



I pulled out a lot of hair getting to this point. If anyone has any solutions to solve this single use case, that would be very appreciated.










share|improve this question





























    1















    Ubuntu Server Version
    Description: Ubuntu 18.10
    Release: 18.10
    Codename: cosmic



    I have been working through problems with the scanner and think I have it narrowed down to one specific issue.



    I am using the scan to pdf script provided by brother here.



    The scanner works fine except in one circumstance. When I press the scan key it will scan but if the scanner "times out" at the next page prompt on the scanner, scanadf in the scan script hangs.



    I think because this is all initiated by the brscan-skey program, as long as scanadf is hung, the computer ends up unregistering presumably because the parent program brscan-skey is waiting for scanadf to finish. To restore function, I have to manually kill scanadf.



    What I've tried:



    scanadf --script-wait --> no change, still hangs



    nohup scanadf with & to disown --> works but scanadf and brscan-key still hung



    what works: launching a kill script on a timer so that when a scan is initiated it waits 5 minutes, and then kills scanadf.



    Scanning from the ADF itself works fine when initiated from server using script, using the button and flatbed works fine as long as you remember to push the button "No" for next page. This confirms all the basic underlying stuff is working.



    So it seems that the cause is that the scanner is not sending or server not receiving the signal that there is no more coming when the scanner times out. Since ports are open and it works in every other circumstance I think I'm correct on the cause.



    I pulled out a lot of hair getting to this point. If anyone has any solutions to solve this single use case, that would be very appreciated.










    share|improve this question



























      1












      1








      1








      Ubuntu Server Version
      Description: Ubuntu 18.10
      Release: 18.10
      Codename: cosmic



      I have been working through problems with the scanner and think I have it narrowed down to one specific issue.



      I am using the scan to pdf script provided by brother here.



      The scanner works fine except in one circumstance. When I press the scan key it will scan but if the scanner "times out" at the next page prompt on the scanner, scanadf in the scan script hangs.



      I think because this is all initiated by the brscan-skey program, as long as scanadf is hung, the computer ends up unregistering presumably because the parent program brscan-skey is waiting for scanadf to finish. To restore function, I have to manually kill scanadf.



      What I've tried:



      scanadf --script-wait --> no change, still hangs



      nohup scanadf with & to disown --> works but scanadf and brscan-key still hung



      what works: launching a kill script on a timer so that when a scan is initiated it waits 5 minutes, and then kills scanadf.



      Scanning from the ADF itself works fine when initiated from server using script, using the button and flatbed works fine as long as you remember to push the button "No" for next page. This confirms all the basic underlying stuff is working.



      So it seems that the cause is that the scanner is not sending or server not receiving the signal that there is no more coming when the scanner times out. Since ports are open and it works in every other circumstance I think I'm correct on the cause.



      I pulled out a lot of hair getting to this point. If anyone has any solutions to solve this single use case, that would be very appreciated.










      share|improve this question
















      Ubuntu Server Version
      Description: Ubuntu 18.10
      Release: 18.10
      Codename: cosmic



      I have been working through problems with the scanner and think I have it narrowed down to one specific issue.



      I am using the scan to pdf script provided by brother here.



      The scanner works fine except in one circumstance. When I press the scan key it will scan but if the scanner "times out" at the next page prompt on the scanner, scanadf in the scan script hangs.



      I think because this is all initiated by the brscan-skey program, as long as scanadf is hung, the computer ends up unregistering presumably because the parent program brscan-skey is waiting for scanadf to finish. To restore function, I have to manually kill scanadf.



      What I've tried:



      scanadf --script-wait --> no change, still hangs



      nohup scanadf with & to disown --> works but scanadf and brscan-key still hung



      what works: launching a kill script on a timer so that when a scan is initiated it waits 5 minutes, and then kills scanadf.



      Scanning from the ADF itself works fine when initiated from server using script, using the button and flatbed works fine as long as you remember to push the button "No" for next page. This confirms all the basic underlying stuff is working.



      So it seems that the cause is that the scanner is not sending or server not receiving the signal that there is no more coming when the scanner times out. Since ports are open and it works in every other circumstance I think I'm correct on the cause.



      I pulled out a lot of hair getting to this point. If anyone has any solutions to solve this single use case, that would be very appreciated.







      networking drivers scripts scanner






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 11 at 10:00







      G_L

















      asked Feb 10 at 22:20









      G_LG_L

      62




      62






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1117231%2fbrother-mfc-j625dw-aio-network-scan-hang-specific-use-case%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1117231%2fbrother-mfc-j625dw-aio-network-scan-hang-specific-use-case%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to make a Squid Proxy server?

          Is this a new Fibonacci Identity?

          19世紀