LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-07-2009, 06:02 PM   #1
willydlw
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Unhappy read serial port fails


Running kubuntu 8.10 on a HP dv6000 series laptop and running kubuntu 8.04 on a Dell desktop.

We have written a c++ serial port class. The program code runs fine on a friend's gentoo laptop but will not run on my HP or the Dell under ubuntu.

On my laptop, I am using a usb to serial converter. Program gives me a valid file descriptor when opening a serial port, but it crashes everytime on read. Same thing happens on Dell desktop that has a serial port. Runs perfectly on gentoo machine.

We have rw permissions for ttyUSB0 (HP) and ttyS0 (Dell). Members of groups tty and dialout. Have tried running as root on these machines, but that does not work either. What do we need to do in ubuntu to connect via a serial cable? Serial ports and cables both work on these machines in a Windows environment.

Have been searching the net and have not yet found any answers. Several hours of frustration. Someone must have the answer.

Thanks for your help and advice.

Willy
 
Old 04-08-2009, 01:46 PM   #2
zer0python
Member
 
Registered: Sep 2003
Posts: 104

Rep: Reputation: 20
Compare kernel versions/modules also.. try backtracing the application to see if it can give you any more details on why it's crashing.. If you're compiling the code separately, also compare libraries/gcc versions.. It sounds funny, but I had a kernel once that didn't like a certain ioctl call, and kernel panic'd everytime I used it.. Upgraded my kernel, and everything worked like a charm..
 
  


Reply

Tags
cannot, port, read, serial, ubuntu, usb


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
Read Non Printable characters from serial port caduser1 Programming 6 03-19-2009 02:18 PM
Difficult to read serial port omwoyo Programming 3 07-03-2007 06:47 AM
When to read from the serial port? kad_79 Programming 3 06-15-2006 02:39 PM
Problem with Non-blocking serial port read ZX_SA Programming 0 01-18-2005 08:50 AM
Serial port Read Write SeanatIL Programming 2 07-14-2004 03:42 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration