Reduce MAX_HOST_NAME_BUF_SIZE to 128.
In most cases, it would be enough.
Don't print out in/out data by default.
Remove one '\r' from 'at_out_trans' string.
Or the second '\r' might be treated as data and be sent
out.