beautypg.com

Appendix f – embedded control characters – WaveWare SPS-5 v9E User Manual

Page 37

background image

Appendix F – Embedded Control Characters

When using “WaveWare mode” it is not necessary to make use of the control character. Since WaveWare mode
does not use the control character it is only necessary to hit carriage return on your keyboard to have it show up on
the pager display.

To embed a control character in a TAP mode paging message however, it is necessary include a control
character followed by an offset version of the control character you want to embed. You offset the control character by
adding 40 HEX to the control character, to make the character printable. Adding 40 HEX to Carriage Return gives you M.
Adding 40 HEX to Line Feed gives you J. The character combination of M causes a Carriage Return control
character to be embedded in the encoded paging message, while J causes a Line Feed control character to be
embedded. The character needs to be passed to the WaveWare v9E Paging Encoder as a HEX character.

In the WaveWare v9E Paging Encoder Setup software, you can embed a Carriage Return by entering in the
message body, and embed a Line Feed character by entering in the message body. The use of the
character will be done by the software.

In the Microsoft Visual Basic programming language, you can use the following code example to define the embedded
control character string to be delivered through the serial port to the paging system. In this example, we are embedding
only the Carriage Return control character:

DIM CarriageReturnString As String,

DIM MessageLine1 As String

DIM MessageLine2 As String

DIM TXString As String

CarriageReturnString = Chr(26) & "M"

LineFeedString = Chr(26) & "J"

MessageLine1 = "Line 1 of test message"

MessageLine2 = "Line 2 of test message"

TXString = MessageLine1 & CarriageReturnString & MessageLine2

form1.MSComm1.Output = TXString















This completes the “Embedded Control Characters”

This manual is related to the following products: