Hello,
I am trying to set up an Simulation on Hardware envirnonment with a Cube Orange Plus and a CH9121 Ethernet to UART Adapter while the Simulation is running on Simulink on my PC.
The Frimware on the Autopilot is the same wich is stated in the ardupilot documentation “Running SITL on Autopilit itself” at the bottem of the site. This is the part where I upload a Pythonskript with a JSON backend to my Autopilot:
./Tools/scripts/sitl-on-hardware/sitl-on-hw.py --board CubeOrangePlus --vehicle plane --simclass JSON --frame json:192.168.2.201 --extra-hwdef=/tmp/extra.hwdef --defaults=/tmp/defaults.parm --debug --upload
The setup is as follows: Simulink sends and receives (PC-IP: 192.168.2.200) data via UDP-Blocks to the CH9121 adapter (IP:192.168.2.201) and from there to the Autopilolt (TELEM1/ UART).
My Problem is visible in the Wireshark screenshot, where my datas send from PC to Adapter get rejected from the Autopilot.
Doas anyone can help me with that problem or can tell me if this setup is able to work/ how to make a correct setup?
My Problem is that I can send data to the Autopilot but it doas not respond/ doas not listen to the data.



