Request custom-device interface for ai-vision-ros2-demo qualcomm

Hello reviewers,

Requesting the custom-device interface for the ai-vision-ros2 demo snap, to allow access to Qualcomm Hexagon NPU accelerator device nodes. This snap is used to run AI robotics application demos with our partner Qualcomm.

name: ai-vision-ros2
description: |
Robotic-arm vision perception node for ROS 2 Jazzy, Qualcomm
Hexagon NPU (QNN) variants. Subscribes to a camera image topic and
republishes detections/depth plus a protective-stop signal, running
inference on the Hexagon NPU (and optionally the Adreno GPU) of a
Qualcomm IQ-9075 EVK / QRB-Snapdragon board.

slots:
  qcom-accel:
    interface: custom-device
    custom-device: qcom-accel
    devices:
      - /dev/fastrpc-cdsp
      - /dev/fastrpc-cdsp1

plugs:
  qcom-accel-plug:
    interface: custom-device
    custom-device: qcom-accel


Two models are published under this same snap name on different channels:

  • latest/qualcomm/stable: Depth Anything V2 (Small) – monocular depth / proximity protective-stop
  • latest/qualcomm/edge: OWL-ViT (open-vocabulary detection) – text-prompted object detection / protective-stop

Both variants use ONNX Runtime’s QNNExecutionProvider to dispatch inference. The snap requires the custom-device interface to access these device nodes:

  • /dev/fastrpc-cdsp, /dev/fastrpc-cdsp1: fastrpc channels used by the QNN HTP backend to dispatch inference to the Hexagon DSP/NPU.

snapcraft: https://github.com/canonical/ai-vision-ros2-demo/blob/qualcomm/so101_depth_demo/snap/snapcraft.yaml upstream-relation: maintainer

This snap targets a board with no gadget snap . Thanks in advance for reviewing!

This request has been added to the queue for review by the @reviewers team.

Hi @giusebar18

+1 from me for granting auto-connection of /dev/fastrpc-cdsp and /dev/fastrpc-cdsp1 devices using custom-device interface.

Hey @giusebar18

I understand the technical reasons why this is needed given that “This snap targets a board with no gadget snap .”. Whilst we have granted both, custom-device plug and slot, to an app snap in the past, I believe this is a bit on the corner of what this interface was designed for. @pedronis are you ok with it in this case?

Out of interest,

Could you please share a bit more context about whether this runs on Ubuntu classic or Ubuntu core systems and why we don’t have a gadget snap for this board?

Thanks

Hello @jslarraz,

Thanks for your reply.

Yes, this demo is running on Ubuntu Server / Desktop at the moment, not on Ubuntu Core. There is no core image for those boards as far as I know. https://ubuntu.com/download/qualcomm-iot#iq9-evk

Let me know if you need more details, or whether there is a better interface to use for this.

Thanks

yes, that is definitely a use case to allow a custom-device plug/slot pair on a snap

If more snaps need this access though, it might be worth working on a dedicated interface at some point