ADIS1648x Linux IIO Driver Trigger Setup

I am supporting a customer that needs very specific guidance on how to set up the triggered buffer in the Linux environment for use with the ADIS1648x IIO driver.  They have the device created and are able to execute function calls to read registers or data, etc., but the device does not seem to have a trigger they can use for setting up sampling based on the interrupt coming from the IMU.  The customer stated they know how to enable the buffer once a trigger is assigned, but they are not currently seeing the trigger in their environment referenced by the ADI wiki for the driver:

https://wiki.analog.com/resources/tools-software/linux-drivers/iio-inertial-measurement-units/adis16480

 

Basically, they are asking for guidance on how to configure the trigger to use the interrupt signal coming from the IMU device.  I spent a couple days trying to decipher what needs to be done from the internet with no luck – I am not a software guy and know even less about Linux IIO framework.

Is there any kind of instructions / recipe that could be provided to walk through setting up the device in the Linux IIO system to use a triggered buffer (w/ sampling triggered from the interrupt signal coming from the IMU)?

Parents
  • +1
    •  Analog Employees 
    on Apr 9, 2020 12:01 PM 7 months ago

    Hi Brian,

    So, to do it manually these are the commands that can be done

    pi@raspberrypi:~$ ls /sys/bus/iio/devices/
    iio:device0  trigger0
    pi@raspberrypi:~$ cd /sys/bus/iio/devices/
    pi@raspberrypi:~$ sudo -s
    root@raspberrypi:/sys/bus/iio/devices# cat trigger0/name 
    adis16505-2-dev0
    root@raspberrypi:/sys/bus/iio/devices# echo adis16505-2-dev0 > iio\:device0/trigger/current_trigger 
    root@raspberrypi:/sys/bus/iio/devices# 
    root@raspberrypi:/sys/bus/iio/devices# cat iio\:device0/trigger/current_trigger 
    adis16505-2-dev0

    The example is shown with another device, but it's the same principle...

    - Nuno Sá

Reply
  • +1
    •  Analog Employees 
    on Apr 9, 2020 12:01 PM 7 months ago

    Hi Brian,

    So, to do it manually these are the commands that can be done

    pi@raspberrypi:~$ ls /sys/bus/iio/devices/
    iio:device0  trigger0
    pi@raspberrypi:~$ cd /sys/bus/iio/devices/
    pi@raspberrypi:~$ sudo -s
    root@raspberrypi:/sys/bus/iio/devices# cat trigger0/name 
    adis16505-2-dev0
    root@raspberrypi:/sys/bus/iio/devices# echo adis16505-2-dev0 > iio\:device0/trigger/current_trigger 
    root@raspberrypi:/sys/bus/iio/devices# 
    root@raspberrypi:/sys/bus/iio/devices# cat iio\:device0/trigger/current_trigger 
    adis16505-2-dev0

    The example is shown with another device, but it's the same principle...

    - Nuno Sá

Children