Sponsored Content
Top Forums Programming Reading incoming data in serial ports Post 3798 by PxT on Wednesday 11th of July 2001 04:17:11 PM
Old 07-11-2001
You can use C to communicate with a serial port under Unix. Here is the Linux HOWTO on the subject:
http://linuxdocs.org/HOWTOs/Serial-P...ing-HOWTO.html

The same info. should apply to just about any version of Unix.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Serial Ports, wacom tablet under unix

Hi, I'm new to the boards and don't know all that much about unix either. I do have quite a specific question though and i hope someone can help me with it... i'm going crazy...i've been trying to set up a wacom tablet on my unix box. i've don't it before but it was taken away and the os... (3 Replies)
Discussion started by: Salwey
3 Replies

2. UNIX for Dummies Questions & Answers

Installing a modem on a serial accelerator ports

I had been using a modem installed on a Digi accelerator port to dial in to an SCO open server r5 server. On monday it quit working and I realy don't know how it was installed and configured. I have tested the modem on a PC and it works. The port the modem is connected to is ttyB06 and I have... (1 Reply)
Discussion started by: kikkin
1 Replies

3. UNIX for Dummies Questions & Answers

Resetting hung serial ports and peripheral devices.

Working in SunOS 2.6 without the GUI, I am trying to find out what command line syntax I can use to reset the serial port. I have also been curious how to reset peripheral devices without having to reboot the machine. If anyone has a cheat sheet for that, that would be great! (1 Reply)
Discussion started by: mcherry
1 Replies

4. Shell Programming and Scripting

PERL:controlling serial ports ?

Is it possible to write a perl program to controll the serial port? e.g. What iam trying to do, for a challenge is create a box with two lights. red and green, connect to a serial port and have a perl program to give me the options to turn on the red light or green light. Is this possilbe, can... (1 Reply)
Discussion started by: perleo
1 Replies

5. Shell Programming and Scripting

Listening on port for incoming data?

I am not what I would call an experienced programmer. I know some ksh etc.. I need to be able to listening on a port for incoming data on a ultra 10 using solaris 9. Basically all that I need to do at the moment is to log the incoming data on a specific port number. Any ideas on how I... (6 Replies)
Discussion started by: frustrated1
6 Replies

6. Programming

Serial Ports - locking them, checking if they are open

Hi, I'm trying to fix up some serial code that was given to me by a coworker no longer on the project. Problem is, when the program is running and reading the port, I can take away the port by doing a cu command in another terminal window. When I release the cu, the program crashes, I think... (1 Reply)
Discussion started by: Oak
1 Replies

7. HP-UX

Help with serial ports.

Hi, This is my first post here. I would like to ask: how to connect the barcode scanner to the serial port? What are the names in the system (in / dev) and serialport1 serialport0? Please help with this. Regards. (2 Replies)
Discussion started by: ftwojtek
2 Replies

8. OS X (Apple)

Renaming serial ports in unix

Hello everyone, this is my first post and I am by no means a unix expert, so I hope I explain my issue well. I'm on a mac (mac mini), 10.7. My question is about serial port names. I have an arduino microcontroller plugged in via usb, and every time the computer is shut down it gives the... (0 Replies)
Discussion started by: superliminal
0 Replies

9. Debian

Reading data from a serial port

Dear List - I am trying to capture data from a serial port and write it to a file. /var/www$ cat /dev/ttyS0 > scale_value.html cat: /dev/ttyS0: Device or resource busy /var/www# cat /proc/tty/driver/serial serinfo:1.0 driver revision: 0: uart:16550A port:000003F8 irq:4 tx:90... (11 Replies)
Discussion started by: Meow613
11 Replies
GAMMU-DETECT(1) 						       Gammu							   GAMMU-DETECT(1)

NAME
gammu-detect - Gammu device detection New in version 1.28.95. SYNOPSIS
gammu-detect [OPTIONS] DESCRIPTION
Script to detect available devices, which might be suitable for gammu. Note This program lists all devices, which might be suitable, it does not do any probing on devices them self. Currently it supports following devices: o USB devices using udev o Serial ports using udev o Serial ports on Windows o Bluetooth devices using Bluez Note Supported devices depend on platform you are using and compiled in features. You can find out what is actually compiled in by run- ning gammu-detect -v. This program follows the usual GNU command line syntax, with long options starting with two dashes (--). A summary of options is included below. -h, --help Show summary of options. -d, --debug Show debugging output for detecting devices. -v, --version Show version information and compiled in features. -u, --no-udev Disables scanning of udev. -b, --no-bluez Disables scanning using Bluez. -w, --no-win32-serial Disables scanning of Windows serial ports. OUTPUT
The output of gammu-detect is configuration file for Gammu (see gammurc) with configuration section for every device which might be used with gammu. Note You can choose which section to use in gammu by gammu -s. When invoked as gammu-detect -d, also all examined devices are listed as comments in the output. EXAMPLE
; Configuration file generated by gammu-detect. ; Please check The Gammu Manual for more information. [gammu] device = /dev/ttyACM0 name = Nokia E52 connection = at [gammu1] device = /dev/ttyACM1 name = Nokia E52 connection = at [gammu2] device = /dev/ttyS0 name = Phone on serial port 0 connection = at [gammu3] device = /dev/ttyS1 name = Phone on serial port 1 connection = at [gammu4] device = /dev/ttyS2 name = Phone on serial port 2 connection = at [gammu5] device = /dev/ttyS3 name = Phone on serial port 3 connection = at [gammu6] device = 5C:57:C8:BB:BB:BB name = Nokia E52 connection = bluephonet AUTHOR
Michal iha <michal@cihar.com> COPYRIGHT
2009-2012, Michal iha <michal@cihar.com> 1.31.90 February 24, 2012 GAMMU-DETECT(1)
All times are GMT -4. The time now is 10:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy