Linux CNC not working with Sunix PCI parallel port
- nicksworldofsynthesizers
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
18 Jan 2016 10:40 #68666
by nicksworldofsynthesizers
Having some trouble getting LinuxCNC working and wondered if anyone would be able to help please.
I have installed the parallel port card, a SUNIX 4008T and the driver and everything seems to be working on a hardware level and I've included it as part of the boot procedure - all ok:
# lsmod | grep snx
snx 107446 0
# lspci -v
03:02.0 Parallel controller: SUNIX Co., Ltd. Multiport serial controller (prog-if 03 [IEEE1284])
Subsystem: SUNIX Co., Ltd. Device 0100
Flags: medium devsel, IRQ 18
I/O ports at cca0
I/O ports at cca8
I/O ports at ccb0
Capabilities: [40] Power Management version 3
Kernel driver in use: snx
lp2, lp3, parport2, parport3 are listed in /dev and permissions are right:
crw-rw-rw- 1 root root 246, 2 Jan 17 15:59 lp2
crw-rw-rw- 1 root root 246, 3 Jan 17 15:59 lp3
crw-rw-rw- 1 root root 247, 2 Jan 17 15:59 parport2
crw-rw-rw- 1 root root 247, 3 Jan 17 15:59 parport3
I have also managed to get a small c program to run that will change the state of the pins and checked this with an oscilloscope - again all ok.
Unfortyunately, I can't get HAL or LinuxCNC to output anything, I've tried with a short HAL script, the test program from the address below* and the CNC Stepconf wizard with no luck.
It feels like I am mssing something really small, but important - does anyone know what I am doing wrong?
Thanks in advance for any help
* wikiw.linuxcnc.org/cgi-bin/wiki.pl?Parallel_Port_Tester
I have installed the parallel port card, a SUNIX 4008T and the driver and everything seems to be working on a hardware level and I've included it as part of the boot procedure - all ok:
# lsmod | grep snx
snx 107446 0
# lspci -v
03:02.0 Parallel controller: SUNIX Co., Ltd. Multiport serial controller (prog-if 03 [IEEE1284])
Subsystem: SUNIX Co., Ltd. Device 0100
Flags: medium devsel, IRQ 18
I/O ports at cca0
I/O ports at cca8
I/O ports at ccb0
Capabilities: [40] Power Management version 3
Kernel driver in use: snx
lp2, lp3, parport2, parport3 are listed in /dev and permissions are right:
crw-rw-rw- 1 root root 246, 2 Jan 17 15:59 lp2
crw-rw-rw- 1 root root 246, 3 Jan 17 15:59 lp3
crw-rw-rw- 1 root root 247, 2 Jan 17 15:59 parport2
crw-rw-rw- 1 root root 247, 3 Jan 17 15:59 parport3
I have also managed to get a small c program to run that will change the state of the pins and checked this with an oscilloscope - again all ok.
Unfortyunately, I can't get HAL or LinuxCNC to output anything, I've tried with a short HAL script, the test program from the address below* and the CNC Stepconf wizard with no luck.
It feels like I am mssing something really small, but important - does anyone know what I am doing wrong?
Thanks in advance for any help
* wikiw.linuxcnc.org/cgi-bin/wiki.pl?Parallel_Port_Tester
Please Log in or Create an account to join the conversation.
18 Jan 2016 10:46 #68667
by andypugh
Replied by andypugh on topic Linux CNC not working with Sunix PCI parallel port
What are you using for the parport base address in the loadrt hal_parport line?
If lsmod shows lp then possibly lp has grapped the port. (Though I don't know if this is still an issue)
It seems probable that you have already read this, but just in case:
linuxcnc.org/docs/2.7/html/hal/parallel-port.html
If lsmod shows lp then possibly lp has grapped the port. (Though I don't know if this is still an issue)
It seems probable that you have already read this, but just in case:
linuxcnc.org/docs/2.7/html/hal/parallel-port.html
The following user(s) said Thank You: nicksworldofsynthesizers
Please Log in or Create an account to join the conversation.
18 Jan 2016 11:16 #68669
by ArcEye
What is this?
You should not need a proprietary driver for the card, if you install one it will claim the card and may leave parport unable to connect.
There is some suggestion it does not even work with wheezy anyway
unix.stackexchange.com/questions/189154/...t-driver-not-working.
Remove that driver and do lsmod | grep parport if unable to connect
Should have parport and lp, possibly ppdev but not parport_pc
regards
Replied by ArcEye on topic Linux CNC not working with Sunix PCI parallel port
Kernel driver in use: snx
What is this?
You should not need a proprietary driver for the card, if you install one it will claim the card and may leave parport unable to connect.
There is some suggestion it does not even work with wheezy anyway
unix.stackexchange.com/questions/189154/...t-driver-not-working.
Remove that driver and do lsmod | grep parport if unable to connect
Should have parport and lp, possibly ppdev but not parport_pc
regards
The following user(s) said Thank You: nicksworldofsynthesizers
Please Log in or Create an account to join the conversation.
- nicksworldofsynthesizers
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
21 Jan 2016 08:03 #68869
by nicksworldofsynthesizers
Replied by nicksworldofsynthesizers on topic Linux CNC not working with Sunix PCI parallel port
Thank you for you help, I am not able to work on the computer at the moment. When I do I will let you know how it goes.
Please Log in or Create an account to join the conversation.
Time to create page: 0.077 seconds