Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-08-2006, 12:03 AM
|
#1
|
LQ Newbie
Registered: Jun 2006
Posts: 4
Rep:
|
How do I get the COM port to function?
I am quite new to the linux world. I have myself started on SUSE 10.1. I have been having trouble getting one of my programs which uses the COM port for RS232 communication to function. The program is a windows based program that I have gotten to run using Wine. It doesn't seem to identify the com port and is unable to communicate with the equipment I connect to. Is there something I need to do to get this thing working?
Thanks
|
|
|
06-08-2006, 05:21 PM
|
#2
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
Windows and Linux don't give the com ports the same names. The windows to Linux conersion looks like this:
COM1 == /dev/ttyS0
COM2 == /dev/ttyS1
COM3 == /dev/ttyS2
COM4 == /dev/ttyS3
So, check the application configuration. Edit to point to the appropriate /dev/ttySx instead of a COMx port. Even though it's a windows app, it is working through Wine and the Linux kernel to communicate with the com port, so it should work if it uses the Linux port names.
|
|
|
06-09-2006, 09:05 PM
|
#3
|
LQ Newbie
Registered: Jun 2006
Posts: 4
Original Poster
Rep:
|
I'll give it a try, thanks!
|
|
|
06-09-2006, 11:43 PM
|
#4
|
Member
Registered: Dec 2005
Location: TO, Ontario, Canada
Distribution: Ubuntu 14.04, CentOS 6.5
Posts: 37
Rep:
|
Don't forget to make your ports read/writable. From what I remember they are assigned to root.
I remember trying to hook up my PDA over the serial port and had a couple frustrating hours in there until I figured out to give myself privileges to the access.
|
|
|
06-10-2006, 06:02 AM
|
#5
|
Senior Member
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Rep:
|
Would you mind sharing how you did that. I'm having the same kind of trouble with a perallel port
|
|
|
06-10-2006, 08:20 AM
|
#6
|
Member
Registered: Dec 2005
Location: TO, Ontario, Canada
Distribution: Ubuntu 14.04, CentOS 6.5
Posts: 37
Rep:
|
Sure,
- open a terminal and get to be root.
- type "chmod a+rw /dev/ttyS0" for COM1 (or whatever port you need open.)
If you still have problems, maybe check out this article:
http://www.linuxforums.org/forum/per...llel-port.html
Cheers
|
|
|
06-10-2006, 08:42 AM
|
#7
|
Member
Registered: Dec 2005
Location: TO, Ontario, Canada
Distribution: Ubuntu 14.04, CentOS 6.5
Posts: 37
Rep:
|
Actually, come to think of it, I did it a different way. The above is probably the quickest to get it working.
But what I did (since I am a Linux newbie and used to Windows) I opened konqueror in SUPER-USER mode.
Then I went to the /dev directory, and right clicked on the ttyS0 icon, going to permissions and allowed all access.
Either way should work though.
|
|
|
06-10-2006, 04:19 PM
|
#8
|
Senior Member
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Rep:
|
Thanks for the information!
|
|
|
06-11-2006, 05:22 AM
|
#9
|
LQ Newbie
Registered: Jun 2006
Posts: 4
Original Poster
Rep:
|
What is a Super-user?
|
|
|
06-11-2006, 12:23 PM
|
#10
|
Member
Registered: Aug 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 105
Rep:
|
A super user (or username "root") is a user account on most linux/unix/bsd systems that have the permissions to do anything at all, even deleting essential files and things. This is the reason we use super user for doing most config.
|
|
|
06-11-2006, 06:11 PM
|
#11
|
Senior Member
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Rep:
|
|
|
|
06-11-2006, 09:46 PM
|
#12
|
Member
Registered: Dec 2005
Location: TO, Ontario, Canada
Distribution: Ubuntu 14.04, CentOS 6.5
Posts: 37
Rep:
|
Quote:
Originally Posted by logike30
What is a Super-user?
|
logike30,
Again, what I did to get the Super-User (root) Konqueror window is simply open a terminal window and login in as root:
# su
Enter Password:
Enter your password, and then type:
konqueror &
A new "Explorer" type window will pop up and you can then go to "/dev/" and change permission in that file browser window. Just be careful what you are doing in there, since you can change your whole system and toast it.
Hope that helped.
|
|
|
06-12-2006, 12:37 AM
|
#13
|
LQ Newbie
Registered: Jun 2006
Posts: 4
Original Poster
Rep:
|
Ahh, superuser = root. Now I know.
|
|
|
All times are GMT -5. The time now is 10:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|