Linux acting as USB device
Solution 1:
You should check out http://www.linux-usb.org/gadget/, USB gadget API under Linux,
In the Linux source code tree, there is "Documentation/usb/gadget_serial.txt", this should explain how to make the device appear as COM port on connected host PC, provided that your hardware device USB port can work as USB slave, check your device documentation.