PC GPIO pins
- Abdulkareem
- Offline
- Senior Member
-
Less
More
- Posts: 73
- Thank you received: 1
16 Apr 2025 15:22 #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 or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18457
- Thank you received: 5041
16 Apr 2025 18:24 #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.
perhaps the RPI GPIO driver could be used as an example.
The following user(s) said Thank You: Abdulkareem
Please Log in or Create an account to join the conversation.
- Abdulkareem
- Offline
- Senior Member
-
Less
More
- Posts: 73
- Thank you received: 1
17 Apr 2025 09:06 - 17 Apr 2025 09:07 #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.
Last edit: 17 Apr 2025 09:07 by Abdulkareem.
Please Log in or Create an account to join the conversation.
- unknown
- Offline
- Elite Member
-
Less
More
- Posts: 316
- Thank you received: 124
17 Apr 2025 11:59 #326515
by unknown
Replied by unknown on topic PC GPIO pins
Have you contacted the manufacturer yet ?
Please Log in or Create an account to join the conversation.
- Abdulkareem
- Offline
- Senior Member
-
Less
More
- Posts: 73
- Thank you received: 1
17 Apr 2025 13:10 - 17 Apr 2025 13:11 #326521
by Abdulkareem
Replied by Abdulkareem on topic PC GPIO pins
yes but they are not answering
Last edit: 17 Apr 2025 13:11 by Abdulkareem.
Please Log in or Create an account to join the conversation.
- royka
- Offline
- Platinum Member
-
Less
More
- Posts: 366
- Thank you received: 126
17 Apr 2025 15:45 - 17 Apr 2025 16:09 #326526
by royka
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.
Replied by royka on topic PC GPIO pins
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.
Last edit: 17 Apr 2025 16:09 by royka.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23279
- Thank you received: 4933
18 Apr 2025 10:15 #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:If you get "command not known" then
If the pins are reported, then:
linuxcnc.org/docs/stable/html/drivers/hal_gpio.html
Try this command and see if it reports the pins:
gpioinfo
sudo apt-get install libgpiod
If the pins are reported, then:
linuxcnc.org/docs/stable/html/drivers/hal_gpio.html
The following user(s) said Thank You: royka
Please Log in or Create an account to join the conversation.
Time to create page: 0.055 seconds