ArduPilot / ardupilot

ArduPlane, ArduCopter, ArduRover, ArduSub source
http://ardupilot.org/
GNU General Public License v3.0
10.98k stars 17.51k forks source link

Some i2c rangefinders not working with CAN bus enabled on CubeOrange #17879

Closed RAZOR15000 closed 3 years ago

RAZOR15000 commented 3 years ago

Issue details

Please describe the problem since this cubes uses here3 GPS, CAN bus is enabled. with that hereflow is also connected and it work perfectly. due to that, i2c bus is not working completely for external peripherals. such as VL53L1x and beneweke TF luna modules. tf luna module wont work with the serial port as well. due to this using cube for connect with external rangefinder sensors are completely useless. as a bonus issue, i tried using gpio pwm input to get the data from sensors and map it through a arduino. but surprisingly those rangefinder parameters are completely useless, nothing happen when change the parameters. only maximum distance showing is 200cm. this happening in aux out ports, forum links are below. https://discuss.cubepilot.org/t/aux-out-pwm-rangefinder-distance-scaling-not-working-in-copter-4-07-cube-orange/6710/2

Version What version was the issue encountered with 4.07 and 4.1 beta Platform [ ] All [ ] AntennaTracker [ x ] Copter [ ] Plane [ ] Rover [ ] Submarine

Airframe type What type of airframe (flying wing, glider, hex, Y6, octa etc) QUAD H Hardware type What autopilot hardware was used? (Pixhawk, Cube, Pixracer, Navio2, etc) Cube Orange with standard carrier board Logs Please provide a link to any relevant logs that show the issue

rmackay9 commented 3 years ago

@RAZOR15000,

Txs for the report. So you're saying that the I2C ports don't work if UAVCAN is enabled on a CubeOrange? TBH, that seems incredible that we could have such a huge issue and not be aware of it until now. Especially with 4.0.7... still, we will investigate.

RAZOR15000 commented 3 years ago

yes, its true. i tried with 4.1 beta too its not working. but in the 4.1 dev i2c is functional for selected devices. such as vl53lx1 and serial tf luna module. but still beneweke tf luna i2c modules don't work in dev version either.

thank you.

jmachuca77 commented 3 years ago

We have devices on I2C and CAN simultaneously with no issues, I have not seen any issues as described. We have been keeping up with master so this issue might be specific to certain devices.

rmackay9 commented 3 years ago

Here is a similar report from another user on the cubepilot site: https://discuss.cubepilot.org/t/hereflow-maxbotix-i2c-sonar-issue/1550

tridge commented 3 years ago

@rmackay9 I just tested an I2C RM3100 compass along with a UAVCAN GPS with no issues.

IamPete1 commented 3 years ago

@RAZOR15000 any update? Is this still a issue?

RAZOR15000 commented 3 years ago

Hello sorry for the delay. Issue was resolved after updating the firmware for the tf luna module, with using the 4.1 dev version. Problem was with old firmware that comes in the tf luna module in the i2c mode. Thank you

aminsteve commented 3 years ago

This issue is marked as solved, while I am experiencing the same issue with I2C sonar sensors. I am using Cube Orange + Here3 + Maxbotics I2C. Also, my configuration is Copter "Octo X".

aminsteve commented 2 years ago

Anybody can help me with this issue? I updated to copter 4.1.1 and this issue is still there.