Hex code from your friend:
00 00 00 00 00 01 Z00 02 AA 1B 20 1C 31
00 00 00 00 00 > five NUL characters
01 > SOH (HEX)
Z00 > Z = type code (all signs), 00 sign address (ASCII)
02 > STX (HEX)
AA > A = Write text file command, A = file label (ASCII)
1B > ESC (HEX)
20 > Middle Line, Text Centered Vertically (HEX)
1C > Select Character Color (HEX)
31 > Red (HEX)
As a test, see if this code will display anything:
byte command[] = "\x00\x00\x00\x00\x00\x01Z00\x02""AA\x1B\x20\x1C\x31PAIK Auditorium\x04";
void setup() {
Serial.begin(9600);
Serial2.begin(9600);
delay(1000);
Serial.write(command, sizeof(command) - 1);
Serial.println();
for (size_t i = 0; i < sizeof(command) - 1; i++) {
if (command[i] < 0x10)
Serial.print('0');
Serial.print(command[i], HEX);
Serial.print(' ');
}
Serial.println();
Serial2.write(command, sizeof(command) - 1);
}
void loop() {
}
Are you sure you have the RS232 converter wired to the sign correctly?