Pci card fo Linuxcnc

More
20 Mar 2022 07:14 - 20 Mar 2022 07:57 #237773 by vas455
Pci card fo Linuxcnc was created by vas455
Good afternoon!  Tell me, is it possible to use different pci  i/o cards with Linuxcnc?  By default, only the settings for the parallel port and mesa cards are available in the settings, the question is whether other cards will be available in the settings after installing the card itself and drivers, for example, use a card on ch367
Last edit: 20 Mar 2022 07:57 by vas455.

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

More
21 Mar 2022 02:36 #237867 by Todd Zuercher
Replied by Todd Zuercher on topic Pci card fo Linuxcnc
The Pncconfig wizard is a tool for building Linuxcnc configurations for Mesa cards. It does not support other hardware.

If the card you want to use isn't already supported by Linuxcnc you may be stuck having to write your own drivers for it. Unless you are very lucky (as I was) and can find a generous person to write one for you.

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

More
21 Mar 2022 12:07 #237905 by HansU
Replied by HansU on topic Pci card fo Linuxcnc
You will find all supported hardware on linuxcnc.org/docs/devel/html/ in section Hardware Drivers

This might be an alternative for you, which is still in development: forum.linuxcnc.org/27-driver-boards/4442...roller-board?start=0

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

More
21 Mar 2022 13:39 #237914 by tommylight
Replied by tommylight on topic Pci card fo Linuxcnc
Do you have the card?
if yes, insert it in the PC, boot a Live Linux session from USB and type:
sudo lspci -v
It does return a lot of text, but try to find the section with that cards info.
Also search for firmware for it, a lot of Chinese companies have firmware on the net to avoid lawsuits.

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

More
21 Mar 2022 13:50 - 21 Mar 2022 13:52 #237916 by vas455
Replied by vas455 on topic Pci card fo Linuxcnc
Today I order ch367 board 

Pci-1739u board 

And order pci-7432 board 
Last edit: 21 Mar 2022 13:52 by vas455.

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

More
21 Mar 2022 13:54 - 21 Mar 2022 13:55 #237917 by vas455
Replied by vas455 on topic Pci card fo Linuxcnc
These cards are not very expensive, I can post their documentation and drivers here if you are interested.
I will receive these boards in about 50 days
Last edit: 21 Mar 2022 13:55 by vas455.

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

More
21 Mar 2022 13:58 #237919 by tommylight
Replied by tommylight on topic Pci card fo Linuxcnc
As i said above, many of them have everything on the net, so:
www.wch.cn/products/CH367.html
At the very end there are Linux drivers, and everything else in between.

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

More
23 Mar 2022 22:29 #238163 by andypugh
Replied by andypugh on topic Pci card fo Linuxcnc
It's probably relatively easy to write a LinuxCNC driver for these boards if the documentation is adequate.

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

More
24 Mar 2022 05:49 #238194 by vas455
Replied by vas455 on topic Pci card fo Linuxcnc
relatively speaking, I will need to write a driver to specify the ports of the card in Linuxcnc?

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

More
24 Mar 2022 21:47 #238281 by andypugh
Replied by andypugh on topic Pci card fo Linuxcnc

relatively speaking, I will need to write a driver to specify the ports of the card in Linuxcnc?
 

Yes. But it's not particularly difficult. 
Here is an example:
github.com/LinuxCNC/linuxcnc/blob/master.../drivers/pcl720.comp
It's for an ISA card, and the starting point is an ioaddr. But i chose it as it uses the .comp preprocessing language so it's relatively simple. 

For a PCI device it is usual to use DMA, so after a bit of setup you just need to put the data into variables that are part of a correctly-shaped C struct. 
I think that the memory mapping happens here, in the Motenc driver: github.com/LinuxCNC/linuxcnc/blob/master...rs/hal_motenc.c#L309
 
The following user(s) said Thank You: tommylight

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

Moderators: cmorley
Time to create page: 0.144 seconds
Powered by Kunena Forum