Best setup for RDS?

Everything technical about radio can be discussed here, whether it's transmitting or receiving. Guides, charts, diagrams, etc. are all welcome.
Polecat
tower block dreamin
tower block dreamin
Posts: 273
Joined: Wed Nov 13, 2019 10:35 am
Location: South London

Re: Best setup for RDS?

Post by Polecat » Wed Apr 15, 2020 10:43 am

That couldn't be much easier to follow g33ky. Really appreciate it!

I take on board your comments too. Pretty sure I'll work it out. Will let you know how I get on later....
Polecat
No Groove Where I Come From

Polecat
tower block dreamin
tower block dreamin
Posts: 273
Joined: Wed Nov 13, 2019 10:35 am
Location: South London

Re: Best setup for RDS?

Post by Polecat » Wed Apr 15, 2020 6:31 pm

Hmmm not going to plan. I copied and pasted what you gave me and this is what happened (what I assume to be the command prompt is in bold and the rest is what I copied next to the $ sign and what I got back:

xxxxx@CMS-55-PC:~$ sudo apt-get install git build-essential libsndfile1-dev libao-dev libsamplerate0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git
E: Unable to locate package build-essential
E: Unable to locate package libsndfile1-dev
E: Unable to locate package libao-dev
E: Unable to locate package libsamplerate0-dev

I'm hoping that tells you more than it tells me!
Polecat
No Groove Where I Come From

Polecat
tower block dreamin
tower block dreamin
Posts: 273
Joined: Wed Nov 13, 2019 10:35 am
Location: South London

Re: Best setup for RDS?

Post by Polecat » Wed Apr 15, 2020 8:24 pm

Bit of research and I'm moving forward - 'apt-get update' solved that issue.

Now 'git: command not found' came up when I tried to run the next bit. Off to work this one out....wondering if this was a good idea after all haha
Polecat
No Groove Where I Come From

Polecat
tower block dreamin
tower block dreamin
Posts: 273
Joined: Wed Nov 13, 2019 10:35 am
Location: South London

Re: Best setup for RDS?

Post by Polecat » Wed Apr 15, 2020 10:19 pm

Jeez this is hard work.

So I hadn't installed git. Did that, entered the git clone command, and got yet another error message:

make: command not found

FFS! More searching and I solved that one with:

sudo apt-get install build-essential

Finally I got to run ./mpxgen and guess what...

cannot open sound device

Yep it's not talking to the soundcard.

I got this far....it's not gonna beat me!
Polecat
No Groove Where I Come From

User avatar
g33ky
tower block dreamin
tower block dreamin
Posts: 281
Joined: Tue Dec 03, 2019 10:39 am
Location: Wirral

Re: Best setup for RDS?

Post by g33ky » Wed Apr 15, 2020 10:54 pm

Polecat wrote: Wed Apr 15, 2020 10:19 pm Jeez this is hard work.

So I hadn't installed git. Did that, entered the git clone command, and got yet another error message:

make: command not found

FFS! More searching and I solved that one with:

sudo apt-get install build-essential

Finally I got to run ./mpxgen and guess what...

cannot open sound device

Yep it's not talking to the soundcard.

I got this far....it's not gonna beat me!
I knew something like this would happen. The problem is that Linux and Audio use entirely different sound systems. Linux uses ALSA whereas Windows uses DirectShow (I think anyway). Honestly on Windows you're better off looking at JMPX, it requires a virtual sound card to work but I can confirm it does actually work well on Windows.
FM for lyfe!

Polecat
tower block dreamin
tower block dreamin
Posts: 273
Joined: Wed Nov 13, 2019 10:35 am
Location: South London

Re: Best setup for RDS?

Post by Polecat » Wed Apr 15, 2020 11:50 pm

Oooh don't know if I can give up now g33ky!

I restarted the machine, entered
./mpxgen
and it returned
./mpxgen is a directory

Any idea how do I get the program to run again from the prompt?

I may end up going to jmpx but want to try and get this going before giving up on it.
Polecat
No Groove Where I Come From

Albert H
proppa neck!
proppa neck!
Posts: 2776
Joined: Tue Apr 05, 2016 1:23 am

Re: Best setup for RDS?

Post by Albert H » Thu Apr 16, 2020 1:53 am

You need a space:

./ mpxgen

./mpxgen would be a hidden directory (that's what the dot's for)!
"Why is my rig humming?"
"Because it doesn't know the words!"
;)

Polecat
tower block dreamin
tower block dreamin
Posts: 273
Joined: Wed Nov 13, 2019 10:35 am
Location: South London

Re: Best setup for RDS?

Post by Polecat » Thu Apr 16, 2020 8:50 am

Thanks Albert!
Polecat
No Groove Where I Come From

User avatar
g33ky
tower block dreamin
tower block dreamin
Posts: 281
Joined: Tue Dec 03, 2019 10:39 am
Location: Wirral

Re: Best setup for RDS?

Post by g33ky » Thu Apr 16, 2020 9:49 am

I think Albert is actually wrong. The program itself is in the mpxgen/src directory, so you'll need to:

cd mpxgen
cd src
./mpxgen
Albert H wrote: Thu Apr 16, 2020 1:53 am You need a space:

./ mpxgen

./mpxgen would be a hidden directory (that's what the dot's for)!
If it were a hidden directory it would be .mpxgen, having ./mpxgen would be having a whole hidden root directory :tup.
FM for lyfe!

Polecat
tower block dreamin
tower block dreamin
Posts: 273
Joined: Wed Nov 13, 2019 10:35 am
Location: South London

Re: Best setup for RDS?

Post by Polecat » Thu Apr 16, 2020 12:30 pm

Starting to get into this!

So I'm in the src directory, tried
./mpxgen
and got the same
./mpxgen: is a directory
error.

Even tried with Albert's space and got
./: is a directory

Which I think supports your point g33ky

Quite a lot of stuff online about this error message but the answers aren't helping me like they did on the installation errors.

Any other thoughts?

Polecat
No Groove Where I Come From

User avatar
g33ky
tower block dreamin
tower block dreamin
Posts: 281
Joined: Tue Dec 03, 2019 10:39 am
Location: Wirral

Re: Best setup for RDS?

Post by g33ky » Thu Apr 16, 2020 1:05 pm

Type 'pwd' then type 'ls' for me, whats the output?
FM for lyfe!

Polecat
tower block dreamin
tower block dreamin
Posts: 273
Joined: Wed Nov 13, 2019 10:35 am
Location: South London

Re: Best setup for RDS?

Post by Polecat » Thu Apr 16, 2020 1:10 pm

pwd returned
/home/myusername/mpxgen/src

Is returned
Command not found

is with lowercase i retuned the same error
Polecat
No Groove Where I Come From

User avatar
g33ky
tower block dreamin
tower block dreamin
Posts: 281
Joined: Tue Dec 03, 2019 10:39 am
Location: Wirral

Re: Best setup for RDS?

Post by g33ky » Thu Apr 16, 2020 1:25 pm

Polecat wrote: Thu Apr 16, 2020 1:10 pm pwd returned
/home/myusername/mpxgen/src

Is returned
Command not found

is with lowercase i retuned the same error
l as in LMW :tup
FM for lyfe!

Polecat
tower block dreamin
tower block dreamin
Posts: 273
Joined: Wed Nov 13, 2019 10:35 am
Location: South London

Re: Best setup for RDS?

Post by Polecat » Thu Apr 16, 2020 1:29 pm

Yep, I entered 'Is' and it retuned 'command not found'

Only tried 'is' in case it was a mis-type.
Polecat
No Groove Where I Come From

User avatar
g33ky
tower block dreamin
tower block dreamin
Posts: 281
Joined: Tue Dec 03, 2019 10:39 am
Location: Wirral

Re: Best setup for RDS?

Post by g33ky » Thu Apr 16, 2020 1:30 pm

Polecat wrote: Thu Apr 16, 2020 1:29 pm Yep, I entered 'Is' and it retuned 'command not found'

Only tried 'is' in case it was a mis-type.
Its an L not an I :smoke
FM for lyfe!

Polecat
tower block dreamin
tower block dreamin
Posts: 273
Joined: Wed Nov 13, 2019 10:35 am
Location: South London

Re: Best setup for RDS?

Post by Polecat » Thu Apr 16, 2020 1:34 pm

Meanwhile, for any other Windows users out there, I downloaded JMPX and got it working inside 10 mins.

Already had Virtual Audio Cable installed. That worked straight away as the music software output and jmpx input.

Far simpler than stero tool and a good call.

Now, back to mpxgen....
Polecat
No Groove Where I Come From

Polecat
tower block dreamin
tower block dreamin
Posts: 273
Joined: Wed Nov 13, 2019 10:35 am
Location: South London

Re: Best setup for RDS?

Post by Polecat » Thu Apr 16, 2020 1:39 pm

@g33ky
l as in lowercase L? Doh!

Okay, now we're motoring. That returned:
control_pipe.c cpu.c fm_mpx.c Makefile mpx_carriers.h mpx_gen.c rds.h waveforms.c
control_pipe.h cpu.h fm_mpx.h mpx_carriers.c mpxgen rds.c stereo_44100.wav waveforms.h
Polecat
No Groove Where I Come From

User avatar
g33ky
tower block dreamin
tower block dreamin
Posts: 281
Joined: Tue Dec 03, 2019 10:39 am
Location: Wirral

Re: Best setup for RDS?

Post by g33ky » Thu Apr 16, 2020 1:43 pm

Polecat wrote: Thu Apr 16, 2020 1:39 pm @g33ky
l as in lowercase L? Doh!

Okay, now we're motoring. That returned:
control_pipe.c cpu.c fm_mpx.c Makefile mpx_carriers.h mpx_gen.c rds.h waveforms.c
control_pipe.h cpu.h fm_mpx.h mpx_carriers.c mpxgen rds.c stereo_44100.wav waveforms.h
And doing "./mpxgen" in this folder says its a directory? Hmm.

Do "rm -rf mpxgen" then type "make" again (make sure you do the rm command exactly as i stated it otherwise it could possibly remove other stuff accidentally, I'm sure some Linux noobs have done it at some point lol)
FM for lyfe!

Polecat
tower block dreamin
tower block dreamin
Posts: 273
Joined: Wed Nov 13, 2019 10:35 am
Location: South London

Re: Best setup for RDS?

Post by Polecat » Thu Apr 16, 2020 1:55 pm

Did the rm command ok

But 'make' returned
No targets specified and no make file found. Stop.

Polecat
No Groove Where I Come From

User avatar
g33ky
tower block dreamin
tower block dreamin
Posts: 281
Joined: Tue Dec 03, 2019 10:39 am
Location: Wirral

Re: Best setup for RDS?

Post by g33ky » Thu Apr 16, 2020 2:02 pm

Ok I have no idea how your directory structure is laid out for it to say that. It's easier to start again, really. Restart the Debian installation (from fresh if you know how) and do the steps from viewtopic.php?f=11&t=2494#p28157 this post again, it worked the first time.
FM for lyfe!

Post Reply