Parallel Port Tester

More
06 Nov 2019 13:43 #149713 by ytiuqibu
Replied by ytiuqibu on topic Re:Parallel Port Tester
Can this be incorporated into the Axis UI? When we run it and then start Axis the tester disappears.

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

More
06 Nov 2019 18:42 #149742 by Todd Zuercher
Not really, any hal pins for the parallel port that are used in your cnc config interfear with their use in the parallel port tester.

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

More
06 Nov 2019 21:06 #149750 by tommylight
Replied by tommylight on topic Re:Parallel Port Tester
Outputs and inputs can be added to Axis screen.

Lower right side has outputs 2 to 7 with respective LED's for monitoring purposed, although the update is slow.
Same can be done with inputs.
Note that you can not control outputs from their buttons near the LED.
Attachments:

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

More
06 Nov 2019 22:42 #149766 by ytiuqibu
Replied by ytiuqibu on topic Re:Parallel Port Tester
Thanks - that makes sense

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

More
06 Nov 2019 22:43 #149767 by ytiuqibu
Replied by ytiuqibu on topic Re:Parallel Port Tester
Thanks I will try to get my head around how to make changes to the Axis UI

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

More
06 Nov 2019 22:45 #149768 by tommylight

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

More
07 Nov 2019 12:02 #149841 by ytiuqibu
Replied by ytiuqibu on topic Re:Parallel Port Tester
Thanks - will have a good look at those soon.

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

More
11 Apr 2020 16:44 #163637 by radek_marko
Replied by radek_marko on topic Parallel Port Tester
This is my version of parallel port tester for dual-port setup.

In my case, I have one LPT port onboard (address 0x278) and the second is on PCI card reported as:
lspci -v

02:02.0 Parallel controller: Device 1c00:2170 (rev 0f) (prog-if 01 [BiDir])
    Subsystem: Device 1c00:2170
    Flags: medium devsel, IRQ 11
    I/O ports at bc00 [size=8]
    I/O ports at b800 [size=8]

File Attachment:

File Name: ptest.hal
File Size:2 KB

File Attachment:

File Name: ptest.xml
File Size:13 KB
Attachments:

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

More
12 Apr 2020 13:41 #163757 by jensor
Replied by jensor on topic Parallel Port Tester
Sorry I never got back on this . I later discovered that there was an internal patch cable failure (one pin was open) connecting the adapter card to the connector on the rear of the chassis. Cable had worked fine for years and suddenly failed intermittently at first. Pulled my hair out on this one - I would replace the board with a new one without also changing the patch cable. Duh! The original board was working fine.

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

More
20 Aug 2020 20:05 - 20 Aug 2020 20:05 #178862 by shortcircuit48
Replied by shortcircuit48 on topic Parallel Port Tester
  • I hope you can bear with me. I spent hours just trying to load Linuxcnc and went round in circle due to my own stubbornness however will now ask quicker.
    I modified line1 by replacing 0x378 with 0xdcb which I think is my parallel port address. When i run ptest I get
    "halrun -I -f ptest.hal
    Refusing to run as root without fallback UID specified
    To run under a debugger with I/O, use e.g.,
    sudo env RTAPI_UID=`id -u` RTAPI_FIFO_PATH=$HOME/.rtapi_fifo gdb /usr/bin/rtapi_app
    ptest.hal:1: waitpid failed /usr/bin/rtapi_app hal_parport
    ptest.hal:1: /usr/bin/rtapi_app exited without becoming ready
    ptest.hal:1: insmod for hal_parport failed, returned -1
    halcmd: exit
    Refusing to run as root without fallback UID specified
    To run under a debugger with I/O, use e.g.,
    sudo env RTAPI_UID=`id -u` RTAPI_FIFO_PATH=$HOME/.rtapi_fifo gdb /usr/bin/rtapi_app

    Is there something elseI need to change. Thanks in advance
    Last edit: 20 Aug 2020 20:05 by shortcircuit48.

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

    Time to create page: 0.327 seconds
    Powered by Kunena Forum