Thx Andy
hahhaha 1st I see 'sysfs is deprecated' notice, so I need background fer
sure/
I see in and out lists parsed to argv[n] (i suppose_.
I went a different route and parsed the hal to generate a config file.
In the net section, i put in a begin and end token in comments
surrounding the nets using the Arduino-esque pins.
Then I set some naming ruled like 'net mysig ardIO.DI-029 vcp.DI-029-led
This allows the actual device pin (029) to be used and specify the pyvcp
widget (led) and pin type (DI)
I use a variation of Jepler's and Dino's 8 byte protocol.
I'd like pluggable comm specs for serial udp eth spi i2c but i wont live
that long.
It also writes a .h file for the arduino .ino to include ( pin specs )
and even writes a simplistic pyvcp panel that would show/set the pins.
That part is rather hard coded for the widget to pin type mapping.
I think the xml for the newer widget panel systems can be written but
didnt try yet.
It should work for BBB and b/o/rpi and Uno Due Mega esp32 et all the
tingummys that can use Arduino IDE
So far Uno and Mega work in basic comms for DI and DO ( i hope Ai AO PO
are not much diffenernt )
Right now I am working on another project. an EDM on Time OffTime pair
like a oneshot.
Turn on voltage for x uS, turn power off for y uS, then wait for further
orders. Just once.
Using interruots and timers, amd allow changing eithe x or y for next
execution.
I will read up on the gpiod, amd do have a BBB to test it with. ( not
soon ;-/ )
Thx for all your work
tomp
On 8/3/23 15:20, andy pugh wrote:
On Wed, 2 Aug 2023 at 17:51, Thomas J Powderly <tjt...@gmail.com> wrote:
Is there an explanation of gpiod?
It's a replacement for the sysfs interface for gpio (which hal_pi_gpio
uses, for example).
There is an article about it here:
https://lloydrochester.com/post/hardware/libgpiod-intro-rpi/
I have a working-but-slow demo here:
https://github.com/LinuxCNC/linuxcnc/commit/15138feb4a1a811a7b61a660555d78b85bdcf86c
(later commits in that branch are not working at all at the moment)
to use the BBB output from gpioinfo above:
loadrr hal_gpio inputs=P8_25,P8_24 outputs=P8_10,P811
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users