126
3.3.2 Communications
Parameters
In System Mode and user programs written in BHT-BASIC, you can set the communications parameters
listed below.
Communications Port
IrDA interface
Direct-connect interface
Transmission Speed
2400, 9600, 19200, 38400,
57600, or 115200 bps
300, 600, 1200, 2400, 4800, 9600,
9200, 38400, 57600, or 115200 bps
Character Length
8 bits
7 or 8 bits
Vertical Parity
None
Odd, even, or none
Stop Bit Length
1 bit
1 or 2 bits
In System Mode
Refer to Chapter 2, Section 2.5.3, [4.5], "Setting the communications environments."
In BHT-BASIC
To set the transmission speed, character length, vertical parity, and stop bit length (For the IrDA
interface, set the transmission speed only), use the OPEN "COM:" statement in BHT-BASIC.
OPEN "COM: ... "
Opens the interface port selected in System Mode.
OPEN "COM1: ... "
Opens the IrDA interface port for data transmission, irrespective of the setting
in System Mode.
OPEN "COM2: ... "
Opens the direct-connect interface port for data transmission, irrespective of
the setting in System Mode.
Note that it is impossible to open both the IrDA and direct-connect interface ports concurrently.
Through the interface port opened by the
OPEN "COM:"
statement, the
XFILE
statement transmits a
designated file.