On the pinephone, how to communicate with the modem (with AT commands)

I know, too late, but this might be useful to someone: