Problem contacting ESC
-
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 runningvoxl-esc
-
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
-
-
@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
-
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.
-
@Riccardo-Franceschini , can you please clarify which calibration files you need?
-
@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
-
@Riccardo-Franceschini Can you just do the PX4 sensor calibrations to get new files? They only take a couple of minutes.
-
@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? -
@Riccardo-Franceschini Can you provide some more details about your system? For example, what kind of magnetometer do you have?
-
Hi @Eric-Katzfey eventually we managed to solve the problem by resetting to default the parameter of px4 and performing the calibration from qgc