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

Decoding data from Mavic 2 Pro #13

Open
Junior-sdr-py opened this issue Apr 18, 2023 · 2 comments
Open

Decoding data from Mavic 2 Pro #13

Junior-sdr-py opened this issue Apr 18, 2023 · 2 comments

Comments

@Junior-sdr-py
Copy link

Good evening. I am trying to run your code for DJI Mavic Pro. I set legacy = True. I see that the packet is detected and demodulation is attempted. But the decoding gives an error and I don't see any results at the output. Please tell me in which direction I should look for the problem? Maybe recording IQ will help?

@H-a-r-sha
Copy link

H-a-r-sha commented Feb 25, 2025

Hey @Junior-sdr-py , hope you're doing well! Did you manage to resolve the decoding error with DJI Mavic Pro in legacy mode? I'm facing a similar issue—packets are detected and demodulated, but decoding fails due to an array length mismatch. In Packet.py, the line 90
yfake[i*NFFT:(i+1)*NFFT] = itfft(self.symbol_equalized(symbol_f, self.channel))
throws an error because cp_lengths is 8 for legacy, while len(symbols_freq_domain) is 9. yfake is declared as 8 * 1024, but the loop runs 9 times, leading to an out-of-bounds issue. I realized this variable isn't used anywhere other than for plotting, so commented it out. But still there is a error in decoding part as "UnicodeDecodeError: 'utf8' codec can't decode byte 0x96 in position 19: invalid start byte"
Could you help me with resolving the said error?

@YGspike
Copy link

YGspike commented Mar 2, 2025

Hello, can you share the .raw file generated by the code? just for test. thanks!

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