Package tuwien.auto.calimero.tools
Class ProgMode
java.lang.Object
tuwien.auto.calimero.tools.ProgMode
- All Implemented Interfaces:
Runnable
ProgMode lists the current KNX devices in programming mode, and allows to set the programming mode of a device. The
tool supports network access using KNXnet/IP, KNX IP, USB, FT1.2, and TP-UART.
Run the tool by using either main(String[]) or Runnable.run().
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddevicesInProgMode(tuwien.auto.calimero.IndividualAddress... devices) static voidEntry point for running the ProgMode tool from the command line.protected voidonCompletion(Exception thrown, boolean canceled) Called by this tool on completion.voidrun()
-
Constructor Details
-
ProgMode
Creates a new ProgMode object using the supplied arguments.- Parameters:
args- options for the tool, seemain(String[])- Throws:
tuwien.auto.calimero.KNXIllegalArgumentException- on missing or wrong formatted option value
-
-
Method Details
-
main
Entry point for running the ProgMode tool from the command line.A communication device, host, or port identifier has to be supplied to specify the endpoint for KNX network access.
To show the usage message of this tool, use the command line option --help (or -h).
Command line options are treated case sensitive. Available options are:--help -hshow help message--versionshow tool/library version and exit--localhostid local IP/host name--localportnumber local UDP port (default system assigned)--port -pnumber UDP port on host (default 3671)--nat -nenable Network Address Translation--ft12 -fuse FT1.2 serial communication--usb -uuse KNX USB communication--tpuartuse TP-UART communication--medium -mid KNX medium [tp1|p110|rf|knxip] (defaults to tp1)--domainaddress domain address on open KNX medium (PL or RF)--knx-address -kKNX address KNX device address of local endpoint--localuse local device management
--knx-addressoption is only necessary if an access protocol is selected that directly communicates with the KNX network, i.e., KNX IP or TP-UART. The selected KNX individual address shall be unique in a network, and the subnetwork address (area and line) should be set to match the network configuration.Supported commands (the device address is not needed with local device management):
ondevice address switch programming mode onoffdevice address switch programming mode off
- Parameters:
args- command line arguments for the tool
-
run
public void run() -
devicesInProgMode
protected void devicesInProgMode(tuwien.auto.calimero.IndividualAddress... devices) -
onCompletion
Called by this tool on completion.- Parameters:
thrown- the thrown exception if operation completed due to a raised exception,nullotherwisecanceled- whether the operation got canceled before its planned end
-