Paralell port problems SOLVED!

More
13 Mar 2016 22:52 #71590 by andypugh
cat /proc/ioports

Might (I stress, _might_) give you more info about the available parports.

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

More
14 Mar 2016 16:11 - 14 Mar 2016 16:17 #71644 by gizmo6023

cat /proc/ioports

Might (I stress, _might_) give you more info about the available parports.


At this point a might option is worth a shot if it helps resolve this issue.
Last night I removed the second parport from the machine, rebooted, shutdown, and reinstalled the parport, ran the following in terminal sudo modprobe parport_pc
sudo rmmod ppdev
sudo rmmod lp
sudo rmmod parport_pcand
then attempted to assign it only to generate error on start parport 1 not found.
Last edit: 14 Mar 2016 16:17 by gizmo6023.

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

More
14 Mar 2016 16:52 #71646 by andypugh
I have a feeling that parport_pc is _required_ to use the 0,1,2 index addressing.

linuxcnc.org/docs/2.7/html/hal/parallel-port.html#_loading

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

More
14 Mar 2016 18:26 #71648 by gizmo6023

I have a feeling that parport_pc is _required_ to use the 0,1,2 index addressing.

linuxcnc.org/docs/2.7/html/hal/parallel-port.html#_loading


Does the step config wizzard set these values some place I can verify them?
loadrt hal_parport cfg="configuration string"
loadrt hal_parport cfg="0"
loadrt hal_parport cfg="0x378"
loadrt hal_parport cfg="0 in"
addf parport.0.read base-thread
addf parport.0.write base-thread

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

More
14 Mar 2016 20:44 #71654 by andypugh

Does the step config wizzard set these values some place I can verify them?


Yes, absolutely.

Stepconf is just a utility that creates a HAL and an INI file. These two files are human-readable and human-editable, and you should expect to have to do so for anything other than a very conventional machine setup.

If you look at the .hal file in the configuration directory that stepconf creates you should be able to see all the parport-related commands.

You might find that it references data in the .ini file, in the format [SECTION]VALUE

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

More
15 Mar 2016 03:03 #71666 by gizmo6023
Success!
I finally stumbled across the solution, my system does not like the parport index numbers for some reason and providing the hex address for the first port got that one working. There seems to be a change on the parport 2 setup screen, there used to be a label for the address now it is an unlabeled box with index # 1 inserted by default. I finally decided to try plugging the hex address for port 2 in and now it works as advertised.
Perhaps a label will save some one else some aggravation if things don't just work automatically.

Thanks for all the help andypugh
Attachments:

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

Time to create page: 0.258 seconds
Powered by Kunena Forum