NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: parport test problem

parport test problem 10 Май 2012 01:08 #19959

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!
The administrator has disabled public write access.

Re:parport test problem 10 Май 2012 01:50 #19963

  • ArcEye
  • ArcEye's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1418
  • Thank you received: 114
  • Karma: 130
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 Май 2012 01:58 by ArcEye.
The administrator has disabled public write access.

Re:parport test problem 10 Май 2012 02:40 #19965

  • ArcEye
  • ArcEye's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1418
  • Thank you received: 114
  • Karma: 130
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
The administrator has disabled public write access.

Re:parport test problem 13 Май 2012 05:58 #20050

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 !!!
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: Rick G
Time to create page: 1.041 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.