You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/firmwareapi/pycom/network/lte.md
+72Lines changed: 72 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,73 @@ lte = LTE()
58
58
59
59
This method is used to set up the LTE subsystem. After a `deinit()` this method can take several seconds to return waiting for the LTE modem to start-up. Optionally specify a carrier name. The available options are: `verizon, at&t, standard`. `standard` is generic for any carrier, and it's also the option used when no arguments are given.
60
60
61
+
**Power Saving Mode**
62
+
63
+
The _Power Saving Mode_ allows a user to configure how often a device will connect and how long it will stay connected. Upon `attach()` this configuration is then requested from the network. Ultimately it is up to the network to decide the PSM configuration. After a successful PSM configuration,
64
+
65
+
- the LTE modem will go into a low power state during deep sleep, but
66
+
- it will stay attached to the network, thus no time is spent for `attach()` after waking up.
67
+
68
+
The configuration is done with these four parameters:
69
+
70
+
-`psm_period_value` : Configure at which period the device will connect to the network. Values from 0 to 31 are allowed.
71
+
-`psm_period_unit` : Specify the _unit_ to be used for `psm_period_value`.
72
+
-`psm_active_value` : Configure how long the device will be connected. Values from 0 to 31 are allowed.
73
+
-`psm_active_unit` : Specify the _unit_ for `psm_active_value`.
74
+
75
+
The LTE specification prescribes certain _units_ for configuring PSM. See the constants below.
76
+
77
+
For the following example, assume you want to wake up once per hour, connect and do some processing, then go to deepsleep for 55 minutes:
-`PSM_PERIOD_2S`, `PSM_PERIOD_30S`, `PSM_PERIOD_1M`, `PSM_PERIOD_10M`, `PSM_PERIOD_1H`, `PSM_PERIOD_10H`, `PSM_PERIOD_320H`: Specify the unit for the PSM period to be 2 seconds, 30 seconds, 1 minute, 10 minutes, 1 hour, 10 hours, or 320 hours, respectively.
281
+
-`PSM_PERIOD_DISABLED`: Specifying the unit for PSM period of `PSM_PERIOD_DISABLED` means turning PSM off. This is the default.
282
+
-`PSM_ACTIVE_2S`, `PSM_ACTIVE_1M`, `PSM_ACTIVE_6M`: Specify the unit for the PSM active duration to be 2 seconds, 1 minute, or 6 minutes, respectively.
283
+
-`PSM_ACTIVE_DISABLED`: Specifying the active duration unit of `PSM_ACTIVE_DISABLED` means turning PSM off. This is the default.
0 commit comments