My new serial device gets loaded by the serial plugin. The actions that can be performed on it are made available through the treescript plugin.

The treescript part initializes the device, but hence needs the serial connection to be available. Often upon startup it fails because the serial driver isn't ready yet. Pressing F11 to reset the script engine usually resolves the issue.

Any thoughts on how to fix this and make it more reliable?