No input/output on parallel port
- Ratamahatta
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
04 Jan 2019 06:37 #123455
by Ratamahatta
No input/output on parallel port was created by Ratamahatta
Hi everyone,
I'm a complete linuxcnc noob. I have installed linuxcnc and tried to make the stepper controller work and that led me to debug my parallel port. After some digging around on the forum I found a ptest.hal script to test the parallel port and there seems to be no output on it. Parallel port address has been looked up in lspci -v and ptest opens it successfully, however, all output pins show around 4.25 volts and pressing on the Out button doesn't change the voltage. Input ports are around 0 volts. giving it +3.3v or +5 volts doesn't register.
More info:
vanilla linuxcnc-2.7-wheezy (i686-rtai kernel)
Sunix pci card. Native parallel port is disabled in bios
I'm a complete linuxcnc noob. I have installed linuxcnc and tried to make the stepper controller work and that led me to debug my parallel port. After some digging around on the forum I found a ptest.hal script to test the parallel port and there seems to be no output on it. Parallel port address has been looked up in lspci -v and ptest opens it successfully, however, all output pins show around 4.25 volts and pressing on the Out button doesn't change the voltage. Input ports are around 0 volts. giving it +3.3v or +5 volts doesn't register.
More info:
vanilla linuxcnc-2.7-wheezy (i686-rtai kernel)
Sunix pci card. Native parallel port is disabled in bios
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19535
- Thank you received: 6556
04 Jan 2019 20:14 #123499
by tommylight
Replied by tommylight on topic No input/output on parallel port
Double post !
Try to use "0" ( zero ) as the parallel port address, that should do the trick.
Try to use "0" ( zero ) as the parallel port address, that should do the trick.
Please Log in or Create an account to join the conversation.
- Ratamahatta
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
05 Jan 2019 04:16 #123531
by Ratamahatta
Replied by Ratamahatta on topic No input/output on parallel port
Thank you for your reply, I have tried it and it didn't work at all. I get the following error:
Error: could not insert module /usr/realtime-3.4.9-rtai-686-pae/modules/linuxcnc/hal_parport.ko: No Such device
Error: could not insert module /usr/realtime-3.4.9-rtai-686-pae/modules/linuxcnc/hal_parport.ko: No Such device
Please Log in or Create an account to join the conversation.
- wicki
- Offline
- Elite Member
Less
More
- Posts: 183
- Thank you received: 21
05 Jan 2019 06:02 #123532
by wicki
maybe, you have blocked the the parport in BIOS?
or your LPT is defective ?
are you able to use a printer ?
take a look at the output of "lswh" - is there a port listed?
Replied by wicki on topic No input/output on parallel port
Error: could not insert module /usr/realtime-3.4.9-rtai-686-pae/modules/linuxcnc/hal_parport.ko: No Such device
maybe, you have blocked the the parport in BIOS?
or your LPT is defective ?
are you able to use a printer ?
take a look at the output of "lswh" - is there a port listed?
Please Log in or Create an account to join the conversation.
- Ratamahatta
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
05 Jan 2019 06:59 #123534
by Ratamahatta
Replied by Ratamahatta on topic No input/output on parallel port
I have disabled native motherboard port in bios, but there's no option to block/disable the port itself (I'm not sure if native motherboard port is working)
lshw shows the sunix card but no parallel port device, see output at the end of the post.
Also snx module is not in use (according to lsmod) even when I run ptest or stepper conf.
lshw output
*-pci:0
description: PCI bridge
product: MCP55 PCI bridge
vendor: NVIDIA Corporation
physical id: 100
bus info: pci@0000:00:06.0
version: a2
width: 32 bits
clock: 66MHz
capabilities: pci ht subtractive_decode bus_master cap_list
resources: ioport:b000(size=4096) memory:fdd00000-fddfffff memory:fde00000-fdefffff
*-communication
description: Parallel controller
product: Multiport serial controller
vendor: SUNIX Co., Ltd.
physical id: a
bus info: pci@0000:01:0a.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm ieee1284 cap_list
configuration: driver=snx latency=0
resources: irq:18 ioport:bc00(size=8) ioport:b800(size=8) ioport:b400(size=16)
lshw shows the sunix card but no parallel port device, see output at the end of the post.
Also snx module is not in use (according to lsmod) even when I run ptest or stepper conf.
lshw output
*-pci:0
description: PCI bridge
product: MCP55 PCI bridge
vendor: NVIDIA Corporation
physical id: 100
bus info: pci@0000:00:06.0
version: a2
width: 32 bits
clock: 66MHz
capabilities: pci ht subtractive_decode bus_master cap_list
resources: ioport:b000(size=4096) memory:fdd00000-fddfffff memory:fde00000-fdefffff
*-communication
description: Parallel controller
product: Multiport serial controller
vendor: SUNIX Co., Ltd.
physical id: a
bus info: pci@0000:01:0a.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm ieee1284 cap_list
configuration: driver=snx latency=0
resources: irq:18 ioport:bc00(size=8) ioport:b800(size=8) ioport:b400(size=16)
Please Log in or Create an account to join the conversation.
- wicki
- Offline
- Elite Member
Less
More
- Posts: 183
- Thank you received: 21
05 Jan 2019 14:52 #123551
by wicki
Replied by wicki on topic No input/output on parallel port
is it listed in /proc/interrupts ?
cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
0: 33 0 0 0 XT-PIC-XT-PIC timer
1: 2 0 0 0 XT-PIC-XT-PIC i8042
2: 0 0 0 0 XT-PIC-XT-PIC cascade
7: 0 0 0 0 XT-PIC-XT-PIC parport0
are you able to print?
cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
0: 33 0 0 0 XT-PIC-XT-PIC timer
1: 2 0 0 0 XT-PIC-XT-PIC i8042
2: 0 0 0 0 XT-PIC-XT-PIC cascade
7: 0 0 0 0 XT-PIC-XT-PIC parport0
are you able to print?
Please Log in or Create an account to join the conversation.
- Ratamahatta
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
06 Jan 2019 01:38 #123579
by Ratamahatta
Replied by Ratamahatta on topic No input/output on parallel port
I have a single core CPU:
CPU0
7: 1 IO-APIC-edge parport0
however, I see this line as well (snx is the module for the parallel port card):
18: 0 IO-APIC-fasteoi snx
CPU0
7: 1 IO-APIC-edge parport0
however, I see this line as well (snx is the module for the parallel port card):
18: 0 IO-APIC-fasteoi snx
Please Log in or Create an account to join the conversation.
- wicki
- Offline
- Elite Member
Less
More
- Posts: 183
- Thank you received: 21
06 Jan 2019 10:07 #123593
by wicki
ok, then again: are you able to print?
or tu use ptest: forum.linuxcnc.org/18-computer/4743-parallel-port-tester
and check the port-adress with cat /proc/ioports
0000-0cf7 : PCI Bus 0000:00
0000-001f : dma1
.....
02f8-02ff : serial
0378-037a : parport0 <----!
Replied by wicki on topic No input/output on parallel port
I
however, I see this line as well (snx is the module for the parallel port card):
ok, then again: are you able to print?
or tu use ptest: forum.linuxcnc.org/18-computer/4743-parallel-port-tester
and check the port-adress with cat /proc/ioports
0000-0cf7 : PCI Bus 0000:00
0000-001f : dma1
.....
02f8-02ff : serial
0378-037a : parport0 <----!
Please Log in or Create an account to join the conversation.
- pl7i92
- Offline
- Platinum Member
Less
More
- Posts: 1875
- Thank you received: 355
06 Jan 2019 13:24 #123601
by pl7i92
Replied by pl7i92 on topic No input/output on parallel port
use a terminal
and enterthis gives you somthing like
[ 7.710503] parport_pc 00:02: reported by Plug and Play ACPI
[ 7.710600] parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE]
[ 7.804114] lp0: using parport0 (interrupt-driven).
the Adress is becor the (xxx)
so here standard 0x378
and enter
dmesg | grep parpo*
[ 7.710503] parport_pc 00:02: reported by Plug and Play ACPI
[ 7.710600] parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE]
[ 7.804114] lp0: using parport0 (interrupt-driven).
the Adress is becor the (xxx)
so here standard 0x378
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4865
06 Jan 2019 21:03 #123640
by andypugh
Replied by andypugh on topic No input/output on parallel port
Why have you disabled the onboard parallel port and fitted a PCI one?
Some of these cards have a little general purpose IO chip on them and need a driver to convert them into a parallel port. I don't know if this is the case with the Sunix card. The type of card that require a little firmware download every boot will never work with LinuxCNC.
Is the chip on the card branded Sunix or something else?
Some of these cards have a little general purpose IO chip on them and need a driver to convert them into a parallel port. I don't know if this is the case with the Sunix card. The type of card that require a little firmware download every boot will never work with LinuxCNC.
Is the chip on the card branded Sunix or something else?
Please Log in or Create an account to join the conversation.
Time to create page: 0.077 seconds