Serial ,Port

Hi,
I need to help related with Serial port issue,
Is it possible that giving data from serial port?

I use sim900, and I want to get error messages from serial port, from the response of library files,
Can anyone help me?