ATZ is the old fashioned command introduced by HAYES modems brand, and made it a standard. https://en.wikipedia.org/wiki/Hayes_command_set I am felling I am old
To dial another modem ATDT or ATDP + the number etc. golden times
I never tested in B4A, but you can use AsyncStreams to open a TCP socket to port 23 etc.