parport test problem

More
10 May 2012 08:08 #19959 by awesomepanda
I have added 2 parport cards in my IPC.I want to test the I/O port.

I use the Big John's "Parallel Port Tester"
www.linuxcnc.org/index.php/english/compo...d=4743&catid=18#4743

If I do nothing to the Big John's hal files,the program can run normally.But if I change the address in the " cfg="0x378 out" " into " cfg="0x378 0xbc00 out" ",then the errors come out.The error is likely said in the file"www.linuxcnc.org/docs/2.4/html/hal_parallel_port.html#r1_1_5"

my errors:
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/emc2/hal_parport.ko':-1 Device or resource busy
ptest.hal:1: exit value: 1
ptest.hal:1: insmod failed,returned -1
See the output of 'dmesg' for more information.

The files tell me to ensure that the standard kernel module parport_pc is not loaded and that no other device in the system has claimed the I/O ports.
How to unload the parport_pc module.How to solve the problem.


anothers parport questions:

I cann't see the parport address by using the command "lspci -v" or "lspci -vv"
I only can use the command offered in the driver CD "wchdump",then come out the address like this:

================ Found 2 WCH port , list informations ====================
WCH driver ver -- 1.0.0.0

ttyWCH0 --
WCH CH352_1S1P Series (bus:2 device:13) , base address = bc00, irq = 19

ttyWCH1 --
WCH CH352_1S1P Series (bus:2 device:14) , base address = b400, irq = 18

=============================================================================
Why can I not see the address like other guys by using the lspci command?
What have I missed?


Any suggestions are appreciated.

Best Regards!

Please Log in or Create an account to join the conversation.

More
10 May 2012 08:50 - 10 May 2012 08:58 #19963 by ArcEye
Replied by ArcEye on topic Re:parport test problem
Hi

I take it you have read the FAQ - www.linuxcnc.org/index.php/english/compo...ew&catid=18&id=18917

Need to know what cards these are and a copy of the lspci -vv printout
The number suggests they are PCI cards made by BioStar vendor ID 4348 &device ID 5053

If they are PCI they must be in that print.

The 'base address' in the print you have is not necessarily the parallel port address, which will cause all your problems.

regards
Last edit: 10 May 2012 08:58 by ArcEye.

Please Log in or Create an account to join the conversation.

More
10 May 2012 09:40 #19965 by ArcEye
Replied by ArcEye on topic Re:parport test problem
Just done a bit more searching, others have had a lot of problems with these cards.

This page shows a fix which may or may not be current, depends what you have on your CD
ubuntuforums.org/archive/index.php/t-1629616.html

Here is another thread where someone had the same problem, not sure if they ever got it working.
www.linuxcnc.org/index.php/english/compo...iew&catid=18&id=1350

Looks like a cheap Chinese card intended for Windoze printers but even the instructions in the first link for Linux assume lspci will work.

Note that the lspci prints in the second link only show the serial port, I wonder if

WCH CH352_1S1P Series (bus:2 device:13) , base address = bc00, irq = 19

has Series as Chinglish for Serial

Also worth trying just installing 1 card and moving it around all available PCI slots.
Interrupts are allocated dynamically and sometimes a card will work in one slot and not another, the only differentiating factor
appearing to be the interrupt number.

regards

Please Log in or Create an account to join the conversation.

More
13 May 2012 12:58 #20050 by awesomepanda
The link that ArcEye gives can help me
ubuntuforums.org/archive/index.php/t-1629616.html

The origin of the problem is the chip "CH352".the file "readme" in the driver CD fake me out.As ArcEye said ,the "b400" and "bc00" is not the parport address.

Thank you !!!

Please Log in or Create an account to join the conversation.

Time to create page: 0.245 seconds
Powered by Kunena Forum