PC GPIO pins

More
1 year 6 months ago #326466 by Abdulkareem
PC GPIO pins was created by Abdulkareem
Good afternoon I'm using Venoen P12b industrial PC that has GPIO pins in it and the BIOS provides settings to configure the state of these GPIOs at boot time, but I need to control them dynamically from Linuxf for use with LinuxCNC instead of an I/O module i wanted to to know if that was possible or not. 

Please Log in to join the conversation.

More
1 year 6 months ago #326482 by PCW
Replied by PCW on topic PC GPIO pins
Certainly possible but likely needs a hardware specific driver,
perhaps the RPI GPIO driver could be used as an example.

Please Log in to join the conversation.

More
1 year 6 months ago #326513 by Abdulkareem
Replied by Abdulkareem on topic PC GPIO pins
Honestly I have no idea how to do this so is there a guide or documentation that i could follow because from what i read the pc might have an embedded controller for the gpios that is why when i run gpiodetect on the terminal nothing shows any help would be appreciated.

Please Log in to join the conversation.

More
1 year 6 months ago #326515 by unknown
Replied by unknown on topic PC GPIO pins
Have you contacted the manufacturer yet ?

Please Log in to join the conversation.

More
1 year 6 months ago #326521 by Abdulkareem
Replied by Abdulkareem on topic PC GPIO pins
yes but they are not answering

Please Log in to join the conversation.

More
1 year 6 months ago #326526 by royka
Replied by royka on topic PC GPIO pins
If I see it correctly it has a LPT port?
There are different version I see now. So it has 7 input pins (GPI) and 7 output pins (GPO).
With a XYZ machine you'll have just enough output pins to control the steppers, but like PCW said you'll need to create a driver for it.
If you could still return it, the one with a LPT port might be a better choice. If you want to be more sure that it will work reliable with a fast rate a hardware controller will be a better choice.

Please Log in to join the conversation.

More
1 year 6 months ago #326586 by andypugh
Replied by andypugh on topic PC GPIO pins
Actually, hal_gpio might "just work" in this case.

Try this command and see if it reports the pins:
Code:
gpioinfo
If you get "command not known" then
Code:
sudo apt-get install libgpiod

If the pins are reported, then:
linuxcnc.org/docs/stable/html/drivers/hal_gpio.html

Please Log in to join the conversation.

Time to create page: 0.100 seconds
Powered by Kunena Forum