LinuxQuestions.org
Review your favorite Linux distribution.
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
 
Thread Tools
Old 11-18-2008, 10:19 AM   #1
smartgupta
Member
 
Registered: Sep 2008
Posts: 68
Thanked: 0
Unhappy process name when connect via serial port


[Log in to get rid of this advertisement]
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 ...
smartgupta is offline     Reply With Quote
Old 11-18-2008, 10:38 AM   #2
TB0ne
Senior Member
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, Mandrake, RedHat, Gentoo, Slack
Posts: 4,073
Thanked: 143
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.).
TB0ne is offline     Reply With Quote
Old 11-18-2008, 01:51 PM   #3
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,498
Thanked: 44
Serial port devices are: /dev/ttyS0, /dev/ttyS1, ...
Hko is offline     Reply With Quote
Old 11-18-2008, 02:09 PM   #4
theNbomr
Senior Member
 
Registered: Aug 2005
Distribution: Open Suse, Fedora, Redhat
Posts: 2,272
Thanked: 74
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.
theNbomr is offline     Reply With Quote
Old 11-19-2008, 01:52 AM   #5
smartgupta
Member
 
Registered: Sep 2008
Posts: 68
Thanked: 0

Original Poster
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 ...
smartgupta is offline     Reply With Quote
Old 11-19-2008, 03:51 AM   #6
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,498
Thanked: 44
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.
Hko is offline     Reply With Quote
Old 11-19-2008, 08:26 AM   #7
theNbomr
Senior Member
 
Registered: Aug 2005
Distribution: Open Suse, Fedora, Redhat
Posts: 2,272
Thanked: 74
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.
theNbomr is offline     Reply With Quote
Old 11-20-2008, 02:10 AM   #8
smartgupta
Member
 
Registered: Sep 2008
Posts: 68
Thanked: 0

Original Poster
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
smartgupta is offline     Reply With Quote
Old 11-20-2008, 09:37 AM   #9
TB0ne
Senior Member
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, Mandrake, RedHat, Gentoo, Slack
Posts: 4,073
Thanked: 143
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...
TB0ne is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 03: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 08:30 AM
Using Serial Port to connect to server deathazre Linux - Networking 4 07-16-2006 11:15 PM
Could not connect to Bluetooth device through the serial port dubrick_vit Linux - Hardware 0 01-16-2006 08:57 AM
Connect to a serial port??? clausa Linux - Hardware 2 08-30-2005 08:11 AM


All times are GMT -5. The time now is 09:21 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration