PSDK V3.5 / M300 RKT - "get remote addr failed" on liveview
已完成Hello,
I set up a M300 with PSDK 3.5 running on Ubuntu 22.04. Up to now I was using OSDK 4.1.0 without any problems.
When I'm running the sample code für C++, the application starts normally.
[0.000][core]-[Info]-[DjiCore_Init:101) Payload SDK Version : V3.5.0-beta.0-build.1764
[0.395][linker]-[Warn]-[DjiProtocol_v1Unpack:177) protocol frame crc8 error
[2.346][utils]-[Info]-[DjiSdkVersionAck_Parse:183) Identify aircraft serial number = 1ZN3K81001P007, Firmware = 3.4.18.29
[2.400][adapter]-[Info]-[DjiAccessAdapter_Init:186) Identify aircraft series is Matrice 300 Series
[2.400][adapter]-[Info]-[DjiAccessAdapter_Init:206) Identify mount position type is Extension Port Type
[2.410][adapter]-[Info]-[DjiAccessAdapter_Init:301) Identity uart0 baudrate is 921600 bps
[2.410][adapter]-[Info]-[DjiPayloadNegotiate_Init:144) No need negotiate device info
[2.474][adapter]-[Info]-[DjiPayloadNegotiate_Init:144) No need negotiate device info
[3.612][core]-[Info]-[DjiIdentityVerify_UpdatePolicy:470) Updating dji sdk policy file...
[4.612][core]-[Info]-[DjiIdentityVerify_UpdatePolicy:473) Update dji sdk policy file successfully
[4.620][core]-[Info]-[DjiCore_Init:169) Identify AircraftType = Matrice 300 RTK, MountPosition = Extension Port, SdkAdapterType = None
[4.652][core]-[Info]-[DjiCore_ApplicationStart:239) Start dji sdk application
[4.652][user]-[Info]-[DjiUser_ApplicationStart:261) Application start.
When I now select e.g. c for the Camera stream view sample, I get following error message:
[10.686][liveview]-[Error]-[DjiLiveview_UdpRegisterCallback:996) Get remote addr failed, ret:228.
I filled in the needed information in:
- dji_sdk_app_info.h --> everything according app information + baud rate 921600
- hal_uart.h --> /dev/ttyUSB1 and /dev/ttyACM0
- hal_network.h --> usb0 according to ifconfig
ifconfig
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.26.251.100 netmask 255.255.255.0 broadcast 172.26.251.255
ether 00:e0:4c:08:6a:e6 txqueuelen 1000 (Ethernet)
RX packets 110617 bytes 115359184 (115.3 MB)
RX errors 0 dropped 417 overruns 0 frame 0
TX packets 69441 bytes 6079625 (6.0 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enx00e04c6801e7: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:e0:4c:68:01:e7 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Lokale Schleife)
RX packets 376933 bytes 300078232 (300.0 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 376933 bytes 300078232 (300.0 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 6e:f6:cc:7f:f1:df txqueuelen 1000 (Ethernet)
RX packets 1 bytes 56 (56.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 782 bytes 171558 (171.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Any idea why the liveview example is not working?
BR,
Michael
cmake .. result:
cmake ..
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Found OPUS installed in the system
-- - Includes: /usr/include/opus
-- - Libraries: /usr/lib/x86_64-linux-gnu/libopus.so
-- Found LIBUSB installed in the system
-- - Includes: /usr/include/libusb-1.0
-- - Libraries: /usr/lib/x86_64-linux-gnu/libusb-1.0.so
dji_sdk_demo_linux_cxx...
-- Found OpenCV installed in the system, will use it to display image in AdvancedSensing APIs
-- - Includes: /usr/include/opencv4
-- - Libraries: opencv_calib3d;opencv_core;opencv_dnn;opencv_features2d;opencv_flann;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_stitching;opencv_video;opencv_videoio;opencv_alphamat;opencv_aruco;opencv_barcode;opencv_bgsegm;opencv_bioinspired;opencv_ccalib;opencv_datasets;opencv_dnn_objdetect;opencv_dnn_superres;opencv_dpm;opencv_face;opencv_freetype;opencv_fuzzy;opencv_hdf;opencv_hfs;opencv_img_hash;opencv_intensity_transform;opencv_line_descriptor;opencv_mcc;opencv_optflow;opencv_phase_unwrapping;opencv_plot;opencv_quality;opencv_rapid;opencv_reg;opencv_rgbd;opencv_saliency;opencv_shape;opencv_stereo;opencv_structured_light;opencv_superres;opencv_surface_matching;opencv_text;opencv_tracking;opencv_videostab;opencv_viz;opencv_wechat_qrcode;opencv_ximgproc;opencv_xobjdetect;opencv_xphoto
-- Found FFMPEG installed in the system
-- - Includes: /usr/include/x86_64-linux-gnu
-- - Libraries: /usr/lib/x86_64-linux-gnu/libavcodec.so;/usr/lib/x86_64-linux-gnu/libavformat.so;/usr/lib/x86_64-linux-gnu/libavutil.so;/usr/lib/x86_64-linux-gnu/libswscale.so;/usr/lib/x86_64-linux-gnu/libvorbis.so;/usr/lib/x86_64-linux-gnu/libvorbisenc.so;/usr/lib/x86_64-linux-gnu/libtheora.so;/usr/lib/x86_64-linux-gnu/libz.so
-- - Version: 4.4.1-3ubuntu5
-- Found OPUS installed in the system
-- - Includes: /usr/include/opus
-- - Libraries: /usr/lib/x86_64-linux-gnu/libopus.so
-- Found LIBUSB installed in the system
-- - Includes: /usr/include/libusb-1.0
-- - Libraries: /usr/lib/x86_64-linux-gnu/libusb-1.0.so
-- Configuring done
CMake Error: Unable to open check cache file for write. /home/dji/Payload-SDK-3.5/build/CMakeFiles/cmake.check_cache
请先登录再写评论。
评论
3 条评论