default message on 633

florin

New member
I'm using the serial CF-633 on Linux with lcdproc and it works great. Questions:

1. Is there a way to change the default message that's displayed when the system boots up? ("Crystalfontz 633 HW:.......") And, of course, store the custom message in the 633 so that it always displays the same thing when it's powered up.
Just curious: if there is a way to change it, can it be reset to factory default afterwards? (I don't need that, I'm just asking)

2. In theory, when LCDd (the lcdproc daemon) shuts down, if the daemon correctly resets the display, then the display should show the default message, right? (the message I'm asking about in question #1)
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
 

CF Tech

Administrator
1) Yes. Just use commands 7 & 8 to show whatever you want, and command 4 to store it.

2) The CFA-633 pulls up the default message screen when it powers on or is told to reset itself. It will not display the default screen just because the daemon stops. The daemon would have to instruct the CFA-633 to show a particular message, or send the CFA-633 a reset command just before the daemon exits.
 

florin

New member
Ok, can you help me out a little bit please?
I launched the 633test Linux utility, it's connected to the display...

[root@demo ~]# ./test633 /dev/ttyS0 19200
Ultra-simple CFA-631 / CFA-633 / CFA-635 command-line communications example.
Crystalfontz America, Inc. http://www.crystalfontz.com

Usage:
./test633 PORT BAUD
PORT is something like "/dev/ttyS0" or "/dev/usb/ttyUSB0"
BAUD is 19200 or 115200
To clear the display, enter "clear" as an optional third parameter

Serial_Init:: success
"/dev/ttyS0" opened at "19200" baud.

C=95(31 = Send Data to LCD (row,col)),L=0,D="",CRC=0x245F78
C=95(31 = Send Data to LCD (row,col)),L=0,D="",CRC=0x245F78

Ctrl-C to exit.
Updated display, now waiting for packets
What do I have to type now to put something on the first line? Second line?
What to type to store the current state?
 

CF Tech

Administrator
Edit the following lines into test633.c:

Code:
  //Send line 1 to the 633.
  char
    line1[16];
  strcpy(line1,"Florin in       ");
  outgoing_response.command = 7;
  memcpy(outgoing_response.data, line1, 16);
  outgoing_response.data_length=16;
  send_packet();

  //Send line 2 to the 633.
  char
    line2[16];
  strcpy(line2,"Mountain View,CA");
  outgoing_response.command=8;
  memcpy(outgoing_response.data,line2,16);
  outgoing_response.data_length=16;
  send_packet();

  //Save this state as the boot state
  outgoing_response.command=4;
  outgoing_response.data_length=0;
  send_packet();
 
Top