2 Replies Latest reply on May 14, 2018 7:01 AM by Tomasz Forstmeier

    EB comm API doesn´t work

    Tomasz Forstmeier

      I use the comm rho browser API, but it doesn´t send or receive any data on COM1.

      I get no errors from the API.

      COM1 exists and can send data with a c# test program.

      Is the comm API compatible to my setup:


      Enterprisebrowser 1.2 or 1.8 (tested with both versions)

      API Version: RhoElements 2.x API !


      WinCe 6



      test code snippet:




      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

          <TITLE>MyApp Start Page</TITLE>


        <script type="text/javascript" charset="utf-8" src="ebapi.js"></script>

        <script type="text/javascript" charset="utf-8" src="eb.application.js"></script>

        <script type="text/javascript" charset="utf-8" src="eb.rhofile.js"></script>

        <script type="text/javascript" charset="utf-8" src="elements.js"></script>





      <script type="text/javascript" charset="utf-8">


      function commCallback(params){

          alert('Received the following data on the Comm port:' + params['data']);



      function print_run() {


          if (typeof comm != "undefined") {


              // comm.endChar = 35;

              // comm.time = 5000;

              // comm.commEvent = "url('JavaScript:commCallback(%json);')";


              // com port works with default parameter

              comm.writeString = 'Hello World';




          } else {

              alert("comm doesn´t exists");






      <button onClick="print_run();"            > print </button>

      <button onClick="EB.Application.quit()" > close browser </button>