gus89

Member Since: March 18, 2012

Country: Spain

  • Product LCD-09351 | about 2 years ago

    Hello, thank you in advance for your help, I am using this display connected to the serial output of a device based on Cinterion XT65, when I try to send control sequences to clear the screen or running the demo, shows strange characters instead of running commands (see picture in http://www.flickr.com/photos/g_riveras/6992596295/). I am using the following routine Java ME:

    //—————————————————————— protected void startApp() throws MIDletStateChangeException {

             try
             {
                    byte[] buffer0 = new byte[2];
    
                    CommConnection com0 = (CommConnection) Connector.open("comm:com0;" +
                           "baudrate=115200;" +
                           "bitsperchar=8;" +
                           "stopbits=1;" +
                           "parity=none;" +
                           "blocking=on;" + 
                        "autocts=off;" +
                        "autorts=off");
    
                    OutputStream com_os0 = com0.openOutputStream();
    

    // Limpia pantalla buffer0[0] = 0x7C;
    buffer0[1] = 0x00;
    com_os0.write(buffer0);

    // Ejecuta demo de funcionamiento buffer0[0] = 0x7C;
    buffer0[1] = 0x04;
    com_os0.write(buffer0);

             }
             catch (Exception e)
             {
                    e.printStackTrace();
             }
    
             destroyApp(true);
    
       }
    

    //——————————————————————

    Thanks.

Name Pieces Total
Gustavo
0 0