First things first, write your device driver on your Linux box to talk to your device.
For example: say you have a device that displays text. You should write a small program on your PC that accepts a line of text and displays it on the microcontrolled device like './bin/DisplayText hello world'