Custom Serial Communication via TELEM2 (ttyS1) on Cube Orange Plus with PX4 v1.14

Stack:

Cube Orange Plus
PX4 v1.14
Hello everyone,

I’ve been trying for some time to set up custom serial communication from the TELEM2 port (ttyS1) on a Cube Orange Plus and an FTDI USB interface, but I’ve run into several roadblocks. So far, I’ve attempted various methods, including, creating a custom module as a work item and a task, using Simulink exclusively to handle the communication. Despite my efforts, nothing seems to work as expected. I’ve noticed that many of the examples in the PX4 repository and online tutorials commonly use ttyACM0 as the example port, which is not ideal for my case.

Is there something I’m missing here? Should I be modifying a config file or setting a parameter that I haven’t come across yet to establish communication over ttyS1 (TELEM2)? Any advice or pointers to relevant documentation would be greatly appreciated!

Thanks in advance!

Sensor drivers using UART communication is the best way to understand how can you achive this.

After that you can parse and publish any type of data you want to other modules.