LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-18-2008, 09:19 AM   #1
smartgupta
Member
 
Registered: Sep 2008
Posts: 81

Rep: Reputation: 15
Unhappy process name when connect via serial port


Hi,

I am working with solaris 9,SUN-Blade-100 and in my application,I have to communicate with the serial port.
Quote:
Can anyOne please tell me the name of the process when we connect serial port.


e.g. for USB connection /dev/usb0 or /dev/hiddev0 process is created.

Thanks in Advance ...
 
Old 11-18-2008, 09:38 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by smartgupta View Post
Hi,

I am working with solaris 9,SUN-Blade-100 and in my application,I have to communicate with the serial port.


e.g. for USB connection /dev/usb0 or /dev/hiddev0 process is created.

Thanks in Advance ...
You don't say anything about your application, so it's hard to offer advice. If the process is run when you log in via that serial port, you could do a ps, look for that process, and look for what device is running it (like pts2, tty0, etc.).
 
Old 11-18-2008, 12:51 PM   #3
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Serial port devices are: /dev/ttyS0, /dev/ttyS1, ...
 
Old 11-18-2008, 01:09 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I think the standard device names for serial ports under Solaris are /dev/ttya, /dev/ttyb, etc. Process names are another matter, and as far as I know, do not depend on any device names.
--- rod.
 
Old 11-19-2008, 12:52 AM   #5
smartgupta
Member
 
Registered: Sep 2008
Posts: 81

Original Poster
Rep: Reputation: 15
In my application,I am conneting a UPS and I have to monitor it via getting and sending the information using serial port or contact-closure.
So It should read the data from the UPS.To do it,It should start the process to communicate with the UPS.
So I have to find out that process is bieng stated or not??
For that,first I need to know the process name...

So Please help me out to getting the process name ?

Thanks in Advance ...
 
Old 11-19-2008, 02:51 AM   #6
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Well,.. eh, nt very clear what you want to hear from us. If you write a program, you get to decide what the name of de process will be. If you did not program it yourself, what was the command you type in to start the process? If you just installed it from the UPS vendor and is started automatically, have a look in the manual, the README that probably came with, etc. etc.
 
Old 11-19-2008, 07:26 AM   #7
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Further to Hko's comments, your UPS monitor should be no different from any other process, and that it talks to the serial port is mostly irrelevant. If you have lsof installed, you can run that, and find the PID(s) that have the serial port(s) open.
--- rod.
 
Old 11-20-2008, 01:10 AM   #8
smartgupta
Member
 
Registered: Sep 2008
Posts: 81

Original Poster
Rep: Reputation: 15
Hi All,

When I am connecting the UPS with the serial port.It is showing the message --

Quote:
serial port "/dev/term/a" was not found
Please tell me why it is showing this message and how can I solve this issue
 
Old 11-20-2008, 08:37 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by smartgupta View Post
Hi All,

When I am connecting the UPS with the serial port.It is showing the message --

Please tell me why it is showing this message and how can I solve this issue
Did you read the instructions that came with your UPS?? There's probably a configuration file that you have to edit, to put in the correct serial port name.

You mention "my application". If this is something you've written, you should certainly know how to change serial port names...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to connect to Embedded ts7800 via Serial port chire Linux - Networking 5 07-28-2008 02:47 PM
Configuring a USB to Serial Cable to connect to a console port on a HP Procurve jamtech Linux - Networking 3 01-22-2008 07:30 AM
Using Serial Port to connect to server deathazre Linux - Networking 4 07-16-2006 10:15 PM
Could not connect to Bluetooth device through the serial port dubrick_vit Linux - Hardware 0 01-16-2006 07:57 AM
Connect to a serial port??? clausa Linux - Hardware 2 08-30-2005 07:11 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration