...
Code Block |
---|
CreateObject("roSerialPort", port As IntegerDynamic, baud_rate As Integer) |
port As Integer
: The port enumeration of the serial device. :- Most standard serial devices enumerate on port 0.
- To communicate with the serial port of an OPS display (i.e. with the HO523), use port 1.
- To communicate with a USB-serial device (such as a GPS receiver), use port 2.
port As String
: If multiple USB-serial devices are connected to the player, the device can be specified with a raw value ("RAW:<raw_enumeration>"
) or a friendly name ("USB:<friendly_name>"
). These values correspond to the<raw>
and<fid>
values returned by the roDeviceInfo.GetUSBTopology() method.baud_rate As Integer
: The baud rate for serial communication. The serial port supports the following baud rates: 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400.
Code Block | ||
---|---|---|
| ||
serial1 = CreateObject("roSerialPort", 0, 115200) serial2 = CreateObject("roSerialPort", "RAW:4-1:1.0", 57600) |
The roSerialPort object sends the following event types:
...