We have had a problem for a while now with our hardware connections, trying to send and recieve AT commands through a modem connected to a QT py SAMD21 via UART. When we try troubleshooting it with putty or m-center we are neither able to type anything, nor recieving responses from the AT commands. We have tried using different boards such as a base hat but we get the same problem with the AT commands not responding.
However, when we connected the modem to a mini PCI-E to USB adapter, it worked completley fine when sending AT commands, though it was connected to a laptop and not directly to the QT py.
You posted some pictures but I do not have a clue as to what is what. Post an annotated schematic, it appears to be a hardware problem. Be sure to show all connections, power, ground, power sources and any other hardware.
There may be many other wires seen on the picture, making it a bit confusing to understand what goes where, so I made a schematic to make it easier to visualize how they are connected:
In the code snippet you posted, there is nothing to indicate that the modem you're trying to talk to is "associated" with Serial1, rather than just "Serial."
(Please post more complete code.)
In the libraries for cell modems that I find with a casual search, I don't even see the capability of using a different serial port.
(Please tell use exactly which libraries you are using.)