User`s guide
Configure Physical Serial Ports
Chapter 5 Configure Ports 96
Including special characters in probe strings
To include special characters in the probe string, such as carriage returns, line
feeds, and escape characters, specify them as hexadecimal values. For
example, here are hexadecimal equivalents for several common special
characters:
• Carriage return (CR): \x0d
• Line feed (LF): \x0a
• Escape (ESC): \x1B
Here are examples of the output generated by several probe strings:
For Passive automatic detection, scripts used instead of probe strings
If the automatic detection state is set to Passive, no probe string is sent to the
attached device but the port buffer is analyzed.
Instead, the script /tmp/cnf/bin/passive_detect is executed and the results
are saved to these files: /var/run/HostnamePortxx and
/var/run/OSPortxx.
The commands to parse the system response are user-customizable.
Therefore, if a device is not recognized by the Digi Passport unit, the root user
may add a rule to the appropriate file to allow it to be properly recognized.
After editing the scripts as either active_detect or passive_detect, save them
to flash using the saveconf command so they are not lost after a reboot.
After executing the saveconf command, execute the applyconf command for
the change to take effect immediately.
Probe string Output
root\x0d\x0a root<CR><LF>
\x1Btest\x0d <ESC>test<CR>
\x1B test\x0d <ESC><Space>test<CR>
\x1b\x20test\x0D <ESC><Space>test<CR>
\x1B\x20\x74\x65\x73\x74\x0d <ESC><Space>test<CR>