Java program to decode DMR

Status
Not open for further replies.

IanWraith

Member
Joined
Sep 29, 2010
Messages
269
Location
ianwraith@gmail.com
Hello All

I have just uploaded build 28 to Github ..

https://github.com/IanWraith/DMRDecode/downloads

Build 28 has the following new version ..

1) An improved display routine so it should use less CPU time.

2) A big one !! The program now opens up a TCP/IP socket on port 17887 and listens to it for connections. When a client connects (and up to 10 clients can) the program sends "OK" and following that after ever voice frame received the program sends the following to each connected client

"#" - The # character is sent to indicate the start of a voice frame

C - A integer 1 or a 2 is sent to indicate which channel this frame is from

Followed by 27 integers which contain the 216 bits that make up a voice frame. Each integer contains 8 bits.

You can test this by entering "telnet 127.0.0.1 17887" at a command line.

This means voice data is now available to those of you who wish (and legally can) explore that avenue.

As usual comments to this forum please.

Regards

Ian
 
Last edited:

Giulio

Member
Joined
May 7, 2010
Messages
5
Well done Ian!
Thanks for your daily work on DMRDecode.
Just tested build 28 on Ubuntu Linux, and I can get ints by telnetting to port 17887.

Would it be possible to choose the soundcard source right from the software ?
The only one seen by DMRdecode is the default one.
Even if I default to the other soundcard directly from O.S. settings, it doesn't work.

I owe you a beer ;)
 

IanWraith

Member
Joined
Sep 29, 2010
Messages
269
Location
ianwraith@gmail.com
Would it be possible to choose the soundcard source right from the software ?
The only one seen by DMRdecode is the default one.
Even if I default to the other soundcard directly from O.S. settings, it doesn't work.

I have had requests from other people for the same feature and this is something I need to look into. However I have a few more important features I need to add first so it may be a while before I get around to adding this.

Glad you like the program.

Ian
 

funatic

Member
Joined
Sep 9, 2010
Messages
22
Does anybody successfully use the program on iMac last gen under OS X 10.6.6 ? I always get "fatal error" when opening the .jar, even if the discriminator output of my AOR AR8600 is correctly linked straight to the line-in plug of the Mac (I can see the transit by the audio preferences of the system and I can ear the sound by the "LineIn" free app). Many thanks in advance!
 

funatic

Member
Joined
Sep 9, 2010
Messages
22
Does anybody successfully use the program on iMac last gen under OS X 10.6.6 ? I always get "fatal error" when opening the .jar, even if the discriminator output of my AOR AR8600 is correctly linked straight to the line-in plug of the Mac (I can see the transit by the audio preferences of the system and I can ear the sound by the "LineIn" free app). Many thanks in advance!

P.S. I already checked the internal audio in settings (48000) getting anyway "Fatal error in setupAudio()"
 

IanWraith

Member
Joined
Sep 29, 2010
Messages
269
Location
ianwraith@gmail.com
Hello

P.S. I already checked the internal audio in settings (48000) getting anyway "Fatal error in setupAudio()"

An error in setupAudio is due to the program being unable to connect to the audio device. So either some other program is using the audio device or it doesn't like the sampling parameters the program is requesting.

Regards

Ian
 

funatic

Member
Joined
Sep 9, 2010
Messages
22
Hello



An error in setupAudio is due to the program being unable to connect to the audio device. So either some other program is using the audio device or it doesn't like the sampling parameters the program is requesting.

Regards

Ian

Many thanks for your kind and quick reply, Ian. I keep trying! If any other Mac user could help me a bit... ;-)
 

IanWraith

Member
Joined
Sep 29, 2010
Messages
269
Location
ianwraith@gmail.com
Hello

Many thanks for your kind and quick reply, Ian. I keep trying! If any other Mac user could help me a bit... ;-)

I have just uploaded build 29 to Github which shows more info on any exception in setupAudio(). Could you download that build then run it and tell me what the error box that appears says.

Regards

Ian
 

funatic

Member
Joined
Sep 9, 2010
Messages
22
Hello



I have just uploaded build 29 to Github which shows more info on any exception in setupAudio(). Could you download that build then run it and tell me what the error box that appears says.

Regards

Ian

"No line matching interface TargetDataLine supporting format PCM_SIGNED 48000.0 Hz, 16 bit, mono, 2 bytes/frame, big-endian is supported"

Means that DMRdecoder cannot work with the new iMac internal soundcard or could I play with other settings? Thanks a lot once again!
 

IanWraith

Member
Joined
Sep 29, 2010
Messages
269
Location
ianwraith@gmail.com
Hello

"No line matching interface TargetDataLine supporting format PCM_SIGNED 48000.0 Hz, 16 bit, mono, 2 bytes/frame, big-endian is supported"

Means that DMRdecoder cannot work with the new iMac internal soundcard or could I play with other settings? Thanks a lot once again!

OK I must admit I know next to nothing about Macs. This suggests that the soundcard doesn't support the sampling rate or format the program requires and there isn't anything you can do sadly. Does this Mac have more than one soundcard ?

Regards

Ian
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Location
Virginia
Is this an endian issue? Should the program request big endian samples on an Intel Mac for example?
 

funatic

Member
Joined
Sep 9, 2010
Messages
22
Hello



OK I must admit I know next to nothing about Macs. This suggests that the soundcard doesn't support the sampling rate or format the program requires and there isn't anything you can do sadly. Does this Mac have more than one soundcard ?

Regards

Ian

No, the internal one only. Why?
 

IanWraith

Member
Joined
Sep 29, 2010
Messages
269
Location
ianwraith@gmail.com
Is this an endian issue? Should the program request big endian samples on an Intel Mac for example?

I hadn't thought about that !

Funatic could you email me directly. My gmail address is in the "About" menu item on the program. I can then email you some special builds to try on your Mac.

Regards

Ian
 

funatic

Member
Joined
Sep 9, 2010
Messages
22
I hadn't thought about that !

Funatic could you email me directly. My gmail address is in the "About" menu item on the program. I can then email you some special builds to try on your Mac.

Regards

Ian

Just sent you an email! Thanks a lot, Ian!!
 

IanWraith

Member
Joined
Sep 29, 2010
Messages
269
Location
ianwraith@gmail.com
Hello All

From what I have read today it appears that Java on the Mac only supports a sampling rate of 44.1 KHz and not the 48 KHz required by the program. So for now it appears the program is only for Windows and Linux PCs sadly.

Regards

Ian
 

jcardani

Member
Premium Subscriber
Joined
Jan 16, 2002
Messages
1,390
Location
Orlando, FL & Ocean City, NJ
Hi Ian,

The latest build of DMR decode is still using 100% of CPU on my Dell single core PC. The only difference is that the program is now stable and I can access the menu items but it still does not decode frames on that PC. The system configuration is a Dell Optiplex GX270 2.8 GHZ single core with 512 Meg Ram

thx
 

Forts

Mentor
Database Admin
Joined
Dec 19, 2002
Messages
6,807
Location
Ontario, Canada
Just an FYI... I grabbed build 29 today and I currently have it running on my Acer Netbook (with an Intel Atom N270 1.6ghz CPU). Seems to work great.... CPU shows around 35-50% while idle and jumps up to 75-80% while decoding.
 

Forts

Mentor
Database Admin
Joined
Dec 19, 2002
Messages
6,807
Location
Ontario, Canada
.....and I also let it run all night long, with no ill effects noted this morning. Great job on the updates!
 

RayAir

Member
Joined
Dec 31, 2005
Messages
1,937
OFFER:

$500 cash to the first person that writes a program to decode 4-slot OpenSky.
 
Status
Not open for further replies.
Top