EB comm API doesn´t work

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>



Anonymous (not verified)
Hi Tomasz,Do you see any

Hi Tomasz,

Do you see any errors, warnings or info in the Enterprise Browser log file?  Looking at the source code there should be a lot of logging in that function.

The order in your print_run() function is wrong, you should open the port, then write to it, then close it when you are finished but I am presuming that is just a typo

Vote up!
Vote down!

Points: 1

You voted ‘up’

Tomasz Forstmeier
Hi Darryn,I found the fault,

Hi Darryn,

I found the fault, COM1 was the wrong port. It´s the internal serial port of the MC3190.

We have an external USB<->serial converter on COM9.

Nevertheless thanks for your fast support.

Now it works.

Vote up!
Vote down!

Points: 0

You voted ‘up’

Log in to post comments