nirmalguna
Programmer
Hi,
I am trying to control an OMAP with Linux, from a Windows laptop running Perl via serial port. I could open serial port (COM1) and send commands, but not able to execute them by sending the enter key. I tried \n but it only moving the cursor to the next line, and not imitating enter key. Code is below. Any suggestions? Please help!!
---------
open( PORT, "+>COM1") or die "Cant open COM1 - $!";
$msg="ls\n";
print PORT $msg;
---------
The output comes as
.#ls
|
but doesnt execute..
Thanks!
I am trying to control an OMAP with Linux, from a Windows laptop running Perl via serial port. I could open serial port (COM1) and send commands, but not able to execute them by sending the enter key. I tried \n but it only moving the cursor to the next line, and not imitating enter key. Code is below. Any suggestions? Please help!!
---------
open( PORT, "+>COM1") or die "Cant open COM1 - $!";
$msg="ls\n";
print PORT $msg;
---------
The output comes as
.#ls
|
but doesnt execute..
Thanks!