Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

The RS232 transport handler allows the communication over the RS232 standard

Options

  • port: The device path/port
  • baud: The baud number (default: 9600) (optional)
  • parity: The parity of the transfer (default: No parity) (optional)
  • databits: The number of databits (default: 8) (optional)
  • stopbits: The number of stop bits (default: 1) (optional)

Example

PQL

Code Block
themeEclipse
languagejavascript
titleRS232 Transport Handler
linenumberstrue
input = ACCESS({source='Source',
wrapper='GenericPush',
transport='RS232',
protocol='CSV',
dataHandler='Tuple',
options=[['port', '/dev/ttyACM0'],['baud', '9600']],
schema=[
['id', 'Double'],
['data', 'String']]
})

output = SENDER({sink='Sink',
wrapper='GenericPush',
transport='RS232',
protocol='CSV',
dataHandler='Tuple',
options=[['port', '/dev/ttyACM0'],['baud', '9600']]
}, input)

CQL

Code Block
themeEclipse
languagesql
titleRS232 Transport Handler
linenumberstrue
CREATE STREAM source (id Double, data STRING)
    WRAPPER 'GenericPush'
    PROTOCOL 'CSV'
    TRANSPORT 'RS232'
    DATAHANDLER 'Tuple'
    OPTIONS ( 'port' '/dev/ttyACM0', 'baud' '960')


CREATE SINK sink (id Double, data STRING)
    WRAPPER 'GenericPush'
    PROTOCOL 'CSV'
    TRANSPORT 'RS232'
    DATAHANDLER 'Tuple'
    OPTIONS ( 'port' '/dev/ttyACM0', 'baud' '960')