Usage: hcitcptest [-h hostname] [-f file] -t tcp_encoding_type -p portWhere: -n = run in non-interactive mode, do not read from stdin should only be used in server mode -h = an optional hostname to connect to If -h is not specified, hcitcptest will work as a server, listening on the port specified by the -p option -f = an optional filename. All data recieved from the host will be written to this file. (Including any encoding characters) -t = tcp_encoding_type one of: 2 2 byte length encoding 2e 2 byte length encoding (exclusive of encoding) 4 4 byte length encoding 4e 4 byte length encoding (exclusive of encoding) orsos ORSOS 2 byte length encoding mlp HL7 MLP encoding raw Data is sent "as-is" w/ Line Feed nlf Data is sent "as-is" w/o Line Feed -p = port to listen on or connect to
#!/usr/bin/kship='10.123.123.123'port='31022'hcitcptest -h $ip -t mlp -p $port <<- !MSH|^~&|the rest of the message segments!
Originally posted by Tim Wanner