1# Copyright (c) 2020 Intel Corporation 2# SPDX-License-Identifier: Apache-2.0 3 4config MODEM_GSM_PPP 5 bool "[DEPRECATED] Support GSM modems" 6 select MODEM_CONTEXT 7 select MODEM_CMD_HANDLER 8 select MODEM_IFACE_UART 9 select NET_MGMT 10 select NET_MGMT_EVENT 11 select DEPRECATED 12 help 13 This driver is deprecated, use the MODEM_CELLULAR driver instead. 14 15if MODEM_GSM_PPP 16 17choice MODEM_GSM_TYPE 18 prompt "Modem type" 19 default MODEM_GSM_GENERIC 20 help 21 Type/manufacturer of the GSM modem 22 23config MODEM_GSM_GENERIC 24 bool "Generic GSM modem" 25 help 26 The modem does not need any special handling etc. 27 28config MODEM_GSM_SIMCOM 29 bool "SIMCOM modem" 30 help 31 Use this if you have SIMCOM based modem like SIM800 etc. 32 33config MODEM_GSM_QUECTEL 34 bool "Quectel modem" 35 help 36 Use this if you have Quectel based modem like EC2X etc. 37 38endchoice 39 40config MODEM_GSM_RX_STACK_SIZE 41 int "Size of the stack allocated for receiving data from modem" 42 default 512 43 help 44 Sets the stack size which will be used by the GSM RX thread. 45 46config MODEM_GSM_WORKQ_STACK_SIZE 47 int "Size of the stack allocated for the dedicated gsm workqueue" 48 default 768 49 help 50 Sets the stack size which will be used by the dedicated GSM workqueue 51 thread. 52 53config MODEM_GSM_INIT_PRIORITY 54 int "Init priority for the GSM modem driver" 55 default 60 56 range 0 99 57 help 58 The GSM modem is initialized in POST_KERNEL using priority in 59 the range 0-99. 60 61config MODEM_GSM_APN 62 string "Access Point Name" 63 default "internet" 64 help 65 Specify Access Point Name, i.e. the name to identify Internet IP 66 GPRS cellular data context. 67 68config GSM_PPP_AUTOSTART 69 bool "Auto-start PPP at boot" 70 default y 71 help 72 This setting lets driver connect to network and initialize PPP at 73 boot. Unselect this if you want to run application code before 74 modem connects to network. See contents of "drivers/gsm_ppp.h" 75 to get an idea of the API. 76 77config MODEM_GSM_ATTACH_TIMEOUT 78 int "Timeout for attaching to packet service" 79 default 30 80 help 81 Before activating PPP, attachment to packet service is checked 82 using AT+CGATT. This setting dictates how much time in seconds 83 we give the modem before giving up. 84 85config MODEM_GSM_REGISTER_TIMEOUT 86 int "Timeout for registering to cellular tower" 87 default 300 88 help 89 Before attachment to packet service, modem is checked if it is 90 connected to the cellular tower. This setting dictates how much 91 time in seconds we give the modem before giving up. 92 93config MODEM_GSM_MANUAL_MCCMNO 94 string "MCC/MNO for establishing network connection" 95 help 96 This setting is used in the AT+COPS command to set the MCC/MNO 97 for the network connection context. This value is specific to 98 the network provider and may need to be changed if auto is not 99 selected. 100 101config MODEM_GSM_RSSI_POLLING_PERIOD 102 int "Configure RSSI polling period (in seconds)" 103 default 30 104 help 105 This settings is used to configure the period of RSSI polling 106 107config MODEM_GSM_ENABLE_CESQ_RSSI 108 bool "+CESQ RSSI measurement" 109 help 110 If this is enabled, RSRP, RSCP and RXREL values are read from the 111 modem with +CESQ. Otherwise only RSSI value is read with +CSQ 112 from the modem. 113 114config MODEM_GSM_FACTORY_RESET_AT_BOOT 115 bool "Factory reset modem at boot" 116 help 117 If this is enabled, the modem will be reset to factory default 118 settings first thing in the initialization sequence. This is 119 helpful if your modem has a tendency to get stuck due to cached 120 state. 121 122endif 123