ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    MIPI Ports in Camera Group 1 Stopped working

    VOXL 2
    2
    6
    228
    Loading More Posts
    • 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.
    • S
      swickliff
      last edited by

      We had a M0014 Tracking Camera and a M0107 Hires, configured correctly for camera group 1 on MIPI J7. We had done some test flights of this aircraft, Hires camera looked great, tracking camera was working perfect. The aircraft was not involved in any crashes.

      While performing a stationary range test, the cameras stopped working. Running voxl-inspect-cam -a results in this error:
      Screenshot from 2024-07-16 14-57-44.png
      Voxl-inspect-services show that the voxl-camera-server is enabled but not running. Trying to restart the camera-server does nothing.

      I tried all new cameras and cables, and it produced the same error.

      Is something corrupted in the camera driver? Would reflashing the SDK potentially solve it?

      Reconfiguring the cameras in group 2 shows the cameras working fine again. But as far as I know VIO tracking can only be set up in camera group 1. Is it possible to set up the VIO pipeline through a different camera group?

      Final note, we conformal coated the Voxl2 prior to flight testing, but the MIPI ports are free from conformal coating or any other visible damage.

      Alex KushleyevA 1 Reply Last reply Reply Quote 1
      • Alex KushleyevA
        Alex Kushleyev ModalAI Team @swickliff
        last edited by Alex Kushleyev

        @swickliff , as you already probably figured out, the OV7251 camera (M0014) can work in any hardware slot 0-5 and you can find the needed sensormodule drivers in /usr/share/modalai/chi-cdk/ov7251.

        If you move the cameras around on J6/7/8 connectors, their camera IDs (from voxl-camera-server point of view) may change, but as long as you adjust /etc/voxl-camera-server.conf with correct camera id, the rest of the processes will not know which camera connector, the images are actually coming from.

        You can check camera IDs vs slot ids using voxl-camera-server -l.

        Please let me know if you need any further clarification.

        Regarding what happened to the original connector, please run voxl-camera-server -l in foreground and see if the cameras are still detected and then just voxl-camera-server in foreground to see what the error is.

        Alex

        S 1 Reply Last reply Reply Quote 0
        • S
          swickliff @Alex Kushleyev
          last edited by

          @Alex-Kushleyev

          voxl-camera-server -l detected both cameras

          voxl-camera-server threw a few warnings and Error: Received "Buffer" error from camera: tracking

          The whole read out is below:

          voxl-camera-server 1.png
          voxl-camera-server 2.png
          voxl-camera-server 3.png

          Alex KushleyevA 1 Reply Last reply Reply Quote 0
          • Alex KushleyevA
            Alex Kushleyev ModalAI Team @swickliff
            last edited by Alex Kushleyev

            @swickliff , thanks for sharing the voxl-camera-server output. When the "Buffer" error happens, do you get any frames at (you could check using voxl-portal)?

            If you just enable the tracking camera (disable hires), does the same issue occur?

            One way to see if you are receiving frames into the ISP, is to enable a special debug mode and then monitor output of dmesg:

            #enable debug mode (the debug mode will reset after reboot)
            echo 0xf > /sys/kernel/debug/camera_ife/ife_csid_debug
            
            • open another terminal and run dmesg -w to monitor the kernel messages
            • then start voxl-camera-server in the first terminal (with just tracking camera enabled) and see if you start getting SOF and EOF debug messages in the dmesg terminal, you can try with a working configuration and non-working configuration. This should also print out any errors that the ISP produces.

            For each frame, there should be one SOF (start of frame) and one EOF (end of frame) message printed in the terminal. The timestamps of SOF should be 33ms apart for 30FPS and the EOF (for the tracking camera) will typically come about 9.5ms after SOF)

            Alex

            S 1 Reply Last reply Reply Quote 0
            • S
              swickliff @Alex Kushleyev
              last edited by

              @Alex-Kushleyev , I believe we are not receiving any frames.

              I disabled the hires and the same buffer error occurs.

              Here is the readout from the dmesg -w command when I run voxl-camera-server in another terminal. I don't see any SOF or EOF messages:

              dmesg -w readout 1.png

              dmesg -w readout 2.png

              Alex KushleyevA 1 Reply Last reply Reply Quote 0
              • Alex KushleyevA
                Alex Kushleyev ModalAI Team @swickliff
                last edited by

                @swickliff , I do see SOF received at t=203.337935 and t=203.371313, however there are errors reported right after. It looks like there is actually a issue in data transmission over the high-speed camera interface.

                Since the same camera unit appears to be working when plugged into a different camera port (per your report), it seems there is some damaged that occurred on the original camera connector or components around the connector. Please inspect the connector and surrounding components again.

                Alex

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB | Contributors