Sponsored Content
Top Forums Programming Problem with read data from serial device Post 302396041 by Corona688 on Wednesday 17th of February 2010 02:26:02 PM
Old 02-17-2010
Could you explain the problem in more detail? What are you sending to? What are you sending? What are you receiving? What should you be receiving?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

serial port device path

hi. Im trying to install a switch. And the manual says i should type a command including a SerialPortDevicePath. which is the filepath to serial port used for connection. However.. nothing about how to find this info. Could anyone help me where to find this path? thx mr.T (6 Replies)
Discussion started by: tyskertøs
6 Replies

2. Programming

Accessing device with Prolific USB-serial controller.

I am trying to access DG-100 gps logger on Mac OS X with POSIX API. The device uses a Prolific usb-serial controller, and connect to the usb port on my mac. After I install the Prolific driver, it shows up as /dev/tty.usbserial and /dev/cu.usbserial. The vendor has published the data format. So... (1 Reply)
Discussion started by: monkeybiz
1 Replies

3. Linux

Device serial number

Hey! I'm trying to figure out a sollution for a problem I have at my company with an Iomega MiniMax 500 GB USB disk. If i run cat /proc/bus/usb/devices I get this information: T: Bus=01 Lev=02 Prnt=04 Port=00 Cnt=01 Dev#= 5 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00... (2 Replies)
Discussion started by: noratx
2 Replies

4. Ubuntu

Ubuntu 9.04 Serial application to telnet to serial device

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

5. Shell Programming and Scripting

problem to read data in array

My input is a long list of data start with "#": #read_1 123456898787987 #read_2 54645646540646406 #read_3 4654564654316 . . I got a bit confusing about how to set all in an array first. And then when I run a program name "statistic_program", it will read the array in scalar and do... (24 Replies)
Discussion started by: patrick87
24 Replies

6. AIX

Tape drive problem - no process to read data written to a pipe

Hi Everyone, The machine I'm working on is an AIX 5.3 LPAR running on a P650. oslevel -r shows 5300-08. I'm trying to take a backup to a SCSI tape drive, which has been working up until this point. I know of nothing that has changed recently to cause this problem. But when I try to take a... (0 Replies)
Discussion started by: need2bageek
0 Replies

7. SCO

Modifying serial printers device

I am trying to change one of my serial printers from /dev/ttyr002 to /dev/ttyr014: lpstat -s device for check3: /dev/ttyr002 device for check4: /dev/ttyr002 I changed the tty setting for check3 in: /etc/printcap /var/spool/lp/admins/lp/printers/check3 to /dev/ttyr014 Then I get:... (4 Replies)
Discussion started by: herot
4 Replies

8. Programming

Wrong data with Read from a serial port.

hi, I've a problem on my C/C++ program with Posix Library. I have to read data from the serial but I have incorrect data, in fact I get a bunch of zeros: "2953.3174, 2785.2126, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0 , 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ,... (24 Replies)
Discussion started by: enaud
24 Replies

9. Programming

Read from serial port

Hi I try to communicate with a GSM modem, from C, for sending SMS. I use standart AT-commands. Working well with terminal. There is no problem writing ti the port. But when I try to read I only get a echo, I write "ATI" and get "ATI" back, I should get somthing like "SIEMENS 35... (4 Replies)
Discussion started by: dmiller
4 Replies

10. Shell Programming and Scripting

Read line from serial device with BASH

I'm new to Linux (Ubuntu 16.04), and very new to BASH scripting. I have a Numato 8-channel USB GPIO device, which is a DAQ that appears in the system as a serial port. In Linux it appears as ttyACM0. I can easily manipulate a GPO with, for example: echo "gpio set 7" > /dev/ttyACM0 ...followed... (12 Replies)
Discussion started by: Chalk-X
12 Replies
sigsend(2)							System Calls Manual							sigsend(2)

NAME
sigsend(), sigsendset() - send a signal to a process or a group of processes SYNOPSIS
DESCRIPTION
The system call sends a signal to a process or a group of processes. The process or group of processes to which the signal is to be sent is specified by id and idtype. The signal to be sent is specified by sig and is either one from the list given in (see signal(2)) or 0. If sig is equal to zero (the null signal), error checking is performed but no signal is actually sent. This can be used to check the validity of id and idtype. The real or effective user ID of the sending process must match the real or effective user ID of the receiving process, unless the process has appropriate privileges, or sig is and the sending process has the same session ID as the receiving process. idtype and id work together as follows: o If idtype is sig will be sent to the process with a process ID equal to o If idtype is sig will be sent to any process with a process group ID equal to o If idtype is sig will be sent to any process with a session ID equal to o If idtype is sig will be sent to any process with an effective user ID equal to o If idtype is sig will be sent to any process with an effective group ID equal to o If idtype is sig will be sent to all processes and id will be ignored. o If id is the value of id is taken from the calling process. The process with a process ID of is always excluded. The process with a process ID of is included only if idtype is equal to provides an alternate interface for sending signals to a set of processes. psp is a pointer to a structure that includes the following members: idop p_op; idtype_t p_lidtype; id_t p_lid; idtype_t p_ridtype; id_t p_rid; The structure defines a set of processes as the result of a set operation (difference, union, intersection, or exclusion) on two operands (idtype/id pairs). The left (right) operand is specified by and takes the values specified by id and takes the values specified by idtype in the system call defined above. p_op specifies the operand, and takes one of the following values: Set difference. The resultant set consists of the processes that are in the left operand and not in the right operand. Set intersection. The resultant set consists of the processes that are in both the left and right operands. Set union. The resultant set consists of the processes that are in either the left or right operand or both. Set exclusive The resultant set consists of the processes that are in either the left or right operand but not in both. RETURN VALUE
Upon successful completion, returns a value of Otherwise, it returns a value of -1 and sets to indicate the error. ERRORS
If fails, it sets errno (see errno(2)) to one of the following values: [EINVAL] sig is neither a valid signal number nor zero. [EINVAL] idtype is not a valid value. [EINVAL] sig is idtype is and id is [ESRCH] No process can be found corresponding to that specified by id and idtype. [EPERM] The user ID of the sending process is not 0, and its real or effective user ID does not match the real or effective user ID of the receiving process, and the calling process is not sending to a process that shares the same session ID. SEE ALSO
kill(2), signal(2). sigsend(2)
All times are GMT -4. The time now is 10:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy