Sponsored Content
Top Forums Programming Reading incoming data in serial ports Post 3749 by jricardorm on Tuesday 10th of July 2001 07:58:54 PM
Old 07-10-2001
Computer Reading incoming data in serial ports

Hi every body, i have the following problem :

I need to read incoming data from a serial port, this port has connected a weigth device to it that send the weigth and i need to read this data to my aplication, i had this problem in Window Enviroment and i resolve with a "C" routine, but in Unix environment i do not have idea how to do this. If any body can help i really appreciate this.

 

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
UMCS(4) 						   BSD Kernel Interfaces Manual 						   UMCS(4)

NAME
umcs -- USB support for serial adapters based on the MCS7820 and MCS7840 chips SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file: device usb device ucom device umcs Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): umcs_load="YES" DESCRIPTION
The umcs driver provides support for various multiport serial adapters based on the MosCom MCS7820 and MCS7840 chips. They are 2- or 4-port adapters with full-featured 16550-compatible UARTs and very flexible baud generators. Also, these chips support RS422/RS485 and IrDA opera- tions. The device is accessed through the ucom(4) driver which makes it behave like a tty(4). Different ports on device are presented as sub-units, like /dev/ttyU0.1 and /dev/ttyU0.2. HARDWARE
The umcs driver was tested on the following adapters: o ST Lab U-360 two-port serial USB adapter o ST Lab U-400 four-port serial USB adapter SEE ALSO
tty(4), ucom(4), usb(4) HISTORY
The umcs driver appeared in ports since December of 2010. AUTHORS
The umcs driver was written by Lev Serebryakov <lev@FreeBSD.org>. BUGS
This driver doesn't support access to any fine tunes of chip, like RS522/RS485 mode, non-standard baudrates, etc. BSD
February 25, 2012 BSD
All times are GMT -4. The time now is 08:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy