lwvmobile / dsd-fme

Digital Speech Decoder - Florida Man Edition
Other
153 stars 30 forks source link

Remus Hot Topics Corner #79

Closed iz4tow closed 2 years ago

iz4tow commented 2 years ago
  1. Download Ubuntu2204-220620.AppxBundle from https://aka.ms/wslubuntu2204.
  2. Copy the bundle in the same folder with these 2 scripts elevated.bat rem [BEGIN COPY] dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart wsl --set-default-version 2

powershell -Command "Rename-Item .\Ubuntu2204-220620.AppxBundle .\Ubuntu.zip" powershell -Command "Expand-Archive .\Ubuntu.zip .\Ubuntu" cd Ubuntu powershell -Command "Rename-Item .\Ubuntu_2204.0.10.0_x64.appx .\Ubuntu.zip" powershell -Command "Expand-Archive .\Ubuntu.zip .\Ubuntu" rem [END]

Install.bat rem [BEGIN COPY] powershell -command "Start-Process elevated.bat -Verb runas" wsl --set-version Ubuntu-22.04 2 timeout 600 cd Ubuntu cd Ubuntu Ubuntu2204.exe install --root wsl.exe DEBIAN_FRONTEND=noninteractive sudo apt update wsl.exe DEBIAN_FRONTEND=noninteractive sudo apt upgrade -y wsl.exe DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC sudo apt install -y git make cmake libitpp-dev libsndfile1-dev portaudio19-dev gcc g++ sox librtlsdr-dev libncurses5-dev libncursesw5-dev pulseaudio libpulse-dev wsl.exe git clone --branch pulseaudio https://github.com/lwvmobile/dsd-fme wsl.exe git clone https://github.com/szechyjs/mbelib wsl.exe cd mbelib; mkdir build; cd build; cmake .. ; make; sudo make install wsl.exe cd dsd-fme; mkdir build; cd build; cmake .. ; make; sudo make install cd %userprofile% wsl mkdir IN; mkdir OUT; mkdir tmp rem [END]

  1. Run Install.bat with a simple double click
iz4tow commented 2 years ago

TODO:

romanremus commented 2 years ago

greetings to everyone........can basic privacy be decrypted with this version of dsd? functions like dsdplus can be implemented ..... such as id display and others? thanks

lwvmobile commented 2 years ago

How is the performance when running it under WSL? Any perceived lag/slowdown or issues with things working or not working? Any issues with writing decoded audio wav files and so on?

romanremus commented 2 years ago

hello .... I use your version with basic encryption and it works perfectly with windows 7 64 bit .... I set the key and it worked from the first .... thank you very much .......

Edited message to pertain only to topic of discussion.

lwvmobile commented 2 years ago

it works perfectly with windows 7 64 bit

Ah, I see. Would that be a version you built with Cygwin, or one of the much earlier precompiled exe versions under the release tab?

Good to hear its working for you.

romanremus commented 2 years ago

no.....unfortunately I tried to compile and had rtl errors.....and I used a version compiled by you.......thank you once again.....

Edited message to pertain only to topic of discussion.

iz4tow commented 2 years ago

How is the performance when running it under WSL? Any perceived lag/slowdown or issues with things working or not working? Any issues with writing decoded audio wav files and so on?

Hi On WSL 2 is working very well. I'm able to decode wav from an INPUT folder and to decode Live traffic using an udp streamer. I'm doing last test before publish here the procedure. It's very easy

Next step: try to use RTL inside WSL, I think it's possible. And however you could redirect RTL audio from windows to WSL using udp streamer.

lwvmobile commented 2 years ago

do you think that can we do something with the hytera encryption? I have recorded raw file

If you'd like, you can submit wav file samples to me by using https://ufile.io/ or any file hosting service that doesn't require registration. I frown on using google drive for this, since half the time it wants me to log in in order to download a file or access somebody's share. Just upload the wav file samples you have and send me a link, and I'll analyze them. Can't make any promises though on incorporating any additional forms of decryption. Aside from the issues I've mentioned here #80 , I also have to take into consideration things like availability of information, doing the research, and developing the code, and so on. Please, let's continue this discussion in #80 if at all possible, when you reply to the email, its sending it to the WSL issue instead.

iz4tow commented 2 years ago

How is the performance when running it under WSL? Any perceived lag/slowdown or issues with things working or not working? Any issues with writing decoded audio wav files and so on?

May I send you my scripts to auto-install:

CAPABILIETIES:

*here I have to risolve a little issue...the IP of WSL may change but I'm working on it.

TODO:

My purpose is to extend your software quite easily to all OM Winsows users.

PS: if you use WIN 10 on WMware Workstation free edition you can install WSL v.2 with no problem

romanremus commented 2 years ago

it's perfect like that ..... please send us your scripts ...

Edited to pertain to just the topic of this thread.

lwvmobile commented 2 years ago

May I send you my scripts to auto-install:

You can send them to me via https://ufile.io/ if you wish, just zipped up if its a collection of text files.

What may be more beneficial, is if you want to work on any particular issues or contribute, if you fork my pulse audio branch, you can upload changes and additions like those scripts, and I can view them and also review any push requests and modify them or re-organize them as necessary.

iz4tow commented 2 years ago

maybe the best idea could be to create a wiki for windows users. I think a fork could be not very friendly for simple users, they will use google to locate DSD-FME and they will be confused with all these fork. However let me resolve the IP task and I will send you the complete ZIP (script, software required like python3 for windows, README file)

lwvmobile commented 2 years ago

I think what I can do is make a Wiki entry for it and give you access to modify it. When I am back in front of a computer again I'll see if I can do it.

lwvmobile commented 2 years ago

I had mistakenly sent you an invitation for collaborator access, but then realized I think that gives you too broad of a permission set. I think you might be able to contribute to the wiki without it. Let me know if you can access it or not.

romanremus commented 2 years ago

good morning ..... do you think it is possible to write in the dsdfme code to have a TCP port at the input ..... and please how can I remove the RTL-SDR from the code

Edit: I really wish Github would filter out the email portion of the reply when people reply via email.

iz4tow commented 2 years ago

good morning ..... do you think it is possible to write in the dsdfme code to have a TCP port at the input ..... and please how can I remove the RTL-SDR from the code

TCP input for what? Audio stream?

iz4tow commented 2 years ago

I think what I can do is make a Wiki entry for it and give you access to modify it. When I am back in front of a computer again I'll see if I can do it.

I wrote 3 guides in wiki:

On next days I will write also simple example for use cases

iz4tow commented 2 years ago

I think we could close this Issue. Let me know if you like my solution and if you find any issue

lwvmobile commented 2 years ago
  • Ubuntu Install guide

I am truly thankful for the enthusiasm and the desire for somebody to contribute like this, especially on the WSL stuff, since others may find it useful and its an area that I'm not personally interested in exploring, perhaps others are and those can be helpful for them. I'd like point out on the Ubuntu Install Guide you made, there is already an install guide, right on the README page, which already includes a self installer script. The Wiki page for Ubuntu should reflect (or perhaps just be a copy and paste of the same data for consistency sake.)

https://github.com/lwvmobile/dsd-fme/tree/pulseaudio#how-to-clone-check-out-and-build-this-branch

Also, the version of mbelib being cloned should be from the branch https://github.com/lwvmobile/mbelib since I've converted all the printf statements into fprintf (stderr statements, a rogue printf could overwrite random mbelib messages on top of the ncurses terminal.

iz4tow commented 2 years ago

Oh I'm sorry. I will correct the Ubuntu guide and mbelib source as soon as I can. You did a very very good work, so I hope many users can download and install your software to increase the community and the support.

romanremus commented 2 years ago

for me it works very ok in windows 7 ..... but please can you make an entry to the input TCP connection dsd how is dsdplus ??? -i20002 ???? I would like to connect it with fmp24 .... and please, how can I remove rtlsdr from the code to stay only with dsd ??? greetings and thank you

lwvmobile commented 2 years ago

how can I remove rtlsdr from the code to stay only with dsd ???

The rtl code should, I say should, only attempt building IF cmake finds source code for it, otherwise it shouldn't attempt to use that to build with. That part is purely optional. Try to pull and build the latest pulseaudio branch version and try it again if you can. If not, then I'll have to comb through it and check for any issues that prevent it from building if you don't have rtl support.

but please can you make an entry to the input TCP connection dsd how is dsdplus ??? -i20002 ???? I would like to connect it with fmp24

As much as I would like to support as many input types as I can, I am not sure if this will be viable or not. While I could make a TCP input stream (maybe, if I'm skilled enough to figure it out) since I don't have any sort of specification on FMPa or its source code (its closed source) I can't really say I could figure out how to control it and use its input, since I can't see its inner workings.

iz4tow commented 2 years ago

for me it works very ok in windows 7 ..... but please can you make an entry to the input TCP connection dsd how is dsdplus ??? -i20002 ???? I would like to connect it with fmp24 .... and please, how can I remove rtlsdr from the code to stay only with dsd ??? greetings and thank you

Please provide me the software link and exactly what you need to do. I think it's very simple what you want to do. I'll help you

If I understood correctly you need an audio stream via TCP. Am I right?

iz4tow commented 2 years ago

I think this will work for you socat -t 100 stdio tcp-listen:7355 | dsd-fme -i - -Z

Let me know please

iz4tow commented 2 years ago

All you need to know to install DSD-FME on WSL is on the wiki and it's finally working!

romanremus commented 2 years ago

greetings to all......I have some recorded raw files....how could I convert them with the dsd-fme version?? I tried to play them in gqrx but I didn't succeed.......thanks to everyone Pe joi, 18 august 2022, 18:25:22 EEST, lwvmobile @.***> a scris:

How is the performance when running it under WSL? Any perceived lag/slowdown or issues with things working or not working? Any issues with writing decoded audio wav files and so on?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

iz4tow commented 2 years ago

dsd-fme on windows or on Linux? If you have the wav tracks please upload them somewhere

romanremus commented 2 years ago

I have some wavs recorded with dsdplus in windows and now I have linux in the virtual machine and I would like to play them in dsd-fme.....especially a recording with hytera....thanks everyone

Pe joi, 25 august 2022, 21:41:25 EEST, iz4tow ***@***.***> a scris:  

dsd-fme on windows or on Linux? If you have the wav tracks please upload them somewhere

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

iz4tow commented 2 years ago

I think dsdplus records only the demodulated audio, not the original track. You need the gqrx (or other sdr console) audio track

lwvmobile commented 2 years ago

DSDPlus can actually record raw signal audio as well, but still, would be beneficial to see the files uploaded so we know what we are working with. Is it raw wav, IQ wav, something else?

romanremus commented 2 years ago

I like your code a lot......nothing can be done to compile in cygwin to run on windows ???? thanks

Pe joi, 25 august 2022, 21:52:48 EEST, lwvmobile ***@***.***> a scris:  

DSDPlus can actually record raw signal audio as well, but still, would be beneficial to see the files uploaded so we know what we are working with. Is it raw wav, IQ wav, something else?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

lwvmobile commented 2 years ago

I like your code a lot......nothing can be done to compile in cygwin to run on windows ???? thanks

An entire wiki has been written for multiple methods to get the code to work on Windows, found here: https://github.com/lwvmobile/dsd-fme/wiki

Also, I fixed the code so that it does compile and run in Cygwin. This has been tested by myself and others who have been able to successfully compile and run inside of Cygwin as of the current version. You need to make sure you have all the relevant dependencies installed from the Cygwin installer, which can be found here.

https://github.com/lwvmobile/dsd-fme/issues/73

Also, I have mentioned this before, but if you do not give us the output of your terminal when you have a compiler error, I can't help you. If all you say is that you can't get it to compile, but supply no further information or the output of the terminal, then I can't really help you.

romanremus commented 2 years ago

would you please send me the compiled file for windows ... the last update ???? I think I have problems with cygwin myself ... this is a compilation error : -- Found LibSndFile: /usr/lib/libsndfile.dll.a-- Found MBE: /usr/local/lib/libmbe.dll.a-- Found ITPP: /usr/local/lib/libitpp.dll.a-- Found PkgConfig: /usr/bin/pkg-config (found version "1.6.3")-- Checking for module 'librtlsdr'-- Package 'librtlsdr', required by 'virtual:world', not found-- Found RTLSDR: /usr/local/lib/librtlsdr.a-- Looking for wsyncup in /usr/lib/libcurses.a-- Looking for wsyncup in /usr/lib/libcurses.a - found-- Looking for cbreak in CURSES_NCURSES_LIBRARY-NOTFOUNDCMake Error: The following variables are used in this project, but they are set to NOTFOUND.Please set them or make sure they are set and tested correctly in the CMake files:CURSES_NCURSES_LIBRARY    linked by target "cmTC_e1f0b" in directory /cygdrive/c/all/dsdfme/build/CMakeFiles/CMakeTmp CMake Error at /usr/share/cmake-3.20.0/Modules/CheckLibraryExists.cmake:72 (try_compile):  Failed to generate test project build system.Call Stack (most recent call first):  /usr/share/cmake-3.20.0/Modules/FindCurses.cmake:161 (CHECK_LIBRARY_EXISTS)  CMakeLists.txt:16 (find_package)

-- Configuring incomplete, errors occurred!See also "/cygdrive/c/all/dsdfme/build/CMa

Pe joi, 25 august 2022, 22:14:58 EEST, lwvmobile ***@***.***> a scris:  

I like your code a lot......nothing can be done to compile in cygwin to run on windows ???? thanks

An entire wiki has been written for multiple methods to get the code to work on Windows, found here: https://github.com/lwvmobile/dsd-fme/wiki

Also, I fixed the code so that it does compile and run in Cygwin. This has been tested by myself and others who have been able to successfully compile and run inside of Cygwin as of the current version. You need to make sure you have all the relevant dependencies installed from the Cygwin installer, which can be found here.

73

Also, I have mentioned this before, but if you do not give us the output of your terminal when you have a compiler error, I can't help you. If all you say is that you can't get it to compile, but supply no further information or the output of the terminal, then I can't really help you.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

iz4tow commented 2 years ago

I think is much easier to use DSD-FME on docker on WSL2 than try to compile it on Cygwin and trust me, it's working well on WSL2 and docker.

romanremus commented 2 years ago

I managed to compile it with cygwin 32bit, I put all the dll extensions, I use windows 7 64bit.....but dsd-fme is 1.2mb and when you open it, it closes immediately......version 9044 works perfectly. ...any idea ???? thanks

Pe vineri, 26 august 2022, 00:16:45 EEST, iz4tow ***@***.***> a scris:  

I think is much easier to use DSD-FME on docker on WSL2 than try to compile it on Cygwin and trust me, it's working well on WSL2 and docker.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

romanremus commented 2 years ago

please resend the latest version compiled in cygwin for windows 7 and tell me how you managed.......so I can see where I am wrong...thank you very much Pe vineri, 26 august 2022, 06:33:33 EEST, @. @.> a scris:

I managed to compile it with cygwin 32bit, I put all the dll extensions, I use windows 7 64bit.....but dsd-fme is 1.2mb and when you open it, it closes immediately......version 9044 works perfectly. ...any idea ???? thanks

Pe vineri, 26 august 2022, 00:16:45 EEST, iz4tow ***@***.***> a scris:  

I think is much easier to use DSD-FME on docker on WSL2 than try to compile it on Cygwin and trust me, it's working well on WSL2 and docker.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

lwvmobile commented 2 years ago

I managed to compile it with cygwin 32bit, I put all the dll extensions, I use windows 7 64bit.....but dsd-fme is 1.2mb and when you open it, it closes immediately......version 9044 works perfectly. ...any idea ???? thanks

What command are you using to run it with? Try running just (in the Cygwin terminal)

./dsd-fme.exe

and see if that works. If you were able to compile it, you wouldn't need to copy any of those DLLs, except the mbe dll.

romanremus commented 2 years ago

do you want me to compile it in cygwin and send me the latest version?? I'm missing something and I don't know what

romanremus commented 2 years ago

can you compile for me the latest dsd-fme version in cygwin, I think I'm making a mistake somewhere, I don't know how to do it anymore... thank you very much Pe vineri, 26 august 2022, 06:43:32 EEST, lwvmobile @.***> a scris:

I managed to compile it with cygwin 32bit, I put all the dll extensions, I use windows 7 64bit.....but dsd-fme is 1.2mb and when you open it, it closes immediately......version 9044 works perfectly. ...any idea ???? thanks

What command are you using to run it with? Try running just (in the Cygwin terminal)

./dsd-fme.exe

and see if that works. If you were able to compile it, you wouldn't need to copy any of those DLLs, except the mbe dll.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

iz4tow commented 2 years ago

Wait few hours....I'm adding a guide with an automated script for Cygwin

romanremus commented 2 years ago

thank you to everyone who helped me Pe vineri, 26 august 2022, 16:31:22 EEST, iz4tow @.***> a scris:

Wait few hours....I'm adding a guide with an automated script for Cygwin

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

iz4tow commented 2 years ago

I only have a question...what OS are you using? why not Cygwin 64?

romanremus commented 2 years ago

I use windows 7 64 bit ....and I tried to compile with cygwin and with cygwin64......in cygwin64 I didn't succeed, I have many errors .....in cygwin I managed to compile but dsdfme opens and closes immediately Pe vineri, 26 august 2022, 16:47:50 EEST, iz4tow @.***> a scris:

I only have a question...what OS are you using? why not Cygwin 64?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

romanremus commented 2 years ago

how can I find the 10 basic privacy hitera keys in hex???? thanks Pe vineri, 26 august 2022, 16:55:59 EEST, @. @.> a scris:

I use windows 7 64 bit ....and I tried to compile with cygwin and with cygwin64......in cygwin64 I didn't succeed, I have many errors .....in cygwin I managed to compile but dsdfme opens and closes immediately Pe vineri, 26 august 2022, 16:47:50 EEST, iz4tow @.***> a scris:

I only have a question...what OS are you using? why not Cygwin 64?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

iz4tow commented 2 years ago

Look at the wiki https://github.com/lwvmobile/dsd-fme/wiki/Windows---CYGWIN-(Not-recommended)

romanremus commented 2 years ago

THANK YOU VERY NICE .....DO NOT HAVE THE 10 HYTERA BASIC PRIVACY KEYS IN HEX FORMAT ???? Pe vineri, 26 august 2022, 17:52:54 EEST, iz4tow @.***> a scris:

Look at the wiki https://github.com/lwvmobile/dsd-fme/wiki/Windows---CYGWIN-(Not-recommended)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

iz4tow commented 2 years ago

wait a second...there is a little bug...just few minutes

iz4tow commented 2 years ago

OK try now

romanremus commented 2 years ago

ok ....I'll try right away ....don't you have the keys from hytera basic privacy in hex please ???? I have many hytera encrypted signals in my country Pe vineri, 26 august 2022, 18:22:11 EEST, iz4tow @.***> a scris:

OK try now

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

iz4tow commented 2 years ago

No, I don't. If you find someone that can decrypt HYTERA or something else please let me know