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. Problem contacting ESC

Problem contacting ESC

Scheduled Pinned Locked Moved Ask your questions right here!
11 Posts 5 Posters 2.1k Views 2 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.
  • Riccardo FranceschiniR Offline
    Riccardo FranceschiniR Offline
    Riccardo Franceschini
    Contributor
    wrote on last edited by
    #1

    Hi we are trying to configure the flight deck voxl2 board with the sdk 1.1.1 recently flashed.

    We are encountering problems detecting the ESC in particular while running

    voxl-esc
    

    with the option 1 (scan), the output is the following

    Found voxl-esc tools bin version: 1.4
    VOXL Platform: M0054
    Detected RB5 Flight, VOXL2 M0054 or M0104!
    INFO: Scanning for ESC firmware: /dev/slpi-uart-2, baud: 2000000
    terminate called after throwing an instance of 'qmi_error'
      what():  qmi_client_send_msg_sync() failed, (client_id=)0, result=0: qmi service error (-2)
    /usr/bin/voxl-esc: line 133:  4321 Aborted                 python3 voxl-esc-scan.py
    FAILED to ping ESCs
    disabling bridge
    bridge disabled
    DONE
    

    while running the option detect (2)

    enabling bridge
    bridge enabled
    Received standard error event 2
    Received standard error event 2
    Couldn't configure flight_controller sensor
    ERROR:   fc_sensor_initialize failed
    ERROR:   Failed to initialize slpi
    ERROR:   Encountered error while initializing bus 12
    ERROR:   voxl_uart_flush: Bus '12' is not initialized
    ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
    ERROR:   voxl_uart_write: Bus '12' is not initialized
    ERROR:   voxl_uart_write: Bus '12' is not initialized
    ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
    ERROR:   voxl_uart_write: Bus '12' is not initialized
    ERROR:   voxl_uart_write: Bus '12' is not initialized
    ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
    ERROR:   voxl_uart_write: Bus '12' is not initialized
    ERROR:   voxl_uart_write: Bus '12' is not initialized
    ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
    ERROR:   voxl_uart_write: Bus '12' is not initialized
    ERROR:   voxl_uart_write: Bus '12' is not initialized
    ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
    ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
    ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
    ERROR:   voxl_uart_flush: Bus '12' is not initialized
    ERROR:   voxl_uart_close: Bus '12' is not initialized
    

    Do you have any idea of why we are encountering this error?

    Alex KushleyevA 1 Reply Last reply
    0
    • E Offline
      E Offline
      ejohnson01
      Contributor
      wrote on last edited by
      #2

      I'm not 100% that this is your issue, but I think I have seen this when voxl-px4 is running in the background. Make sure to run systemctl stop voxl-px4 before running voxl-esc

      1 Reply Last reply
      0
      • S Offline
        S Offline
        smilon
        Contributor
        wrote on last edited by smilon
        #3

        I am facing a similar-natured issue after upgrading to SDK 1.1.2. While everything from voxl-esc tool works fine in my case (scan, spin). I am getting px4 warnings that arming is denied and failsafe triggered when I try to arm. Then when I run:

        ./voxl-esc-verify-params.py
        ./voxl-esc-scan.py
        ./voxl-esc-calibrate.py 
        
        etc.
        

        I get:

        Detected Python version : 3.6.9 (default, Mar 10 2023, 16:46:00) 
        [GCC 8.4.0]
        Found voxl-esc tools bin version: 1.4
        VOXL Platform: M0054
        Detected RB5 Flight, VOXL2 M0054 or M0104!
        INFO: Scanning for ESC firmware: /dev/slpi-uart-2, baud: 2000000
        Sending library name request: libslpi_qrb5165_io.so
        Received standard error event 2
        Sending initialization request
        Received standard error event 2
        Couldn't configure flight_controller sensor
        ERROR:   fc_sensor_initialize failed
        ERROR:   Failed to initialize slpi
        ERROR:   Encountered error while initializing bus 12
        ERROR:   voxl_uart_flush: Bus '12' is not initialized
        ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
        ERROR:   voxl_uart_write: Bus '12' is not initialized
        ERROR:   voxl_uart_write: Bus '12' is not initialized
        ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
        ERROR:   voxl_uart_write: Bus '12' is not initialized
        ERROR:   voxl_uart_write: Bus '12' is not initialized
        ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
        ERROR:   voxl_uart_write: Bus '12' is not initialized
        ERROR:   voxl_uart_write: Bus '12' is not initialized
        ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
        ERROR:   voxl_uart_write: Bus '12' is not initialized
        ERROR:   voxl_uart_write: Bus '12' is not initialized
        ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
        ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
        ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
        ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
        ERROR:   voxl_uart_flush: Bus '12' is not initialized
        ERROR:   voxl_uart_close: Bus '12' is not initialized
        INFO: Scanning for ESC firmware: /dev/slpi-uart-2, baud: 250000
        
        1 Reply Last reply
        0
        • S smilon referenced this topic on
        • Riccardo FranceschiniR Riccardo Franceschini

          Hi we are trying to configure the flight deck voxl2 board with the sdk 1.1.1 recently flashed.

          We are encountering problems detecting the ESC in particular while running

          voxl-esc
          

          with the option 1 (scan), the output is the following

          Found voxl-esc tools bin version: 1.4
          VOXL Platform: M0054
          Detected RB5 Flight, VOXL2 M0054 or M0104!
          INFO: Scanning for ESC firmware: /dev/slpi-uart-2, baud: 2000000
          terminate called after throwing an instance of 'qmi_error'
            what():  qmi_client_send_msg_sync() failed, (client_id=)0, result=0: qmi service error (-2)
          /usr/bin/voxl-esc: line 133:  4321 Aborted                 python3 voxl-esc-scan.py
          FAILED to ping ESCs
          disabling bridge
          bridge disabled
          DONE
          

          while running the option detect (2)

          enabling bridge
          bridge enabled
          Received standard error event 2
          Received standard error event 2
          Couldn't configure flight_controller sensor
          ERROR:   fc_sensor_initialize failed
          ERROR:   Failed to initialize slpi
          ERROR:   Encountered error while initializing bus 12
          ERROR:   voxl_uart_flush: Bus '12' is not initialized
          ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
          ERROR:   voxl_uart_write: Bus '12' is not initialized
          ERROR:   voxl_uart_write: Bus '12' is not initialized
          ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
          ERROR:   voxl_uart_write: Bus '12' is not initialized
          ERROR:   voxl_uart_write: Bus '12' is not initialized
          ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
          ERROR:   voxl_uart_write: Bus '12' is not initialized
          ERROR:   voxl_uart_write: Bus '12' is not initialized
          ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
          ERROR:   voxl_uart_write: Bus '12' is not initialized
          ERROR:   voxl_uart_write: Bus '12' is not initialized
          ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
          ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
          ERROR:   voxl_uart_read_bytes: Bus '12' is not initialized
          ERROR:   voxl_uart_flush: Bus '12' is not initialized
          ERROR:   voxl_uart_close: Bus '12' is not initialized
          

          Do you have any idea of why we are encountering this error?

          Alex KushleyevA Offline
          Alex KushleyevA Offline
          Alex Kushleyev
          ModalAI Team
          wrote on last edited by Alex Kushleyev
          #4

          @Riccardo-Franceschini , can you please try to manually stop px4 before running any ESC scripts and let us know if the issue persists. If PX4 is running, it will interfere with proper operation of voxl-esc tools because they may be trying to use the same UART port.

          systemctl stop voxl-px4
          
          Riccardo FranceschiniR 1 Reply Last reply
          0
          • Alex KushleyevA Alex Kushleyev

            @Riccardo-Franceschini , can you please try to manually stop px4 before running any ESC scripts and let us know if the issue persists. If PX4 is running, it will interfere with proper operation of voxl-esc tools because they may be trying to use the same UART port.

            systemctl stop voxl-px4
            
            Riccardo FranceschiniR Offline
            Riccardo FranceschiniR Offline
            Riccardo Franceschini
            Contributor
            wrote on last edited by
            #5

            Hi, the voxl-px4 was not affecting the problem. It seems to be solved by performing a new factory reset, as explained here. However, we have now lost the calibration files. How can those be retrieved? We encountered a similar problem on two boards with serials M2100000J2R and M22000003EV.

            Alex KushleyevA 1 Reply Last reply
            0
            • Riccardo FranceschiniR Riccardo Franceschini

              Hi, the voxl-px4 was not affecting the problem. It seems to be solved by performing a new factory reset, as explained here. However, we have now lost the calibration files. How can those be retrieved? We encountered a similar problem on two boards with serials M2100000J2R and M22000003EV.

              Alex KushleyevA Offline
              Alex KushleyevA Offline
              Alex Kushleyev
              ModalAI Team
              wrote on last edited by
              #6

              @Riccardo-Franceschini , can you please clarify which calibration files you need?

              Riccardo FranceschiniR 1 Reply Last reply
              0
              • Alex KushleyevA Alex Kushleyev

                @Riccardo-Franceschini , can you please clarify which calibration files you need?

                Riccardo FranceschiniR Offline
                Riccardo FranceschiniR Offline
                Riccardo Franceschini
                Contributor
                wrote on last edited by
                #7

                @Alex-Kushleyev sure are those :

                Calibration File Status:
                Missing /data/modalai/voxl-imu-server.cal 
                Missing /data/modalai/opencv_tracking_intrinsics.yml 
                Missing /data/modalai/opencv_stereo_front_intrinsics.yml 
                Missing /data/modalai/opencv_stereo_front_extrinsics.yml 
                Missing /data/modalai/opencv_stereo_rear_intrinsics.yml 
                Missing /data/modalai/opencv_stereo_rear_extrinsics.yml 
                Missing /data/px4/param/parameters_gyro.cal 
                Missing /data/px4/param/parameters_acc.cal 
                Missing /data/px4/param/parameters_level.cal 
                Missing /data/px4/param/parameters_mag.ca
                

                The camera ones and the IMU I can recover them by using the calibration tools but I haven't found a solution for the px4 ones

                Eric KatzfeyE 1 Reply Last reply
                0
                • Riccardo FranceschiniR Riccardo Franceschini

                  @Alex-Kushleyev sure are those :

                  Calibration File Status:
                  Missing /data/modalai/voxl-imu-server.cal 
                  Missing /data/modalai/opencv_tracking_intrinsics.yml 
                  Missing /data/modalai/opencv_stereo_front_intrinsics.yml 
                  Missing /data/modalai/opencv_stereo_front_extrinsics.yml 
                  Missing /data/modalai/opencv_stereo_rear_intrinsics.yml 
                  Missing /data/modalai/opencv_stereo_rear_extrinsics.yml 
                  Missing /data/px4/param/parameters_gyro.cal 
                  Missing /data/px4/param/parameters_acc.cal 
                  Missing /data/px4/param/parameters_level.cal 
                  Missing /data/px4/param/parameters_mag.ca
                  

                  The camera ones and the IMU I can recover them by using the calibration tools but I haven't found a solution for the px4 ones

                  Eric KatzfeyE Offline
                  Eric KatzfeyE Offline
                  Eric Katzfey
                  ModalAI Team
                  wrote on last edited by
                  #8

                  @Riccardo-Franceschini Can you just do the PX4 sensor calibrations to get new files? They only take a couple of minutes.

                  Riccardo FranceschiniR 1 Reply Last reply
                  0
                  • Eric KatzfeyE Eric Katzfey

                    @Riccardo-Franceschini Can you just do the PX4 sensor calibrations to get new files? They only take a couple of minutes.

                    Riccardo FranceschiniR Offline
                    Riccardo FranceschiniR Offline
                    Riccardo Franceschini
                    Contributor
                    wrote on last edited by
                    #9

                    @Eric-Katzfey
                    Hi Eric, I tried using QGroundControl. The accelerometer and gyro have been successfully calibrated, but I encountered an error stating "no mags" when attempting to calibrate the compass and then nothing happen. Do you have any ideas about what could be causing this issue?

                    Eric KatzfeyE 1 Reply Last reply
                    0
                    • Riccardo FranceschiniR Riccardo Franceschini

                      @Eric-Katzfey
                      Hi Eric, I tried using QGroundControl. The accelerometer and gyro have been successfully calibrated, but I encountered an error stating "no mags" when attempting to calibrate the compass and then nothing happen. Do you have any ideas about what could be causing this issue?

                      Eric KatzfeyE Offline
                      Eric KatzfeyE Offline
                      Eric Katzfey
                      ModalAI Team
                      wrote on last edited by
                      #10

                      @Riccardo-Franceschini Can you provide some more details about your system? For example, what kind of magnetometer do you have?

                      Riccardo FranceschiniR 1 Reply Last reply
                      0
                      • Eric KatzfeyE Eric Katzfey

                        @Riccardo-Franceschini Can you provide some more details about your system? For example, what kind of magnetometer do you have?

                        Riccardo FranceschiniR Offline
                        Riccardo FranceschiniR Offline
                        Riccardo Franceschini
                        Contributor
                        wrote on last edited by
                        #11

                        Hi @Eric-Katzfey eventually we managed to solve the problem by resetting to default the parameter of px4 and performing the calibration from qgc

                        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