Using Serial on LinuxCNC

More
8 years 11 months ago #101416 by Bello
Hi,
I bought a PCI that include a Parallel port and two Serial ports.
I able to use the Parallel port into my hal files and I would use both serial ports also on it with Linuxcnc.
I'm able to know the card addresses from the lspci command but I haven't clear how to set those in a specifica hal file.
I have tried to use the directive at link

linuxcnc.org/docs/2.6/html/man/man9/serport.9.html

but when I try to add the row:

loadrt serport io=addr

I'm obtaining the message:

a module serport not found.

I've installed on my PC the iso from linuxcnc site www.linuxcnc.org/linuxcnc-2.7-wheezy.iso and when I run comp command the command not found also.

Can you help me to proceed here please?
I'm stucked.

Thanks in advance

Please Log in to join the conversation.

More
8 years 11 months ago #101461 by andypugh
Replied by andypugh on topic Using Serial on LinuxCNC
I asume you are using the actual address rather than "addr"?

Have you noticed the part that says that you need to free the serial port before LinuxCNC can use it?

What is the exact error message that you get?

Please Log in to join the conversation.

More
8 years 11 months ago #101485 by Bello
Replied by Bello on topic Using Serial on LinuxCNC
Thank you so much!
yes, I'm using the address rather then "addr" and I have solved the issue with your suggestion.
I have run

sudo setserial /dev/ttyS0 uart none

to free up the I/O ports after bootup.

Please Log in to join the conversation.

Time to create page: 0.120 seconds
Powered by Kunena Forum