Currently, I'm connected to the module via an FTDI cable to a terminal.

This works fine.

But how do I make it work with the PIC?