Using Serial on LinuxCNC
06 Nov 2017 12:09 - 06 Nov 2017 14:41 #101416
by Bello
Using Serial on LinuxCNC was created 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
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
Last edit: 06 Nov 2017 14:41 by Bello.
Please Log in or Create an account to join the conversation.
06 Nov 2017 20:12 #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?
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 or Create an account to join the conversation.
07 Nov 2017 08:31 #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.
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 or Create an account to join the conversation.
Time to create page: 0.096 seconds