×
Forum Header
Home switches not "seen" by linuxCNC
21 Apr 2017 22:13 #91814
by MAG45
Replied by MAG45 on topic Home switches not "seen" by linuxCNC
No response either way with any of those pins, testing the cable pin 10 also had no response to that test although it is working with my Estop switch.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6432
21 Apr 2017 22:25 #91815
by tommylight
Replied by tommylight on topic Home switches not "seen" by linuxCNC
Well that leaves us with 2 options,
Wrong port address, or a faulty port.
Check the port address and the ptest.
Ptest is included with Linuxcnc, i recall you mentioning making it work. Close ptest, start Linuxcnc from the menu, choose APPS from the config chooser and navigate to 0x378 , start that and check the short pin on cable again.
Wrong port address, or a faulty port.
Check the port address and the ptest.
Ptest is included with Linuxcnc, i recall you mentioning making it work. Close ptest, start Linuxcnc from the menu, choose APPS from the config chooser and navigate to 0x378 , start that and check the short pin on cable again.
Please Log in or Create an account to join the conversation.
21 Apr 2017 22:39 #91816
by MAG45
Replied by MAG45 on topic Home switches not "seen" by linuxCNC
also no response including pin10. I have installed in the PC another paraport (dual port) but was never able to figure out how to get it working in linux. I got it a few years ago when my machine first quit working, suggested by somebody at the time.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6432
21 Apr 2017 22:50 #91818
by tommylight
Replied by tommylight on topic Home switches not "seen" by linuxCNC
sudo lspci -v
look for paraport, it will have 2 or 5 addresses, if 2 use the first, if 5 use the 3rd.
look for paraport, it will have 2 or 5 addresses, if 2 use the first, if 5 use the 3rd.
Please Log in or Create an account to join the conversation.
21 Apr 2017 22:57 #91819
by MAG45
Replied by MAG45 on topic Home switches not "seen" by linuxCNC
that gave me this :/
mike@cnc:~$ sudo lspci -v
[sudo] password for mike:
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 651 Host (rev 01)
Subsystem: Silicon Integrated Systems [SiS] 651 Host
Flags: bus master, medium devsel, latency 32
Memory at e8000000 (32-bit, non-prefetchable) [size=64M]
Capabilities: [c0] AGP version 2.0
Kernel driver in use: agpgart-sis
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] AGP Port (virtual PCI-to-PCI bridge) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
I/O behind bridge: 0000a000-0000afff
Memory behind bridge: ec000000-ec0fffff
Prefetchable memory behind bridge: e0000000-e7ffffff
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS962 [MuTIOL Media IO] LPC Controller (rev 04)
Flags: bus master, medium devsel, latency 0
00:02.1 SMBus: Silicon Integrated Systems [SiS] SiS961/2/3 SMBus controller
Flags: medium devsel
I/O ports at 10c0
Kernel driver in use: sis96x_smbus
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 IDE Controller (prog-if 80 [Master])
Subsystem: Micro-Star International Co., Ltd. Device 5332
Flags: bus master, medium devsel, latency 128, IRQ 16
[virtual] Memory at 000001f0 (32-bit, non-prefetchable)
[virtual] Memory at 000003f0 (type 3, non-prefetchable)
[virtual] Memory at 00000170 (32-bit, non-prefetchable)
[virtual] Memory at 00000370 (type 3, non-prefetchable)
I/O ports at 4000
Capabilities: [58] Power Management version 2
Kernel driver in use: pata_sis
00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] SiS7012 AC'97 Sound Controller (rev a0)
Subsystem: Micro-Star International Co., Ltd. Device 5332
Flags: bus master, medium devsel, latency 32, IRQ 18
I/O ports at cc00
I/O ports at d000
Capabilities: [48] Power Management version 2
Kernel driver in use: snd_intel8x0
00:03.0 USB controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f) (prog-if 10 [OHCI])
Subsystem: Micro-Star International Co., Ltd. Device 5332
Flags: bus master, medium devsel, latency 32, IRQ 20
Memory at ec118000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd
00:03.1 USB controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f) (prog-if 10 [OHCI])
Subsystem: Micro-Star International Co., Ltd. Device 5332
Flags: bus master, medium devsel, latency 32, IRQ 21
Memory at ec110000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd
00:03.2 USB controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f) (prog-if 10 [OHCI])
Subsystem: Micro-Star International Co., Ltd. Device 5332
Flags: bus master, medium devsel, latency 32, IRQ 22
Memory at ec111000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd
00:03.3 USB controller: Silicon Integrated Systems [SiS] USB 2.0 Controller (prog-if 20 [EHCI])
Subsystem: Micro-Star International Co., Ltd. Device 5332
Flags: bus master, medium devsel, latency 32, IRQ 23
Memory at ec112000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [50] Power Management version 2
Kernel driver in use: ehci_hcd
00:07.0 Parallel controller: NetMos Technology PCI 9865 Multi-I/O Controller (prog-if 03 [IEEE1284])
Subsystem: Device a000:2000
Flags: bus master, medium devsel, latency 32, IRQ 18
I/O ports at d400
I/O ports at d800
Memory at ec113000 (32-bit, non-prefetchable) [size=4K]
Memory at ec114000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [48] Power Management version 2
00:07.2 Parallel controller: NetMos Technology PCI 9865 Multi-I/O Controller (prog-if 03 [IEEE1284])
Subsystem: Device a000:2000
Flags: bus master, medium devsel, latency 32, IRQ 16
I/O ports at dc00
I/O ports at e000
Memory at ec115000 (32-bit, non-prefetchable) [size=4K]
Memory at ec116000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [48] Power Management version 2
00:0f.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
Flags: bus master, medium devsel, latency 32, IRQ 18
I/O ports at e400
Memory at ec117000 (32-bit, non-prefetchable)
[virtual] Expansion ROM at 60000000 [disabled] [size=64K]
Capabilities: [50] Power Management version 2
Kernel driver in use: 8139too
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 65x/M650/740 PCI/AGP VGA Display Adapter (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. Device 5338
Flags: 66MHz, medium devsel, IRQ 11
BIST result: 00
Memory at e0000000 (32-bit, prefetchable) [size=128M]
Memory at ec000000 (32-bit, non-prefetchable) [size=128K]
I/O ports at a000
Expansion ROM at <unassigned> [disabled]
Capabilities: [40] Power Management version 2
Capabilities: [50] AGP version 2.0
mike@cnc:~$ sudo lspci -v
mike@cnc:~$ sudo lspci -v
[sudo] password for mike:
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 651 Host (rev 01)
Subsystem: Silicon Integrated Systems [SiS] 651 Host
Flags: bus master, medium devsel, latency 32
Memory at e8000000 (32-bit, non-prefetchable) [size=64M]
Capabilities: [c0] AGP version 2.0
Kernel driver in use: agpgart-sis
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] AGP Port (virtual PCI-to-PCI bridge) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
I/O behind bridge: 0000a000-0000afff
Memory behind bridge: ec000000-ec0fffff
Prefetchable memory behind bridge: e0000000-e7ffffff
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS962 [MuTIOL Media IO] LPC Controller (rev 04)
Flags: bus master, medium devsel, latency 0
00:02.1 SMBus: Silicon Integrated Systems [SiS] SiS961/2/3 SMBus controller
Flags: medium devsel
I/O ports at 10c0
Kernel driver in use: sis96x_smbus
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 IDE Controller (prog-if 80 [Master])
Subsystem: Micro-Star International Co., Ltd. Device 5332
Flags: bus master, medium devsel, latency 128, IRQ 16
[virtual] Memory at 000001f0 (32-bit, non-prefetchable)
[virtual] Memory at 000003f0 (type 3, non-prefetchable)
[virtual] Memory at 00000170 (32-bit, non-prefetchable)
[virtual] Memory at 00000370 (type 3, non-prefetchable)
I/O ports at 4000
Capabilities: [58] Power Management version 2
Kernel driver in use: pata_sis
00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] SiS7012 AC'97 Sound Controller (rev a0)
Subsystem: Micro-Star International Co., Ltd. Device 5332
Flags: bus master, medium devsel, latency 32, IRQ 18
I/O ports at cc00
I/O ports at d000
Capabilities: [48] Power Management version 2
Kernel driver in use: snd_intel8x0
00:03.0 USB controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f) (prog-if 10 [OHCI])
Subsystem: Micro-Star International Co., Ltd. Device 5332
Flags: bus master, medium devsel, latency 32, IRQ 20
Memory at ec118000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd
00:03.1 USB controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f) (prog-if 10 [OHCI])
Subsystem: Micro-Star International Co., Ltd. Device 5332
Flags: bus master, medium devsel, latency 32, IRQ 21
Memory at ec110000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd
00:03.2 USB controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f) (prog-if 10 [OHCI])
Subsystem: Micro-Star International Co., Ltd. Device 5332
Flags: bus master, medium devsel, latency 32, IRQ 22
Memory at ec111000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: ohci_hcd
00:03.3 USB controller: Silicon Integrated Systems [SiS] USB 2.0 Controller (prog-if 20 [EHCI])
Subsystem: Micro-Star International Co., Ltd. Device 5332
Flags: bus master, medium devsel, latency 32, IRQ 23
Memory at ec112000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [50] Power Management version 2
Kernel driver in use: ehci_hcd
00:07.0 Parallel controller: NetMos Technology PCI 9865 Multi-I/O Controller (prog-if 03 [IEEE1284])
Subsystem: Device a000:2000
Flags: bus master, medium devsel, latency 32, IRQ 18
I/O ports at d400
I/O ports at d800
Memory at ec113000 (32-bit, non-prefetchable) [size=4K]
Memory at ec114000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [48] Power Management version 2
00:07.2 Parallel controller: NetMos Technology PCI 9865 Multi-I/O Controller (prog-if 03 [IEEE1284])
Subsystem: Device a000:2000
Flags: bus master, medium devsel, latency 32, IRQ 16
I/O ports at dc00
I/O ports at e000
Memory at ec115000 (32-bit, non-prefetchable) [size=4K]
Memory at ec116000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [48] Power Management version 2
00:0f.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
Flags: bus master, medium devsel, latency 32, IRQ 18
I/O ports at e400
Memory at ec117000 (32-bit, non-prefetchable)
[virtual] Expansion ROM at 60000000 [disabled] [size=64K]
Capabilities: [50] Power Management version 2
Kernel driver in use: 8139too
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 65x/M650/740 PCI/AGP VGA Display Adapter (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. Device 5338
Flags: 66MHz, medium devsel, IRQ 11
BIST result: 00
Memory at e0000000 (32-bit, prefetchable) [size=128M]
Memory at ec000000 (32-bit, non-prefetchable) [size=128K]
I/O ports at a000
Expansion ROM at <unassigned> [disabled]
Capabilities: [40] Power Management version 2
Capabilities: [50] AGP version 2.0
mike@cnc:~$ sudo lspci -v
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6432
21 Apr 2017 23:28 #91822
by tommylight
Replied by tommylight on topic Home switches not "seen" by linuxCNC
00:07.2 Parallel controller: NetMos Technology PCI 9865 Multi-I/O Controller (prog-if 03 [IEEE1284])
Subsystem: Device a000:2000
Flags: bus master, medium devsel, latency 32, IRQ 16
I/O ports at dc00
I/O ports at e000
Memory at ec115000 (32-bit, non-prefetchable) [size=4K]
Memory at ec116000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [48] Power Management version 2
That is your add on pci parallel port and those I/O ports are its addresses.
Now you will have to add one of those addresses to the ptest.hal file so you can test that port too.
Look in /usr/share/doc/linuxcnc/examples/sample-configs/apps/ and copy the "parport" folder from there to /home/your_user_name_here/linuxcnc/configs. Open parport folder and edit the "parport_0x278.hal". On the first line, there is ...278, replace that with the address of the port you want to test, in this case first try "0xdc00", save, double click on "parport_0x278.demo", click on "run" or "run in a terminal", test the port. If it does not work, try the second address.
In case you get error device or resource busy, restart the computer, change the address and try again.
You can use this:
cat /proc/ioports | grep parport
to find the address of the built in parallel port to be sure you have the right address.
Regards,
Tom
Subsystem: Device a000:2000
Flags: bus master, medium devsel, latency 32, IRQ 16
I/O ports at dc00
I/O ports at e000
Memory at ec115000 (32-bit, non-prefetchable) [size=4K]
Memory at ec116000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [48] Power Management version 2
That is your add on pci parallel port and those I/O ports are its addresses.
Now you will have to add one of those addresses to the ptest.hal file so you can test that port too.
Look in /usr/share/doc/linuxcnc/examples/sample-configs/apps/ and copy the "parport" folder from there to /home/your_user_name_here/linuxcnc/configs. Open parport folder and edit the "parport_0x278.hal". On the first line, there is ...278, replace that with the address of the port you want to test, in this case first try "0xdc00", save, double click on "parport_0x278.demo", click on "run" or "run in a terminal", test the port. If it does not work, try the second address.
In case you get error device or resource busy, restart the computer, change the address and try again.
You can use this:
cat /proc/ioports | grep parport
to find the address of the built in parallel port to be sure you have the right address.
Regards,
Tom
Please Log in or Create an account to join the conversation.
21 Apr 2017 23:31 #91823
by MAG45
Replied by MAG45 on topic Home switches not "seen" by linuxCNC
I'll give it a shot after dinner, looks confusing, lol
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6432
21 Apr 2017 23:41 #91825
by tommylight
Replied by tommylight on topic Home switches not "seen" by linuxCNC
Enjoy dinner.
Just take it step by step, things will start to fall in place and become very clear.
Off to watch a movie and sleep, 1:40 AM here. Got to work tomorrow.
Just take it step by step, things will start to fall in place and become very clear.
Off to watch a movie and sleep, 1:40 AM here. Got to work tomorrow.
Please Log in or Create an account to join the conversation.
22 Apr 2017 00:38 - 22 Apr 2017 00:45 #91828
by MAG45
Replied by MAG45 on topic Home switches not "seen" by linuxCNC
Thanks for the help, ill give it a shot not, have a good day!
No luck on any of the tests on any port
No luck on any of the tests on any port
Last edit: 22 Apr 2017 00:45 by MAG45.
Please Log in or Create an account to join the conversation.
22 Apr 2017 01:21 #91829
by bevins
Replied by bevins on topic Home switches not "seen" by linuxCNC
Check in hal Configuration, you can see what is working and what is not once you get your parallel port figured out.
Please Log in or Create an account to join the conversation.
Time to create page: 0.088 seconds