Created
May 19, 2021 01:44
-
-
Save yarshure/70a7cd7ea8c17da11728b5a4f8e6ce10 to your computer and use it in GitHub Desktop.
nanokdp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apple@apples-MBP bin % nanokdp -h | |
Serial device (1) : /dev/cu.Bluetooth-Incoming-Port | |
Serial device (2) : /dev/cu.usbserial-DT03V19V | |
Select a device by its number (^D to abort): q | |
usage: nanokdp [-d device [-Z]] [-c config] [-f none|sw|hw] [-k usecs] [-K [-p port]] [-w usecs] [-y[<format>]] [-e] [-b] [-n] [-l] [-L filename] [-s] [-x dir] [-I][-P plugin] | |
where options are: | |
-d open a serial port of the given device | |
(example: -d /dev/tty.USA19QW213P1.1) | |
-c use this port configuration: baud,parity,data bits,stop bits | |
(example: -c 9600,N,8,1) | |
nanokdp's default port config is 115200,N,8,1 | |
-f type of flow control, defaults to none | |
(none = no flow control, sw = XON/XOFF, hw = RTS/CTS) | |
-h Hippo I/O multiplexing, defaults to on | |
-k specify number of microseconds to wait after sending each byte in kdp packets | |
-K enable network proxy, defaults to on | |
-p set KDP proxy UDP port, defaults to 41139 (must be between 41139-41178, inclusive) | |
-o set a fixed hippo port mapping in the format device_port:host_port i.e. 31337:1234 | |
--bind=<ip address> The IP address that the nanocom process will bind to and listen for connections | |
-y enable per-line timestamp prefix (with sub-second resolution) | |
(long option form with optional format argument is: --timestamp[=<format>]; | |
note to get sub-second resultion with the non-default format requires the non-standard | |
.sss specifier [up to 6 digits resolution] (example: --timestamp="%FT%T.ssssss" for ISO format) | |
-w specify number of microseconds to wait after sending each character | |
(Use a value of 20000 if trying to connect with Open Firmware) | |
-e toggle local echo, defaults to off | |
-b toggle backspace mapping, defaults to on | |
when on, delete keys (0x7F) are converted to backspace (0x08) | |
-n toggle newline mapping, defaults to off | |
when on, newlines (0x0A) are converted to carriage returns (0x0D) | |
-P Load a nanocom plugin Dylib | |
-l toggle logging in nanocom.log, defaults to off | |
-L use the named file as the log for nanocom | |
(example: -L /tmp/serial.log) | |
-N run non-interactively | |
-s search and select serial devices in /dev | |
-v display version number | |
-x root path to store transferred files | |
-z enable packet debug dumps | |
-I disable carriage returns bytes from serial port | |
-Z send break on a serial port and then quit | |
The NANOCOM environment variable can be set to a string containing | |
options that you would like applied automatically e.g. | |
export NANOCOM="-e -b" | |
would toggle local echo and backspace mapping. This can be used to | |
override the defaults. | |
Press 'Control ]' keys for configuration menu | |
Report bugs to: nanocom | all |
Select a device by its number (^D to abort): c
usage: nanodebug [-d device [-Z]] [-c config] [-f none|sw|hw] [-k usecs] [-K [-p port]] [-w usecs] [-y[]] [-e] [-b] [-n] [-l] [-L filename] [-s] [-x dir] [-I][-P plugin]
where options are:
-d open a serial port of the given device
(example: -d /dev/tty.USA19QW213P1.1)
-c use this port configuration: baud,parity,data bits,stop bits
(example: -c 9600,N,8,1)
nanodebug's default port config is 115200,N,8,1
-f type of flow control, defaults to none
(none = no flow control, sw = XON/XOFF, hw = RTS/CTS)
-h Hippo I/O multiplexing, defaults to on
-k specify number of microseconds to wait after sending each byte in kdp packets
-K enable network proxy, defaults to on
-p set KDP proxy UDP port, defaults to 41139 (must be between 41139-41178, inclusive)
-o set a fixed hippo port mapping in the format device_port:host_port i.e. 31337:1234
--bind=<ip address> The IP address that the nanocom process will bind to and listen for connections
-y enable per-line timestamp prefix (with sub-second resolution)
(long option form with optional format argument is: --timestamp[=<format>];
note to get sub-second resultion with the non-default format requires the non-standard
.sss specifier [up to 6 digits resolution] (example: --timestamp="%FT%T.ssssss" for ISO format)
-w specify number of microseconds to wait after sending each character
(Use a value of 20000 if trying to connect with Open Firmware)
-e toggle local echo, defaults to off
-b toggle backspace mapping, defaults to on
when on, delete keys (0x7F) are converted to backspace (0x08)
-n toggle newline mapping, defaults to off
when on, newlines (0x0A) are converted to carriage returns (0x0D)
-P Load a nanocom plugin Dylib
-l toggle logging in nanocom.log, defaults to off
-L use the named file as the log for nanocom
(example: -L /tmp/serial.log)
-N run non-interactively
-s search and select serial devices in /dev
-v display version number
-x root path to store transferred files
-z enable packet debug dumps
-I disable carriage returns bytes from serial port
-Z send break on a serial port and then quit
The NANOCOM environment variable can be set to a string containing
options that you would like applied automatically e.g.
export NANOCOM="-e -b"
would toggle local echo and backspace mapping. This can be used to
override the defaults.
Press 'Control ]' keys for configuration menu
Report bugs to: nanocom | all
exitcode 2 - no device found
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
usage: nanocom [-d device [-Z]] [-c config] [-f none|sw|hw] [-k usecs] [-K [-p port]] [-w usecs] [-y[]] [-e] [-b] [-n] [-l] [-L filename] [-s] [-x dir] [-I][-P plugin]
where options are: