File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
content/hardware/04.pro/carriers/portenta-mid-carrier/tutorials/user-manual Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -2419,10 +2419,9 @@ FROM debian:latest
2419
2419
2420
2420
# Install necessary packages
2421
2421
RUN apt-get update && \
2422
- apt-get install -y modemmanager && \
2423
- apt-get install -y mmcli && \
2424
- apt-get clean && \
2425
- rm -rf /var/lib/apt/lists/*
2422
+ apt-get install -y modemmanager dbus usbutils udhcpc libqmi-utils && \
2423
+ apt-get clean && \
2424
+ rm -rf /var/lib/apt/lists/*
2426
2425
2427
2426
# Set the working directory
2428
2427
WORKDIR /app
@@ -2436,17 +2435,21 @@ Create a file named *Dockerfile* with the content above. This *Dockerfile* sets
2436
2435
Open a terminal in the directory containing the Dockerfile and build the Docker image:
2437
2436
2438
2437
``` bash
2439
- docker build -t modem-manager .
2438
+ docker build . -t atcommands
2440
2439
```
2441
2440
2442
2441
Run the container with the Pro 4G Module attached. This command will start the container and open a bash shell:
2443
2442
2444
2443
``` bash
2445
- docker run --rm -it --device=/dev/cdc-wdm0 modem-manager
2444
+ docker run --rm -it --device=/dev/cdc-wdm0 --volume /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket --privileged atcommands
2446
2445
```
2447
2446
2448
2447
Inside the Docker container, identify the modem and send AT commands:
2449
2448
2449
+ ``` bash
2450
+ ModemManager --debug > /var/log/modemmanager.log 2>&1 &
2451
+ ```
2452
+
2450
2453
``` bash
2451
2454
# List modems
2452
2455
mmcli -L
You can’t perform that action at this time.
0 commit comments