SIM900 GPRS Shield Arduino UNO with wireless serial communication

How can you use SIM900 GPRS Shield Arduino UNO to send serial messages to an Arduino console? I was also using a SAM-M8Q GPS module to obtain longitude and latitude so that it could send through the GPRS Shield. Can anyone help with the wiring and a layout of the code?