Giter VIP home page Giter VIP logo

Comments (27)

t0rm3nt0r avatar t0rm3nt0r commented on July 26, 2024 1

@pqoe
https://www.dji.com/matrice600-pro
"The airframe is equipped with the latest DJI technologies, including the A3 Pro flight controller, Lightbridge 2 HD transmission system, Intelligent Batteries and Battery Management system."

DL=downlink

from dji_droneid.

proto17 avatar proto17 commented on July 26, 2024

See https://github.com/proto17/dji_droneid/blob/main/matlab/updated_scripts/process_file.m#L325-L329. It's likely because something went wrong trying to run the turbo decoder. There should be another error. Did you provide all of the output? Looking for something that starts with "[ERROR]". If you don't have anymore output to show then there might be something wrong with the remove_turbo binary. Try running ./remove_turbo with no arguments and see what happens. If you get a usage statement then all is well, otherwise there's something wrong with the binary.

from dji_droneid.

pqoe avatar pqoe commented on July 26, 2024

Hi, thanks for replying. I recorded a signal from M600 PRO, around 2414.5 MHz, with a modified Pluto SDR (txco change)
.I'm using matlab on windows. I modified the script process file to add the turbo decoder in same folder of the script such this :
turbo_decoder_path = fullfile(this_script_path, filesep, 'remove_turbo.cc');
In the output i get the demodulated ofdm symbols images but also in matlab output this FRAME : "my current path" is not a recognizable matlab command''
Sans te

from dji_droneid.

proto17 avatar proto17 commented on July 26, 2024

from dji_droneid.

pqoe avatar pqoe commented on July 26, 2024

aaahhh i will find another signal that contains the remote ID, i got access to many drones at work :). I might sound a total noob but i totally do not understand this "You would have needed to compile the decoder app by hand using something like Cygwin." i did not compile anything i just put the cc file in same folder as matlab script, i did install pothos sdr for working with gnu radio but not cygwin. Meanwhile your code looks initimidating but i really appreciate your work it got me hooked

from dji_droneid.

proto17 avatar proto17 commented on July 26, 2024

The .cc files need to be compiled with some form of C++ compiler. In Windows you could use Cygwin [1], but I don't know for sure if that will work. All of my development and testing was done in Linux ☚ī¸ Using Cygwin is a little bit of a pain if it's the first time you used it. I don't have a good feel for how easy it will be to build the decoder/encoder apps. Just placing the .cc files in the MATLAB path will not do anything unfortunately. Looks like it might be possible to do the compilation from MATLAB [2] but I have no experience with this method

If there are parts of the code that don't make sense just ask! Thanks for trying it out 😄

[1] https://www.cygwin.com/
[2] https://www.mathworks.com/matlabcentral/fileexchange/52848-matlab-support-for-mingw-w64-c-c-compiler

from dji_droneid.

t0rm3nt0r avatar t0rm3nt0r commented on July 26, 2024

@pqoe dont forget M600 is lightbridge
this repo is for ocusync protocol. for lb try work on DL.
@proto17
your work is awesome. I really mean it.
the code has been tested on real scenarios. worked perfectly ;-)

from dji_droneid.

pqoe avatar pqoe commented on July 26, 2024

@t0rm3nt0r M600 PRO is ocusync i think, whats DL?
@proto17 can i reach you by email? is there anyway to make this work on matlab only, without using gnu radio or g++

from dji_droneid.

proto17 avatar proto17 commented on July 26, 2024

@t0rm3nt0r appreciate the kind words and the knowledge that the code does work in real life 😃

@pqoe i don't normally give out my e-mail. right now the only options for demod are using the MATLAB with the turbo decoder (includes rate matching) binary. i recommend using a virtual machine with Ubuntu 22.04. i'm pretty sure the home version of MATLAB can be installed on 2 machines so you could have the VM be your second. just keep in mind that you cannot re-home a personal license :( another alternative is to put a breakpoint at https://github.com/proto17/dji_droneid/blob/main/matlab/updated_scripts/process_file.m#L326, copy the /tmp/bits file to a VM, Docker container, or WSL container where you can run the turbo decoder, then copy the output file back to Windows and continue the MATLAB script. if you think that's a possible solution then i can write up a short guide on how it could be done. i don't use Windows, so it'll be a bit of a guess.

from dji_droneid.

pqoe avatar pqoe commented on July 26, 2024

@proto17 ill try that, i'm very excited to make it work, if you could write that guide ill be more than thankful !

from dji_droneid.

proto17 avatar proto17 commented on July 26, 2024

@pqoe Give branch 37 a try

from dji_droneid.

pqoe avatar pqoe commented on July 26, 2024

thank you for your valuable help, i will try this next week. really appreciate your assistance, i'm very gratful
have nice week :)

from dji_droneid.

pqoe avatar pqoe commented on July 26, 2024

Hi, im trying the method you posted earlier, but hit a wall during compilation
ere
as you can see the turbofec folder is not found, i think it has to do with the g++ compilation instruction, maybe one of the arguments i dont know

from dji_droneid.

proto17 avatar proto17 commented on July 26, 2024

Oh shoot I forgot to add libtool to the list of things to install with Cygwin. Re-run the installer executable you downloaded, go through all the menus until after you have selected your mirror. By default you will not see any packages, so at the top left there is a dropdown that I think says Pending by default. Change that dropdown to Full and then search for libtool. Find the one that doesn't have any version information in the name and install the latest version of that. Hopefully that makes some kind of sense. I don't have a Windows machine right now to explain properly đŸ˜Ļ Sorry about that!!

from dji_droneid.

komalkumar6655 avatar komalkumar6655 commented on July 26, 2024

image

from dji_droneid.

komalkumar6655 avatar komalkumar6655 commented on July 26, 2024

Hi @proto17
I have followed as per your suggestion but i am getting these errors
Please can you hep me.
Thank you

from dji_droneid.

proto17 avatar proto17 commented on July 26, 2024

@komalkumar6655 It looks like you ran wget https://github.com/d-bahr/CRCpp/blob/master/inc/CRC.h instead of https://raw.githubusercontent.com/d-bahr/CRCpp/master/inc/CRC.h.

from dji_droneid.

komalkumar6655 avatar komalkumar6655 commented on July 26, 2024

image

from dji_droneid.

komalkumar6655 avatar komalkumar6655 commented on July 26, 2024

I have run the command you have given but i am getting the above mentioned error like connection timed out.
So ihave run the wget https://github.com/d-bahr/CRCpp/blob/master/inc/CRC.h

from dji_droneid.

proto17 avatar proto17 commented on July 26, 2024

I think you have a firewall problem as I have no issue with that from home, work, or cell. The second wget command you're running is pulling back an HTML page and not the header file itself. You can try copy-pasting the contents of the header file into the cpp dir by hand. Just make sure the file is named CRC.h

from dji_droneid.

komalkumar6655 avatar komalkumar6655 commented on July 26, 2024

Thanks alot for the information in got the application add_turbo .exe and the remove_turbo.exe.

from dji_droneid.

komalkumar6655 avatar komalkumar6655 commented on July 26, 2024

Does all DJI drones have the Drone IDs or only specified DJI drones have these Drone IDs.

from dji_droneid.

proto17 avatar proto17 commented on July 26, 2024

Glad it worked! Only certain DJI drones have DroneID. I don't have a good list of the ones that do vs don't

from dji_droneid.

komalkumar6655 avatar komalkumar6655 commented on July 26, 2024

Thank You
i have taken the samples file from the github repo: https://github.com/RUB-SysSec/DroneSecurity/tree/public_squash/samples
But still getting the same error as failed to run final processing step

from dji_droneid.

komalkumar6655 avatar komalkumar6655 commented on July 26, 2024

FRAME: 'D:\DJI' is not recognized as an internal or external command,
operable program or batch file.

THis error is occuring frequently.

from dji_droneid.

proto17 avatar proto17 commented on July 26, 2024

@komalkumar6655 You can't have spaces in the file path. Try changing DJI Drone ID to something like DJI_Drone_ID

from dji_droneid.

pqoe avatar pqoe commented on July 26, 2024

I think it worked finally ! i got the 2 files as output, ill recapture an actual RF iq from my pluto sdr then work the matlab code on it, ill let you know later, thanks again !

from dji_droneid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.