Review your favorite Linux distribution.
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, 02: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, 11:11 AM   #2
Registered: Nov 2001
Location: London, UK
Distribution: Fedora
Posts: 160

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-08-2006, 11:38 PM   #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 11:35 AM
comport communication neerukamra Linux - General 0 09-06-2004 12:18 AM
comport? kalleanka Programming 4 02-24-2004 03:36 AM
CD RW -- Writing Data to CD dnachtwey Linux - Hardware 39 01-25-2004 06:22 PM
Writing encrytped data to a disk tyler_durden Programming 2 04-17-2002 11:18 PM

All times are GMT -5. The time now is 07:18 PM.

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