Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.