Skip to content

Commit 474536f

Browse files
committed
User manual content update
1 parent d6ef907 commit 474536f

File tree

1 file changed

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

1 file changed

+9
-6
lines changed

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2419,10 +2419,9 @@ FROM debian:latest
24192419
24202420
# Install necessary packages
24212421
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/*
24262425
24272426
# Set the working directory
24282427
WORKDIR /app
@@ -2436,17 +2435,21 @@ Create a file named *Dockerfile* with the content above. This *Dockerfile* sets
24362435
Open a terminal in the directory containing the Dockerfile and build the Docker image:
24372436

24382437
```bash
2439-
docker build -t modem-manager .
2438+
docker build . -t atcommands
24402439
```
24412440

24422441
Run the container with the Pro 4G Module attached. This command will start the container and open a bash shell:
24432442

24442443
```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
24462445
```
24472446

24482447
Inside the Docker container, identify the modem and send AT commands:
24492448

2449+
```bash
2450+
ModemManager --debug > /var/log/modemmanager.log 2>&1 &
2451+
```
2452+
24502453
```bash
24512454
# List modems
24522455
mmcli -L

0 commit comments

Comments
 (0)