Hi All,
I am a begineer in Linux, I have 4 ports and 3 are operational port 1,port 2 and port 4 (when I plug in serial device I can see it working) but port 3 seems it is not working.
I am sure the hardware is fine.
when I give command
dmesg | grep tty
I get,
serial 8250:ttyS0 at... (0 Replies)
dear sir,
pls. can you help me ? , my os is unix sco 5.0.4 and ,server dat derive (1,4gb)
not working, now i want to transfer my server data in other machine (unix/other possible) by serial port/other port comminication.
thanks
pankaj raval (2 Replies)
I have problem with C programming. I want to send & receive data through serial communication. I send data(command) to device to get data from device but when receive data, it can't get altogether of data.
It get only some data. What should I do to get altogether of data?
If all of... (7 Replies)
Hi,
I have a external board connected to my serial port. I need to execute "shutdown -r now" command when system boot up. When system boots up it requires a username ans password. Then I need to run my command. I can use rc script but that is rebooting system before it asks for username and... (0 Replies)
Hi Everyone,
In my environment, I have few T5220. On the iLOM Management Card, I have both Network and Serial port are cabled, I don't have any issues while I try to connect using Network Management port, but when I try to connect the serial port for the same server which is actually connected... (3 Replies)
hey frns pls help me out !!
i hav a code of c that i have to include in my project.
i am using a device (geomeda) that has unix based OS. it also support SIM card for connecting to server . I need to send SMS to user from this device..
below code is not working .. i am unable to send sms and the... (7 Replies)
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)
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)
Hello,
I have an unloaded T5140 machine and want to access the ILOM for the first time and subsequently the network port after that., and then load Solaris 10 the final January 2011 build.
The first part is what confuses me -the cabling.
I am coming from a Windows machine (w/appropriate... (5 Replies)
Discussion started by: joboy
5 Replies
LEARN ABOUT CENTOS
poll.h
poll.h(3HEAD) Headers poll.h(3HEAD)NAME
poll.h, poll - definitions for the poll() function
SYNOPSIS
#include <poll.h>
DESCRIPTION
The <poll.h> header defines the pollfd structure, which includes the following members:
int fd the following descriptor being polled
short events the input event flags (see below)
short revents the output event flags (see below)
The <poll.h> header defines the following type through typedef:
nfds_t an unsigned integer type used for the number of file descriptors
The implementation supports one or more programming environments in which the width of nfds_t is no greater than the width of type long.
The names of these programming environments can be obtained using the confstr() function or the getconf utility. See confstr(3C) and get-
conf(1).
The following symbolic constants are defined, zero or more of which can be OR'ed together to form the events or revents members in the
pollfd structure:
POLLIN Data other than high-priority data can be read without blocking.
POLLRDNORM Normal data can be read without blocking.
POLLRDBAND Priority data can be read without blocking.
POLLPRI High priority data can be read without blocking.
POLLOUT Normal data can be written without blocking.
POLLWRNORM Equivalent to POLLOUT.
POLLWRBAND Priority data can be written.
POLLERR An error has occurred (revents only).
POLLHUP Device has been disconnected (revents only).
POLLNVAL Invalid fd member (revents only).
The significance and semantics of normal, priority, and high-priority data are file and device-specific.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO getconf(1), poll(2), confstr(3C), attributes(5), standards(5)SunOS 5.10 9 Sep 2004 poll.h(3HEAD)