LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-22-2005, 06:21 PM   #1
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Rep: Reputation: 30
need serious help with serial port card


Hey there,
at work i have a debian linux box set up as our company server. we have to take data in on a serial port, no problem. But now we gotta take it in on two serial ports so we installed a 4 serial port pci card that my boss picked up from comp-usa.
there is no documentation for it except a readme.txt with instructions on how to set the card up under redhat.
so, the port does not read. at first, the python script that reads serial errored out and with an i/o error.
then after going thru a lot of trial and error, i was able to get the script to run, but still no data comming in. just a blank.
the device is a Nm9845CV from NetMos.

i tried modprobing parport_serial (read it at this forum) but it didnt work.
the instructions tell me to /proc/pci/ but my debian box has no /proc/pci/
it has a /proc/tty/ but even as root, it will not allow me to see it (even though i can open it in a text editor as root).

all this is to find out what port to use with a setserial command
all i had to go on was what lspci gave me and it doesnt come out quite like the cheezy little readme.txt file says.

i tried it anyway with some numbers in lspci and then the serial port would not error out the script, but still no info passing through.

i feel like i am really close here.
anyone have an idea. i would be so greatfull.
thanks
 
Old 08-23-2005, 07:42 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
What is the card id in lspci -n?

It will have a generic serial driver and a specific driver to manage the multiplexor on the pci card..
The Google the id number and locate a driver for it.
 
Old 08-23-2005, 08:03 AM   #3
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
ok, this is what i have
the last line i think refers to the card. (has a 9845 in it)
which part of all of this is the driver?

0000:00:00.0 0600: 8086:7124 (rev 03)
0000:00:01.0 0300: 8086:7125 (rev 03)
0000:00:1e.0 0604: 8086:2418 (rev 02)
0000:00:1f.0 0601: 8086:2410 (rev 02)
0000:00:1f.1 0101: 8086:2411 (rev 02)
0000:00:1f.2 0c03: 8086:2412 (rev 02)
0000:00:1f.3 0c05: 8086:2413 (rev 02)
0000:01:05.0 0401: 125d:1988 (rev 12)
0000:01:08.0 0200: 1186:1300 (rev 10)
0000:01:0a.0 0780: 11c1:0440 (rev 01)
0000:01:0b.0 0700: 9710:9845 (rev 01)

thanks
 
Old 08-23-2005, 09:05 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
They are the ids for the cards.. It's easier to search for a driver using it's id number..

Also do just lspci to get the names pls
 
Old 08-23-2005, 09:22 AM   #5
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
Serial controller: NetMos Technology PCI 9845 Multi-I/O Controller (rev 01)
sorry, i have been googling for this one, but cant seem to find what module to load.
nothing i find on it seems relevent. maybe i am looking in the wrong spot.
thanks
 
Old 08-23-2005, 10:11 AM   #6
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
more googling.. the only thing i can find are kernel patches.
maybe im outta luck.
thanks
 
Old 08-23-2005, 10:43 AM   #7
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Yuk.. only 2 Google results..

Have a look at /proc/tty/driver/serial
and /proc/bus/pci/devices
to see if it's already loaded ok and the irq & port allocations

Then dmesg to see what device has been allocated to each serial port

Last edited by peter_robb; 08-23-2005 at 10:44 AM.
 
Old 08-23-2005, 11:28 AM   #8
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
dmesg gave me what i needed ! thanks
ttyS14 - who knew?
thanks so much.
man, what a relief !
just did setserial to what dmesg gave me and now i am reading !
 
  


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
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 08:07 PM
serial port card madness - please help! nephish Linux - Hardware 1 08-22-2005 10:08 PM
NetMos 9835 serial port card Asad Linux - Hardware 1 03-26-2005 01:26 AM
complie kernel for multi port serial card chai_itm Linux - Hardware 1 03-18-2005 07:05 AM
adding a additional pci card serial port da_kidd_er Linux - Hardware 0 01-09-2004 12:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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