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
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:
Alternatively, it is possible to use the **tenta-config** process implemented in the [GIGA Display Connector's Linux Setup](#using-linux-1) section to apply the overlays to enable mini PCIe for the Portenta Mid Carrier with the Portenta X8.
2094
2102
2095
2103
***Please check out the guidelines in the [GIGA Display Connector's Linux Setup](#using-linux-1) section for detailed information on how the __tenta-config__ works if you have yet to become familiar with the usage.***
@@ -2124,6 +2132,8 @@ It will prompt a message showing a new set of overlays that will be applied once
2124
2132
2125
2133
Select **Ok** to confirm, and the device will be configured with the overlays for mini PCIe support.
2126
2134
2135
+
#### Enabling the Module via GPIO
2136
+
2127
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:
2128
2138
2129
2139
```bash
@@ -2138,6 +2148,8 @@ echo out > /sys/class/gpio/gpio165/direction
2138
2148
echo 1 > /sys/class/gpio/gpio165/value
2139
2149
```
2140
2150
2151
+
#### Network Interface Management and Raw IP Mode
2152
+
2141
2153
Afterward, the setup process involves bringing down the `wwan0` interface, setting it to raw IP mode, and then bringing it back up:
2142
2154
2143
2155
```bash
@@ -2152,21 +2164,72 @@ echo Y > /sys/class/net/wwan0/qmi/raw_ip
2152
2164
ip link set dev wwan0 up
2153
2165
```
2154
2166
2155
-
The following steps include using `qmicli` commands to check the card status and start a network connection:
2167
+
This step ensures the modem functions properly in QMI mode.
2168
+
2169
+
#### ModemManager and Power Management
2170
+
2171
+
The **ModemManager** service manages the power for the Pro 4G Module via a script. **Global (EG25)** and **EU (EC200A-EU)** modems are different and require different configurations:
2172
+
2173
+
-**Global EG25 Module**: This modem is supported directly by **NetworkManager**, which works alongside **ModemManager**.
2174
+
-**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.
2175
+
2176
+
The modem is powered down when **ModemManager** is stopped using
2177
+
2178
+
```bash
2179
+
systemctl stop ModemManager
2180
+
```
2181
+
2182
+
After stopping **ModemManager**, there will be a delay before the modem can be powered back on and detected by **mmcli**.
2183
+
2184
+
#### Modem Configuration
2185
+
2186
+
For the **Global EG25 Module**, you can configure the modem using **NetworkManager** with the following command:
2187
+
2188
+
```bash
2189
+
nmcli c add type gsm ifname cdc-wdm0 con-name wwan0 apn hologram connection.autoconnect yes
2190
+
```
2191
+
2192
+
For the **EU EC200A-EU Module**, **ModemManager** does not support it out of the box, so a patch is required for compatibility. You can then use the following command to connect:
If the modem creates a USB `eth0` interface, remap it into an `ec200aeu` network device using an `udev` rule.
2199
+
2200
+
In a Docker environment, it may be beneficial to disable **ModemManager** and control the modem using **qmicli**. To avoid conflicts, disable **ModemManager** with the following command:
2201
+
2202
+
```bash
2203
+
sudo systemctl stop ModemManager
2204
+
```
2205
+
2206
+
Next, provide a Docker container with an **entrypoint.sh** script to manage the modem's power using **gpiod**:
2207
+
2208
+
```bash
2209
+
gpiod set-value <gpio-pin> 1
2210
+
```
2211
+
2212
+
```bash
2213
+
sleep 10
2214
+
```
2215
+
2216
+
Once the modem is powered on, use **qmicli** to configure and manage the modem. For instance, to check the modem status, use:
0 commit comments