LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-25-2006, 07:01 PM   #1
djsroknrol
DLteam
 
Registered: Jun 2006
Location: Lake Havasu City, Arizona
Distribution: Ubuntu Lucid, Liquid Lemur, PCLOS2011, DreamLinux-5
Posts: 31

Rep: Reputation: 15
strange serial port problem..can you help?


hi all;

I've been trying to get my serial port to work on and off for a while with little luck...maybe someone who knows this stuff could help me see what I might be missing??...here goes:

here's a piece of dmesg...don't want to bore anyone...

4294671.112000] serio: i8042 AUX port at 0x60,0x64 irq 12
[4294671.112000] serio: i8042 KBD port at 0x60,0x64 irq 1
[4294671.112000] Serial: 8250/16550 driver $Revision: 1.90 $ 48 ports, IRQ sharing enabled
[4294671.112000] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[4294671.114000] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[4294671.115000] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize
[4294671.115000] Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
[4294671.115000] ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
[4294671.115000] mice: PS/2 mouse device common for all mice
[4294671.115000] EISA: Probing bus 0 at eisa.0
[4294671.115000] Cannot allocate resource for EISA slot 4
[4294671.115000] Cannot allocate resource for EISA slot 5
[4294671.115000] EISA: Detected 0 cards.
[4294671.115000] NET: Registered protocol family 2
[4294671.124000] IP route cache hash table entries: 8192 (order: 3, 32768 bytes)
[4294671.124000] TCP established hash table entries: 32768 (order: 6, 393216 bytes)
[4294671.125000] TCP bind hash table entries: 32768 (order: 6, 393216 bytes)
[4294671.125000] TCP: Hash tables configured (established 32768 bind 32768)
[4294671.125000] TCP reno registered
[4294671.126000] TCP bic registered
[4294671.126000] NET: Registered protocol family 1
[4294671.126000] NET: Registered protocol family 8
[4294671.126000] NET: Registered protocol family 20
[4294671.126000] Using IPI No-Shortcut mode
[4294671.126000] ACPI wakeup devices:
[4294671.126000] SLPB PCI0 USB0 USB1 USB2 USB6 USB7 USB8 USB9 LAN

1) it is seeing the serial port, right?

I did setserial....

bob@server:~$ sudo setserial -g /dev/ttyS0
Password:
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4

2) it worked, correct?

next I did this.....

cat /proc/interrupts
CPU0
0: 2320742 XT-PIC timer
1: 740 XT-PIC i8042
2: 0 XT-PIC cascade
3: 0 XT-PIC uhci_hcd:usb2
5: 0 XT-PIC ehci_hcd:usb4
7: 1 XT-PIC parport0
8: 3 XT-PIC rtc
9: 0 XT-PIC acpi
10: 2086 XT-PIC uhci_hcd:usb3, VIA8233
11: 137870 XT-PIC uhci_hcd:usb1, eth0, radeon@pci:0000:01:00.0
12: 63827 XT-PIC i8042
14: 16269 XT-PIC ide0
15: 41562 XT-PIC ide1
NMI: 0
LOC: 0
ERR: 0
MIS: 0
bob@server:~$

3) it shows that irq4 is serial, right?..wrong!!...it doesn't show it at all...it's silent...no usage means no show (most of the time), am I right there?

OK...then if at least 1 & 2 are right, then why does the port not communicate with a device that does work in windows(digital camera to be exact..all programs list the model but none respond)?

Maybe another brain might help me figure this out...I'd rather not continue the way I've been doing it, but it should be just like my gal's camera (sony usb)...hook it it and it at least acknowledges it.

Anyone?
 
Old 06-25-2006, 11:18 PM   #2
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
The interrupt does not show up until the port is opened.
Just because something works on Windows, not really a guarantee it will work on Linux. Its a different program entirely with its own bugs and limitations. My camera still doesn't work with linux though the documentation says its supported. I've had better luck with a flash card reader than the usb software.
 
Old 06-25-2006, 11:28 PM   #3
djsroknrol
DLteam
 
Registered: Jun 2006
Location: Lake Havasu City, Arizona
Distribution: Ubuntu Lucid, Liquid Lemur, PCLOS2011, DreamLinux-5
Posts: 31

Original Poster
Rep: Reputation: 15
I'm starting to think it's a speed problem. If I list the activities on the ports while the program is running, it shows tx & rx activity...not much, but some.

Is there a way to set the port speed maybe?
 
Old 06-26-2006, 11:09 PM   #4
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
Well yes, the port's speed is suppose to be set within the application along with many other options. It wouldn't make much difference if you set the port's speed outside the program only to have it re-set when the application is started.
Could there be a cable problem? What's the program and where did you get it from?
 
Old 06-27-2006, 09:00 AM   #5
djsroknrol
DLteam
 
Registered: Jun 2006
Location: Lake Havasu City, Arizona
Distribution: Ubuntu Lucid, Liquid Lemur, PCLOS2011, DreamLinux-5
Posts: 31

Original Poster
Rep: Reputation: 15
Well, both cables work in windows. The camera is a epson photopc 550..I tried gphoto2 & gphoto with the same results. It could be a cable problem, as I was looking at the sub-mini plug, and noticed it was bent ever so slightly, but again, it works fine in windows.

Right now I'm trying to get it to work with Gthumb and Gnome in Ubuntu Dapper....I'm not at home right now, but when I get there I'll try the other cable just to rule it out for certain....
 
Old 06-27-2006, 08:49 PM   #6
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
Ok, I looked up the cable for the epson photopc 550, and its a 3 conductor, which means only rx/tx and ground.
Interesting that the camera spec I saw is only 0.3 MegaPixels.
Just a thought, unless you Uber-like this camera it may be way easier to buy a new modern camera that is better supported.
 
Old 06-28-2006, 04:28 PM   #7
djsroknrol
DLteam
 
Registered: Jun 2006
Location: Lake Havasu City, Arizona
Distribution: Ubuntu Lucid, Liquid Lemur, PCLOS2011, DreamLinux-5
Posts: 31

Original Poster
Rep: Reputation: 15
The other cable is doing the same thing...I'm currently using a USB card reader for the memory card in the camera, and frankly, it's a 9 yr old camera...you're right, I might just be better off staying with the card reader or getting a new camera for my birthday or Xmas...
 
  


Reply


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
Mandrake 10.1 serial port problem sport Mandriva 0 11-12-2005 12:05 PM
Serial port problem floydes Programming 1 10-14-2004 11:50 AM
serial port problem... linux4john Linux - Software 1 10-30-2003 10:02 PM
Serial port problem ruchika Linux - Networking 0 08-15-2003 04:18 PM
Problem with Serial port mritunjay Linux - Networking 1 04-22-2002 01:59 PM


All times are GMT -5. The time now is 11:43 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