Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. Dual FLIR Lepton thermal cameras with VOXL2 Mini and Sparrow

Dual FLIR Lepton thermal cameras with VOXL2 Mini and Sparrow

Scheduled Pinned Locked Moved Ask your questions right here!
5 Posts 2 Posters 863 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KLindgren
    Contributor
    wrote on last edited by
    #1

    I have the 2 Leptons connected according to the image+pinout in this page but I have not found any guidance on software changes to enable use of the second Lepton (e.g., changes to /etc/modalai/voxl-lepton-server.conf). Does the Lepton Server support 2 cameras? I see the shutter of the second Lepton cycling for FFC at the same time as the first Lepton so it appears to be operating properly. Running the Lepton server only shows the first camera's config loaded and executed.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jared
      Contributor
      wrote on last edited by
      #2

      So far we've updated https://gitlab.com/voxl-public/system-image-build/meta-voxl2-bsp/-/blob/qrb5165-ubun1.0-14.1a/recipes-kernel/linux-msm/files/dts/m0104/m0104-modalai-qupv3.dtsi and added an alias back to https://gitlab.com/voxl-public/system-image-build/meta-voxl2-bsp/-/blob/qrb5165-ubun1.0-14.1a/recipes-kernel/linux-msm/files/dts/m0104/m0104-kona.dtsi as described below and rebuilt the kernel. We see spidev14.0 but only get "Waiting for first frame" message when trying to run voxl-lepton-server from SPI device 14.

      Any ideas? So far we're completely stuck.

      Changes to https://gitlab.com/voxl-public/system-image-build/meta-voxl2-bsp/-/blob/qrb5165-ubun1.0-14.1a/recipes-kernel/linux-msm/files/dts/m0104/m0104-modalai-qupv3.dts:

      /* M0104 - J10 - GPIO 40-44 */
      &qupv3_se14_spi {
              status = "ok";
              spidev@0 {
                      compatible = "spidev";
                      reg = <0>;
                      spi-max-frequency = <50000000>;
              };
      };
      
      /* M0104 - J10 JST connector */
      &qupv3_se14_2uart {
              status = "disabled";
      };
      

      Changes to https://gitlab.com/voxl-public/system-image-build/meta-voxl2-bsp/-/blob/qrb5165-ubun1.0-14.1a/recipes-kernel/linux-msm/files/dts/m0104/m0104-kona.dtsi:

      spi14 = &qupv3_se14_spi;
      
      J 1 Reply Last reply
      0
      • J jared

        So far we've updated https://gitlab.com/voxl-public/system-image-build/meta-voxl2-bsp/-/blob/qrb5165-ubun1.0-14.1a/recipes-kernel/linux-msm/files/dts/m0104/m0104-modalai-qupv3.dtsi and added an alias back to https://gitlab.com/voxl-public/system-image-build/meta-voxl2-bsp/-/blob/qrb5165-ubun1.0-14.1a/recipes-kernel/linux-msm/files/dts/m0104/m0104-kona.dtsi as described below and rebuilt the kernel. We see spidev14.0 but only get "Waiting for first frame" message when trying to run voxl-lepton-server from SPI device 14.

        Any ideas? So far we're completely stuck.

        Changes to https://gitlab.com/voxl-public/system-image-build/meta-voxl2-bsp/-/blob/qrb5165-ubun1.0-14.1a/recipes-kernel/linux-msm/files/dts/m0104/m0104-modalai-qupv3.dts:

        /* M0104 - J10 - GPIO 40-44 */
        &qupv3_se14_spi {
                status = "ok";
                spidev@0 {
                        compatible = "spidev";
                        reg = <0>;
                        spi-max-frequency = <50000000>;
                };
        };
        
        /* M0104 - J10 JST connector */
        &qupv3_se14_2uart {
                status = "disabled";
        };
        

        Changes to https://gitlab.com/voxl-public/system-image-build/meta-voxl2-bsp/-/blob/qrb5165-ubun1.0-14.1a/recipes-kernel/linux-msm/files/dts/m0104/m0104-kona.dtsi:

        spi14 = &qupv3_se14_spi;
        
        J Offline
        J Offline
        jared
        Contributor
        wrote on last edited by jared
        #3

        Any ideas @Vinny or @Alex-Kushleyev ? This is unfortunately a pretty big blocker for us.

        /dev/spidev14.0 exists but isn't working. Regardless of whether we have the lepton plugged or unplugged from J5 on the m0188, voxl-lepton-server(and even dd) just hangs when we try to read from spi 14.0. And this is after we set 67 high (voxl-gpio -w 67 1). See below for dd outputs from spidev0.0 compared to spidev14.0.

        Lepton unplugged

        voxl2-mini:/$ dd if=/dev/spidev0.0 bs=164 count=1 | hexdump -C
        1+0 records in
        1+0 records out
        164 bytes copied, 0.00235198 s, 69.7 kB/s
        00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
        *
        000000a4

        Lepton plugged into m0188 J10

        voxl2-mini:/$ dd if=/dev/spidev0.0 bs=164 count=1 | hexdump -C
        1+0 records in
        1+0 records out
        164 bytes copied, 0.00223693 s, 73.3 kB/s
        00000000 07 ff ff ff 80 00 00 00 00 00 00 00 00 00 00 00 |................|
        00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 e6 |................|
        00000020 a7 42 38 4c 4e 04 00 01 00 00 00 00 00 00 00 00 |.B8LN...........|
        00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
        *
        000000a4

        Lepton unplugged

        voxl2-mini:/$ dd if=/dev/spidev14.0 bs=164 count=1 | hexdump -C
        (Just hangs)

        Lepton plugged into m0188 J5

        voxl2-mini:/$ dd if=/dev/spidev14.0 bs=164 count=1 | hexdump -C
        (Just hangs)

        J 1 Reply Last reply
        0
        • J jared

          Any ideas @Vinny or @Alex-Kushleyev ? This is unfortunately a pretty big blocker for us.

          /dev/spidev14.0 exists but isn't working. Regardless of whether we have the lepton plugged or unplugged from J5 on the m0188, voxl-lepton-server(and even dd) just hangs when we try to read from spi 14.0. And this is after we set 67 high (voxl-gpio -w 67 1). See below for dd outputs from spidev0.0 compared to spidev14.0.

          Lepton unplugged

          voxl2-mini:/$ dd if=/dev/spidev0.0 bs=164 count=1 | hexdump -C
          1+0 records in
          1+0 records out
          164 bytes copied, 0.00235198 s, 69.7 kB/s
          00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
          *
          000000a4

          Lepton plugged into m0188 J10

          voxl2-mini:/$ dd if=/dev/spidev0.0 bs=164 count=1 | hexdump -C
          1+0 records in
          1+0 records out
          164 bytes copied, 0.00223693 s, 73.3 kB/s
          00000000 07 ff ff ff 80 00 00 00 00 00 00 00 00 00 00 00 |................|
          00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 e6 |................|
          00000020 a7 42 38 4c 4e 04 00 01 00 00 00 00 00 00 00 00 |.B8LN...........|
          00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
          *
          000000a4

          Lepton unplugged

          voxl2-mini:/$ dd if=/dev/spidev14.0 bs=164 count=1 | hexdump -C
          (Just hangs)

          Lepton plugged into m0188 J5

          voxl2-mini:/$ dd if=/dev/spidev14.0 bs=164 count=1 | hexdump -C
          (Just hangs)

          J Offline
          J Offline
          jared
          Contributor
          wrote on last edited by jared
          #4

          Ok looks like it was partially a TrustZone issue. I'm now using the .mbn from sdk 1.0.0 and I can at least read from spidev14.0. But still no dice to actually get the camera to read actual data.

          This is the correct pinout from the M0104 J10 to the M0188 J4, yes?
          cc680700-34cd-4064-a702-091622e1e012-image.png

          What I'm getting now:
          voxl2-mini:/$ dd if=/dev/spidev14.0 bs=164 count=1 | hexdump -C
          1+0 records in
          1+0 records out
          164 bytes copied, 0.0010337 s, 159 kB/s
          00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
          *
          000000a4

          J 1 Reply Last reply
          0
          • J jared

            Ok looks like it was partially a TrustZone issue. I'm now using the .mbn from sdk 1.0.0 and I can at least read from spidev14.0. But still no dice to actually get the camera to read actual data.

            This is the correct pinout from the M0104 J10 to the M0188 J4, yes?
            cc680700-34cd-4064-a702-091622e1e012-image.png

            What I'm getting now:
            voxl2-mini:/$ dd if=/dev/spidev14.0 bs=164 count=1 | hexdump -C
            1+0 records in
            1+0 records out
            164 bytes copied, 0.0010337 s, 159 kB/s
            00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
            *
            000000a4

            J Offline
            J Offline
            jared
            Contributor
            wrote on last edited by
            #5

            No new progress in the last few days. Do you have any idea what the issue might be @Alex-Kushleyev ?

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            ModalAI
            Categories Recent Tags ModalAI.com Docs
            © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups