maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] QRadio (https://talk.maemo.org/showthread.php?t=67917)

gionni88 2011-01-05 21:24

[Announce] QRadio
 
QRadio is an FM Radio application written in C++/Qt.
It uses the QtMobility/Multimedia library and has a "digital" look.

Actually on Extras-Devel (0.4.1 version).

Features:
  • 3 sets of favourite stations that can be swapped on the go.
  • 4 quickaccess buttons (1)
  • reads RDS metadata (station name & station program).
  • freq manual input option.
  • shows signal strenght.
  • scan up and down fuctions. (2)
  • fullscreen mode.
  • sets can be renamed.
  • stations list can be sorted and managed easily. (9)
  • font can be changed. (4)
  • 4 new fonts included in the package. (5)
  • can output to speakers. (7)
  • 87.5-108.0 freq range available. (8)

Requested features:
  • Wider freq range: not possible, or solution not in my knowledge.
  • Changing freq with a slider: rejected

Current bugs:
  • Radio suddenly stops working: this is not something depending on the code itself and currently I have found no way to fix it. Restarting radio app works to getIf you have Autodisconnect disabling bluetooth, change it since bluetooth and fm receiver are on the same hardware chip and disabling one disable both. audio back.
  • Sound not playing while on silent mode: standard behavior from Maemo
  • Sound stutters when switching apps or locking/unlocking device: Maemo standard behavior, app is not treated like a system app and doesn't get an high priority



QRadio

Radio Screen
http://img600.imageshack.us/img600/1...1042514480.png


(1) To set the quick access button to current freq tap and hold on it for more than 1sec. To go to the shown freq of a button just short tap on it.


(5) The new fonts are blackcastlemf bleedingcowboys destructobeambb_reg digital7. They all go to /usr/share/fonts/ folder.

rajil.s 2011-01-05 21:28

Re: [Announce] QRadio
 
awesome, finally a much needed digital radio.

raily 2011-01-05 21:42

Re: [Announce] QRadio
 
Wow great. Thank you. I am looking forward to a stable version in extras-testing of this because the fm-radio app is not working for me since pr 1.3

mattbutsko 2011-01-05 22:30

Re: [Announce] QRadio
 
Awesome. I find it very hard to scroll in the current FM radio, half the time the damn thing scrolls in the wrong direction, still a great player though. Can't wait to try this one.

Mentalist Traceur 2011-01-05 22:41

Re: [Announce] QRadio
 
Quote:

Originally Posted by raily (Post 912594)
Wow great. Thank you. I am looking forward to a stable version in extras-testing of this because the fm-radio app is not working for me since pr 1.3

I had the same issue with the latest one, I eventually figured out it was missing a specific symlink. Just, wasn't there, at. all. Make the symlink, and it works. I don't remember were, but if you want, I'll dig around again and figure it out.

@gionni88: This is really cool, HOWEVER: Does it allow you to tune down all the way to 76.0 MHz? Because if it can't receive (don't really mind if it can't auto-find stations on it, though) all the way down to the hardware limit, like the latest FM Radio can, this, unfortunately, not as useful to me.

slender 2011-01-05 23:12

Re: [Announce] QRadio
 
Looks nice. If possible lend some ideas from here:
http://talk.maemo.org/showpost.php?p=889329&postcount=9

tusharmax 2011-01-05 23:33

Re: [Announce] QRadio
 
finally someone did what had to be done a long time back..a very long time back..kudos man !

gionni88 2011-01-06 10:35

Re: [Announce] QRadio
 
Quote:

Originally Posted by Mentalist Traceur (Post 912655)
Does it allow you to tune down all the way to 76.0 MHz? Because if it can't receive (don't really mind if it can't auto-find stations on it, though) all the way down to the hardware limit, like the latest FM Radio can, this, unfortunately, not as useful to me.

I don't know if it is possible, this app goes from 87.5 to 108.0 MHz by itself: it's not me setting that freq span but the Mobility library. Only Japan has a freq span of 76-90 MHz, so I guess it will go to those freq as soon as you switch to Japan Firmware! So I guess that if you mod the firmware to go to those freq, surely this app will let you pick that freq range since I have not put any block and autoscan should keep working.

EDIT: Ok I got it, while the radio is open with root rights:
"echo 3 > /sys/class/i2c-adapter/i2c-3/3-0022/region" and restart QRadio.
And it goes from 76 to 90. I can't realize if it works as expected since I have no way to check it without a trip to Japan, so I have to ask you to try it and let me know if it works.
Also the rds is in the same folder, just in exadecimal, will get a look at it.

EDIT2: To get it back to europe range, echo 2.

gionni88 2011-01-06 10:38

Re: [Announce] QRadio
 
Quote:

Originally Posted by slender (Post 912678)
Looks nice. If possible lend some ideas from here:
http://talk.maemo.org/showpost.php?p=889329&postcount=9

Thanks, will do. Anyway, the saved station list is "similar to that one".

droitwichgas 2011-01-06 10:49

Re: [Announce] QRadio
 
Not sure if anybody else has come across this problem but atfer using the radio for around 15 mins it suddenly stopped working, even re-booting my phone won't get the radio to work again! The old FM radio app works without any problems so I assume it must therefore be an issue with the new app?



For the future developments:-

I wonder if future updates could allow the station name to be shown by being entered manually, whilst you are working on the RDS side of things?

I assume Set 1, Set 2 etc refers to the station names, if so, any chance of more "Set"'s being added as 3 stations is a fairly limited number?

Also the frequency of 102.20 etc needs to be entered as 10220, and also shows as this on the app, I wonder it it is possible to upgarade the app to show the correct frequency?

gazza_d 2011-01-06 10:57

Re: [Announce] QRadio
 
Ace! thanks very much.

I think the sets refer to 3 different "sets" of favorites, or presets similar to what most car stereos have. At least that it is what the functionality appears to be to me.

I have a suggestion, and that it is to enable scanning, and automatically saving of the 5 or 6 strongest stations to one of the sets. That would be really useful.

thanks again, very much appeciated.

gionni88 2011-01-06 11:15

Re: [Announce] QRadio
 
Quote:

Originally Posted by droitwichgas (Post 913074)
1) Not sure if anybody else has come across this problem but atfer using the radio for around 15 mins it suddenly stopped working, even re-booting my phone won't get the radio to work again! The old FM radio app works without any problems so I assume it must therefore be an issue with the new app?

2) I wonder if future updates could allow the station name to be shown by being entered manually, whilst you are working on the RDS side of things?

3) I assume Set 1, Set 2 etc refers to the station names, if so, any chance of more "Set"'s being added as 3 stations is a fairly limited number?

4) Also the frequency of 102.20 etc needs to be entered as 10220, and also shows as this on the app, I wonder it it is possible to upgarade the app to show the correct frequency?

1) Sadly, it's something I can't manage. I rely on the Mobility library, and I just start and stop the radio with .start() and .stop() methods. The suddenly stops are randoms, restarting the app works to fix it, so I check if restarting the radio while the app is up works.

2) Yes, it's easily doable, custom string or rds data.

3) No, each set may have all the saved stations you wish. If you use the radio in 2different places there may be the possibility that same radio stations have different frequencies, that's why there are 3 sets available.

4) Yes, it's on todolist.

Radicalz38 2011-01-06 11:33

Re: [Announce] QRadio
 
Hi gionni
Mind if I ask if this radio app would work on our country? As the limit of frequency in our country is 76.0 MHz ~ 108.0 MHz most music stations are between those frequencies but T.V channels(yes you can listen to T.V stations here) are located on the very lowest/highest ranges of the frequency.

droitwichgas 2011-01-06 11:35

Re: [Announce] QRadio
 
Quote:

Originally Posted by gionni88 (Post 913095)
1) Sadly, it's something I can't manage. I rely on the Mobility library, and I just start and stop the radio with .start() and .stop() methods. The suddenly stops are randoms, restarting the app works to fix it, so I check if restarting the radio while the app is up works.

2) Yes, it's easily doable, custom string or rds data.

3) No, each set may have all the saved stations you wish. If you use the radio in 2different places there may be the possibility that same radio stations have different frequencies, that's why there are 3 sets available.

4) Yes, it's on todolist.


Thanks for the quick reply, could you just give me a little more info. on how you stop & start the app as it is not clear to me? Do I need to use Xterm?

Is there anyway the community can help you track down the issue causing the problem of the sudden stops as the old FM Radio doesn't seem to have this issue?

gionni88 2011-01-06 11:53

Re: [Announce] QRadio
 
Quote:

Originally Posted by Radicalz38 (Post 913107)
1) Mind if I ask if this radio app would work on our country?

2)As the limit of frequency in our country is 76.0 MHz ~ 108.0 MHz most music stations are between those frequencies but T.V channels(yes you can listen to T.V stations here) are located on the very lowest/highest ranges of the frequency.

1) Which Country are you writing about?

2) This app works with the standard radio driver, which picks the freq range by the region number.
http://talk.maemo.org/member.php?u=36894
I have just checked a bit this morning, but seams that:
2 (the one I have) is for Europe region
1 should be USA region since freq range is 87.5 - 108 aswell
3 should be Japan region since freq range is 76-90

Everytime region is switched radio driver must be restarted. And you can have only one of those region ranges active at a time.

gionni88 2011-01-06 12:03

Re: [Announce] QRadio
 
Quote:

Originally Posted by droitwichgas (Post 913108)
1) on how you stop & start the app as it is not clear to me? Do I need to use Xterm?

2) Is there anyway the community can help you track down the issue causing the problem of the sudden stops as the old FM Radio doesn't seem to have this issue?

1)I add 1 more menu option (Restart Radio) which handles it by itself.

2) The problem is the FM Radio app is written in Python/gtk and it should handle the FM recevier driver by itself (http://wiki.maemo.org/N900_FM_radio_receiver), while I use C++/Qt and I don't access the driver by itself but with QtMobility library. Also, my Python and gtk skills are under zero:
(http://doc.qt.nokia.com/qtmobility-1...adiotuner.html). My idea is to use the state enumerate type of the radio class to check when it stops, so that it autorestarts itself.

gazza_d 2011-01-06 12:06

Re: [Announce] QRadio
 
Quote:

Originally Posted by droitwichgas (Post 913108)
Thanks for the quick reply, could you just give me a little more info. on how you stop & start the app as it is not clear to me? Do I need to use Xterm?

Is there anyway the community can help you track down the issue causing the problem of the sudden stops as the old FM Radio doesn't seem to have this issue?

I suffered terribly from the other FM radio app stopping, and losing audio. For me it was generally when system notifications sounded, and was a big enough pain for me to stop using it. Often the radio just would not work again until a hard power off. I think it was the chip being left high and dry by the app.

Just been using Qradio for about the last hour without interruption, and for me at least the notification issue I described above did not happen for me.

colm.smyth 2011-01-06 12:45

Re: [Announce] QRadio
 
Brilliant little app.

Some things im sure you are working and some issues below:

1) Please make the station number have a precision, for example 98.2fm instead of 9820

2) Automatic Radio Station Name, it would be great if the station name is saved, or allow user to name the station manually

3) Once saved, allow ordering of stations

4) Add a volume control to the screen, I know you can use the phone volume but would be nice to have a radio volume that wont turn the phone volume down

Issues:

Sound cuts out when I get email or sms

Great work though

Quote:

Originally Posted by gionni88 (Post 912580)
QRadio is an FM Radio application written in C++/Qt.
It uses the QtMobility/Multimedia library and has 3 renamable sets of saved stations available with a clean interface. It provides a fast manual search, a seek up and down search and a button to go to next saved station.

Actually on Extras-Devel (0.0.3 version).

ToDoList:
  • Saving stations with a custom string.
  • Working metadata.
  • Custom Station name.
  • Fixing the suddenly stops.
  • 92.6 Freq format.
  • Switching RegionZones inside the app.
  • Integration with Recaller(switch input to device > record) if possible.
  • AutoScan saving to list.

http://img217.imageshack.us/img217/5...1010319585.png

http://img534.imageshack.us/img534/3...1010319590.png

QRadio


fms 2011-01-06 12:50

Re: [Announce] QRadio
 
When started, made funny noise, reinitialized bluetooth, and killed all audio completely (system notifications and Media Player too). Had to reboot the device to get the audio back.

rotoflex 2011-01-06 12:59

Re: [Announce] QRadio
 
Very nice.

Observations:
1. Always shows the message "No Signal", even when a station is tuned in & playing.

2. When started without the headphones attached, if the headphones are then attached, the radio still does not use them as an antenna. But then somehow the microphone turns on and transmits sound from the microphone to the headphones.

gmuslera 2011-01-06 14:03

Re: [Announce] QRadio
 
I must be missing something. The program runs, need to have the headphones to have signal, and correctly find the stations with them and gives good signal strenght, but... no sound. I can hear me interacting with menus and programs, can load the old radio program and works well, but get no sound from the radio stations in this one.

Could be related with the power kernel or not installed dependencies?

laasonen 2011-01-06 14:18

Re: [Announce] QRadio
 
Usually I can't hear even noise, but two times I have managed to get it playing it enabled bluetooth and instantly when disabled bluetooth it stopped working.

It would be nice, if you could open frequency selector by clicking current frequency. Frequency selector could also be two sliders like in the transmitter.

TomJ 2011-01-06 15:07

Re: [Announce] QRadio
 
Quote:

Originally Posted by laasonen (Post 913248)
Usually I can't hear even noise, but two times I have managed to get it playing it enabled bluetooth and instantly when disabled bluetooth it stopped working.

It would be nice, if you could open frequency selector by clicking current frequency. Frequency selector could also be two sliders like in the transmitter.

AIUI, Bluetooth and the FM receiver are on the same chip, so you can't activate one without the other. See many threads passim.

gionni88 2011-01-07 15:24

Re: [Announce] QRadio
 
Version 0.1.1 is now in extras-devel.
I have switched to "89.5" format, implemented the rds data, fixed some bugs and allowed the app to have a customizable font. I have even put 4more fonts inside the package, here there are some screens:

digit7 font:
http://img832.imageshack.us/img832/5...1010713224.png

BlackCastleMF font:http://img211.imageshack.us/img211/4...1010713262.png

destructobeambb_reg font:
http://img156.imageshack.us/img156/2...1010713265.png

Bleeding Cowboys font:
http://img690.imageshack.us/img690/2...1010715360.png

Can't fix the random stops, I guess Multimedia library has a bug: on documentation I have to start and stop the radio object, while on the app I don't even need to start it and stopping doesn't work, so no restart option available.

No idea on how to set speakers as output, on web documentation I read about QAudioDeviceControl while on sdk there is no trace about it, and no clue on how to use amixer to set it, if someone has an idea I'm all ears.

Custom Station name strings aborted, while right now I use just a combobox with stringlist to manage saved stations, I'd have to load a custom circular list, a custom widget to pick stations and an xml parser to save. Too cpu and ram usage in my opinion.

Switching regionzone delayed till I know it works editing that region file.

Integration with recaller not possible, no DBUS or terminal way to call it.

AutoScan option still on todolist.

PS: Since I have changed the setting file, I have forced a remove in this version package, so who upgrades from previous version will lose those (well, package is in devel for a reason) .

gruik 2011-01-07 15:53

Re: [Announce] QRadio
 
First, I wanna send you my congrats.
I've tested your application (0.1.1) and there are some bugs on this:

-as you said, random seek is buggy
-i think it's more comfortable to access stations trough direct buttons (5 or 6?)
-maybe a mono/stereo reception option?
-an FM transmitter option?

Shinigamijim 2011-01-07 18:56

Re: [Announce] QRadio
 
tnahk you thank you!!!!men you just solve my problems i hate the other fm app but yours wow nice job UI is good and quality is just amazing!

again thaaaaaaaaannnnkkk youuu

slender 2011-01-07 20:13

Re: [Announce] QRadio
 
btw.
Is it possible to tune to only mono.

I ask this because I remember that when I had radio that had tuning knob and stereo<->mono switcher I could switch to mono only when reception got bad on stereo mode. And it really made difference! Fact is that fm-radio receiver on mobile phones is generally quite bad but I would not mind if I could at least listen it only in mono. Also if Iīm listening speak only then I do not mind if itīs mono.

So is this technically even possible on N900 and does it make any difference to reception on weak signal areas.

.edit
tooslow :) gruik seems to have mentioned about this.
@gruik What are you talking about fm-transmitter? That doesnīt make any sense.

gionni88 2011-01-07 23:28

Re: [Announce] QRadio
 
Quote:

Originally Posted by gruik (Post 914202)
1)as you said, random seek is buggy

2)i think it's more comfortable to access stations trough direct buttons (5 or 6?)

3)maybe a mono/stereo reception option?

4)an FM transmitter option?

1) Random seek? Random stops or bugged seeking? Seeking works as it should.

2)There is no space for those in mainwindow, I did something like this:
http://img42.imageshack.us/img42/336...1010800213.png

3)It's done with new version.

4)FM Receiver != FM Transmitter

Mentalist Traceur 2011-01-08 00:41

Re: [Announce] QRadio
 
I see this app is coming along nicely. I will test the region thing in a bit, but something I noticed is that the FM-Radio-wide package doesn't listen to what your region is set to. It's hardcoded to a specific region that enables the entire 76-108 band. I lack the skill in either of these programs' languages to give you a detailed analysis myself, though, and definitely don't know if there's a way you can do the same thing from within the parts of the code that's yours - sounds like you may have to fight QtMobility or whatever on it.

However, here's the page where the developer of the other radio app mentions (in the 'changes' part) what he set to what... I don't know how much this helps, if any: http://maemo.org/packages/view/fmradio-wide/

Either way, keep up the great work.

Bingley Joe 2011-01-08 20:11

Re: [Announce] QRadio
 
I'd love to try this app out, but I can't get it to install -- I get an error in FapMan saying that /home/user/.config/Maemo/qradio.conf couldn't be removed.. which makes sense given that the app has never been installed on my N900 ;)

I tried creating a blank document with that name/location, but I wasn't able to fool the install script.. any ideas?


EDIT: NM. I rebooted the phone and tried again (so that I could verify that I had written out the error message accurately), and it installed just fine this time. No idea what was going on there, but I'm looking forward to testing this app out on my daily commutes :)

slender 2011-01-08 20:13

Re: [Announce] QRadio
 
bummer :|
Mono mode doesnīt sound any different and it doesnīt make noisy channels any better. I wonder if itīs really working or am I doing something wrong.

gionni88 2011-01-08 20:22

Re: [Announce] QRadio
 
Quote:

Originally Posted by Bingley Joe (Post 915189)
I'd love to try this app out, but I can't get it to install -- I get an error in FapMan saying that /home/user/.config/Maemo/qradio.conf couldn't be removed.. which makes sense given that the app has never been installed on my N900 ;)

I tried creating a blank document with that name/location, but I wasn't able to fool the install script.. any ideas?

Which version are you trying to install? There is 0.2.0 on devel, which won't give you any error about the config file.

EDIT: Maybe you refreshed the repos, since only previous versions used to delete that file. Anyway, it wasn't stopping you from installing the app, I even renamed the file to avoid it being deleted.

gionni88 2011-01-08 20:33

Re: [Announce] QRadio
 
Quote:

Originally Posted by slender (Post 915191)
bummer :|
Mono mode doesnīt sound any different and it doesnīt make noisy channels any better. I wonder if itīs really working or am I doing something wrong.

I have no clue, this is what I do:
Code:

void Radio::forceMono()
{
    radio->setStereoMode(QRadioTuner::ForceMono);
    maemoBanner("Radio set to Mono Mode");
}

void Radio::forceStereo()
{
    radio->setStereoMode(QRadioTuner::ForceStereo);
    maemoBanner("Radio set to Stereo Mode");
}

I guess it's another bug of qtmobility. Hope new Libraries will fix it.

About the random stops, I think it's pulseaudio crashing, not the radio. Infact rds data keeps refreshing and it happens when cpu is at 100% load. I had the radio running alone for more than 4hours, and as soon as I pushed cpu to 100% it stopped.

Crogge 2011-01-08 20:35

Re: [Announce] QRadio
 
It looks not bad so far but I can't tune below 87,5 MHz like with "fmradio-wide" + "region mod", when will be lower frequencies supported?

rotoflex 2011-01-08 20:37

Re: [Announce] QRadio
 
Quote:

Originally Posted by slender (Post 915191)
bummer :|
Mono mode doesnīt sound any different and it doesnīt make noisy channels any better. I wonder if itīs really working or am I doing something wrong.

It depends on how the FM Mono mode you have got was created.

If they are creating mono for you just by taking the stereo audio & then summing it to mono before playing it, you get no better reception.

If the FM mono is received like the original FM mono receivers did it, that is by only using the L+R baseband signal and rejecting everything else, then yes the reception would be better.

Just summing the audio output of an FM stereo receiver does not improve the reception.

http://en.wikipedia.org/wiki/FM_stereo#FM_stereo

Alb3rtO 2011-01-08 20:37

Re: [Announce] QRadio
 
Thank you very much ... We really need something like this and we are looking for a long time!!!

MohammadAG 2011-01-08 20:52

Re: [Announce] QRadio
 
A quick hack would be a wrapper script that's in sudoers that can echo 2/3 to the sysfs file, when a user requests a value under that currently set, you echo 3 for example, if the user goes back to a range he needs, you switch to 2.

You could make it transparent to the user, or you could add a "Switching frequency range" banner.

gionni88 2011-01-08 20:58

Re: [Announce] QRadio
 
Quote:

Originally Posted by Crogge (Post 915204)
It looks not bad so far but I can't tune below 87,5 MHz like with "fmradio-wide" + "region mod", when will be lower frequencies supported?

It already supports lower frequencies. While radio is up open xterm and as root go to /sys/class/i2c-adapter/i2c-3/3-0022/region and do
Code:

echo 3 > region
than restart radio. You can go till 76 now. I can automate that within the app, but till I don't know if this workaround works, I can't do that.

slender 2011-01-08 21:02

Re: [Announce] QRadio
 
gionni88,
After quickly reading these:
http://doc.qt.nokia.com/qtmobility-1...adiotuner.html
could it be that you can forcemono only before evoking start()

casper27 2011-01-08 21:07

Re: [Announce] QRadio
 
After installing and trying, all audio input including making calls was disabled, the person on the other end could not hear me. After reboot audio went back to normal. I will investigate further and report back. Anyone else had same outcome?


All times are GMT. The time now is 07:07.

vBulletin® Version 3.8.8