LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags , , , , , , ,

Reply
 
Thread Tools
Old 04-07-2009, 07:02 PM   #1
willydlw
LQ Newbie
 
Registered: Apr 2009
Posts: 1
Thanked: 0
Unhappy read serial port fails


[Log in to get rid of this advertisement]
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
willydlw is offline  
Tag This Post , , , , , , ,
Reply With Quote
Old 04-08-2009, 02:46 PM   #2
zer0python
Member
 
Registered: Sep 2003
Location: Maryland
Distribution: Gentoo (Desktop), Slackware (Server/Router), Debian(sun box)
Posts: 80
Thanked: 0
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..
zer0python is offline     Reply With Quote



Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 12:11 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration