Question for the pro's. How can I use my serial port to upload data
SUSE / openSUSEThis Forum is for the discussion of Suse 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.
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.
I really need to be able to use my serial port to upload data.
Anyone who gets my serial port to be accessible to my program through WINE, w/o screwing up my modem, I'll send $15.00 through PAYPAL as a thank you for getting this problem squared away. I need to be able to use my serial port for my modem or uploading data. I don't want to see,"Cannot access serial port:Permission Denied" . I need to know how to set the permission!I'm going away soon and NEED THIS CAPABILITY!! I certainly appreciate all help which I already received.
Keyed in "ls -l /dev/ttyS0" to see the permissions. My permissions were crw-rw----. I then used the following command in root "chmod 666 /dev/ttyS0". The permissions now read crw-rw-rw-. I now can use my modem OR my other application through my serial port. Amazing how a simple command can make such a HUGE difference.
I now can use my modem OR my other application through my serial port. Amazing how a simple command can make such a HUGE difference.
Yeah - except that the /dev files are permitted like that for a reason! Which is why I was suggesting the symlink route. Don't be so impatient: I had to go to bed
All you had to do was change the com1 link from /dev/ttyS0 to /dev/modem.
Quote:
Anyone who gets my serial port to be accessible to my program through WINE, w/o screwing up my modem, I'll send $15.00 through PAYPAL as a thank you for getting this problem squared away.
Of course, there was always using software that didn't need wine in the first place.
Quote:
ALL the /dev/ttyS0 lines were highlighted in BLACK. Along with /dev/fdo, /dev/dvd, and /dev/lpo. The rest were blue.
... the yellow on a black background means it is a block special device. do ls /dev to compare.
I get this result. I hope this will help to get my port accessible.
linux:~ # ls -l /dev/ttyS0
crw-rw---- 1 root uucp 4, 64 Apr 6 16:24 /dev/ttyS0
Actually, I think the proper thing to do here is to add the uucp group to your username. In your listing above the device /dev/ttySO has read/write access by the uucp group. Adding the group to your username should give you access.
To add the group to your username:
Yast > Security and Users > Edit and Create Users > Select your username > Edit > Details > Check the uucp group.
Then set the device permissions back the way they were.
I checked off uucp on the list then accept/finish. Thats all I did.... From now on I should not have to type "chmod 666 /dev/ttyS0" in order to use my serial port for uploading. Right?
I checked off uucp on the list then accept/finish. Thats all I did.... From now on I should not have to type "chmod 666 /dev/ttyS0" in order to use my serial port for uploading. Right?
Right, theoretically (disclaimer), give it a test.
A bit of History (from my fading memory): uucp is an old unix system/protocol to transfer data between computers using dialup modems before the days of flat rate data networks and the Internet. uucp stands for Unix to Unix Copy. Back when day time long-distance phone calls were expensive and night time calls were much cheaper, uucp would batch transfer jobs, wait until night, dialup computers, and transfer data to save money on phone calls.
I know this doesn't help your problem, but I thought it might be interesting.... or not!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.