TurnKey Linux Virtual Appliance Library

Connecting to a COM Port with Turnkey and Virtualbox

chadhuntley's picture

I created a point of sale system that pops open a cash drawer using the following command:

<?php system('echo>com4'); ?>

This works on my development machine, but once I throw it in Turnkey LAMP, the command will not run. Even though that port is being occupied by the host machine, the LAMP virtual machine will not identify it.

How do I get this port to register on the virtual machine as well? I've tried setting up the COM port settings in Virtualbox but nothing seems to work. I'd appreciate any help I can get on this, it's the last piece of the project that I'm stuck on.

Eric (tssgery)'s picture

Never tried it myself

I've never tried this myself but in Linux, the serial ports are named /dev/ttyS* (/dev/ttyS0==COM1, /dev/ttyS1=COM2, etc) and not COM1-COMx

I found a little tutorial on the web that may help, check out: http://techtooltip.wordpress.com/2008/09/12/using-host-serial-port-from-...

I'd be interested in know if you can get it to work, please post back as to if you have any success.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)