Skip to content

Commit 7dce09d

Browse files
committed
Documentation for AT commands post upgrade block update
1 parent 28e6087 commit 7dce09d

File tree

1 file changed

+17
-5
lines changed
  • content/hardware/04.pro/carriers/portenta-mid-carrier/tutorials/user-manual

1 file changed

+17
-5
lines changed

content/hardware/04.pro/carriers/portenta-mid-carrier/tutorials/user-manual/content.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,7 +2092,7 @@ fw_setenv carrier_name mid
20922092
fw_setenv overlays 'ov_som_lbee5kl1dx ov_som_x8h7 ov_carrier_breakout_usbfs ov_carrier_mid_pcie_mini'
20932093
```
20942094

2095-
For managing the Pro 4G Module (EG25 and EC200A-EU), you **only need the USB overlay**, and **mPCIe overlay is not necessary** for these USB modems. You can configure the necessary USB overlays using the following command:
2095+
For managing the Pro 4G Module (**EG25** and **EC200A-EU**), you **only need the USB overlay (`ov_carrier_breakout_usbfs`)**, and **mPCIe overlay (`ov_carrier_mid_pcie_mini`) is not necessary** for these USB modems. You can configure the necessary USB overlays using the following command:
20962096

20972097
```bash
20982098
fw_setenv overlays 'ov_som_lbee5kl1dx ov_som_x8h7 ov_carrier_breakout_usbfs'
@@ -2134,7 +2134,7 @@ Select **Ok** to confirm, and the device will be configured with the overlays fo
21342134

21352135
#### Enabling the Module via GPIO
21362136

2137-
The module must be enabled, and this can be accomplished either by putting the GPIO 5 (iMX8 Pin 165) manually via the 3.3V line or by command as follows:
2137+
The module must be enabled, and this can be accomplished by putting the GPIO 5 (iMX8 Pin 165) manually via the 3.3V line and additionally securing with a command as follows:
21382138

21392139
```bash
21402140
echo 165 > /sys/class/gpio/export
@@ -2173,7 +2173,19 @@ The **ModemManager** service manages the power for the Pro 4G Module via a scrip
21732173
- **Global EG25 Module**: This modem is supported directly by **NetworkManager**, which works alongside **ModemManager**.
21742174
- **EU EC200A-EU Module**: This modem is **not officially supported** by **ModemManager** and creates a USB `eth0` connection. This can be remapped into an `ec200aeu` network device using an `udev` rule.
21752175

2176-
The modem is powered down when **ModemManager** is stopped using
2176+
Power management is handled by **ModemManager** using the following script setup. Before starting **ModemManager**, the system runs a script to power on the modem, and another script is run after the service stops to power off the modem:
2177+
2178+
```bash
2179+
systemctl cat ModemManager.service
2180+
```
2181+
2182+
The relevant parts of the service configuration include:
2183+
2184+
- `ExecStartPre=/usr/sbin/modem_on.sh`: Powers on the modem before starting ModemManager.
2185+
- `ExecStart=/usr/sbin/ModemManager`: Starts the ModemManager service.
2186+
- `ExecStopPost=/usr/sbin/modem_off.sh`: Powers of the modem after stopping ModemManager.
2187+
2188+
To manually stop the **ModemManager** service, use the following command:
21772189

21782190
```bash
21792191
systemctl stop ModemManager
@@ -2499,7 +2511,7 @@ If ModemManager is disabled or if you prefer an alternative method, you can use
24992511
sudo qmicli -d /dev/cdc-wdm0 --dms-get-manufacturer
25002512
```
25012513

2502-
Power management for the EC200A-EU module may require manual intervention, especially if ModemManager is disabled. You can power on the modem using a custom script that leverages the `gpiod` library. The script would include commands to set the GPIO pin high and then wait a few seconds for the modem to become available, for example:
2514+
Power management for the EC200A-EU module may require manual intervention, especially if ModemManager is disabled. You can power on the modem using a custom script that leverages the `gpiod` library. The script would include commands to set the GPIO pin high and then wait around 20 seconds for the modem to become available, for example:
25032515

25042516
```bash
25052517
gpiod set-value <gpio-pin> 1
@@ -2508,7 +2520,7 @@ gpiod set-value <gpio-pin> 1
25082520
Followed by:
25092521

25102522
```bash
2511-
sleep 10
2523+
sleep 20
25122524
```
25132525

25142526
#### Docker Container Considerations

0 commit comments

Comments
 (0)