-----------------------------------------------------------------

[*] Emulating binary name: trattcom
[*] Emulator used: qemu-arm-static
[*] Using root directory: /logs/s115_usermode_emulator/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract (1/2)
[*] Using CPU config: 
[*] Emulating binary: /usr/bin/trattcom

[*] Change permissions +x to /logs/s115_usermode_emulator/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/./usr/bin/trattcom.
[*] Emulating binary ./usr/bin/trattcom with parameter NONE
Failed to open port
Failed to open/initialize serial port, exiting..
[*] Emulating binary ./usr/bin/trattcom with parameter -v
Option parsing failed: Missing argument for -v
[*] Emulating binary ./usr/bin/trattcom with parameter -V
===== trattcom starting... (TID 3)
fd-1 = /dev/ttymxc1 (baudrate = 921600)
Failed to open port
Failed to open/initialize serial port, exiting..
===== trattcom exiting..
[*] Emulating binary ./usr/bin/trattcom with parameter -h
Usage:
  trattcom [OPTION?]

Interactive mode is entered if the port parameter is missing.

Help Options:
  -h, --help                  Show help options

Application Options:
  -x, --version               Print version and exit.
  -d, --device                Serial device (try ls /dev/serial/by-id) [default /dev/ttymxc1]
  -b, --baud_rate             Baud rate to use when opening serial connection [default 4000000]
  -l, --list                  List available ports (for non interactive use).
  -p, --port                  Port to set/get, if port_value (-v) or threshold (-r) or blink (-B) are missing, a get is assumed
  -v, --value                 Port value to set
  -D, --direction             Port direction request
  -B, --blink                 Port blink high:low:initial
  -t, --timeout               Timeout for a command in non-interactive mode (default 2 seconds)
  -T, --temperature           Get junction temperature
  -V, --verbose               Verbose console output
  -r, --add_threshold         Add ADC threshold value
  -R, --delete_threshold      Delete ADC threshold value
  -L, --list_thresholds       List ADC thesholds
  -X, --target_version        Show target version
  -m, --target_md5            Show target MD5 version
  -u, --target_uptime         Show target uptime (in seconds)
  -q, --enable_wiegand_1      Enable Wiegand 1 driver
  -Q, --disable_wiegand_1     Disable Wiegand 1 driver
  -w, --enable_wiegand_2      Enable Wiegand 2 driver
  -W, --disable_wiegand_2     Disable Wiegand 2 driver
  -g, --digpot                Set digital potentiometer output (0-255)
  --rs485_send_dev            RS485 send USART device
  --rs485_test_dev            RS485 test USART device
  --rs485_string              RS485 string to send/receive (default 'test')

Examples:
  Enter interactive mode
  $trattcom

  Set port X5 (EN_READER) to value 1
  $trattcom -p X5 -v 1
  or
  $trattcom -p EN_READER -v 1

  Set port C9 to value 0, connect on /dev/ttyUSB0 @ 115200, timeout 3 seconds
  $trattcom -d /dev/ttyUSB0 -b 115200 -p C9 -v 0 -t 3

  Get port value C8
  $trattcom -p C8

  Set a threshold value on A0 to 500 AD units
  $trattcom -p A0 -r 500

  Delete the threshold value on A0 with 500 AD units
  $trattcom -p A0 -R 500

  List existing thesholds
  $trattcom -L

  Set blink mode on A0 200ms high, 200ms low starting with high state
  $trattcom -p A0 -B 200:200:1

  Get the direction of port B6
  $trattcom -p B6 -D
[*] Emulating binary ./usr/bin/trattcom with parameter -help
Usage:
  trattcom [OPTION?]

Interactive mode is entered if the port parameter is missing.

Help Options:
  -h, --help                  Show help options

Application Options:
  -x, --version               Print version and exit.
  -d, --device                Serial device (try ls /dev/serial/by-id) [default /dev/ttymxc1]
  -b, --baud_rate             Baud rate to use when opening serial connection [default 4000000]
  -l, --list                  List available ports (for non interactive use).
  -p, --port                  Port to set/get, if port_value (-v) or threshold (-r) or blink (-B) are missing, a get is assumed
  -v, --value                 Port value to set
  -D, --direction             Port direction request
  -B, --blink                 Port blink high:low:initial
  -t, --timeout               Timeout for a command in non-interactive mode (default 2 seconds)
  -T, --temperature           Get junction temperature
  -V, --verbose               Verbose console output
  -r, --add_threshold         Add ADC threshold value
  -R, --delete_threshold      Delete ADC threshold value
  -L, --list_thresholds       List ADC thesholds
  -X, --target_version        Show target version
  -m, --target_md5            Show target MD5 version
  -u, --target_uptime         Show target uptime (in seconds)
  -q, --enable_wiegand_1      Enable Wiegand 1 driver
  -Q, --disable_wiegand_1     Disable Wiegand 1 driver
  -w, --enable_wiegand_2      Enable Wiegand 2 driver
  -W, --disable_wiegand_2     Disable Wiegand 2 driver
  -g, --digpot                Set digital potentiometer output (0-255)
  --rs485_send_dev            RS485 send USART device
  --rs485_test_dev            RS485 test USART device
  --rs485_string              RS485 string to send/receive (default 'test')

Examples:
  Enter interactive mode
  $trattcom

  Set port X5 (EN_READER) to value 1
  $trattcom -p X5 -v 1
  or
  $trattcom -p EN_READER -v 1

  Set port C9 to value 0, connect on /dev/ttyUSB0 @ 115200, timeout 3 seconds
  $trattcom -d /dev/ttyUSB0 -b 115200 -p C9 -v 0 -t 3

  Get port value C8
  $trattcom -p C8

  Set a threshold value on A0 to 500 AD units
  $trattcom -p A0 -r 500

  Delete the threshold value on A0 with 500 AD units
  $trattcom -p A0 -R 500

  List existing thesholds
  $trattcom -L

  Set blink mode on A0 200ms high, 200ms low starting with high state
  $trattcom -p A0 -B 200:200:1

  Get the direction of port B6
  $trattcom -p B6 -D
[*] Emulating binary ./usr/bin/trattcom with parameter --help
Usage:
  trattcom [OPTION?]

Interactive mode is entered if the port parameter is missing.

Help Options:
  -h, --help                  Show help options

Application Options:
  -x, --version               Print version and exit.
  -d, --device                Serial device (try ls /dev/serial/by-id) [default /dev/ttymxc1]
  -b, --baud_rate             Baud rate to use when opening serial connection [default 4000000]
  -l, --list                  List available ports (for non interactive use).
  -p, --port                  Port to set/get, if port_value (-v) or threshold (-r) or blink (-B) are missing, a get is assumed
  -v, --value                 Port value to set
  -D, --direction             Port direction request
  -B, --blink                 Port blink high:low:initial
  -t, --timeout               Timeout for a command in non-interactive mode (default 2 seconds)
  -T, --temperature           Get junction temperature
  -V, --verbose               Verbose console output
  -r, --add_threshold         Add ADC threshold value
  -R, --delete_threshold      Delete ADC threshold value
  -L, --list_thresholds       List ADC thesholds
  -X, --target_version        Show target version
  -m, --target_md5            Show target MD5 version
  -u, --target_uptime         Show target uptime (in seconds)
  -q, --enable_wiegand_1      Enable Wiegand 1 driver
  -Q, --disable_wiegand_1     Disable Wiegand 1 driver
  -w, --enable_wiegand_2      Enable Wiegand 2 driver
  -W, --disable_wiegand_2     Disable Wiegand 2 driver
  -g, --digpot                Set digital potentiometer output (0-255)
  --rs485_send_dev            RS485 send USART device
  --rs485_test_dev            RS485 test USART device
  --rs485_string              RS485 string to send/receive (default 'test')

Examples:
  Enter interactive mode
  $trattcom

  Set port X5 (EN_READER) to value 1
  $trattcom -p X5 -v 1
  or
  $trattcom -p EN_READER -v 1

  Set port C9 to value 0, connect on /dev/ttyUSB0 @ 115200, timeout 3 seconds
  $trattcom -d /dev/ttyUSB0 -b 115200 -p C9 -v 0 -t 3

  Get port value C8
  $trattcom -p C8

  Set a threshold value on A0 to 500 AD units
  $trattcom -p A0 -r 500

  Delete the threshold value on A0 with 500 AD units
  $trattcom -p A0 -R 500

  List existing thesholds
  $trattcom -L

  Set blink mode on A0 200ms high, 200ms low starting with high state
  $trattcom -p A0 -B 200:200:1

  Get the direction of port B6
  $trattcom -p B6 -D
[*] Emulating binary ./usr/bin/trattcom with parameter --version
Version: 7da02c9
Machine: A1610
[*] Emulating binary ./usr/bin/trattcom with parameter version
Failed to open port
Failed to open/initialize serial port, exiting..

-----------------------------------------------------------------