Shop OBEX P1 Docs P2 Docs Learn Events
Serial Control of Christie LCD Projector — Parallax Forums

Serial Control of Christie LCD Projector

SAAMSAAM Posts: 5
edited 2006-11-17 20:57 in General Discussion
Howdy all!

I'm trying to control a Christie LX20 projector with a Javelin Stamp and I'm having a hard time correlating Christie's documentation to Parallax's to what (little) I know about Hex & serial.

Christie says:
..all communications (commands and replies) are hexadecimal. Ensure you are sending hexidecimal. Commands are case sensitive. Make sure to always send letters in upper case. Example: the Power On command is COO(CR) where (CR) is the Carriage Return character, so send 43h 30h 30h 0Dh

What I'm assuming the Christie controller wants is the hex values
43
30
30
D

Question 1: is this what y'all would assume?

Question 2: if so, is there a javelin/java class/method to send hex via serial?
(I remember there being specific methods native to the Basic stamp for this)

Thanks!

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2006-11-17 20:57
    What is meant is that you must send the ascii values,
    so you can send 0x43,0x30,0x30,0x0D which is the same
    as sending the string "C00\r"

    You use the Uart object
    Uart lcd = new Uart(Uart.dirTransmit,CPU.pin0,Uart.dontInvert,Uart.speed9600,Uart.stop1);

    //send command 0
    lcd.sendString("C00\r");

    If there is any reply, use another uart object
    Uart reply = new Uart(Uart.dirReceive,CPU.pin1,Uart.dontInvert,Uart.speed9600,Uart.stop1);

    if (reply.byteAvailable()) {
    · int c = reply.receiveByte();
    }

    If a reply consists of multiple bytes, assemble received bytes into a char array or stringbuffer.

    regards peter
Sign In or Register to comment.