Objective - I want to control linux via serial port.
Problem - I am able to send commands. But not able to send the Carriage return key to make linux execute.
Platform - Using Perl on MSDOS(WinXP) to control serial port.
Tries - Used \n, \r\n and also under bitmode() of perl.
Findings -...
Hi Paul,
I did try them. Also tried the binmode(). But it goes to thenext line, but doesnt come up with the prompt - meaning it dint execute the previous statement.
E.g.
.#ls -- followed by \r\n
.| -- consider | as cursor position
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.