nuttx/Documentation/applications/examples/chat/index.rst

18 lines
854 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

====================
``chat`` AT over TTY
====================
Demonstrates AT chat functionality over a TTY device. This is useful with AT
modems, for example, to establish a ``pppd`` connection (see the related ``pppd``
example). Moreover, some AT modems such as ones made by u-blox have an
internal TCP/IP stack, often with an implementation of TLS/SSL. In such cases
the chat utility can be used to configure the internal TCP/IP stack, establish
socket connections, set up security (e.g., download base64-encoded certificates
to the modem), and perform data exchange through sockets over the TTY device.
Useful configuration parameters:
- ``CONFIG_EXAMPLES_CHAT_PRESET[0..3]`` preset chat scripts.
- ``CONFIG_EXAMPLES_CHAT_TTY_DEVNODE`` TTY device node name.
- ``CONFIG_EXAMPLES_CHAT_TIMEOUT_SECONDS`` default receive timeout.