resend command

SMAT handles resending using the resend command through hcicmd.

hcicmd -p process -c "thread_name resend <ib 
[dest_thread]|ob> data|reply priority msgfilename 
len10|nl|eof [metafilename]"

The optional msgfilename argument to the resend command is used for metadata resending.

  • msgfilename is an optional argument. If this argument is not supplied, then the command works the same as version 5.7.
  • msgfilename is the temp file that stores the message contents, which is unchanged. A new temp file is used to store edited metadata. This is referenced by msgfilename. The new temp file is deleted after the resend is complete.

Resending involves two temp files. Correct functioning depends on the number of messages in the message temp file matching the number of metadata entries in the metadata temp file. To assure that corrupt data is not sent in the case of a mismatch, resend counts the number of messages and corresponding metadata in both files. This is performed before running the resend command. No messages are resent in the case of a mismatch.

Specifying the destination threads when resending messages

The uniform destinations for all resent messages can be specified on the Network Monitor and SMAT Resend dialog boxes. For the reply type, multiple destinations are not supported.

For other editable metadata, they can be the same as the destinations. Destinations in the metadata file are overridden by dest from the command line.

Note: When specifying the destination thread for the resend, inter-site threads are not supported.

On the command line, the resend command takes dest_for_ib as the option between Location and Type:

resend ib_pre_tps|ib_post_tps|ob_pre_tps|ob_post_tps [dest_for_ib] data|reply priority filename len10|nl|eof [metafilename]

Examples

hcicmd conn_6 resend ib_pre_tps {conn_1 conn_3} data 5120 d:\\-A.txt nl

This places two messages from file d:\-A.txt into the ib_pre_tps data queue.

hcicmd conn_6 resend ib_pre_tps {conn_1 conn_3} datc 5120 d:\\-A.txt nl

Response:

Type must be data or reply

resend ib_pre_tps|ib_post_tps|ob_pre_tps|ob_post_tps [dest_for_ib] data|reply pri filename len10|nl|eof [metafilename]
hcicmd conn_6 resend ib_pre_tps {conn_1 conn_3} datc 5120 d:\\-A.txt nlx

Response:

Incorrect options: Stylelen10|nl|eof or Typedata|reply

resend ib_pre_tps|ib_post_tps|ob_pre_tps|ob_post_tps [dest_for_ib] data|reply pri filename len10|nl|eof [metafilename]