× Forum Header

Parallel port check - Modules:parport -parport_pc

More
16 Jun 2013 06:39 - 16 Jun 2013 06:40 #35700 by adelabarra
Hello everybody!
I´ve just read the conditions and realized that a "new topic" was the right way to post. I am new to the forum.

I've just "succeeded" on installing emc2-2.4.5 with RTAI 3.3 and Slackware kernel 2.6.10 with r12 patch. :dry:
But there is a problem about parallel port configuration.
When I try to run the "ptest.hal" I receive by dmesg:

insmode parport_pc failed:
Unknown symbol parport_ieee1284_ecp_read_data
Unknown symbol parport_ieee1284_epp_read_data
Unknown symbol parport_ieee1284_ecp_read_nibble

From that I made some hacking and found that if I insmod the "parport"
module it seems to work but don't know if it really does, because when I test the pins nothing happens.

Do I have to recompile the kernel with the "ieee1284" as Module?
Do I have to check first if my port is open collector? (Because if I don't insert the resistance nothing should happen¿?)
Do I really need to insert the "parport" module to insmod the parport_pc or is there another better module instead?

I'm Sorry... there is a lot of questions.

Regards.

Alejandro.
Last edit: 16 Jun 2013 06:40 by adelabarra.

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

More
16 Jun 2013 16:13 - 16 Jun 2013 20:06 #35703 by ArcEye
Hi

Why do you want to load parport_pc?

Linuxcnc has its own module hal_parport which handles the parallel port

If you try to load parport_pc, lp and ppdev, linuxcnc will not work

What I think you have done is tried to run the parallel port tester, whilst the parport is already claimed by parport_pc, which should not be loaded

Check /etc/modules does not have the line
lp
in it
Also that /etc/modprobe.d/linuxcnc.conf (or emc.conf) has the line
install parport_pc /bin/true
uncommented

What is unclear is why you ran the parallel port test at all.
Are you unable to run a config in Linuxcnc?

regards
Last edit: 16 Jun 2013 20:06 by ArcEye.

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

More
16 Jun 2013 21:19 #35709 by adelabarra
Replied by adelabarra on topic Parallel port check - Modules:parport -parport_pc
Dear Arc:
Thanks for your answer!!
Last night I became obsessed with the problem until 4:30 AM.
The problems were:

Q: ¡Where the heck is my f*** parallel card?
A: My PC seen it as 16550 serial controller! - I found that on an Ubuntu forum.
I have also an embedded port that was detected as Printer, with 378 address. So I was sending bytes to the sky!!!

Q: What was my card address?
A: lspci -v => 0x1440; 0x1448 - Now it doesn't appear any more as 16550 serial controller.

"What I think you have done is tried to run the parallel port tester, whilst the parport is already claimed by parport_pc, which should not be loaded"
OK. The halrun tries to load the parport_pc. If "parport" is not lodaded it fails. What I didn't know was if it was a problem about "parport"

Finally I downloaded a little C program and checked the port an runned successfully.
Now I'll try with the ptest.hal

Regards!

Alejandro.

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

More
16 Jun 2013 21:41 #35710 by adelabarra
Replied by adelabarra on topic Parallel port check - Modules:parport -parport_pc
Dear Arc:
Finally I succeeded on testing the F*****************************************! port!!!!!!!!!!!!!!!

The ptest.hal works as intended. I also found 4 pins as inputs: 10, 11, 12, 13 and 15.

No I'll try to mount the hardware.

Here today is the "father's day". It is the best gift I could receive.

Regards

Alejandro.

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

More
16 Jun 2013 21:53 #35712 by ArcEye
Glad you sorted it out

Be aware that the LED lighting on the port tester means nothing unless there is a corresponding voltage at the pin in question.
But from what you wrote earlier I am sure you realise that B)

regards

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

More
16 Jun 2013 23:40 #35719 by adelabarra
Replied by adelabarra on topic Parallel port check - Modules:parport -parport_pc
Hello!
When I made the first tries the measures had nothing to see with the colors I saw in the leds.
Also I had to cut the cable and mount everything on a proto-board to be sure of the measures.


I was just to blame your program and post: "Hey! where did you get that colors from!" :angry:

I was lucky not to post that!!

I would be banned from the forum... :huh: :laugh:

The result of the measuring was:

0.0 V Red
5.14 V Green

Regards,

Alejandro.

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

More
17 Jun 2013 08:21 #35728 by andypugh

I've just "succeeded" on installing emc2-2.4.5 with RTAI 3.3 .

You seem to be a bit behind in your LinuxCNC version. An upgrade to 2.5.2 should be fairly straightforward, but needs to be forced.
wiki.linuxcnc.org/cgi-bin/wiki.pl?UpdatingTo2.5

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

More
17 Jun 2013 09:15 - 17 Jun 2013 18:42 #35730 by adelabarra
Replied by adelabarra on topic Parallel port check - Modules:parport -parport_pc
Hello!
For now i'll mount all the stuff. Try the motors, the HY-TB5DV_M_5Axis interface, mount the structure and so on.
Later I'll try the new versions.
I connected a little ear-phone on the output and heard the pulses.(!)

Alejandro.
Last edit: 17 Jun 2013 18:42 by adelabarra. Reason: Typo

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

Time to create page: 0.067 seconds
Powered by Kunena Forum