The AT Host library exposes the AT command interface of the cellular modem for supported devices on an external serial interface.
The library is enabled and configured entirely using the Kconfig system. The external serial port to use, the termination character, and other parameters are configurable.
Specifically, if it is desirable for the client to use SMS functionality, the termination character should not be set to
<CR>, since this character is used inside the
The various configuration options used in the library are listed below:
CONFIG_AT_HOST_LIBRARY- Enables the AT Host library
CONFIG_AT_HOST_UART_INIT_TIMEOUT- Sets the timeout value to wait for a valid UART line on initialization
CONFIG_AT_HOST_CMD_MAX_LEN- Sets the maximum length for an AT command
CONFIG_AT_HOST_THREAD_PRIO- Sets the priority level for the AT host work queue thread
Configuration options for setting the UART:
CONFIG_AT_HOST_UART_0- Enables UART 0
CONFIG_AT_HOST_UART_1- Enables UART 1
CONFIG_AT_HOST_UART_2- Enables UART 2
Configuration options for setting the termination character:
The library has no globally available members, and thus no header file. If enabled, the library will initialize with the system. Any input on the configured serial port will be forwarded to the modem upon receipt of the configured termination character(s). Only one command can be processed at any time, and no data must be sent to the serial port while the command is being processed.