Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-27-2006, 03:12 AM   #1
LQ Newbie
Registered: Apr 2006
Posts: 3

Rep: Reputation: 0
Question Why is my ComPort not accepting the data, I am writing?

Hello all,
I am able to contineously fetch(read) the data from com Port, but I am not able to write the data to the comPort. Can you all help me with the same. My work is suspended. Please reply me with the small lines of code so that I can proceed forward.

With regards
Mahesh N. Nimje
Old 04-28-2006, 12:11 PM   #2
Registered: Nov 2001
Location: London, UK
Distribution: Fedora
Posts: 161

Rep: Reputation: 43
Device ownership and permissions? ls -l /dev/ttyS*

To allow ANYONE to write to the serial ports (as root):
chmod 666 /dev/ttyS*

Alternatively, check the group ownership and permission. If it's something like "uucp" then add the uucp group to your list of allowed groups.
As root,
usermod -G <current groups>,uucp <your user id>

Also check if udev manages the devices. You may need to update the udev rules to make any changes permanent.
Old 05-09-2006, 12:38 AM   #3
LQ Newbie
Registered: Apr 2006
Posts: 3

Original Poster
Rep: Reputation: 0
My comport is working fine. I was not able to write on a comport. Now I am able to because, the format they gave for our device to interact with the device is in the Hex format. If we are transferring the data in hex, it is giving the ack for the same.
Thanking you.....


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
writing binary data via the shell? zero79 Programming 3 03-04-2006 12:35 PM
comport communication neerukamra Linux - General 0 09-06-2004 01:18 AM
comport? kalleanka Programming 4 02-24-2004 04:36 AM
CD RW -- Writing Data to CD dnachtwey Linux - Hardware 39 01-25-2004 07:22 PM
Writing encrytped data to a disk tyler_durden Programming 2 04-18-2002 12:18 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:30 AM.

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