LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-27-2006, 02:12 AM   #1
maheshnimje
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
DaveG
Member
 
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-08-2006, 11:38 PM   #3
maheshnimje
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.....
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration