05-07-2015
What options you use depends on what options you need.
What options you need depend on how the programmer talks.
In other words, what are you expecting? Does it send and receive lines of text like a modem, or does it send packets of unescaped binary data, or does it respond when you bit-bang control bits, or what?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
We're running SCO Unix Openserver 5.05 and I'm having trouble with serial communication between the com2 serial port and a handheld device. Downloading data from Unix to the handheld works perfectly, but the other way around creates a major problem. I don't know whether it's a buffer overflow or... (1 Reply)
Discussion started by: Aretha
1 Replies
2. UNIX for Advanced & Expert Users
Hi,
I am working on serial communication on Unix. Can anyone guide me through it. The steps required for RS 232 communication and can i do serial communication even if i dont have super user previledges.
Thankx,
Vicky (1 Reply)
Discussion started by: Vicky
1 Replies
3. UNIX for Dummies Questions & Answers
This isn't really a unix question, or even a programming question, but I hope you guys can help. I want to create a program to control the electricity on a model railway.
I have created the program to that it sends characters over the serial cable, but now I need to do the switch that will... (1 Reply)
Discussion started by: KrazyGuyPaul
1 Replies
4. IP Networking
I have serial modem connection between two computers. We have to login the remote computer through ip address. How can I get the ip address in this connection? (1 Reply)
Discussion started by: pcsaji
1 Replies
5. Programming
hello,
I am gettin problem while sending and recieving data through seial port...
when I am sending Data then the reciever end is not able to recieve that data .....
Reciever end is running in infinite loop just polling after some time to check that there is data on the port and then again... (9 Replies)
Discussion started by: arunchaudhary19
9 Replies
6. OS X (Apple)
Hi again,
I spoke with Keyspan and they assured me the USB to Serial device was working if I could use the Screen tool.
I asked why I was unable to redirect stdin/stdout to and from the /dev/tty. device and was told there was no reason I shouldn't be able to do so.
I have tried:
... (1 Reply)
Discussion started by: cpfogarty
1 Replies
7. Shell Programming and Scripting
Hi there
how can i get the result of a command to not give me its error. For example, on certain systems the 'zfs' command below is not available, but this is fine becaues I am testing against $? so i dont want to see the message " command not found" Ive tried outputting to /dev/null 2>&1 to no... (5 Replies)
Discussion started by: hcclnoodles
5 Replies
8. Ubuntu
Hello!
I am working on an application which reads environmental instruments which have serial ports. The application requires a serial port to be present to talk to the device (i.e. /dev/ttyS0 ). In some instances the environmental devices will be 100's of yards away from the computer, so a... (5 Replies)
Discussion started by: mvona
5 Replies
9. Programming
edit: never mind; mods please delete. I finally got so frustrated I figured it couldn't be the code and it must be the device on the other end. After pulling it out of its cradle, I realized it was a different model number than the one I was using before, and wasn't accepting my... (1 Reply)
Discussion started by: DreamWarrior
1 Replies
10. UNIX for Dummies Questions & Answers
Hey, I'm completely new at this and I was wondering if there is a way that I would be able to redirect the log files in a directories standard output and standard error into and excel spreadsheet in anyway?
Please remember don't use too advanced of terminology as I just started using shell... (6 Replies)
Discussion started by: killaram
6 Replies
LEARN ABOUT DEBIAN
tcpser
TCPSER(1) General Commands Manual TCPSER(1)
NAME
tcpser - emulate a Hayes compatible modem
SYNOPSIS
tcpser -d dev -s speed [-l log_level -t tracing_options] ...
tcpser -v port [-l log_level -t tracing_options] ...
DESCRIPTION
This manual page documents briefly the tcpser command.
tcpser turns a PC serial port into an emulated Hayes compatible modem that uses TCP/IP for incoming and outgoing connections. It can be
used to allow older applications and systems designed for modem use to operate on the Internet. tcpser supports all standard Hayes com-
mands, and understands extended and vendor proprietary commands (though it does not implement many of them). tcpser can be used for both
inbound and outbound connections.
OPTIONS
A summary of options is included below.
-h Show summary of options.
-p Port to listen on (defaults to 6400).
-t Trace flags: (can be combined)
s modem input
S modem output
i IP input
I IP output
-l Log level: 0 (NONE), 1 (FATAL) - 7 (DEBUG_X) (defaults to 0).
-L Log file (defaults to stderr).
The following can be repeated for each modem desired (-s, -S, and -i will apply to any subsequent device if not set again):
-d Serial device (e.g. /dev/ttyS0). Cannot be used with -v
-v TCP port for VICE RS232 (e.g. 25232). Cannot be used with -d
-s Serial port speed (defaults to 38400).
-S Speed modem will report (defaults to -s value).
-I Invert DCD pin.
-n Add phone entry (number=replacement).
-a Filename to send to local side upon answer.
-A Filename to send to remote side upon answer.
-c Filename to send to local side upon connect.
-C Filename to send to remote side upon connect.
-N Filename to send when no answer.
-B Filename to send when modem(s) busy.
-T Filename to send upon inactivity timeout.
-i Modem init string (defaults to `', leave off `at' prefix when specifying).
-D Direct connection (follow with hostname:port for caller, : for receiver).
AUTHOR
tcpser was written by Jim Brain <brain@jbrain.com>.
This manual page was written by Peter Collingbourne <pcc03@doc.ic.ac.uk>, for the Debian project (but may be used by others).
July 5, 2006 TCPSER(1)