Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Receiving Specific Messages in MQTT Subscription #31

Open
oddbjorn-larsen opened this issue May 31, 2024 · 3 comments
Open

Not Receiving Specific Messages in MQTT Subscription #31

oddbjorn-larsen opened this issue May 31, 2024 · 3 comments

Comments

@oddbjorn-larsen
Copy link

Description:
I am trying to receive values such as zoom_factor and recording_state for a Matrice 300 RTK with an H20T camera using the latest DJI Cloud API. Despite subscribing to all possible topics, I am not receiving messages related to changes in zoom factor or camera mode.

Configuration:

I have configured my cloud-sdk to subscribe to all potential topics:

cloud-sdk:
  mqtt:
    # Topics that need to be subscribed when initially connecting to mqtt, multiple topics are divided by ",".
    inbound-topic: sys/product/+/status,thing/product/+/requests,thing/product/+/response,thing/product/+/events,thing/product/+/commands,thing/product/+/osd,thing/product/+/state,thing/product/+/services,thing/product/+/services_reply,thing/product/+/events_reply,thing/product/+/requests_reply,thing/product/+/property/set,thing/product/+/property/set_reply,thing/product/+/drc/up,thing/product/+/drc/down

Steps Taken:

  1. Subscribed to the following topics:

    • sys/product/+/status
    • thing/product/+/requests
    • thing/product/+/response
    • thing/product/+/events
    • thing/product/+/commands
    • thing/product/+/osd
    • thing/product/+/state
    • thing/product/+/services
    • thing/product/+/services_reply
    • thing/product/+/events_reply
    • thing/product/+/requests_reply
    • thing/product/+/property/set
    • thing/product/+/property/set_reply
    • thing/product/+/drc/up
    • thing/product/+/drc/down
  2. Built a custom frontend and monitored messages in the cloud_api_sample container.

  3. Ensured the device configuration is supposed to push updates on relevant changes.

Problem:
No messages are received when changing the zoom factor or switching the camera mode. I expect to see messages for these events in the subscribed topics but the logs are empty for these specific changes.

Questions:

  1. Do I need to set specific properties to pushMode=1 for these messages to be sent?
  2. Is there any additional configuration required on the device or in the DJI Cloud API to receive these specific messages?
  3. Could there be a delay or another reason for these messages not appearing in the MQTT logs?

Environment:

  • Device: Matrice 300 RTK / H20T
  • API Version: 1.10.0 DJI Cloud API
  • MQTT Broker: Configured with EMQX Broker
@darius-luca-tech
Copy link

Hi there,

I am currently facing the EXACT same problem as you do...Do you managed to find a proper fix for it?

Luca

@Sanafan
Copy link

Sanafan commented Jan 31, 2025

Gleiches Problem hier...

Same Problem here...

@oddbjorn-larsen
Copy link
Author

oddbjorn-larsen commented Feb 14, 2025

It seems like this is a limitation in the DJI Pilot 2 app. And that such fields are only available when using the DJI Dock system.

My question to DJI SDK devs:
To clarify: Are you saying that camera fields like zoom_factor and recording_state are only available when using DJI Dock systems, and not through DJI Pilot 2 with Cloud API? If so:

  1. Is this a permanent limitation of Pilot 2?
  2. Are there any plans to support these camera fields in future Cloud API versions?
  3. Is there any alternative way to monitor camera zoom level and recording status when using Pilot 2?

We're trying to build monitoring functionality for our H20T camera operations and this information is important for our use case

The response:

Dear developers,

Hello, thank you for contacting DJI Innovation.

Yes, by design
There is no support plan
Sorry, except for reporting, there is no other API to monitor

I hope our solution can help you, thank you for your email, wish you a happy life!

Best Regards,
Dji innovation SDK technical support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants