How to send #27(ESC) Char via Rs-232?? , HELP !

Hello,

We want to use lcd display with ROS to show many usefull informations, but to take full control on this lcd with serial controler, We must send via serial port ascii char #27 (ESC) . Now we only use :

\a bell (alarm), character code 7
\b backspace, character code 8
\f form feed, character code 12
\n newline, character code 10
\r carriage return, character code 13
\t tabulation, character code 9
\v vertical tabulation, character code 11
_ space, character code 32

But there isn’t char #27. :cry:

Help, it is very important for us.
Mayeby someone now how to do it.

Here is a hack how to send text from routerOS via RS232
http://wiki.mikrotik.com/wiki/Sending_text_out_over_a_serial_port

To get ESC or any other char you can write backslash and corresponding HEX value (ESC - \1B) (HEX letters have to be in capital)

e.g. - “This is an ESC charatcer \1B”

THX raivis-v

It’s work fine. :smiley:

When I finish our scripts, I show you all.

Did you progress with this ?