Modem showing up at /dev/ttyS2 instead of /dev/ttyUSB1 and factorytest times out
#2
Ok so I've solved this (or well atleast figured out how to work around this issue). Essentially the core of the issue is that for whatever reason the USB devices provided by the EG25 modem don't register. However /dev/ttyS* devices are still available and making calls / texts via raw AT commands work. For Sxmo, since everything is based on modemmanager, I've just created a udev rule to have mm access the raw serial AT device instead of the USB device.

If anyone else gets stuck on this issue basically what you can do to get modemmanager back working is create the udev rule:

Code:
ACTION!="add|change|move|bind", GOTO="mm_whitelist_end"
DEVPATH=="/devices/platform/soc/1c28c00.serial/tty/ttyS2" ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1"
DEVPATH=="/devices/platform/soc/1c28c00.serial/tty/ttyS2" ENV{ID_MM_DEVICE_PROCESS}="1"
DEVPATH=="/devices/platform/soc/1c28c00.serial/tty/ttyS2" ENV{ID_MM_TTY_BAUDRATE}="115200"
DEVPATH=="/devices/platform/soc/1c28c00.serial/tty/ttyS2" ENV{ID_MM_TTY_FLOW_CONTROL}="none"
DEVPATH=="/devices/platform/soc/1c28c00.serial/tty/ttyS2" ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1"
LABEL="mm_whitelist_end"


Add the above snippet to /etc/udev/rules.d/60-modemfix.rules and you should see your modem appearing again in mmcli.

Also, incoming dialing might be broken since I believe by default the EG25 uses a separate port for rings/texts; to resolve this issue you can run the raw AT command:

Code:
AT+QURCCFG="urcport","uart1"

This will force the modem to ring/use the URC port the same as the primary serial device.

---

This fix isn't ideal and I still would like to figure out how to get USB modem devices back; seems like this may be a hardware or maybe a software issue (though if software there's probably only some quite low-level fix because multiple distros exhibit this problem, and this issue started spontaneously..); So I think the USB devices disappearing / breaking very well could be a PP hardware issue. I'm not entirely sure.

But atleast now I have  calls and texts back on Sxmo on my (well.. probably somehow broken Pinephone) and can get back to improve the dialer UI  Shy


Messages In This Thread
RE: Modem showing up at /dev/ttyS2 instead of /dev/ttyUSB1 and factorytest times out - by mil - 06-06-2020, 06:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Supported Carrier and Modem Bands NachoMomma 4 1,617 03-23-2024, 02:00 PM
Last Post: Kevin Kofler
  power circuit can't charge battery and can't supply enough power for modem or wifi vortex 2 560 02-17-2024, 04:15 PM
Last Post: vortex
Bug PinePhone modem keeps "disappearing" Kevin Kofler 14 5,689 03-22-2023, 05:28 PM
Last Post: Kevin Kofler
  modem not working michelinux 0 935 02-16-2023, 04:56 AM
Last Post: michelinux
  modem not detected al_x 3 4,248 02-15-2023, 11:17 AM
Last Post: fxc
  firmware udate Quectel EG25-G modem alwi 7 5,445 07-06-2022, 01:43 PM
Last Post: user641
  Need command to tell what modem firmware I am on. purpletiger 4 2,899 07-06-2022, 12:35 PM
Last Post: Zebulon Walton
  The modem does not recognize Korean SIM cards (what?) bdicewk 9 4,158 06-13-2022, 04:12 AM
Last Post: zetabeta
  Modem Hardware bad? Not ready for 5g?? linux76 8 4,783 05-31-2022, 06:41 PM
Last Post: SwordfishII
  Modem in failed state, not sending/receiving SMS brb78 5 3,695 03-31-2022, 08:37 AM
Last Post: wibble

Forum Jump:


Users browsing this thread: 1 Guest(s)