Model Railroad System 2.2.2
|
Connect to a CAN bus using GridConnect formatted message over a USB Serial port. More...
Public Member Functions | |
CANGridConnectOverUSBSerial (name,...) | |
Constructor: create a connection to Grid Connect USB serial device. More... | |
Static Public Member Functions | |
static | findAvailableComPorts () |
Return a list of available (USB) serial ports. More... | |
static | buildPortandnidDialog () |
Function to construct the Dialog to ask the user for a port and Node ID. More... | |
static | _CancelOpenTransport () |
Function bound to the Cancel button. More... | |
static | _OpenTransport () |
Function bound to the Open button. More... | |
static | requiredOpts () |
Return the default option list. More... | |
static | drawOptionsDialog (...) |
Pop up the Options Dialog box. More... | |
Static Public Attributes | |
static | portandnidDialog |
Dialog to ask the user for a port and Node ID. More... | |
static | portLCombo |
LabelComboBox containing all possible serial port devices. More... | |
static | nidLEntry |
LabelEntry containing the Node ID. More... | |
Private Attributes | |
gccomponent | |
GC Component. More... | |
ttyfd | |
The tty I/O channel. More... | |
Connect to a CAN bus using GridConnect formatted message over a USB Serial port.
Options:
hh:hh:hh:hh:hh:hh
which is a 48 bit number expressed as 6 pairs of hexadecimal digits separacted by colons (:). lcc::CANGridConnectOverUSBSerial::CANGridConnectOverUSBSerial | ( | name | , |
... | |||
) |
Constructor: create a connection to Grid Connect USB serial device.
Connect to the CAN bus via a Grid Connect USB serial port interface.
name | The name of the instance. |
... | The options:
|
References i.
|
static |
Function bound to the Cancel
button.
Closes the dialog box and returns the empty string.
|
static |
Function bound to the Open
button.
Closes the dialog box and returns the options needed to open the transport.
-nid
and -port
options.
|
static |
Function to construct the Dialog to ask the user for a port and Node ID.
|
static |
Pop up the Options Dialog box.
Pops up the Options Dialog box and collects the options needed to open the CANGridConnectOverUSBSerial object.
... | Options:
|
|
static |
Return a list of available (USB) serial ports.
This method does a platform specific search for possible serial ports to use to communicate over the CAN bus.
|
static |
Return the default option list.
Returns the default options for the options dialog.
|
private |
GC Component.
|
static |
LabelEntry containing the Node ID.
|
static |
Dialog to ask the user for a port and Node ID.
|
static |
LabelComboBox containing all possible serial port devices.
|
private |
The tty I/O channel.