DSD FME

vince48

Member
Premium Subscriber
Joined
May 13, 2001
Messages
1,181
Location
Central Valley, CA.
Sounds like you are volunteering for the new semi-automatic Cygwin installer script I wrote and also the Cygwin DSD-FME installer script. Details can be found here. Its literally just copy, paste, click next a few times, and wait while it all comes together.

If you get the full Cygwin environment installed and DSD-FME compiled with that script, making changes to relevant c files and rebuilding is as simple as opening the build folder and running make install. There are also scripts available to update the source code from the repo and rebuild, and another script that will copy and paste all the relevant files to a portable release folder and zip it up for you so you can effectively make your own 'release' now, so I won't have to.
Greetings,
i followed your instructions and I think everything was installed, I see the Cygwin64 Terminal shortcut, but when i open the terminal, i see muell@DESKTOP-H63P9S3, now what do I do?
 

lwvmobile

DSD-FME
Joined
Apr 26, 2020
Messages
1,359
Location
Lafayette County, FL
Greetings,
i followed your instructions and I think everything was installed, I see the Cygwin64 Terminal shortcut, but when i open the terminal, i see muell@DESKTOP-H63P9S3, now what do I do?

Typically, at that point, you could just run dsd-fme , really just depends on what specifically you are trying to do. There should be a plethora of example commands to run to monitor and/or trunk various system types and so on in the dsd-fme/examples folder, but if you give us an idea what you might want to do maybe somebody here can get you started.
 

vince48

Member
Premium Subscriber
Joined
May 13, 2001
Messages
1,181
Location
Central Valley, CA.
when i try to run dsd-fme I get this
Build Version: AW 2025-62-gfe0195a (CYGWIN)
MBElib Version: 1.3.4
CODEC2 Support Enabled
OSS Input /dev/dsp.
ioctl speed error
ioctl stereo error
ioctl setfmt error
OSS Output /dev/dsp.
ioctl speed error
ioctl stereo error
ioctl setfmt error
Audio In/Out Device: /dev/dsp
 

lwvmobile

DSD-FME
Joined
Apr 26, 2020
Messages
1,359
Location
Lafayette County, FL
when i try to run dsd-fme I get this
Build Version: AW 2025-62-gfe0195a (CYGWIN)
MBElib Version: 1.3.4
CODEC2 Support Enabled
OSS Input /dev/dsp.
ioctl speed error
ioctl stereo error
ioctl setfmt error
OSS Output /dev/dsp.
ioctl speed error
ioctl stereo error
ioctl setfmt error
Audio In/Out Device: /dev/dsp

what command did you run?
 

lwvmobile

DSD-FME
Joined
Apr 26, 2020
Messages
1,359
Location
Lafayette County, FL
Well, does any sound play at all on your computer from any other software?

If not, then sounds like you don't have an audio driver installed, or no headphones or speakers plugged in, or similar. Not sure how to advise on that, its more of a general Windows issue.

Conversely, if you can be specific about a system in particular you might want to listen to or monitor, including a radio reference database link to it, what SDR hardware you have, and so on, then it might be easier to get you going other than just starting up dsd-fme. Typically, you would pass arguments to dsd-fme to tell it what hardware or input to use, what to expect to decode, channel listings if applicable, and so on to decode a system in general, which again, there is a plethora of examples available regarding those as well. There is on GUI, so no point and click. Not having an audio out device isn't a deal breaker by itself, its just what that message is telling you on start up.
 

vince48

Member
Premium Subscriber
Joined
May 13, 2001
Messages
1,181
Location
Central Valley, CA.
Got'ca my friend
I have DSD-FME installed on my remote Windows 11 machine in another room in the house. I 'm using RDC (remote desktop connection) to connect. The only audio device is "remote audio" when you RDC. I have no problems with audio when using DSD+, SDRTrunk, P25RXII
Dang, I really wanted to learn about DSD-FME. Thank you for your help thou, really appreciate it.

vince48
 

lwvmobile

DSD-FME
Joined
Apr 26, 2020
Messages
1,359
Location
Lafayette County, FL
Again, not having an audio device due to the RDC connection or otherwise isn't in and of itself a deal breaker. Could be a simple toggle switch somewhere on the connection client. Its been a good decade or more since I've used RDC particularly. Not sure why it isn't being picked up through Cygwin.

If you aren't willing to troubleshoot the issue or try things, or give information on what you want to do specifically with dsd-fme, I don't know how to help you in this case. Its like showing up, asking for help at the most vague of levels, offering no information when asked, have no specific questions to ask, and then deciding its not going to work for you almost immediately. I don't mean to be rude, but, if you want to learn about dsd-fme, the best bet is to do the reading which is abundant on the Github page, as it always is, and not be so willing to give up immediately. I feel like my stuff gets a bad rep a lot of times because of situations just like this, and others will read this without being familiar with dsd-fme or having tried it and straight up decide its not going to work for them without testing it out for themselves.

Anyways, sounds like you already have a few solutions in place that work for you, my advice in this case, is to just keep using those if they work for you.
 

vince48

Member
Premium Subscriber
Joined
May 13, 2001
Messages
1,181
Location
Central Valley, CA.
wow, I certainly did not expect this, but with all due respect, I thanked you for your reply and help. I'm not asking for you to remote on to my PC and do all the work. I followed your instructions and everything looked pretty straight forward.
What I'm wanting to do is ultimately monitor a P25 system and view the CC and get audio. But please do not include me with those who give DSD-FME a bad rep. I do not think I deserve that weight, wow!

Agin Iwvmobile, I thank you for your help today. Have a good evening.
 

aromka1

Member
Joined
Jul 5, 2024
Messages
35
Here at Florida Man Labs, we have been working hard lately on all the things that don't matter to you, including swearing to never drink a Four Loko's Watermelon flavored beverage again and fixing up odd and end features in everybody's fourth or fifth favorite voice decoder (or optimally, RR's Most Hated): DSD-FME

View attachment 125835

SPACE FORCE: ALIENS VS CHINESE DRAGONS EDITION

2022.08.12 Update Notes:

Code:
1. NCurses Menu (no more tedious CLI options...unless you really want to)

2. Save/Read Capture Bin (WIP!)

3. Read OP25 Capture Bin (WIP!)

4. Per Call WAV saving on DMR Stereo

5. Revamped Data Headers, and 1/2 and 3/4 Data LRRP

6. Dump LRRP Data to text file, import into QGIS

7. Included QGIS Map File with layers set up

8. DMR CACH and Burst FEC

9. No more Port Audio or OSS...ever.

   --Switch to 8Khz/1Ch for most decode types due to crisper sound

   ---DMR Stereo remains at 24/2, will look into revamp upsample for cleaner sound

   ---Fix Bug in DMR Stereo handling that pushed audio errors to both left and right buffers, cleaned up muddy sound

   --Mute P25, NXDN, and DMR Encryption by default, but still allow frame dump while muted, unmuting can be toggled in ncurses terminal if desired.

   ---will not playback audio or write decoded wav files or mbe files when muted



This is now included with a quick toggle! NCurses Compact Mode! When you don't need to be reminded every second that you are using DSD-FME with big gaudy letters eating up 1/4 of the terminal :ROFLMAO:

And as usual, here is a rather shoddy video run down of a few of the features :sleep:


Hi, it is compatible with Hytera?
I have configured a arc4 Channel however when the k is put, cant be listened.
With Motorola and anytone no problem.
I dont know what I am doing wrong
 

lwvmobile

DSD-FME
Joined
Apr 26, 2020
Messages
1,359
Location
Lafayette County, FL
Hi, it is compatible with Hytera?
I have configured a arc4 Channel however when the k is put, cant be listened.
With Motorola and anytone no problem.
I dont know what I am doing wrong

If its RC4 operating in DMRA mode, that does work, as you indicated, but if you are using it in Hytera Enhanced Encryption mode, then that is currently not supported. I've been investigating that mode lately, but if you can provide samples with a known key value, that would help in that effort to eventually include that mode as well.
 

aromka1

Member
Joined
Jul 5, 2024
Messages
35
If its RC4 operating in DMRA mode, that does work, as you indicated, but if you are using it in Hytera Enhanced Encryption mode, then that is currently not supported. I've been investigating that mode lately, but if you can provide samples with a known key value, that would help in that effort to eventually include that mode as well.

I am using enhanced mode with a 40bit k and cant be listened and several ambe errors

Later, will pm with more info, for your investigation.

Thanks
 

lwvmobile

DSD-FME
Joined
Apr 26, 2020
Messages
1,359
Location
Lafayette County, FL
I am using enhanced mode with a 40bit k and cant be listened and several ambe errors

Later, will pm with more info, for your investigation.

Thanks

If you are able to capture any samples with a known key value from your radio, try to do it without any sort of talker alias feature turned on. Those are also placed in the link control, and it'll help to work it out a bit better if I can get a more steady hytera enhanced link control with the mi in it more frequently to make sure that is calculated correctly each time.
 

9a7jjg

Newbie
Joined
Jan 31, 2025
Messages
3
Location
Zagreb,Croatia
Does the keystream apply to 48 bits or 49 bits in the ambe package, how many bytes does the keystream have for one superframe? It is an RC4 mototrbo system. If applied to 48 bits then the keystream should be 108 bytes.
 

EI9BAB

Member
Joined
Sep 3, 2021
Messages
62
Does the keystream apply to 48 bits or 49 bits in the ambe package, how many bytes does the keystream have for one superframe? It is an RC4 mototrbo system. If applied to 48 bits then the keystream should be 108 bytes.
Each AMBE superframe contains 6 sub-frames (A-F) and each of these contain 3 voice frames so there are a total of 18 voice frames in each superframe. A voice frame is 49 bits long and is represented in the DSD-FME output as 7 bytes - 6 full bytes and a 0x00 or 0x80, depending on the value of the last bit. As you say, if you were only to look at the first 48 bits then you might only need 108 bytes of keystream.

However, I understand that the section of the keystream (based on the key and the MI/IV) used for decryption needs to be the same length as the superframe which is 18x49 bits long. I do have some recollection of Florida Man saying that he might not bother decrypting bit 49 in each voice frame as it didn't have a significant impact but I could be wrong. However, as far as I know, you still need to line up all 882 bits of the voice frames against the keystream in order to decrypt them so in that case you would end up using over 110 bytes of the keystream.

(Disclaimer: This logic can be deduced from the code repository and presumes that you have the key in your possession.)
 
Top