Hardware: Pixhawk V6X
Firmware version: Copter V4.3.7
Parameters: SERIAL0_BAUD=115, SERIAL0_PROTOCOL=2, SERIAL1_BAUD=57, SERIAL1_PROTOCOL=-1, SERIAL_PASS1=0, SERIAL_PASS2=1, SERIAL_PASSTIMO=30
I set the params according to the doc here, and did not success. I connected the telem1 port to PC with an uart to usb cable, so I could easily check if the function works.
After that I tried SERIAL1_PROTOCOL=2, and it worked. So the doc is not correct?
- Disable the sensor driver’s use of the serial port by setting
SERIALx_PROTOCOL
to -1 (“None”).
I also tried SERIAL_PASS1=8(the second usb virtual port), and multiple conbinations of baudrate and protocol, but it never worked. But the doc says it should work. What’s the reason?
On most F7 and H7 boards, a second USB virtual serial port also appears when you connect via USB to the autopilot and is assigned the last SERIALx port in ArduPilot for SLCAN use. This can also be used for serial device configuration by changing SERIAL_PASS1 to that port’s number. This allows the autopilot to remain connected to a Ground Control Station, and still use passthrough to a sensor for configuration simultaneously on the PC via its configuration program.