From aleksandermj at chromium.org Tue May 7 09:14:05 2024 From: aleksandermj at chromium.org (Aleksander Morgado) Date: Tue, 7 May 2024 11:14:05 +0200 Subject: How to probe a modem exposing virtual ports (GSM 07.10 muxed ports) In-Reply-To: References: Message-ID: Hey, > > I am in the same situation and my Quectel BG770A-GL modem is using the > EMUX instead of the standard CMUX mode. > > Quectel is only providing full PPP support for this EMUX mode and so > would like to know what could be > the best way to add support for thoses /dev/pts virtual devices in MM ? > > Im using ModemManager 1.18, is it possible to "force" a port (without > udev) in MM ? > I have not done any testing myself with this kind of ptys, but I don't think it should be very difficult to support them, at least e.g. manually. You can try to run the MM daemon with --test-no-udev, and then use mmcli --report-kernel-event to notify about the port additions as if they were notified by udev. See e.g. https://lists.freedesktop.org/archives/modemmanager-devel/2016-August/003269.html This approach *won't work* by default for ptys, but it may give you an initial way forward if you want to start testing custom MM changes to adjust the port probing to support these device types. The MMKernelDevice objects will need to be adjusted to support these device types that don't have a direct counterpart entry in sysfs. -- Aleksander From aleksandermj at chromium.org Tue May 7 09:22:35 2024 From: aleksandermj at chromium.org (Aleksander Morgado) Date: Tue, 7 May 2024 11:22:35 +0200 Subject: Quectel EC25 & AT&T connection Catch-22 In-Reply-To: References: Message-ID: Hey Bruce, Thanks to everyone who joined the discussion, all the points already raised are valid. Just some small notes from my side. > > I have a question about using both QMI and the serial interface with ModemManager. > > I had little difficulty getting ModemManager's SimpleModem to connect to T-Mobile (USA) using a Quectel EG25-G, but we found that modem wasn't compatible with AT&T and/or a private APN used by one of our customers. We were advised to use the Quectel EC25, and after engaging both Quectel and AT&T, we were told that we need to insert the APN into the modem using an AT command, AT+CGDCONT=1,"IPV4V6","mcm.com.attz". I had to tweak the kernel config and the ModemManager build. That command is exclusively changing the contents of the connection profile stored with ID 1 in the modem. This profile with ID 1 is the one typically used for the LTE attach procedure during the registration process in Qualcomm based modems. You cannot change these APN settings with Simple.Connect(), as this API is used to establish a new connection attempt after you have been registered already. In your case, you need to change the settings before registering (they're really persistent, so changing once would be enough), and then you can reuse the same settings for the connection attempt. You can change the APN settings used during LTE registration using mmcli --3gpp-set-initial-eps-bearer-settings="apn=mcm.com.attz,ip-type=ipv4v6", you don't need to do it via AT commands. The next registration attempt after the settings are changed will be done with those new settings. After the registration happens, the "3GPP EPS" section in the mmcli output may include an "initial bearer path", and if you print the contents of the bearer using mmcli -b N, you can see the actual APN settings agreed with the network. -- Aleksander From Dominik.Nille at balluff.de Tue May 28 17:27:36 2024 From: Dominik.Nille at balluff.de (Dominik Nille) Date: Tue, 28 May 2024 17:27:36 +0000 Subject: ModemManager does not find 5G Modem in Linux VM Message-ID: Good evening, my name is Dominik Nille and I am currently trying to work with a 5G modem (Quectel RM520N-GL) to log into a cellular network. I am able to connect the Modem when using Windows or a Raspberry Pi. But somehow my current system to set up a development environment does not work. My setup: I use a laptop with operating system: Windows 10 Enterprise To run Linux in a virtual machine I use: Oracle Virtualbox My Linux: Debian GNU/Linux 12 (Kernel Version: 6.1.0-20-amd64 (64-bit) Version of ModemManager: 1.20.4 Version of NetworkManager: 1.42.4 I try to connect an Evaluation Board, named "RMU500EK 5G Development-Kit" ( https://shop.tekmodul.de/RMU500EK-p541645397with ) with integrated antennas via USB. Therefore, I set an USB-Filter to connect USB devices from Quectel to the Linux VM automatically. I've now tried Multiple of those Boards with multiple of 5G modems and I also updated the firmware of the different modems. I tried different power supplying methods. With different connectors and also different USB-cables. I don't think that the problem is a hardware setup problem, because I can run the modem without a problem on the windows host. Investigating the problem in linux: When I run lsusb following output is displayed: Bus 002 Device 006: ID 2c7c:0801 Quectel Wireless Solutions Co., Ltd. RM520N-GL When I run ls /dev, there are listed the 4 serial devices and 1 modem device. cdc-wdm0, ttyUSB0, ttyUSB1, ttyUSB2, ttyUSB3 Previously, I used the NetworkManager in combination with the ModemManager to get a connection on the same setup to monitor my cellular connections. Maybe I updated some packages or changed something else on the system. However, I am currently not able to access the Modem with the ModemManager, but I don't know the reason. When I run mmcli -m any there is displayed the following output: error: couldn't find modem If I investigate the journalctl I see, that some outputs. The following are some main outputs: [plugin/quectel] could not grab port ttyUSB0: Cannot add port 'tty/ttyUSB0', unhandled port type .. [modem1] couldn't load carrier config: Operation timed out .. [modem1] port cdc-wdm0 timed out 25 consecutive times, marking modem as invalid [modem1] couldn't load hardware revision: QMI operation failed: Transaction timed out [modem1] couldn't load equipment identifier: QMI operation failed: Transaction timed out [modem1] couldn't load device identifier: Modem interface skeleton unavailable [modem1] couldn't load supported bands: Couldn't peek QMI port [modem1] couldn't load power state: Couldn't peek QMI port [modem1] couldn't load current allowed/preferred modes: Couldn't peek QMI port [modem1] couldn't load current bands: Couldn't peek QMI port [modem1] (quectel) failed to initialize SIM hot swap ports context: Couldn't get primary port [modem1] couldn't query SIM slots: Couldn't peek QMI port [modem1] modem couldn't be initialized: Couldn't check unlock status: Couldn't get interface skeleton [modem1] error initializing: Operation was cancelled Do you have any Idea, why the ModemManager is not able to grab the serial port? This happens very often with multiple ports. And do you have any idea, why the port cdc-wdm0 is timing out 25 consecutive times? Is there any present issue with bridging USB-Ports of Virtualbox maybe? Maybe the given information is already enough for you, to see the problem. If not, I investigated further: I also ran the ModemManager in Debug mode and captured the output in a log.txt, which is attached. I just cut off some beginning when the ModemManager was dealing with ethernetports. I plugged in the Modem after starting it in debug mode. And the attached output were captured. Thank you very much for your help. Best regards, Dominik Dominik Nille Technology Innovation Management [http://assets.balluff.com/JPG_original_size/E-Mail-Footer_Vertrieb_Logo.jpg] Balluff GmbH * Schurwaldstrasse 9 * 73765 Neuhausen a.d.F. * Germany Phone +497158173-8020 * Fax +4971585010 * Dominik.Nille at balluff.de * www.balluff.com [Facebook] [LinkedIn] [Twitter] [Youtube] [Xing] [Blog] Place of incorporation/Sitz der Gesellschaft: Neuhausen a.d.F., Germany * Register court/Registergericht: Amtsgericht Stuttgart, Germany Trade register/Handelsregister: HRB 214038 * Managing directors/Gesch?ftsf?hrer: Katrin Stegmaier-Hermle, Florian Hermle, Frank Nonnenmann Chairman board of directors/Vorsitzender des Aufsichtsrats: Michael Unger * VAT ID/USt-ID: DE213 402 337 [http://assets.balluff.com/JPG_original_size/E-Mail-Footer_Vertrieb_Claim.jpg] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: log.txt URL: