drivers: modem: remove gsm_ppp.c device driver
Remove the deprecated gsm_ppp.c device driver and associated dts compatible. Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
This commit is contained in:
parent
40a44c2118
commit
e79428cda8
8 changed files with 0 additions and 1608 deletions
|
@ -1,22 +0,0 @@
|
|||
.. _gsm_modem:
|
||||
|
||||
Generic GSM Modem
|
||||
#################
|
||||
|
||||
Overview
|
||||
********
|
||||
|
||||
The generic GSM modem driver allows the user to connect Zephyr to a GSM modem
|
||||
which provides a data connection to cellular operator's network.
|
||||
The Zephyr uses :ref:`PPP (Point-to-Point Protocol) <ppp>` to connect
|
||||
to the GSM modem using UART. Note that some cellular modems have proprietary
|
||||
offloading support using AT commands, but usually those modems also support
|
||||
3GPP standards and provide PPP connection to them.
|
||||
See :zephyr:code-sample:`GSM modem sample application <gsm-modem>` how to setup Zephyr
|
||||
to use the GSM modem.
|
||||
|
||||
The GSM muxing, that is defined in
|
||||
`GSM 07.10 <https://www.etsi.org/deliver/etsi_ts/127000_127099/127010/15.00.00_60/ts_127010v150000p.pdf>`__,
|
||||
and which allows mixing of AT commands and PPP traffic, is also supported in
|
||||
this version of Zephyr. One needs to enable :kconfig:option:`CONFIG_GSM_MUX` and
|
||||
:kconfig:option:`CONFIG_UART_MUX` configuration options to enable muxing.
|
|
@ -23,5 +23,4 @@ libraries for the application to use. See the list below for details.
|
|||
protocols.rst
|
||||
system_mgmt.rst
|
||||
tsn.rst
|
||||
gsm_modem.rst
|
||||
zperf.rst
|
||||
|
|
|
@ -27,10 +27,6 @@ if(CONFIG_MODEM_WNCM14A2A)
|
|||
zephyr_library_sources(wncm14a2a.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_MODEM_GSM_PPP)
|
||||
zephyr_library_sources(gsm_ppp.c)
|
||||
endif()
|
||||
|
||||
if (CONFIG_MODEM_HL7800)
|
||||
zephyr_library_sources(hl7800.c)
|
||||
endif()
|
||||
|
|
|
@ -189,7 +189,6 @@ config MODEM_CELL_INFO
|
|||
source "drivers/modem/Kconfig.ublox-sara-r4"
|
||||
source "drivers/modem/Kconfig.quectel-bg9x"
|
||||
source "drivers/modem/Kconfig.wncm14a2a"
|
||||
source "drivers/modem/Kconfig.gsm"
|
||||
source "drivers/modem/Kconfig.cellular"
|
||||
|
||||
source "drivers/modem/Kconfig.hl7800"
|
||||
|
|
|
@ -1,141 +0,0 @@
|
|||
# Copyright (c) 2020 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config MODEM_GSM_PPP
|
||||
bool "[DEPRECATED] Support GSM modems"
|
||||
select MODEM_CONTEXT
|
||||
select MODEM_CMD_HANDLER
|
||||
select MODEM_IFACE_UART
|
||||
select NET_MGMT
|
||||
select NET_MGMT_EVENT
|
||||
select DEPRECATED
|
||||
help
|
||||
This driver is deprecated, use the MODEM_CELLULAR driver instead.
|
||||
|
||||
if MODEM_GSM_PPP
|
||||
|
||||
choice MODEM_GSM_TYPE
|
||||
prompt "Modem type"
|
||||
default MODEM_GSM_GENERIC
|
||||
help
|
||||
Type/manufacturer of the GSM modem
|
||||
|
||||
config MODEM_GSM_GENERIC
|
||||
bool "Generic GSM modem"
|
||||
help
|
||||
The modem does not need any special handling etc.
|
||||
|
||||
config MODEM_GSM_SIMCOM
|
||||
bool "SIMCOM modem"
|
||||
help
|
||||
Use this if you have SIMCOM based modem like SIM800 etc.
|
||||
|
||||
config MODEM_GSM_QUECTEL
|
||||
bool "Quectel modem"
|
||||
help
|
||||
Use this if you have Quectel based modem like EC2X etc.
|
||||
|
||||
endchoice
|
||||
|
||||
choice MODEM_GSM_STATUS_COMMAND
|
||||
prompt "Select status command Type"
|
||||
default MODEM_GSM_STATUS_CMD_USE_CREG
|
||||
help
|
||||
Use particular type of AT command for cell tower registration status.
|
||||
|
||||
config MODEM_GSM_STATUS_CMD_USE_CREG
|
||||
bool "CREG command"
|
||||
|
||||
config MODEM_GSM_STATUS_CMD_USE_CEREG
|
||||
bool "CEREG command"
|
||||
|
||||
endchoice
|
||||
|
||||
config MODEM_GSM_STATUS_COMMAND
|
||||
string "Status Command"
|
||||
default "CREG" if MODEM_GSM_STATUS_CMD_USE_CREG
|
||||
default "CEREG" if MODEM_GSM_STATUS_CMD_USE_CEREG
|
||||
|
||||
config MODEM_GSM_RX_STACK_SIZE
|
||||
int "Size of the stack allocated for receiving data from modem"
|
||||
default 512
|
||||
help
|
||||
Sets the stack size which will be used by the GSM RX thread.
|
||||
|
||||
config MODEM_GSM_WORKQ_STACK_SIZE
|
||||
int "Size of the stack allocated for the dedicated gsm workqueue"
|
||||
default 768
|
||||
help
|
||||
Sets the stack size which will be used by the dedicated GSM workqueue
|
||||
thread.
|
||||
|
||||
config MODEM_GSM_INIT_PRIORITY
|
||||
int "Init priority for the GSM modem driver"
|
||||
default 60
|
||||
range 0 99
|
||||
help
|
||||
The GSM modem is initialized in POST_KERNEL using priority in
|
||||
the range 0-99.
|
||||
|
||||
config MODEM_GSM_APN
|
||||
string "Access Point Name"
|
||||
default "internet"
|
||||
help
|
||||
Specify Access Point Name, i.e. the name to identify Internet IP
|
||||
GPRS cellular data context.
|
||||
|
||||
config GSM_PPP_AUTOSTART
|
||||
bool "Auto-start PPP at boot"
|
||||
default y
|
||||
help
|
||||
This setting lets driver connect to network and initialize PPP at
|
||||
boot. Unselect this if you want to run application code before
|
||||
modem connects to network. See contents of "drivers/gsm_ppp.h"
|
||||
to get an idea of the API.
|
||||
|
||||
config MODEM_GSM_ATTACH_TIMEOUT
|
||||
int "Timeout for attaching to packet service"
|
||||
default 30
|
||||
help
|
||||
Before activating PPP, attachment to packet service is checked
|
||||
using AT+CGATT. This setting dictates how much time in seconds
|
||||
we give the modem before giving up.
|
||||
|
||||
config MODEM_GSM_REGISTER_TIMEOUT
|
||||
int "Timeout for registering to cellular tower"
|
||||
default 300
|
||||
help
|
||||
Before attachment to packet service, modem is checked if it is
|
||||
connected to the cellular tower. This setting dictates how much
|
||||
time in seconds we give the modem before giving up.
|
||||
|
||||
config MODEM_GSM_MANUAL_MCCMNO
|
||||
string "MCC/MNO for establishing network connection"
|
||||
help
|
||||
This setting is used in the AT+COPS command to set the MCC/MNO
|
||||
for the network connection context. This value is specific to
|
||||
the network provider and may need to be changed if auto is not
|
||||
selected.
|
||||
|
||||
config MODEM_GSM_RSSI_POLLING_PERIOD
|
||||
int "Configure RSSI polling period (in seconds)"
|
||||
default 30
|
||||
help
|
||||
This settings is used to configure the period of RSSI polling
|
||||
|
||||
config MODEM_GSM_ENABLE_CESQ_RSSI
|
||||
bool "+CESQ RSSI measurement"
|
||||
help
|
||||
If this is enabled, RSRP, RSCP and RXREL values are read from the
|
||||
modem with +CESQ. Otherwise only RSSI value is read with +CSQ
|
||||
from the modem.
|
||||
|
||||
config MODEM_GSM_FACTORY_RESET_AT_BOOT
|
||||
bool "Factory reset modem at boot"
|
||||
help
|
||||
If this is enabled, the modem will be reset to factory default
|
||||
settings first thing in the initialization sequence. This is
|
||||
helpful if your modem has a tendency to get stuck due to cached
|
||||
state.
|
||||
|
||||
endif
|
File diff suppressed because it is too large
Load diff
|
@ -1,8 +0,0 @@
|
|||
# Copyright (c) 2021 G-Technologies Sdn. Bhd.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: GSM PPP modem
|
||||
|
||||
compatible: "zephyr,gsm-ppp"
|
||||
|
||||
include: uart-device.yaml
|
|
@ -1,69 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Endian Technologies AB
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef ZEPHYR_INCLUDE_DRIVERS_MODEM_GSM_PPP_H_
|
||||
#define ZEPHYR_INCLUDE_DRIVERS_MODEM_GSM_PPP_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define GSM_PPP_MDM_MANUFACTURER_LENGTH 10
|
||||
#define GSM_PPP_MDM_MODEL_LENGTH 16
|
||||
#define GSM_PPP_MDM_REVISION_LENGTH 64
|
||||
#define GSM_PPP_MDM_IMEI_LENGTH 16
|
||||
#define GSM_PPP_MDM_IMSI_LENGTH 16
|
||||
#define GSM_PPP_MDM_ICCID_LENGTH 32
|
||||
|
||||
struct gsm_ppp_modem_info {
|
||||
char mdm_manufacturer[GSM_PPP_MDM_MANUFACTURER_LENGTH];
|
||||
char mdm_model[GSM_PPP_MDM_MODEL_LENGTH];
|
||||
char mdm_revision[GSM_PPP_MDM_REVISION_LENGTH];
|
||||
char mdm_imei[GSM_PPP_MDM_IMEI_LENGTH];
|
||||
#if defined(CONFIG_MODEM_SIM_NUMBERS)
|
||||
char mdm_imsi[GSM_PPP_MDM_IMSI_LENGTH];
|
||||
char mdm_iccid[GSM_PPP_MDM_ICCID_LENGTH];
|
||||
#endif
|
||||
int mdm_rssi;
|
||||
};
|
||||
|
||||
/** @cond INTERNAL_HIDDEN */
|
||||
struct device;
|
||||
typedef void (*gsm_modem_power_cb)(const struct device *, void *);
|
||||
|
||||
void gsm_ppp_start(const struct device *dev);
|
||||
void gsm_ppp_stop(const struct device *dev);
|
||||
/** @endcond */
|
||||
|
||||
/**
|
||||
* @brief Register functions callbacks for power modem on/off.
|
||||
*
|
||||
* @param dev: gsm modem device
|
||||
* @param modem_on: callback function to
|
||||
* execute during gsm ppp configuring.
|
||||
* @param modem_off: callback function to
|
||||
* execute during gsm ppp stopping.
|
||||
* @param user_data: user specified data
|
||||
*/
|
||||
void gsm_ppp_register_modem_power_callback(const struct device *dev,
|
||||
gsm_modem_power_cb modem_on,
|
||||
gsm_modem_power_cb modem_off,
|
||||
void *user_data);
|
||||
|
||||
/**
|
||||
* @brief Get GSM modem information.
|
||||
*
|
||||
* @param dev: GSM modem device.
|
||||
*
|
||||
* @retval struct gsm_ppp_modem_info * pointer to modem information structure.
|
||||
*/
|
||||
const struct gsm_ppp_modem_info *gsm_ppp_modem_info(const struct device *dev);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ZEPHYR_INCLUDE_DRIVERS_MODEM_GSM_PPP_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue