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

RS232 Transport Handler
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

RS232 Transport Handler
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')
  • No labels