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. Voxl2 Mini i2c

Voxl2 Mini i2c

Scheduled Pinned Locked Moved Ask your questions right here!
9 Posts 2 Posters 1.8k 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.
  • tiralonghipolT Offline
    tiralonghipolT Offline
    tiralonghipol
    wrote on last edited by
    #1

    Hi,
    Im testing the command i2cdetect with the magnetometer attached on J19 as swhon here
    but I get a weird output:

    voxl2-mini:/$ i2cdetect 0    
    Warning: Can't use SMBus Quick Write command, will skip some addresses
    WARNING! This program can confuse your I2C bus, cause data loss and worse!
    I will probe file /dev/i2c-0.
    I will probe address range 0x03-0x77.
    Continue? [Y/n] y
         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
    00:                                                 
    10:                                                 
    20:                                                 
    30: -- -- -- -- -- -- -- --                         
    40:                                                 
    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
    60:                                                 
    70:              
    

    I tried to look it up on the web but I do not seem to find any solution for properly probe the bus. Any help?

    system details:

    system-image: 1.7.1-M0104-14.1a-perf-nightly-20231025
    kernel:       #1 SMP PREEMPT Thu Oct 26 04:23:26 UTC 2023 4.19.125
    --------------------------------------------------------------------------------
    hw version:   M0104
    --------------------------------------------------------------------------------
    voxl-suite:   1.1.1
    --------------------------------------------------------------------------------
    
    
    Eric KatzfeyE 1 Reply Last reply
    0
    • tiralonghipolT tiralonghipol

      Hi,
      Im testing the command i2cdetect with the magnetometer attached on J19 as swhon here
      but I get a weird output:

      voxl2-mini:/$ i2cdetect 0    
      Warning: Can't use SMBus Quick Write command, will skip some addresses
      WARNING! This program can confuse your I2C bus, cause data loss and worse!
      I will probe file /dev/i2c-0.
      I will probe address range 0x03-0x77.
      Continue? [Y/n] y
           0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
      00:                                                 
      10:                                                 
      20:                                                 
      30: -- -- -- -- -- -- -- --                         
      40:                                                 
      50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
      60:                                                 
      70:              
      

      I tried to look it up on the web but I do not seem to find any solution for properly probe the bus. Any help?

      system details:

      system-image: 1.7.1-M0104-14.1a-perf-nightly-20231025
      kernel:       #1 SMP PREEMPT Thu Oct 26 04:23:26 UTC 2023 4.19.125
      --------------------------------------------------------------------------------
      hw version:   M0104
      --------------------------------------------------------------------------------
      voxl-suite:   1.1.1
      --------------------------------------------------------------------------------
      
      
      Eric KatzfeyE Online
      Eric KatzfeyE Online
      Eric Katzfey
      ModalAI Team
      wrote on last edited by
      #2

      @tiralonghipol i2cdetect is looking on the applications processor. The i2c on J19 are routed to the DSP, not the applications processor.

      tiralonghipolT 1 Reply Last reply
      0
      • Eric KatzfeyE Eric Katzfey

        @tiralonghipol i2cdetect is looking on the applications processor. The i2c on J19 are routed to the DSP, not the applications processor.

        tiralonghipolT Offline
        tiralonghipolT Offline
        tiralonghipol
        wrote on last edited by
        #3

        @Eric-Katzfey thanks for your answer

        so what could be a way to check if I correctly detect a i2c device on J19? assuming of course wiring is correct

        Eric KatzfeyE 1 Reply Last reply
        0
        • tiralonghipolT tiralonghipol

          @Eric-Katzfey thanks for your answer

          so what could be a way to check if I correctly detect a i2c device on J19? assuming of course wiring is correct

          Eric KatzfeyE Online
          Eric KatzfeyE Online
          Eric Katzfey
          ModalAI Team
          wrote on last edited by
          #4

          @tiralonghipol If you run PX4 and have a supported magnetometer attached to J19 then you can see if the magnetometer driver is sending out magnetometer data. (e.g. px4-listener sensor_mag).

          tiralonghipolT 1 Reply Last reply
          0
          • Eric KatzfeyE Eric Katzfey

            @tiralonghipol If you run PX4 and have a supported magnetometer attached to J19 then you can see if the magnetometer driver is sending out magnetometer data. (e.g. px4-listener sensor_mag).

            tiralonghipolT Offline
            tiralonghipolT Offline
            tiralonghipol
            wrote on last edited by
            #5

            @Eric-Katzfey what I am trying to do is writing a driver for an external i2c imu
            is there any code example where you have already implemented an i2c interface on the dsp on voxl2 mini?

            Eric KatzfeyE 1 Reply Last reply
            0
            • tiralonghipolT tiralonghipol

              @Eric-Katzfey what I am trying to do is writing a driver for an external i2c imu
              is there any code example where you have already implemented an i2c interface on the dsp on voxl2 mini?

              Eric KatzfeyE Online
              Eric KatzfeyE Online
              Eric Katzfey
              ModalAI Team
              wrote on last edited by
              #6

              @tiralonghipol For PX4? Then yes, take a look at some magnetometer driver code: https://github.com/modalai/px4-firmware/tree/main/src/drivers/magnetometer/isentek/ist8310

              tiralonghipolT 2 Replies Last reply
              0
              • Eric KatzfeyE Eric Katzfey

                @tiralonghipol For PX4? Then yes, take a look at some magnetometer driver code: https://github.com/modalai/px4-firmware/tree/main/src/drivers/magnetometer/isentek/ist8310

                tiralonghipolT Offline
                tiralonghipolT Offline
                tiralonghipol
                wrote on last edited by
                #7

                @Eric-Katzfey amazing, thank you!

                1 Reply Last reply
                0
                • Eric KatzfeyE Eric Katzfey

                  @tiralonghipol For PX4? Then yes, take a look at some magnetometer driver code: https://github.com/modalai/px4-firmware/tree/main/src/drivers/magnetometer/isentek/ist8310

                  tiralonghipolT Offline
                  tiralonghipolT Offline
                  tiralonghipol
                  wrote on last edited by
                  #8

                  Hei @Eric-Katzfey

                  is there any code example to read the J19 i2c port 'outside' px4 ?

                  Eric KatzfeyE 1 Reply Last reply
                  0
                  • tiralonghipolT tiralonghipol

                    Hei @Eric-Katzfey

                    is there any code example to read the J19 i2c port 'outside' px4 ?

                    Eric KatzfeyE Online
                    Eric KatzfeyE Online
                    Eric Katzfey
                    ModalAI Team
                    wrote on last edited by
                    #9

                    @tiralonghipol No, only within px4

                    1 Reply Last reply
                    0
                    • Morten NissovM Morten Nissov referenced this topic on

                    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

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