Parport read and write problem
16 Oct 2013 17:14 #39947
by ztj_1
Parport read and write problem was created 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?
Does it possible for me to do it without modify the sorce code?
Please Log in or Create an account to join the conversation.
16 Oct 2013 18:40 #39952
by andypugh
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?
Replied by andypugh on topic Parport read and write problem
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.
16 Oct 2013 18:41 #39953
by ArcEye
Replied by ArcEye on topic Parport read and write problem
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
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.
16 Oct 2013 18:58 #39955
by ztj_1
Replied by ztj_1 on topic Parport read and write problem
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.
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.
16 Oct 2013 19:16 #39960
by andypugh
Have you seen emergent.unpythonic.net/projects/01142347802
The config files are included with LinuxCNC as a sample config, called "etch-servo"
Replied by andypugh on topic Parport read and write problem
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.086 seconds