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 !

MC3190

WinCe 6

test code snippet:

<html>

<head>

<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>

</head>

<body>

 

<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';

        comm.open();

        comm.close();

    } else {

        alert("comm doesn´t exists");

    }

}

</script>

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

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

</body>

</html>