Sponsored Content
Full Discussion: Writing to a Serial Port
Top Forums Web Development Writing to a Serial Port Post 302920188 by shamrock on Wednesday 8th of October 2014 12:55:48 AM
Old 10-08-2014
Are you running that php script as root user...and post the output of setserial -a /dev/ttyS0 here...
 

10 More Discussions You Might Find Interesting

1. Linux

urgent......Serial port

I think my serial port(on board) is not working ...... because when I am running same code on two machines its working good....but when my system comes into picture ....it doesnt show any output comming from serial port.......... can anybody tell me how to configure my serial port.........or to... (16 Replies)
Discussion started by: arunchaudhary19
16 Replies

2. Solaris

Serial port not found

Hi, I am working with solaris 9,SUN-Blade-100 and I want to communicate with the Serial port.To check whether the port is working or not.I write code and when I execute the file,then I got the output-- According to this,serial port is not found.can anyone please tell me how to configure the... (1 Reply)
Discussion started by: smartgupta
1 Replies

3. Programming

How to tell if a string to serial port has been sent

I have a need to determine when a string has been completely sent via a serial port from a standard 'C' application. The code is as follows: SerialPort_Send = open (pPortString, O_WRONLY | O_NOCTTY | O_NONBLOCK); write (SerialPort_Send, pCommandString, strlen (pCommandString)); ... (2 Replies)
Discussion started by: ExDes
2 Replies

4. AIX

Serial port in AIX

Hi, How can i configure my modem in AIX thru serial port (sa0-->tty0) I have two port serial card configured as sa0 I created tty1 which port is tty0 and which port is tty1 how can i know?? (1 Reply)
Discussion started by: pchangba
1 Replies

5. UNIX for Dummies Questions & Answers

Missing serial port

A neighbour's Ubuntu 10.04 machine has five serial ports, one on the motherboard and four on a PCI card. However, only four cards are showing: # dmesg | grep tty console enabled serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A ... (2 Replies)
Discussion started by: dotancohen
2 Replies

6. Shell Programming and Scripting

Need help with serial port

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)
Discussion started by: charlie.arya
0 Replies

7. Solaris

How to enable Serial port on ILOM, when Network Port is enabled in parallel

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)
Discussion started by: bobby320
3 Replies

8. Shell Programming and Scripting

reading from and writing to serial port

hello all, please any one can provide me the shell script to write data to /dev/ttyS1 and read responce from /dev/ttyS1 and compare the responce to some string .. thnxx ---------- Post updated at 03:35 PM ---------- Previous update was at 11:46 AM ---------- any body help me.. how do i... (1 Reply)
Discussion started by: yashwantkumar
1 Replies

9. Web Development

Setup Serial Port

I need to set a serial port to 9600 7E1. How do I accomplish this? I've tried every combination, with no luck. (6 Replies)
Discussion started by: Meow613
6 Replies

10. Solaris

Cabling and adapters to communicate to service processor serial port from Windows PC with USB port.

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

NAME
puc -- PCI ``universal'' communications card driver SYNOPSIS
puc* at pci? dev ? function ? com* at puc? port ? lpt* at puc? port ? DESCRIPTION
The puc driver provides support for PCI communications cards containing simple communications ports, such as NS16550-family (com) serial ports and standard PC-like (lpt) parallel ports. The driver is called ``universal'' because the interfaces to these devices aren't nearly as well defined and standard as they should be. The driver currently supports the following cards: ADDI-DATA APCI-7800 (8 port serial) Actiontec 56K PCI Master Advantech PCI-1604UP (2 port serial) Advantech PCI-1610 (4 port serial) Advantech PCI-1612 (4 port serial) Advantech PCI-1620 (8 port serial) Avlab Low Profile PCI 4S Quartet (4 port serial) Avlab Low Profile PCI 4 Serial (4 port serial) Avlab PCI 2S (2 port serial) Boca Research Turbo Serial 654 (4 port serial) Boca Research Turbo Serial 658 (8 port serial) Chase Research / Perle PCI-FAST4 (4 port serial) Chase Research / Perle PCI-FAST8 (8 port serial) Comtrol RocketPort 550/4 series (4 port serial) Comtrol RocketPort 550/8 series (8 port serial) Comtrol RocketPort 550/16 series (16 port serial) Decision Computer Inc PCCOM PCI 2 Port (2 port serial) Decision Computer Inc PCCOM PCI 4 Port (4 port serial) Decision Computer Inc PCCOM PCI 8 Port (8 port serial) Digi International Digi Neo 4 (4 port serial) Digi International Digi Neo 8 (8 port serial) Dolphin Peripherals 4014 (dual parallel) Dolphin Peripherals 4035 (dual serial) Dolphin Peripherals 4036 (dual serial) EXAR XR17D152 (2 port serial) EXAR XR17D154 (4 port serial) EXAR XR17D158 (8 port serial) Exsys EX-41098 (4 port serial) IBM 4810 SurePOS 300 Series SCC (4 port serial) InnoSys Keyspan SX Pro (4 port serial) Intel chipset internal Serial over LAN I-O DATA RSA-PCI (2 port serial) I-O DATA RSA-PCI2 (2 port serial) I-O DATA RSA-PCI2/P4 (4 port serial) I-O DATA RSA-PCI2/P8 (8 port serial) Lava Computers 2SP-PCI (single parallel) Lava Computers Octopus (8 port serial) Lava Computers Quatro-PCI (4 port serial) Lava Computers dual serial Lava Computers SSERIAL-PCI (single serial) Middle Digital, Inc. Weasel serial port Moxa Technologies SmartIO C104H/PCI (4 port serial) Moxa Technologies SmartIO C168EL-A/PCIe (8 port serial) Moxa Technologies SmartIO C168EL/PCIe (8 port serial) Moxa Technologies SmartIO C168H/PCI (8 port serial) Moxa Technologies SmartIO C168U/PCI (8 port serial) Moxa Technologies SmartIO CP-114/PCI (4 port serial) Moxa Technologies SmartIO CP-102/PCI (2 port serial) Moxa Technologies SmartIO CP-104-EL/PCIe (4 port serial) Moxa Technologies SmartIO CP-104-V2/PCI (4 port serial) Moxa Technologies SmartIO CP-104/PCI (4 port serial) Multi-Tech ISI5634PCI/4 (4 port serial) NEC PK-UG-X001 K56flex PCI Modem NEC PK-UG-X008 NetMos 1P PCI (single parallel) NetMos 2S1P PCI 16C650 (dual serial and single parallel) NetMos 4S1P PCI NM9845 (4 port serial and single parallel) NetMos NM9805 1284 (single parallel) NetMos NM9815 Dual 1284 (dual parallel) NetMos NM9835 series (up to dual serial and single parallel) NetMos NM9845 series (up to 6 serial and 1 parallel) NetMos NM9865 series (up to 4 serial and 2 parallel) NetMos NM9901 PCIe (1 serial or 1 parallel) NetMos NM9904 PCIe (4 port serial) NetMos NM9922 PCIe (2 port serial) Oxford Semiconductor OX16PCI952 (dual serial and single parallel) Oxford Semiconductor OX16PCI954 (4 port serial) Oxford Semiconductor OX16PCI958 (8 port serial) Oxford Semiconductor OXPCIe952 (2 port serial, legacy mode) Oxford Semiconductor OXmPCI952 (2 port serial) Perle Systems PCI-RAS 4 modem ports Perle Systems PCI-RAS 8 modem ports Perle Systems PCI-RASV92 4 modem ports Perle Systems PCI-RASV92 8 modem ports SIIG Cyber 2P1S PCI series (dual parallel and single serial) SIIG Cyber 2S1P PCI series (dual serial and single parallel) SIIG Cyber 4 PCI 16550 (4 port serial) SIIG Cyber 4S PCI series (quad serial) SIIG Cyber I/O PCI series (single serial and single parallel) SIIG Cyber Parallel Dual PCI series (dual parallel) SIIG Cyber Parallel PCI series (single parallel) SIIG Cyber Serial Dual PCI series (dual serial) SIIG Cyber Serial PCI series (single serial) SIIG PS8000 PCI 8S series (8 port serial) SUNIX 400x (1 port parallel) SUNIX 401x (2 port parallel) SUNIX 402x (1 port serial) SUNIX 403x (2 port serial) SUNIX 405x (4 port serial) SUNIX 406x (8 port serial) SUNIX 407x (2 port serial and 1 port parallel) SUNIX 408x (2 port serial and 2 port parallel) SUNIX 409x (4 port serial and 2 port parallel) SUNIX 5008 (1 port parallel) SUNIX 5016 (8 port serial) SUNIX 5027 (1 port serial) SUNIX 5037 (2 port serial) SUNIX 5056 (4 port serial) SUNIX 5066 (8 port serial) SUNIX 5069 (1 port serial and 1 port parallel) SUNIX 5079 (2 port serial and 1 port parallel) SUNIX 5099 (4 port serial and 1 port parallel) Syba Tech Ltd. PCI-4S Syba Tech Ltd. PCI-4S2P-550-ECP SystemBase SB16C1054PCI (4 port serial) SystemBase SB16C1058PCI (8 port serial) US Robotics (3Com) 3CP5609 PCI 16550 Modem VScom PCI-010HV2 (1 port parallel) VScom PCI-010L (1 port parallel) VScom PCI-011H (1 port parallel) VScom PCI-100H (1 port serial) VScom PCI-100L (1 port serial) VScom PCI-110L (1 port serial and 1 port parallel) VScom PCI-200 (dual serial) VScom PCI-200H (dual serial) VScom PCI-200HV2 (dual serial) VScom PCI-200L (dual serial) VScom PCI-200Li (dual serial) VScom PCI-210L (2 port serial and 1 port parallel) VScom PCI-400 (4 port serial) VScom PCI-400L (4 port serial) VScom PCI-800 (8 port serial) VScom PCI-800H (8 port serial) VScom PCI-800L (8 port serial) The driver does not support the cards: Dolphin Peripherals 4006 (single parallel) Dolphin Peripherals 4025 (single serial) Dolphin Peripherals 4078 (dual serial and single parallel) but support for them (and for similar cards) should be trivial to add. The port locator is used to identify the port (starting from 0) on the communications card that a subdevice is supposed to attach to. Typi- cally, the numbering of ports is explained in a card's hardware documentation, and the port numbers used by the driver are the same as (or one off from, e.g. the manual uses ports numbered starting from 1) those described in the documentation. SEE ALSO
com(4), lpt(4), pci(4) HISTORY
The puc driver appeared in NetBSD 1.4. AUTHORS
The puc driver was written by Chris Demetriou. BUGS
The current design of this driver keeps any com ports on these cards from easily being used as console. Of course, because boards with those are PCI boards, they also suffer from dynamic address assignment, which also means that they can't easily be used as console. Some of the cards supported by this driver have jumper-selectable com port clock multipliers, which are unsupported by this driver. Those can be easily accommodated with driver flags, or by using a properly scaled baud rate when talking to the card. Some of the cards supported by this driver, e.g. the VScom PCI-800, have software-selectable com port clock multipliers, which are unsup- ported by this driver. Those can be accommodated using internal driver flags, or by using a properly scaled baud rate when talking to the card. Some ports use an lpt driver other than the machine-independent driver. Those ports will not be able to use lpt ports attached to puc devices. BSD
October 26, 2012 BSD
All times are GMT -4. The time now is 01:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy