The serial port needs to be configured in the emlulator. If you use the hardware it might be ready to run. Some adjustments may need to be made in case your modem does not send the echo, does the bianry reply, or uses different codes for the end of line.
Files for the sample application: