大疆上云API【DJI Cloud API】 接入M4 和RC PLUS 2

1. 跑SQL

以下枚举参数可以在产品支持链接详细了解:https://developer.dji.com/doc/cloud-api-tutorial/cn/overview/product-support.html

INSERT INTO `manage_device_dictionary` (`id`, `domain`, `device_type`, `sub_type`, `device_name`, `device_desc`) VALUES (33, 0, 99, 0, 'M4E', NULL);
INSERT INTO `manage_device_dictionary` (`id`, `domain`, `device_type`, `sub_type`, `device_name`, `device_desc`) VALUES (34, 0, 99, 1, 'M4T', NULL);
INSERT INTO `manage_device_dictionary` (`id`, `domain`, `device_type`, `sub_type`, `device_name`, `device_desc`) VALUES (35, 1, 88, 0, 'M4E Camera', NULL);
INSERT INTO `manage_device_dictionary` (`id`, `domain`, `device_type`, `sub_type`, `device_name`, `device_desc`) VALUES (36, 1, 89, 0, 'M4T Camera ', NULL);
INSERT INTO `manage_device_dictionary` (`id`, `domain`, `device_type`, `sub_type`, `device_name`, `device_desc`) VALUES (37, 2, 174, 0, 'DJI RC Plus 2', 'Remote control for Matrice 4 ');

2. 修改枚举 DeviceEnum、DeviceTypeEnum和GatewayTypeEnum

相关枚举值同上。

2.1 DeviceEnum

image

2.2 DeviceTypeEnum

image

2.3 GatewayTypeEnum

image

3. 参考文档

  1. https://sdk-forum.dji.net/hc/zh-cn/articles/43200482956441-上云如何接入Matrice-4

4. 其他

  1. 新增其他机型按照此步骤来,通过上云api文档查询对应物模型并修改 SQL 语句的值和新增对应枚举类的项目即可
posted @ 2026-04-02 11:00  echo_lovely  阅读(21)  评论(0)    收藏  举报