Does the Mega that you can only get to its USB port, actually send the data you need out the USB port already?
You can check this by connecting a PC with either a terminal program, or the Arduino IDE and use its Monitor facility.
You may have to make some guesses at the baud rate, to see what the Mega is sending out.
WARNING, when the monitor initailises to check the USB port, it will make the Mega reset.