stephendade / Rpanion-server

Web-based configurator for companion computers of MAVLink vehicles
https://www.docs.rpanion.com/software/rpanion-server
GNU General Public License v3.0
146 stars 62 forks source link

Can't add UDP telemetry client #249

Closed lida2003 closed 2 months ago

lida2003 commented 2 months ago

As title described.

  1. latest git code which is https://github.com/stephendade/Rpanion-server/commit/377423757e0c2151994dd9b02f0d7a191c15e122

  2. FC UART is connected.

图片

  1. [Add] button can't be used

图片

BTW: video GUI page is OK, so https://github.com/stephendade/Rpanion-server/issues/247 is gone.

  1. app.log see below:
$ cat Rpanion-server/logs/app.log
2024-09-28 00:50:25 info [server/index.js]: NTRIP stopped
2024-09-28 00:50:25 info [server/index.js]: Express server is running on localhost:3000
2024-09-28 00:51:18 info [server/index.js]: [{"value": "/base/soc/i2c0mux/i2c@1/ov5647@36", "label": "CSI Port Camera (ov5647)", "caps": [{"value": "1920x1080xx-raw", "label": "1920x1080", "height": 1080, "width": 1920, "format": "video/x-raw", "fpsmax": "30", "fps": []}, {"value": "1640x922xx-raw", "label": "1640x922", "height": 922, "width": 1640, "format": "video/x-raw", "fpsmax": "40", "fps": []}, {"value": "1280x720xx-raw", "label": "1280x720", "height": 720, "width": 1280, "format": "video/x-raw", "fpsmax": "60", "fps": []}, {"value": "640x480xx-raw", "label": "640x480", "height": 480, "width": 640, "format": "video/x-raw", "fpsmax": "90", "fps": []}]}, {"value": "testsrc", "label": "Test Source", "caps": [{"value": "1920x1080xx-raw", "label": "1920x1080", "height": 1080, "width": 1920, "format": "video/x-raw", "fpsmax": "30", "fps": []}, {"value": "1280x720xx-raw", "label": "1280x720", "height": 720, "width": 1280, "format": "video/x-raw", "fpsmax": "30", "fps": []}, {"value": "640x480xx-raw", "label": "640x480", "height": 480, "width": 640, "format": "video/x-raw", "fpsmax": "30", "fps": []}]}]

2024-09-28 00:51:18 info [server/index.js]: [object Object],[object Object]
2024-09-28 00:51:39 info [server/index.js]: Started Video Streaming of /base/soc/i2c0mux/i2c@1/ov5647@36
2024-09-28 00:51:40 error [server/index.js]: startStopStreaming() err  [0:01:26.081848180] [968]  INFO Camera camera_manager.cpp:316 libcamera v0.3.1+50-69a894c4

2024-09-28 00:51:40 error [server/index.js]: startStopStreaming() err  [0:01:26.130970755] [971]  WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise

2024-09-28 00:51:40 error [server/index.js]: startStopStreaming() err  [0:01:26.136262017] [971]  INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media2 and ISP device /dev/media0

2024-09-28 00:51:40 error [server/index.js]: startStopStreaming() err  0:00:00.199877709   968     0x340dc460 FIXME                default gstutils.c:4031:gst_pad_create_stream_id_internal:<libcamerasrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id

2024-09-28 00:51:40 error [server/index.js]: startStopStreaming() err  [0:01:26.146601013] [976]  INFO Camera camera.cpp:1191 configuring streams: (0) 640x480-XBGR8888

2024-09-28 00:51:40 error [server/index.js]: startStopStreaming() err  [0:01:26.147314045] [971]  INFO RPI vc4.cpp:622 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 640x480-SGBRG10_1X10 - Selected unicam format: 640x480-pGAA

2024-09-28 00:51:41 info [server/index.js]: Reset Video Settings
2024-09-28 00:51:41 info [server/index.js]: startStopStreaming() close null
2024-09-28 00:51:41 info [server/index.js]: Reset Video Settings
2024-09-28 00:51:49 info [server/index.js]: Opening Link /dev/ttyUSB0 @ 921600, MAV v2
2024-09-28 00:51:49 info [server/index.js]: Opened Router
2024-09-28 00:51:49 info [server/index.js]: Saved FC settings
2024-09-28 00:52:08 info [server/index.js]: Rebooting FC
2024-09-28 00:52:17 info [server/index.js]: Trying to close router
2024-09-28 00:52:17 info [server/index.js]: Saved FC settings
2024-09-28 00:52:17 info [server/index.js]: Closed Router
2024-09-28 00:52:24 info [server/index.js]: Opening Link /dev/ttyUSB0 @ 921600, MAV v2
2024-09-28 00:52:24 info [server/index.js]: Opened Router
2024-09-28 00:52:24 info [server/index.js]: Saved FC settings
2024-09-28 00:52:30 info [server/index.js]: [{"value": "/base/soc/i2c0mux/i2c@1/ov5647@36", "label": "CSI Port Camera (ov5647)", "caps": [{"value": "1920x1080xx-raw", "label": "1920x1080", "height": 1080, "width": 1920, "format": "video/x-raw", "fpsmax": "30", "fps": []}, {"value": "1640x922xx-raw", "label": "1640x922", "height": 922, "width": 1640, "format": "video/x-raw", "fpsmax": "40", "fps": []}, {"value": "1280x720xx-raw", "label": "1280x720", "height": 720, "width": 1280, "format": "video/x-raw", "fpsmax": "60", "fps": []}, {"value": "640x480xx-raw", "label": "640x480", "height": 480, "width": 640, "format": "video/x-raw", "fpsmax": "90", "fps": []}]}, {"value": "testsrc", "label": "Test Source", "caps": [{"value": "1920x1080xx-raw", "label": "1920x1080", "height": 1080, "width": 1920, "format": "video/x-raw", "fpsmax": "30", "fps": []}, {"value": "1280x720xx-raw", "label": "1280x720", "height": 720, "width": 1280, "format": "video/x-raw", "fpsmax": "30", "fps": []}, {"value": "640x480xx-raw", "label": "640x480", "height": 480, "width": 640, "format": "video/x-raw", "fpsmax": "30", "fps": []}]}]

2024-09-28 00:52:30 info [server/index.js]: [object Object],[object Object]
2024-09-28 00:54:39 info [mavlink/mavManager.js]: Vehicle is S/C: 1/1
2024-09-28 00:54:40 info [mavlink/mavManager.js]: 4.6.0-dev
lida2003 commented 2 months ago

32bit bookworm is OK

图片

stephendade commented 2 months ago

In this commit (https://github.com/stephendade/Rpanion-server/commit/0fa35c5d6b8115463640947ac0d855f12171672a) I changed the code such that the "Add" button is disabled when the Flight Controller is connected. This keeps it consistent with the other telemetry options.

lida2003 commented 2 months ago

OK. I didn't stop for trying. Will try next time.