parport tester
12 Sep 2015 23:50 #62500
by andypugh
Replied by andypugh on topic parport tester
try cat /proc/ioports
The following user(s) said Thank You: allenwg2005
Please Log in or Create an account to join the conversation.
- allenwg2005
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 327
- Thank you received: 4
13 Sep 2015 00:18 #62501
by allenwg2005
Replied by allenwg2005 on topic parport tester
cat results
Please Log in or Create an account to join the conversation.
13 Sep 2015 00:26 #62502
by andypugh
Replied by andypugh on topic parport tester
Nothing leaps out, normally something says "parallel port"
You could try the pnp devices, 0400 and 0800 might be worth a try, possibly even 04d0.
You could try the pnp devices, 0400 and 0800 might be worth a try, possibly even 04d0.
The following user(s) said Thank You: allenwg2005
Please Log in or Create an account to join the conversation.
- allenwg2005
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 327
- Thank you received: 4
13 Sep 2015 00:40 #62503
by allenwg2005
Replied by allenwg2005 on topic parport tester
It's certainly worth a try.
Just so I'm not wasting anyones time, exactly how should I enter that in my hal?
What I have now:
loadrt hal_parport cfg="0x378 out 0xdf00 out 0xd900 out"
Should it be:
loadrt hal_parport cfg="0x378 out 0x0400 out 0x0800 out"??
Thanks for the help.
Just so I'm not wasting anyones time, exactly how should I enter that in my hal?
What I have now:
loadrt hal_parport cfg="0x378 out 0xdf00 out 0xd900 out"
Should it be:
loadrt hal_parport cfg="0x378 out 0x0400 out 0x0800 out"??
Thanks for the help.
Please Log in or Create an account to join the conversation.
- allenwg2005
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 327
- Thank you received: 4
13 Sep 2015 01:25 #62505
by allenwg2005
Replied by allenwg2005 on topic parport tester
I have forward movement. (I think).
I made the following change to the hal:
loadrt hal_parport cfg="0x378 out 0xc000 out 0xd000 out"
LCNC loads, I can F1, F2, (first time F2 cleared).
When I try and "Home" the tool cone starts looking for Z home in the wrong direction on the Axis screen, Z on the machine isn't doing a thing
The port tester won't work do to the unusual port address (I suppose).
Can anyone help?
I made the following change to the hal:
loadrt hal_parport cfg="0x378 out 0xc000 out 0xd000 out"
LCNC loads, I can F1, F2, (first time F2 cleared).
When I try and "Home" the tool cone starts looking for Z home in the wrong direction on the Axis screen, Z on the machine isn't doing a thing
The port tester won't work do to the unusual port address (I suppose).
Can anyone help?
Please Log in or Create an account to join the conversation.
13 Sep 2015 02:08 #62506
by andypugh
It can be made to. It is based around a simple HAL file, which has exactly the same loadrt hal_parport line as your machine HAL file.
Test the extra ports one at a time by trying the addresses.
Replied by andypugh on topic parport tester
The port tester won't work do to the unusual port address (I suppose).
It can be made to. It is based around a simple HAL file, which has exactly the same loadrt hal_parport line as your machine HAL file.
Test the extra ports one at a time by trying the addresses.
Please Log in or Create an account to join the conversation.
- allenwg2005
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 327
- Thank you received: 4
13 Sep 2015 08:18 - 13 Sep 2015 08:19 #62510
by allenwg2005
Replied by allenwg2005 on topic parport tester
This is the "loadrt hal_parport cfg="0x378 out" line in ptest.hal.
Given the port arrangement of my PC (no LPT port on Mboard), should I eliminate "0x378" from the line?
Could someone please illustrate what the line should look like given the addresses below and the PCI set-up I seem to have.
Thank you.
0cf8-0cff : PCI conf1
c000-cfff : PCI Bus 0000:01
d000-dfff : PCI Bus 0000:02
d400-d40f : 0000:02:01.0
d500-d507 : 0000:02:01.0
d600-d607 : 0000:02:01.0
d700-d707 : 0000:02:01.0
d800-d807 : 0000:02:01.0
d900-d907 : 0000:02:01.0
da00-da0f : 0000:02:00.0
db00-db07 : 0000:02:00.0
dc00-dc07 : 0000:02:00.0
dd00-dd07 : 0000:02:00.0
de00-de07 : 0000:02:00.0
df00-df07 : 0000:02:00.0
Given the port arrangement of my PC (no LPT port on Mboard), should I eliminate "0x378" from the line?
Could someone please illustrate what the line should look like given the addresses below and the PCI set-up I seem to have.
Thank you.
0cf8-0cff : PCI conf1
c000-cfff : PCI Bus 0000:01
d000-dfff : PCI Bus 0000:02
d400-d40f : 0000:02:01.0
d500-d507 : 0000:02:01.0
d600-d607 : 0000:02:01.0
d700-d707 : 0000:02:01.0
d800-d807 : 0000:02:01.0
d900-d907 : 0000:02:01.0
da00-da0f : 0000:02:00.0
db00-db07 : 0000:02:00.0
dc00-dc07 : 0000:02:00.0
dd00-dd07 : 0000:02:00.0
de00-de07 : 0000:02:00.0
df00-df07 : 0000:02:00.0
Last edit: 13 Sep 2015 08:19 by allenwg2005.
Please Log in or Create an account to join the conversation.
13 Sep 2015 08:21 #62511
by andypugh
You should only use addresses of ports that correspond to an actual parallel port.
You can use the p-port tester to find out which ports have a parallel port on them. One at a time.
Replied by andypugh on topic parport tester
Given the port arrangement of my PC (no LPT port on Mboard), should I eliminate "0x378" from the line?
You should only use addresses of ports that correspond to an actual parallel port.
You can use the p-port tester to find out which ports have a parallel port on them. One at a time.
The following user(s) said Thank You: allenwg2005
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19224
- Thank you received: 6441
14 Sep 2015 02:53 #62524
by tommylight
Replied by tommylight on topic parport tester
Instead of this
loadrt hal_parport cfg="0x378 out 0xc000 out 0xd000 out"
you shoud have this:
loadrt hal_parport cfg="0dd00 out 0d700 out"
also in the hal file you should have something like :
addf parport.0.read base-thread
addf parport.0.write base thread
etc
you must add the same thing for the other parport or it will not work
addf parport.1.read base-thread
addf parport.1.write base thread
Regards,
tom
loadrt hal_parport cfg="0x378 out 0xc000 out 0xd000 out"
you shoud have this:
loadrt hal_parport cfg="0dd00 out 0d700 out"
also in the hal file you should have something like :
addf parport.0.read base-thread
addf parport.0.write base thread
etc
you must add the same thing for the other parport or it will not work
addf parport.1.read base-thread
addf parport.1.write base thread
Regards,
tom
The following user(s) said Thank You: allenwg2005
Please Log in or Create an account to join the conversation.
14 Sep 2015 23:22 #62571
by andypugh
Replied by andypugh on topic parport tester
Also, you could try letting Linux find the parports.
loadrt hal_parport config="0 out"
Should find the first parport automatically.
loadrt hal_parport config="0 out 1 out"
Should find both. It doesn't take long to try it.
loadrt hal_parport config="0 out"
Should find the first parport automatically.
loadrt hal_parport config="0 out 1 out"
Should find both. It doesn't take long to try it.
The following user(s) said Thank You: allenwg2005
Please Log in or Create an account to join the conversation.
Time to create page: 0.073 seconds