ofono/plugins
Lars Poeschel 285fad8f39 quectel: Power on/off with a gpio pulse
Current implementation uses a gpio level of 1 for powering on quectel
modems using a gpio and a level of 0 for powering off.
Normally quectel modems are powered on or off by a gpio pulse on their
PWR_KEY pin. They turn on by the first pulse and turn then off by the
next pulse. The pulse length varies between different modems.
For power on the longest I could in the quectel hardware is "more than
2 seconds" from Quectel M95 Hardware Design Manual.
For Quectel EC21 this is ">= 100 ms".
For Quectel MC60 this is "recommended to be 100 ms".
For Quectel UC15 this is "at least 0.1 s".
For power off the four modems in question vary between a minimum pulse
length of 600-700ms.
This implements a 2100ms pulse for power on and 750ms for power off.

If you have some special circuitry that powers your modem by gpio level
and you need the old behaviour, you can switch to gpio level powering
by setting environment variable OFONO_QUECTEL_GPIO_LEVEL. The gpio goes
to high level for the modem to power on and to low level if it should
power off.
2020-10-06 15:42:46 -05:00
..
alcatel.c alcatel: Use at_util_open_device 2019-05-31 11:58:39 -05:00
allowed-apns.c allowed-apns: Do not try to unregister unnecessarily 2020-02-07 11:08:13 -06:00
bluez4.c bluez4: Remove unneeded casts 2016-04-22 15:25:54 -05:00
bluez4.h bluez4: Increase Bluez 4 D-Bus timeouts to 60 seconds 2013-02-26 14:15:44 -06:00
bluez5.c bluez5: fix crash on DBus transport disconnection 2016-11-10 10:18:26 -06:00
bluez5.h bluez5: Unify bt_register_profile_* into a single function 2013-04-25 03:38:11 -05:00
caif.c plugins: Update copyright information 2011-10-10 13:39:54 -07:00
calypso.c plugins: Update copyright information 2011-10-10 13:39:54 -07:00
cdma-provision.c cdma-provision: Add cdma provisioning plugin 2012-01-07 12:40:47 -06:00
cinterion.c cinterion: use Gemalto vendor in netreg 2018-10-29 15:01:22 -05:00
connman.c connman: Fix crash due to uninitialized path 2011-07-28 00:12:13 -05:00
droid.c droid 4: Add probing. 2020-09-15 10:24:37 -05:00
dun_gw_bluez4.c bluetooth: Rename DUN GW plugin 2013-03-21 10:08:41 -05:00
dun_gw_bluez5.c bluez5: Unify bt_register_profile_* into a single function 2013-04-25 03:38:11 -05:00
emulator_fuzz.c emulator_fuzz: Add test plugin 2014-10-20 13:40:28 -05:00
file-provision.c file-provision: support for auth type of NONE 2018-10-09 10:43:31 -05:00
g1.c plugins: Update copyright information 2011-10-10 13:39:54 -07:00
gemalto.c plugins: gemalto: alternative gprs-context driver 2020-08-19 09:50:44 -05:00
gobi.c treewide: Remove superfluous use of _GNU_SOURCE 2018-10-17 10:01:57 -05:00
hfp_ag_bluez4.c bluetooth: Rename HFP AG plugin 2013-01-30 22:09:52 -06:00
hfp_ag_bluez5.c hfp_ag_bluez5: Remove unneeded forward declarations 2019-05-31 10:57:38 -05:00
hfp_hf_bluez4.c git: Fixup messed up permissions 2013-12-21 13:39:54 -06:00
hfp_hf_bluez5.c hfp_hf_bluez5: Rework code handling device changes 2017-05-04 12:34:31 -05:00
hso.c hso: Use at_util_open_device 2019-05-31 11:58:39 -05:00
huawei.c huawei: send restore settings command on startup 2020-06-25 11:36:20 -05:00
icera.c icera: Use at_util_open_device 2019-05-31 11:58:39 -05:00
ifx.c ifx: Use sim_initialized_notify 2017-11-08 21:41:34 -06:00
infineon.c infineon: Plugin for infineon modems 2015-10-13 21:35:00 -05:00
isiusb.c isiusb: Fix compiler warning with logical expression 2015-07-07 11:35:54 +02:00
linktop.c linktop: Use at_util_open_device 2019-05-31 11:58:39 -05:00
mbim.c treewide: Remove superfluous use of _GNU_SOURCE 2018-10-17 10:01:57 -05:00
mbm.c mbm: Use at_util_open_device 2019-05-31 11:58:39 -05:00
mbpi.c mbpi: support for auth NONE 2018-10-09 10:44:17 -05:00
mbpi.h mbpi: Add mbpi_lookup_cdma_provider_name API 2011-11-16 03:53:28 -06:00
n900.c n900: Fix compiler warning with logical expression 2015-07-07 11:35:54 +02:00
nokia-gpio.c nokia-gpio: do not create links to gpios in /dev/cmt 2017-10-05 11:32:59 -05:00
nokia-gpio.h isi: Private header files don't need circular inclusion protection 2010-10-01 06:52:38 +02:00
nokia.c nokia: Use at_util_open_device 2019-05-31 11:58:39 -05:00
nokiacdma.c plugins: Update copyright information 2011-10-10 13:39:54 -07:00
novatel.c novatel: Use at_util_open_device 2019-05-31 11:58:39 -05:00
ofono-speedup.rules Add udev rules for SpeedUp U3501 2012-04-06 09:32:15 -05:00
ofono.rules ofono.rules: remove 'change' action 2017-03-26 20:44:52 -05:00
palmpre.c plugins: Update copyright information 2011-10-10 13:39:54 -07:00
phonesim.c phoneseim: Remove unneeded if 2019-04-29 14:09:56 -05:00
phonesim.conf build: Add example configuration for phonesim plugin 2010-10-25 20:48:55 +02:00
provision.c provision: Update to the new mbpi API 2011-11-14 14:10:54 -06:00
push-notification.c dbus: Use dbus_validate_path 2018-01-18 10:53:28 -06:00
quectel.c quectel: Power on/off with a gpio pulse 2020-10-06 15:42:46 -05:00
ril.c plugins/ril: enable cbs 2016-05-19 10:30:13 -05:00
ril.h ril: Plugin for Android modems 2015-10-13 21:34:56 -05:00
ril_intel.c plugins: Update to the new LTE API 2018-03-12 09:37:58 -05:00
rildev.c rildev: Do not create modems if no env var set 2015-10-15 10:01:09 -05:00
samsung.c samsung: Use at_util_open_device 2019-05-31 11:58:39 -05:00
sap.c bluetooth: Rename bluetooth plugins 2013-01-16 13:37:23 -06:00
sierra.c sierra: Use at_util_open_device 2019-05-31 11:58:39 -05:00
sim900.c sim800: fix typo in model check code 2019-02-08 14:10:11 -06:00
sim7100.c sim7100: Specify vendor ID while creating voicecall driver 2018-05-14 11:11:18 -05:00
smart-messaging.c dbus: Use dbus_validate_path 2018-01-18 10:53:28 -06:00
speedup.c speedup: Use at_util_open_device 2019-05-31 11:58:39 -05:00
speedupcdma.c speedupcdma: Use at_util_open_device 2019-05-31 11:58:39 -05:00
ste.c ste: signal sim initialized on EPEV 2017-11-08 21:41:34 -06:00
stemgr.c stemgr: Avoid shadowing of connection variable 2012-07-15 20:19:28 -03:00
stktest.c stktest: Remove usage of decode_at_error 2015-12-15 17:17:15 -06:00
telit.c telit: Use at_util_open_device 2019-05-31 11:58:39 -05:00
u8500.c u8500: Add missing fall through statement 2017-07-11 10:46:13 -07:00
ublox.c ublox: rework device initialization sequence 2019-09-25 21:25:16 -05:00
udevng.c quectel: Power on/off with a gpio pulse 2020-10-06 15:42:46 -05:00
upower.c plugins: add upower battery monitor for bluetooth 2015-12-18 09:53:38 -06:00
wavecom.c wavecom: Use at_util_open_device 2019-05-31 11:58:39 -05:00
xmm7xxx.c xmm7xxx: Fix non compiling file 2020-09-08 11:02:25 -05:00
zte.c zte: Use at_util_open_device 2019-05-31 11:58:39 -05:00