3 Replies Latest reply on Feb 11, 2013 4:52 PM by Peter Arcuri

    RHOMobile Shared RuntimeET1 Scanner

      I am following the RhoMobile Shared Runtime tutorial http://docs.rhomobile.com/rhoelements/rhoelements2-webapps to add scanning on an ET1 tablet to my existing HTML application.


      The tutorial works fine, but it is using the camera to perform the scanning.  I have a the motorola 2D scanner/magstripe reader attachment and want to use it instead of the camera.  I can't find information about how to do this.


      I tried modifying the scanner equiv section as follows:


      <meta http-equiv="scanner" content="DecodeEvent:url('Javascript:pageScript.doScanDecode(%json);'); enabled = 'SCN2';" />

              <meta http-equiv="quitbutton" content="visibility:visible;" />



      I tried it with both SCN1 and SCN2 as the values, but the scanner does not function when I do this.  How can I get the hardware scanner to activate from the web app?

        • Re: RHOMobile Shared RuntimeET1 Scanner
          Peter Arcuri

          DataWedge is for some reason enabled by default on the ET1. Resulting in taking control of the scan engine. In order to free it up you will have to disable Datawedge.


          Here is how you go about disabliing DataWedge:

          1. Start the DataWedge app from within the ET1
          2. Click on the menu button and select "Settings"
          3. Un-check the "DataWedge enabled" entry.


            • Re: RHOMobile Shared RuntimeET1 Scanner

              Thanks for the tip. I disabled the datawedge, but still can't get the hardware scanner to work. I"ve tried modifying my meta string to be:


              <meta http-equiv="scanner" content="DecodeEvent:url('Javascript:doScanDecode(%json);'); enabled:'SCN2'" />


              I also tried:


              <meta http-equiv="scanner" content="DecodeEvent:url('Javascript:doScanDecode(%json);'); enabled:'SCN1'" />


              I get the camera based scanning in all cases.  Still trying to figure out what format the data comes back in as well.