hcitcptest

This command helps debug TCP/IP interfaces.

hcitcptest [-n] [-h hostname] [-f file] -t tcp_encoding_type 
-p port 
  • -n specifies to run in non-interactive mode, and does not read from stdin. This should be used only in server mode.
  • -h hostname specifies an optional host name. If hostname is not specified, then hcitcptest works as a server that listens on the port that is specified by the -p port option. Use this argument to configure as server or client.
  • -f file specifies an optional file name. All data received from the host is written to this file, including any encoding characters.
  • -t tcp_encoding_type specifies encoding type:
    • 2 specifies 2-byte length-encoding.
    • 2e specifies 2-byte length-encoding, exclusive of encoding.
    • 4 specifies 4-byte length-encoding.
    • 4e specifies 4-byte length-encoding, exclusive of encoding.
    • orsos specifies ORSOS 2-byte length-encoding.
    • mlp specifies HL7 MLP encoding.
    • raw specifies data is sent as-is with line feed.
    • nlf specifies data is sent as-is without line feed.
  • -p port specifies the port on which to listen or connect.