Resending with modified metadata

SMAT handles resending using the resend command through hcicmd.

hcicmd -p process_name -c "thread_name resend context 
type priority filename format" 

These optional arguments to resend permit metadata resending:

  • metafilename 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 metafilename. 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. It does this in both files before running the resend. No messages are resent in the case of a mismatch.