Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
modem_cellular_config_scripts Struct Reference

Chat scripts for cellular modem. More...

#include <zephyr/drivers/modem/modem_cellular.h>

Data Fields

const struct modem_chat_scriptset_baudrate
 Optional script that configures the modem's UART baud rate.
const struct modem_chat_scriptinit
 Script that initializes the modem and enables CMUX.
const struct modem_chat_scriptnetwork
 Optional script that waits for network registration before dialing.
const struct modem_chat_scriptdial
 Script that starts the PPP data connection.
const struct modem_chat_scriptperiodic
 Optional script that periodically polls modem state while registered.
const struct modem_chat_scriptshutdown
 Optional script that prepares the modem for power-off.

Detailed Description

Chat scripts for cellular modem.

Only the init and dial scripts are mandatory, other scripts are optional.

If the network script is provided, it will be used to wait for network registration before issuing the dial script.

If the network script is not provided, the dial script is expected to configure the network registration and the modem will wait for registration after the dial script completes.

Field Documentation

◆ dial

const struct modem_chat_script* modem_cellular_config_scripts::dial

Script that starts the PPP data connection.

Must not be NULL.

◆ init

const struct modem_chat_script* modem_cellular_config_scripts::init

Script that initializes the modem and enables CMUX.

Must not be NULL.

◆ network

const struct modem_chat_script* modem_cellular_config_scripts::network

Optional script that waits for network registration before dialing.

◆ periodic

const struct modem_chat_script* modem_cellular_config_scripts::periodic

Optional script that periodically polls modem state while registered.

◆ set_baudrate

const struct modem_chat_script* modem_cellular_config_scripts::set_baudrate

Optional script that configures the modem's UART baud rate.

◆ shutdown

const struct modem_chat_script* modem_cellular_config_scripts::shutdown

Optional script that prepares the modem for power-off.


The documentation for this struct was generated from the following file: