12 Replies Latest reply on Oct 14, 2011 3:55 AM by Hareesh Veldandi

    Motorola device licence

      To run Rho element script(such as accessing bar code scanner of the device) do we need to take license.If so what is the process.

        • Re: Motorola device licence
          James Morley-Smith

          Hi Hareesh

           

          Yes, there is a license cost for the RhoElements runtime. The licensing model is a tiered pricing model and I would advice contacting your usual Motorola Solutions contact or one of our partners.  If you do not already have a contact you can use this web form to get in touch: http://www.motorola.com/Business/US-EN/Enterprise+Mobility/How_To_Buy.

           

          I should point out that for development purposes it is not absolutely necessary to have a licensed unit, the only annoyance will be a nag screen that appears every few minutes, but this can simply be cancelled, but obviously for live solutions it would be necessary to pay for the software.

           

          I hope this helps,

          James.

          1 of 1 people found this helpful
            • Re: Motorola device licence

              Hi James!

               

              Thank you for replying!

               

              Please bear with me as this is a long write up

               

              We are actually using Motorola ES400 that comes with an Advanced bar-code scanner, Finger print reader etc. Yes, the ES400 has a native app called "DataWedge", by enabling which, we could generally use the bar-code scanning facility.

               

              But, what we basically have to do is to demonstrate the bar-code scanner, by activating it  through a Javascript of an application such that we could capture the data within the application.

               

              So, we happened to use the demo application that was given in Rho package help document. This application is basically of HTML and Javascript code. And when the same is launched, ideally an HTML page should be loaded and a specific Javascript should enable the bar-code scanner, read the bar-code for data and display the data on the HTML page. Unfortunately, only the HTML page gets loaded, but the Javascript is not enabling the scanner.

               

              I have configured Rho Elements properly by going through the document thoroughly.Also, I read in help documents that to acess bar-code scanner we need to have a runtime license.

               

              James, my doubt now is to see if the run-time license is necessary to enable the scanner through a javascript.

               

              Please revert!

               

              Best Regards,

              Hareesh.

            • Re: Motorola device licence

              Hi James!

               

              Hope you are doing well!

               

              Could you please help us this time clarifying a doubt we have.

               

              Earlier, with what you suggested, we could demonstrate the bar-code scanner by activating it  through a Javascript of an application, such that, we could capture the data within the application. The flow was "We press a button in the Application-->the application initiates the scanner-->asks the user to press the Physical scan button on the device-->we press the physical scan button on the device-->> once the scan is completed, the java script in the application takes back the data control and proceeds further.....

               

              Now, what we want to negate in the above said flow is that, instead of the control going over to the Physical scan button for a scan the control should remain with the button of the application itself. So, the flow should be like "We press a scan button in the Application-->the application initiates the scanner-->scans the bar code and proceeds further.....

               

              In simple words, can we achieve scanning a bar code other within an application, other than pressing the physical scan button on the device?

               

              P.S.If the above said is possible, I would like to know if the same can be implemented on Android platforms and how?

               

              Please revert!

               

              Best Regards,

              Hareesh.

                • Re: Motorola device licence
                  Robert Galvin

                  Hareesh

                   

                   

                   

                  That is called a Soft Scan. Basically you need to do a scanner.start(). If the barcode is decoded then the decode Event will trigger. If no bar code is decoded then you need to do a scanner.stop() to turn off the scanner. Think of scanner.start as someone pressing the hard trigger and scanner.stop() as someone releasing the hard trigger.

                   

                   

                   

                  Rob

                    • Re: Motorola device licence
                      Benedict Kennedy

                      An example of how to do this:

                       

                      <html>
                                <head>
                                          <script type="text/javascript">
                                                    function startScanner()
                                                    {
                                                              scanner.enable();
                                                              scanner.decodeEvent = "url('javascript:onDecode(%json)')";
                                                              scanner.start(); // Soft starts the scanner, the same as pressing the trigger
                                                    }
                                                    function stopScanner()
                                                    {
                                                              scanner.stop(); // Soft stops the scanner, the same as releasing the trigger
                                                    }
                                                    function onDecode(scanObject)
                                                    {
                                                              document.getElementById('data').innerHTML = scanObject.data;
                                                    }
                                          </script>
                                </head>
                                <body>
                                          <h1 style="display: inline; padding-right:10px">Example of soft scanning</h1>
                                          <button onclick="startScanner()">Start Scanning</button>
                                          <button onclick="stopScanner()">Stop Scanning</button>
                                          <div>Scanned Barcode: <span id="data"></span></div>
                                </body>
                      <head>