On 15/06/16 12:55, Bastian wrote:
Thank you for your answer.

I attached the .ini file I am loading, where I added the HALUI = halui statement in [HAL] section and my custom .hal file HALFILE = remote_sps.hal, which is also attached.

Furthermore, I attached the .bbio file. I changed the values for the pins 43, 44, 45, 46 of port 8.

OK, that should help

Whilst we are waiting for the BBB gurus, I notice that parallel-cape2.bbio still includes the hdmi cape overlay you say is disabled

I assume that cape uses the pin you chose, are you actually sure it is disabled?
Try commenting out the overlay line?

In file 'base_bbb.hal' I added 846 to the input_pins.



Have you tried NOT exporting the pin and writing to it via fd  calls in /sys/class/gpio ?

The driver undoubtedly uses memory mapping to address the pin, but don't know how exporting it and writing to it using fd interface as the system is booted
might affect that

The other suggestion is to set DEBUG = to a high number ( at least 5) run and then look at /var/log/linuxcnc.log

The hal_bb_gpio driver has numerous debug error prints  - you may catch something there

regards

The startup script (/etc/rc.local) looks like this (it already contains some more pins I want to use in future)
echo 70 > /sys/class/gpio/export
echo 71 > /sys/class/gpio/export
echo 72 > /sys/class/gpio/export
echo 73 > /sys/class/gpio/export

echo in > /sys/class/gpio/gpio70/direction
echo in > /sys/class/gpio/gpio71/direction
echo high > /sys/class/gpio/gpio72/direction
echo high > /sys/class/gpio/gpio73/direction

echo 0 > /sys/class/gpio/gpio72/value
echo 0 > /sys/class/gpio/gpio73/value

I also attached the uEnv.txt
--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to