Hi, I am trying to connect to HereLink devices using MAVSDK java. However when I run the server, the thread is blocked forever, no following codes can be invoked, and there is no error information. Can anyone help?
This is my codes:
MavsdkEventQueue.executor().execute {
val mavsdkServerPort: Int = mavsdkServer.run(
"udp://192.168.144.10:14552"
)
// Following codes will never be invoked
Log.i(TAG, "startMavsdkServer $mavsdkServerPort")
drone = System("udp://192.168.144.10:14552", mavsdkServerPort)
}
This is the logcat:
2023-08-14 10:21:02.035 14634-14712/io.mavsdk.androidclient I/Mavsdk: MAVSDK version: v1.4.11
2023-08-14 10:21:02.035 14634-14712/io.mavsdk.androidclient D/MAVSDK-Server: Running mavsdk_server with connection url: udp://192.168.144.10:14552
2023-08-14 10:21:02.035 14634-14712/io.mavsdk.androidclient I/Mavsdk: Waiting to discover system on udp://192.168.144.10:14552...
2023-08-14 10:21:02.036 14634-14712/io.mavsdk.androidclient D/Mavsdk: Initializing connection to remote system...
2023-08-14 10:21:02.084 14634-14639/io.mavsdk.androidclient I/art: Do partial code cache collection, code=47KB, data=54KB
2023-08-14 10:21:02.085 14634-14639/io.mavsdk.androidclient I/art: After code cache collection, code=47KB, data=54KB
2023-08-14 10:21:02.085 14634-14639/io.mavsdk.androidclient I/art: Increasing code cache capacity to 256KB
2023-08-14 10:21:02.250 14634-14715/io.mavsdk.androidclient D/Mavsdk: New: System ID: 42 Comp ID: 250
2023-08-14 10:21:02.250 14634-14715/io.mavsdk.androidclient D/Mavsdk: Component Unsupported component (250) added.
2023-08-14 10:21:02.486 14634-14715/io.mavsdk.androidclient D/Mavsdk: Component Unsupported component (68) added.
2023-08-14 10:21:02.800 14634-14715/io.mavsdk.androidclient D/Mavsdk: Component Camera 1 (100) added.