Rangefinder data problem

Hello!
How can I test the sonar input port?
I bought a sonar that I want to connect to rover firmware. The sonar works because I tested it with an Arduino board on the uart port, it shows the distance underwater.
My ardupilot board Mateksys 743-WLITE does not receive data. I tried to test it with an Arduino board by entering the NMEA data that appears on the Serial monitor, but the ardupilot does not receive it, the data does not appear.
I test with this data and nothing appears:
$SDDBT,015.7,f,004.8,M,002.6,F*0D

Can someone give me an Arduino code that can be used to test the rangefinder and the ardupilot can receive the data?

there is a NMEA adapter there that you can use to test.

if your sonar is outputting NMEA data it should work with ardupilot directly.

If the SERIAL2 is used then the following parameters should be set:

Then the following range finder related parameters should be set:

3 Likes