Can not publish live_lens_change or camera_focal_length_set
CompletedHi, I've been trying to change the lens to zoom and set the focal length while streaming but I don't see the service_reply when publishing.
{
"tid": "00000000-0000-0000-0000-000000000000",
"bid": "00000000-0000-0000-0000-000000000000",
"timestamp": "1723807106763",
"method": "camera_focal_length_set",
"data": {
"camera_type": "normal",
"payload_index": "66-0-0",
"zoom_factor": 2
}
}
{
"tid": "00000000-0000-0000-0000-000000000000",
"bid": "00000000-0000-0000-0000-000000000000",
"timestamp": "1723807162356",
"method": "live_lens_change",
"data": {
"video_id": "1581F5FHD22B700B9938/66-0-0/normal-0",
"video_type": "zoom"
}
}
But the live_set_quality does work for me.
-
Dear developers, Hello, thank you for contacting DJI Innovation. Do not set the parameter tid and bid to 00000xxxxxx. Modify the information about camera_type and zoom_factor I hope our solution can help you, thank you for your email, wish you a happy life! Best Regards, DJI DJI innovation SDK technical support -
Hi DJI Developer Support. I tried with tid and bid to be different with 0000xxx but doesn't work. What could be the reason for that?
live_lens_changes doesn't have the reply:
{
"tid": "41206bb0-d15e-4a0e-b9ef-21d63ae75d7a",
"bid": "c1e25602-248f-4226-ab8e-59c49e188b14",
"timestamp": "1724227144865",
"method": "live_lens_change",
"data": {
"video_id": "1581F5FHD22B700B9938/66-0-0/normal-0",
"video_type": "zoom"
}
}but live_set_quality does have the reply message:
{
"tid": "9fbc5475-9e5a-4de2-af94-f752f56f9239",
"bid": "513f6283-1f6a-4ec1-b4ae-e73555145e3f",
"timestamp": "1724227144865",
"method": "live_set_quality",
"data": {
"video_id": "1581F5FHD22B700B9938/66-0-0/normal-0",
"video_quality": 3
}
}{
"method": "live_set_quality",
"tid": "9fbc5475-9e5a-4de2-af94-f752f56f9239",
"bid": "513f6283-1f6a-4ec1-b4ae-e73555145e3f",
"data": {
"result": 0,
"output": {
"video_quality": 3
}
}
}"live_start_push" and "live_start_stop" both have the reply also.
-
Dear developers, Hello, thank you for contacting DJI Innovation. video_id and video_type must be the same. For example: "video_id": "1581F5FHD22B700B9938/66-0-0/normal-0", "video_type": "normal" Set the value to "normal" and try to send the command I hope our solution can help you, thank you for your email, wish you a happy life! Thank you for your understanding and support, I wish you a happy life! Best Regards, DJI DJI innovation SDK technical support -
Ok, I just tried with both normal and zoom but none of them working also.
{
"tid": "52a30bf1-9b53-4385-8876-ce5566d26cb3",
"bid": "ceb5774c-c40b-40d3-b63c-59ed26602f34",
"timestamp": "1724229080996",
"method": "live_lens_change",
"data": {
"video_id": "1581F5FHD22B700B9938/66-0-0/zoom-0",
"video_type": "zoom"
}
}{
"tid": "2303ec76-2d71-456e-ad91-c652fd80858a",
"bid": "65081323-c89f-4bf9-bfac-10e09fcf02b0",
"timestamp": "1724229136518",
"method": "live_lens_change",
"data": {
"video_id": "1581F5FHD22B700B9938/66-0-0/normal-0",
"video_type": "normal"
}
} -
Dear developers, Hello, thank you for contacting DJI Innovation. Can the live_capacity field be reported normally? Is there a drone lens type? I hope our solution can help you, thank you for your email, wish you a happy life! Thank you for your understanding and support, I wish you a happy life! Best Regards, DJI innovation SDK technical support -
This is what I got of "thing/product/5YSZKBM00210LF/state":
{
"bid": "00000000-0000-0000-0000-000000000000",
"data": {
"live_status": [
{
"status": 1,
"video_id": "1581F5FHD22B700B9938/66-0-0/normal-0",
"video_quality": 0
}
]
},
"tid": "00000000-0000-0000-0000-000000000000",
"timestamp": 1724230254961,
"gateway": "5YSZKBM00210LF"
}thing/product/1581F5FHD22B700B9938/osd:
{
"bid": "00000000-0000-0000-0000-000000000000",
"data": {
"66-0-0": {
"gimbal_pitch": 0,
"gimbal_roll": 0,
"gimbal_yaw": 154.8,
"payload_index": "66-0-0",
"version": 1,
"zoom_factor": 0.567823
},
"attitude_head": 154.7,
"attitude_pitch": 4.1,
"attitude_roll": 0.4,
"battery": {
"batteries": [
{
"capacity_percent": 65,
"firmware_version": "08.75.02.17",
"index": 0,
"loop_times": 81,
"sn": "4ERKKBP6G33X95",
"sub_type": 0,
"temperature": 48,
"type": 0,
"voltage": 15897
}
],
"capacity_percent": 65,
"landing_power": 0,
"remain_flight_time": 0,
"return_home_power": 0
},
"distance_limit_status": {
"distance_limit": 480,
"state": 0
},
"elevation": 0,
"firmware_version": "06.01.0606",
"gear": 1,
"height": 72.17514,
"height_limit": 0,
"home_distance": 0,
"horizontal_speed": 0,
"latitude": 0,
"longitude": 0,
"mode_code": 0,
"position_state": {
"gps_number": 0,
"is_fixed": 0,
"quality": 0,
"rtk_number": 0
},
"storage": {
"total": 60082000,
"used": 10976000
},
"total_flight_distance": 0,
"total_flight_time": 0,
"track_id": "",
"vertical_speed": 0,
"wind_direction": 0,
"wind_speed": 0
},
"tid": "00000000-0000-0000-0000-000000000000",
"timestamp": 1724230624425,
"gateway": "5YSZKBM00210LF"
}thing/product/5YSZKBM00210LF/osd:
{
"bid": "00000000-0000-0000-0000-000000000000",
"data": {
"capacity_percent": 27,
"latitude": 10.846326,
"live_status": {
"live_time": 0,
"live_trendline": 0,
"video_id": "",
"video_quality": 65535
},
"longitude": 106.773917,
"transmission_signal_quality": 100,
"wireless_link": {
"4g_freq_band": 5.8,
"4g_gnd_quality": 0,
"4g_link_state": 0,
"4g_quality": 0,
"4g_uav_quality": 0,
"dongle_number": 0,
"link_workmode": 0,
"sdr_freq_band": 5.8,
"sdr_link_state": 1,
"sdr_quality": 5
},
"wireless_link_state": {
"download_quality": 100,
"frequency_band": 1,
"upward_quality": 100
}
},
"tid": "00000000-0000-0000-0000-000000000000",
"timestamp": 1724230629419,
"gateway": "5YSZKBM00210LF"
}thing/product/1581F5FHD22B700B9938/events:
{
"bid": "00000000-0000-0000-0000-000000000000",
"data": {
"event": "hms",
"method": "hms",
"output": {
"codes": [
{
"component_index": 0,
"id": 440536001,
"level": 2,
"sensor_index": 0
},
{
"component_index": 0,
"id": 440536002,
"level": 2,
"sensor_index": 0
},
{
"component_index": 0,
"id": 440536003,
"level": 2,
"sensor_index": 0
},
{
"component_index": 0,
"id": 440536004,
"level": 2,
"sensor_index": 0
},
{
"component_index": 0,
"id": 440536006,
"level": 2,
"sensor_index": 0
},
{
"component_index": 0,
"id": 486604803,
"level": 2,
"sensor_index": 0
}
]
}
},
"tid": "00000000-0000-0000-0000-000000000000",
"timestamp": 1724230628424,
"gateway": "5YSZKBM00210LF"
}That's all I received from the device.
-
Dear developers, Hello, thank you for contacting DJI Innovation. Is the firmware version the latest? So far, live modules, in what order do you give instructions? Try issuing the command after restarting the device. Use 1581F5FHD22B700B9938/66-0-0/normal-0. I hope our solution can help you, thank you for your email, wish you a happy life! Thank you for your understanding and support, I wish you a happy life! Best Regards, DJI DJI innovation SDK technical support -
Hi, I've just updated the firmware to the latest, restart the device. But the same behavior
So far, the order I give instruction is:- Reply to /status message. Start to see /osd messages
- Start live streaming: worked
- Change video quality: worked
- Change video lens: do not receive service_reply
- Set focal length: do not receive service_reply
- Change camera mode: do not receive service_reply
- Stop live streaming: worked
Still receiving /osd messages in frequency.
I wonder do we need to set up anything before that to make them to work?
-
Dear developers, Hello, thank you for contacting DJI Innovation. Do you use pilot to access the cloud? The model is M3E? After the live broadcast is enabled, call live_lens_change. Can “wide” be used successfully? Such as: { "bid":" ", "data":{ "video_id":"1581F5BMD23730015LKJ/66-0-0/normal-0", "video_type":"wide" }, "tid":" ", "timestamp": , "method":"live_lens_change" } Best Regards, DJI innovation SDK technical support -
Dear developers, Hello, thank you for contacting DJI Innovation. The load cannot be modified. When you open the live stream, you should open the live stream of the drone, not the live stream of the airport /pilot, and then you can switch the camera type of the drone. Best Regards, DJI innovation SDK technical support -
Hi DJI Developer Support. Can you please say more on this "you should open the live stream of the drone, not the live stream of the airport /pilot". I don't quite understand.
What I did was enter an url into Pilot app to access to the Cloud. Everything seems still work fine, when I do the livestream I sent a MQTT message to this "thing/product/5YSZKBM00210LF/services" topic (I'm using Agora) and saw the video and of course I see the services_reply topic for "live_start_push".
My drone model is M3E and Remote Controller is DJI RC Pro.
-
Dear developers, Hello, thank you for contacting DJI Innovation. Agora can only open one live stream. Do you open the live stream on pilot and also open the live stream on the third-party platform? I hope our solution can help you, thank you for your email, wish you a happy life! Best Regards, DJI DJI innovation SDK technical support -
Dear developers, Hello, thank you for contacting DJI Innovation. Yes, at present, this stream pushing protocol can only maintain one live stream. May I ask if you can successfully execute "live_lens_change" after enabling live stream? Use 1581F5FHD22B700B9938/66-0-0/normal-0. normal I hope our solution can help you, thank you for your email, wish you a happy life! Best Regards, DJI DJI innovation SDK technical support -
Not yet, I'm quite stucked to execute "live_lens_change".
Work:
{
"tid": "7ab84f1d-4b21-440f-aaa6-54ecb6f42a40",
"bid": "efe6c397-3ff0-4edf-b44f-9ae481865f10",
"timestamp": "1724309924655",
"method": "live_start_push",
"data": {
"url": "channel=flight-clt1K5dH&sn=1581F5FHD22B700B9938&token=007eJxTYLhSLNc%2BtW6jGc%2FzZ89sXZ2zdokuCHvmsX6zuEemwp%2FwM50KDClJiUkGKeYpxoYWySYpaZaJxuYpBskWlmbGKcmJFgYWEtePpdnwMzCsnZfLyMjAyMACxCA%2BE5hkBpMsYJKfIS0nMz2jRDc5p8TQ2zTFg5nB0MAAAITfJJU%3D&uid=100",
"url_type": 0,
"video_id": "1581F5FHD22B700B9938/66-0-0/normal-0",
"video_quality": 1
}
}Work:
{
"tid": "a43c7619-4113-4c5c-b352-de94e5d384b7",
"bid": "9c6f7326-0350-4a5b-a8ce-e27b5e9b2f1c",
"timestamp": "1724310049823",
"method": "live_set_quality",
"data": {
"video_id": "1581F5FHD22B700B9938/66-0-0/normal-0",
"video_quality": 3
}
}Doesn't work:
{
"tid": "17efe881-0489-4890-8208-037a6d71a76f",
"bid": "847f7f14-c02f-4a11-9316-0e87fcfe136d",
"timestamp": "1724310049823",
"method": "live_lens_change",
"data": {
"video_id": "1581F5FHD22B700B9938/66-0-0/normal-0",
"video_type": "normal"
}
} -
According to this document: https://developer.dji.com/doc/cloud-api-tutorial/en/feature-set/pilot-feature-set/pilot-livestream.html I don't see anything related to Lens change.
But it does mention in the API reference: https://developer.dji.com/doc/cloud-api-tutorial/en/api-reference/pilot-to-cloud/mqtt/rc-pro/live.html#set-live-streaming-lens
Does "Lens change" belongs to Live Flight Controls/Remote Control that I need to request the payload control authority first? -
Dear developers, Hello, thank you for contacting DJI Innovation. According to the screenshot, you shouldn't just send normal, you should use wide or zoom, Now turn off the live stream, reboot, and follow the instructions you just sent. I hope our solution can help you, thank you for your email, wish you a happy life! Best Regards, DJI DJI innovation SDK technical support -
Dear developers, Hello, thank you for contacting DJI Innovation. Enter the FH2 management platform and click "Equipment management", "Airport", "Equipment operation and maintenance", "Equipment abnormal feedback" and "New abnormal feedback". In addition, you are required to complete the following information (necessary) : 1. Airport model /pilot and firmware version: 2. Drone model and firmware version: 3. the fault phenomenon: 4. the specific time period of failure: 5. Airport /pilot and drone logs are required (required) Please send me the screenshot of the QR code interface after filling in the above information and the feedback from FH2, and I will submit the upgrade work order. I hope our solution can help you, thank you for your email, wish you a happy life! Best Regards, DJI DJI innovation SDK technical support -
Ok I just read the document again and was able to resolve this.
We need to do the following steps as mentioned in this doc to enter the drone control mode first.
"live_lens_change" method is part of Live Flight Controls/Remote Control. It's kind of misleading when the document for that method is declared at the Live Stream section.
-
Dear developers, Hello, thank you for contacting DJI Innovation. Did you execute drc_mode_enter or drone_control before executing live_lens_change? Which command is being executed? Can live_lens_change be successfully executed now? I hope our solution can help you, thank you for your email, wish you a happy life! Best Regards, DJI DJI innovation SDK technical support -
Dear developers, Hello, thank you for contacting DJI Innovation. Could you please provide error logs for further analysis? Why do I need to issue the drc_mode_enter command before executing the live_lens_change command https://pan-sec.djicorp.com/s/Qi6NxwP9e8YjfXj 1. Airport model /pilot and firmware version: 2. Drone model and firmware version: 3. the fault phenomenon: 4. the specific time period of failure: 5. Airport /pilot and drone logs are required (required) I hope our solution can help you, thank you for your email, wish you a happy life! Best Regards, DJI innovation SDK technical support
Please sign in to leave a comment.
Comments
25 comments