Thanks Corona688 for pointing me to the echo command. Indeed there was something wrong in the command. However, in addition to your hint I had to add the options -e (enable interpretation of backslash escapes) and -n (do not output the trailing newline) to the echo command and a forced carriage return \r after the command:
Using
now outputs the messages returned from ttyUSB0 into the file output.dat.
Concerning your question which device I use: It's an RS485-to-USB converter that is connected to an optical particle counter. The serial communication needs to be done for instrument configuration and data transfer.
hello. i'm attempting to use minicom in linux, but i'm having some difficulties. When i type in "minicom", the application opens up. It says 'starting minicom/finding modem'(something like that). However, once it actually starts, I can't do anything. No matter what I type in, it doesn't work. ... (2 Replies)
Does anyone have a working minicom script they would care to post as I can't get the scripting working and the scriptdemo and unixlogin sample scripts are on my system either.
Thanx,
I (2 Replies)
I am testing for serial comm..........
I got suggestion of minicom....
but when i fire minicom...
then i get the following error...
minicom
minicom: WARNING: configuration file not found, using defaults
Device /dev/modem access failed: No such file or directory.
I am using fedora 6 ,... (3 Replies)
Hello!
I have an ESX Server up and running. Now I want to connect a serial device to the COM Port. For that I need the minicom program.
When I try "configure - make - make all" I get some errors. Can someone please explain to me, what the problems are:
# ./configure
checking for a... (3 Replies)
Hi,
I am new to use minicom. I want script to run on minicom with username and password as automated.(Expect). please could anyone suggest the sample code for it.
Thanks in advance (2 Replies)
Hi,
I am new to using minicom. I want how to write a expect script for minicom login? I wrote a code but its not acting what iam expecting. here I have my code:
#!/usr/bin/expect
set fd
fconfigure $fd
spawn -open $fd
spawn minicom
expect “enter:”
send "\n"
send "\n"
... (3 Replies)
This is what I've tried:
#!/bin/sh
send sh
send showifs
send exit
! killall minicom
My problem is that for some reason when I do this it doesn't give me the results of the prior commands sent like showifs
So I suspect my syntax is wrong. (1 Reply)
Hi all,
i must do a little script that send AT command at ttyUSB3..
for example:
Start Minicom:
Set serial port ttyUSB3
AT+CREG?
if response != OK then do something
...other AT command (open a socket tcp/ip with at comman)
Send a file .txt for example.
exit minicom.
I saw on the... (49 Replies)
I'm a fairly new user to Linux based systems and am still a little uncomfortable with using the command interface. I'm trying to get my feet wet but have unfortunately hit a wall and am actually not even sure what I am trying to accomplish is at all possible.
Basically, I am trying to use a... (0 Replies)
hello is there a copy of minicom or equivalent for unixware 7?
thanks (3 Replies)
Discussion started by: deus-programmer
3 Replies
LEARN ABOUT HPUX
stty
stty(2) System Calls Manual stty(2)NAME
stty(), gtty() - control terminal device (Bell Version 6 compatibility)
SYNOPSIS
Remarks
These system calls are preserved for backward compatibility with Bell Version 6. They provide as close an approximation as possible to the
old Version 6 functions. All new code should use the and calls described in termio(7).
DESCRIPTION
For certain status settings and status inquiries about terminal devices, the functions and are equivalent to
and
respectively (see ioctl(2) and termio(7).
RETURN VALUE
and return the following values:
Successful completion.
Failure.
is set to indicate the error.
ERRORS
If or fails, is set to one of the following values:
[EBADF] is not a valid file descriptor.
[EFAULT] points to an invalid address.
WARNINGS
Obsolescent Interfaces
and are to be obsoleted at a future date.
SEE ALSO stty(1), exec(2), ioctl(2), sttyV6(7), termio(7), tty(7).
TO BE OBSOLETED stty(2)