Parport read and write problem

More
16 Oct 2013 17:14 #39947 by ztj_1
I want use the HAL component parport to (just read/write data) communication with my sigle-chip board.
Does it possible for me to do it without modify the sorce code?

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

More
16 Oct 2013 18:40 #39952 by andypugh

I want use the HAL component parport to (just read/write data) communication with my sigle-chip board.
Does it possible for me to do it without modify the sorce code?


Do you want to write "data" or set individual pins?

The hal_parport module is intended for setting and reading the values of individual pins. I suspect that you want to send data bytes, and the hal_parport component is probably quite a bad choice for that.

What is the data protocol to your board?

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

More
16 Oct 2013 18:41 #39953 by ArcEye
This is what it does, does that meet your needs?
www.linuxcnc.org/docs/devel/html/hal/parallel_port.html

If not you will have to write your own driver to send and receive data packets, or whatever it is you want to do.

regards

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

More
16 Oct 2013 18:58 #39955 by ztj_1
Thank you for your help,
As I asked in the previous question in
www.linuxcnc.org/index.php/english/forum...nuxcnc-on-preempt-rt
Now I'm trying to use rtai kernel, and I have already installed linuxcnc in the kernel 2.6.37+rtai39.

But now, I want use parallel port to do the close loop control for servo motor, so I need to read the feed back data.

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

More
16 Oct 2013 19:16 #39960 by andypugh

But now, I want use parallel port to do the close loop control for servo motor, so I need to read the feed back data.


Have you seen emergent.unpythonic.net/projects/01142347802

The config files are included with LinuxCNC as a sample config, called "etch-servo"

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

Time to create page: 0.116 seconds
Powered by Kunena Forum