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-13 12:30

Re: [Announce] QRadio
 
As I thought, it didn't resolve anything. I'll push another version using standard libs back.

Wikiwide 2011-01-13 12:56

Re: [Announce] QRadio
 
Quick reply...
I am reading FM receiver code.
http://mxr.maemo.org/fremantle/sourc...adio-bcm2048.c

Correct me if I'm wrong.

It has function bcm2048_set_region
It is called only once, during bcm2048_probe (driver loading?)
It sets region to BCM2048_DEFAULT_REGION
It is 0x02 .
Region 2 is Europe, channel_spacing 10, bottom_frequency 87.5, top_frequency 108, deemphasis 50.

Therefore, Nokia has written the driver without any way to check the region during loading of the drivers. Hard-coded to Europe.

I will be glad if somebody proves me wrong.

slender 2011-01-13 13:40

Re: [Announce] QRadio
 
Something is corrupted in background image.

some ideas:
http://img193.imageshack.us/img193/3935/ideasf.png

gionni88 2011-01-13 13:56

Re: [Announce] QRadio
 
Quote:

Originally Posted by slender (Post 919505)
Something is corrupted in background image.

Background image is taken from standard multimedia background. With BlackPlastic theme it works really nice, if another theme gives trouble you can change it by replacing /opt/qradio/background.png symlink with another link or a background image.

For the slider, there is FMRadio to tune it using fingers. Manual input and stations list can be accessed from menu. Last one can be accessed from the bottom left button aswell.

Will type some instructions at first post when I'm done fixing some scripts.

Ulukai 2011-01-13 14:33

Re: [Announce] QRadio
 
Quote:

Originally Posted by Wikiwide (Post 919476)
It has function bcm2048_set_region
It is called only once, during bcm2048_probe (driver loading?)
It sets region to BCM2048_DEFAULT_REGION
It is 0x02 .
Region 2 is Europe, channel_spacing 10, bottom_frequency 87.5, top_frequency 108, deemphasis 50.

Skyscraper and jacekowski did also dig in it: http://mg.pov.lt/maemo-irclog/%23mae...08-22.log.html
See at 13:58, there jacekowski found the spot where to change the DEFAULT_REGION within the binary of bcm2048 module. Skyscraper tried to change it to japan-wide, but it didn't work.
I also tried this approach, but it didn't change anything, I still get a "VIDIOC_S_FREQUENCY: failed: Input/output error"

gionni88 2011-01-13 15:13

Re: [Announce] QRadio
 
0.3.2 version pushed and seams to work well. I have updated post #1 with new info and screenshots, check it if needed.

guyr 2011-01-13 15:23

Re: [Announce] QRadio
 
Quote:

Originally Posted by gionni88 (Post 919443)
you can plug in and out headphones to fix it. It's a strange bug since I'm not touching input in the code, so I have no clue while it happens.
I have to force receiver chip off when radio app is closed aswell or you can ear radio while calling someone. It's a bug that happens too with FMRadio.

The plug in and out do not fix the problem for me. I hear the microphone of the n900 instead of the radio when i exit qradio
and launch it again.
For me, the problem never occurs with FM radio ...
I can fix the problem with rebooting the phone or opening the mediaplayer and playing a song before launching qradio ...

[EDIT] RESOLVED : i can't reproduce this error in 0.3.2. Thank you.

gruik 2011-01-13 16:39

Re: [Announce] QRadio
 
Waouh!!! congrats for the new features! I really like to test your Qradio but I send back my N900 this morning! :( It didn't recognize Sim cards!

guyr 2011-01-13 17:54

Re: [Announce] QRadio
 
Hi,
With 0.3.2 (new GUI) there is a problem with screen refresh (gliches).
In 'About' menu the version is always 0.3.0
The 'manage stations' don't work (can't move or delete stations).
I can't see RDS anymore ...
If there is a way to manage translation. I propose to make the french translation ...

gionni88 2011-01-13 18:09

Re: [Announce] QRadio
 
My bad, I forgot to change About to 0.3.2.
Manage stations window works, I forgot to say that you have to hold the button to move or delete stations...
Rds is working, be sure the station you are on has rds stream.
About the glitches, have you removed the background.png file?

Yes it can be translated and it's really easy. I can provide you the translation file to edit with Qt Linguist since I don't know any french other than je t'aime.

guyr 2011-01-13 20:13

Re: [Announce] QRadio
 
Quote:

Originally Posted by gionni88 (Post 919667)
My bad, I forgot to change About to 0.3.2.
Manage stations window works, I forgot to say that you have to hold the button to move or delete stations...
Rds is working, be sure the station you are on has rds stream.
About the glitches, have you removed the background.png file?

Yes it can be translated and it's really easy. I can provide you the translation file to edit with Qt Linguist since I don't know any french other than je t'aime.

Thank you with your answer you fix all my problem.
There was no background.png in /opt/qradio so i create a link like
this :
ln -s /opt/usr/share/themes/marina/mediaplayer/background.png
in /opt/qradio
Now there is no glitches and i can see RDS ...
I notice that i loose the sound when i receive an email notification.
I need to exit qradio and launch it again to fix the problem.
Thank you to send me the file to translate.

Radicalz38 2011-01-13 20:26

Re: [Announce] QRadio
 
At last my most requested feature! Thanks alot gionni! :D
Better bold those warning regarding volume haha not all people read guides thoroughly else we might leave 1/24 of the n900 users deaf. lol!

slender 2011-01-13 21:29

Re: [Announce] QRadio
 
Quote:

Originally Posted by gionni88 (Post 919517)
Background image is taken from standard multimedia background. With BlackPlastic theme it works really nice, if another theme gives trouble you can change it by replacing /opt/qradio/background.png symlink with another link or a background image.

For the slider, there is FMRadio to tune it using fingers. Manual input and stations list can be accessed from menu. Last one can be accessed from the bottom left button aswell.

Will type some instructions at first post when I'm done fixing some scripts.

Hmm. I have default theme and background is corrupted/glitched right out of package. Weird.

My point was to give you ideas on how to make it user friendlier. I know all the settings and stuff QRadio currently is able to do. Less taps/clicks -> better usage. FMradio app is bit slow to use. Whole point in my idea is to have slider -> instant update of frequencies shown under it (FAST) -> after finger is raised then app tunes to that channel.

Harick 2011-01-13 22:32

Re: [Announce] QRadio
 
thanks for the custom background, just with that we can customize the radio to our own taste :)
a quick background since i dont have much time to play with ps

http://img59.imageshack.us/img59/335...1011319243.png

Wikiwide 2011-01-13 23:29

Re: [Announce] QRadio
 
Quote:

Originally Posted by Ulukai (Post 919537)
Skyscraper and jacekowski did also dig in it: http://mg.pov.lt/maemo-irclog/%23mae...08-22.log.html
See at 13:58, there jacekowski found the spot where to change the DEFAULT_REGION within the binary of bcm2048 module. Skyscraper tried to change it to japan-wide, but it didn't work.
I also tried this approach, but it didn't change anything, I still get a "VIDIOC_S_FREQUENCY: failed: Input/output error"

Interesting...
Can somebody explain what's written in
http://do1not3panic8.blogspot.com/20...a-n900-fm.html
?
Google Translate confuses me completely.
I just want to know: success or failure, if success, then how...

EDIT: I'm experimenting with v4l2-ctl in normal range.
I have successfully set and read frequencies of transmitter and receiver.
(Though I have had several "VIDIOC_S_FREQUENCY: failed: Input/output error" before I made radio work, all this with normal binary and normal frequencies)
So, how do I change a binary and what binary should I change?

delmar 2011-01-14 13:29

Re: [Announce] QRadio
 
I've got an update to version 0.3.5

Has somebody the changelog?

Thanks

Ulukai 2011-01-14 14:06

Re: [Announce] QRadio
 
Quote:

Originally Posted by Wikiwide (Post 919859)
Can somebody explain what's written in
http://do1not3panic8.blogspot.com/20...a-n900-fm.html
?
Google Translate confuses me completely.
I just want to know: success or failure, if success, then how...

For me it looks like it doesn't work, as it seems that he is just playing around with those /sys/..../region settings. That didn't work for me. But you are right, GoogleTranslate is really bad with japanese. Maybe here is some japanese guy who can tell us what it says?!

Quote:

Originally Posted by Wikiwide (Post 919859)
So, how do I change a binary and what binary should I change?

Get the file /lib/modules/current/radio-bcm2048.ko from your device, open it in a hex editor, go to position 0x2774. According to jacekowski this is the position which holds the DEFAULT_REGION value. There I changed 0x02 to 0x04 and put the file back to my N900.

After that change, v4l2-ctl shows the japan-wide's range by default:
Code:

Tuner:
        Name                : FM Receiver
        Capabilities        : 62.5 Hz stereo
        Frequency range      : 76.0 MHz - 108.0 MHz

But when I try to tune to a frequency lower than 87.5, it still fails:
Code:

Nokia-N900:/home/user# ./v4l2-ctl -d /dev/radio1 -f 95.8 
Frequency set to 1532800 (95.800000 MHz)
Nokia-N900:/home/user# ./v4l2-ctl -d /dev/radio1 -f 86.5 
VIDIOC_S_FREQUENCY: failed: Input/output error
Nokia-N900:/home/user# ./v4l2-ctl -d /dev/radio1 -f 90.0
Frequency set to 1440000 (90.000000 MHz)

The problem seems to be somewhere deeper...

cincibluer6 2011-01-15 17:17

Re: [Announce] QRadio
 
Wow, awesome interface change. Much easier to use and looks real clean.

Seems like the BT problem for me has been fixed. Doesn't turn off after so long and closing and restarting goes without hiccups.

maxximuscool 2011-01-15 18:01

Re: [Announce] QRadio
 
Problems:


- detection % is weak at times
- lost sound after switch to browser to type this.
- No automatic list scan function
- No rotation support
- Speaker doesn't work
- can't tune lower than 87.5Mhz

Advantages and benefit:

- more reliable than FM Radio
- better user interface
- smoother user experience
- digitally tune
- informative
- can do much more in the future. This app has potential :)

zimon 2011-01-16 00:44

Re: [Announce] QRadio
 
Using Qradio "kills" my microphone and I have to reboot to get it working again.
http://talk.maemo.org/showpost.php?p=921265&postcount=4

Anyone has the same problem?
Easiest to check if microphone is working, is using VUmeter.

slender 2011-01-16 04:17

Re: [Announce] QRadio
 
@zimon
same problem here.

gionni88 2011-01-16 10:10

Re: [Announce] QRadio
 
Quote:

Originally Posted by maxximuscool (Post 920983)
Problems:


(1)- detection % is weak at times
(2)- lost sound after switch to browser to type this.
(3)- No automatic list scan function
(4)- No rotation support
(5)- Speaker doesn't work

1- Detection shows the signal strenght radio station has. If it is too low station will be skipped and has to be picked manually.

2- sound stops suddenly when cpu is pushed to max or a sound notification pops.

3- It's on todo.

4- I was providing portrait mode, but rotating layout increased the stops, so I abandoned it.

5- output script has to be fixed after installation, check first post for that and than it will work. You can also open it with leafpad, ctrl+a, ctrl +c, delete all text, save, close, open again, ctrl+v, save and il will work. No matter if I edit it with programmer's notepad on windows, it won't work when packaged.


@Zimon: after you use QRadio and remove headphones, plug in and out those again and mic should work again. Must be nokia ones since they must have mic line aswell. I'll try to fix it with forcing input from mic at app exit, as soon as I know which command to launch.

verrnum 2011-01-16 10:59

Re: [Announce] QRadio
 
Fantastic !!

UI is very good.

Is exists a way to use phone speaker ?

I selected "speaker" in menu but no sound from the speakers ???

Best Regards

Radicalz38 2011-01-16 12:08

Re: [Announce] QRadio
 
Quote:

Originally Posted by verrnum (Post 921442)
Fantastic !!

UI is very good.

Is exists a way to use phone speaker ?

I selected "speaker" in menu but no sound from the speakers ???

Best Regards

At least learn how to read the post before yours ;)

zimon 2011-01-16 12:35

Re: [Announce] QRadio
 
Quote:

Originally Posted by gionni88 (Post 921415)

@Zimon: after you use QRadio and remove headphones, plug in and out those again and mic should work again. Must be nokia ones since they must have mic line aswell. I'll try to fix it with forcing input from mic at app exit, as soon as I know which command to launch.

Hmm, ok. Normally I use only "normal" headphones without microphone when using n900 to listen music or FM-radio.

Using the "old" FM-radio application after Qradio also seems to fix this issue with microphone.

Also, the bluetooth-network problem is easier with FM-radio. After Qradio is quit, it disables Bluetooth and it has to be manually enabled again for example so bluetooth-network can be restarted or auto-reconnect again. With FM-radio, it does not disable bluetooth if it was enabled when the FM-radio was started. Either it remembers the state, or then it somehow uses FM+BT-chip differently.

Of course even better if somehow using FM-chip would not stop bluetooth at all, but I do not know if it is a hardware bug which cannot be tackled.

gionni88 2011-01-16 13:07

Re: [Announce] QRadio
 
Quote:

Originally Posted by zimon (Post 921489)
(1) Using the "old" FM-radio application after Qradio also seems to fix this issue with microphone.

(2) Also, the bluetooth-network problem is easier with FM-radio. After Qradio is quit, it disables Bluetooth and it has to be manually enabled again for example so bluetooth-network can be restarted or auto-reconnect again. With FM-radio, it does not disable bluetooth if it was enabled when the FM-radio was started. Either it remembers the state, or then it somehow uses FM+BT-chip differently.

1- Probably it changes the amixer settings to use mic as lineIN. Adding this script may fix it:
Code:

amixer -qc0 cset iface=MIXER,name='Input Select' 'Digital Mic'
  amixer -qc0 cset iface=MIXER,name='PGA Capture Switch' off

  amixer -qc0 cset iface=MIXER,name='Left PGA Mixer Line2L Switch' off
  amixer -qc0 cset iface=MIXER,name='Left DAC_L1 Mixer HP Switch' off
  amixer -qc0 cset iface=MIXER,name='Right PGA Mixer Line2R Switch' off
  amixer -qc0 cset iface=MIXER,name='Right DAC_L1 Mixer HP Switch' off

  amixer -qc0 cset iface=MIXER,name='HP DAC Playback Volume' 0,0

As soon as I have more time I'll test it.

2- Which version are you using? I have fixed it with last version, if it didn't work for you than chmod -x the disablebluetooth.sh script in /opt/qradio. I had forced in previous versions bluetooth off to avoid earing radio while calling soon after the app was used. When I'll fix it as pointed above I'll get rid of that script in the code.

verrnum 2011-01-16 15:51

Re: [Announce] QRadio
 
Quote:

Originally Posted by Radicalz38 (Post 921475)
At least learn how to read the post before yours ;)

oups !!!

Thanks a lot !!!

Radicalz38 2011-01-16 16:31

Re: [Announce] QRadio
 
Quote:

5- output script has to be fixed after installation, check first post for that and than it will work. You can also open it with leafpad, ctrl+a, ctrl +c, delete all text, save, close, open again, ctrl+v, save and il will work. No matter if I edit it with programmer's notepad on windows, it won't work when packaged.
Probably the reason is because of windows style of making new lines? I think it's because of the carriage return which causes errors on shell scripts on linux.

droitwichgas 2011-01-16 16:40

Re: [Announce] QRadio
 
Quote:

Originally Posted by zimon (Post 921489)
Of course even better if somehow using FM-chip would not stop bluetooth at all, but I do not know if it is a hardware bug which cannot be tackled.

It is the way the hardware works not a bug as such, although you do wonder why Nokia made the hardware so that both the BT and FM receiver had to be on at the same time. I

Laughing Man 2011-01-16 18:40

Re: [Announce] QRadio
 
It's likely they didn't. They probably bought the bluetooth chip and it just happens to also have FM capabilities built in.

verrnum 2011-01-17 21:53

Re: [Announce] QRadio
 
Quote:

Originally Posted by zimon (Post 921270)
Using Qradio "kills" my microphone and I have to reboot to get it working again.
http://talk.maemo.org/showpost.php?p=921265&postcount=4

Anyone has the same problem?
Easiest to check if microphone is working, is using VUmeter.

Same problem for me.

I wait a bugfix before use it.

Best Regards and thanks for your work !!

jabba_29 2011-01-20 07:49

Re: [Announce] QRadio
 
Quote:

Originally Posted by verrnum (Post 922627)
Same problem for me.

I wait a bugfix before use it.

Best Regards and thanks for your work !!

I found actually plugging in the headphones (removing after if necessary) works too.

I have uninstalled as I couldn't get it to work properly :(

MohammadAG 2011-01-21 13:08

Re: [Announce] QRadio
 
What's with the mediaplayer background as the UI? You know that takes into account that the background has 4 buttons on it, so on stock theme it looks very annoying.

maemomatic 2011-01-21 14:58

Re: [Announce] QRadio
 
Quote:

Originally Posted by MohammadAG (Post 925360)
What's with the mediaplayer background as the UI? You know that takes into account that the background has 4 buttons on it, so on stock theme it looks very annoying.

I agree, and believe that the original QRadio neutral background would be a more suitable default option

gionni88 2011-01-21 16:26

Re: [Announce] QRadio
 
I wanted to include the background as a setting option leaving the neutral background as standard. Anyway it's pointless to change the UI while the "engine" doesn't work as it should.
I have tried editing the /usr/share/policy/etc/rx51/syspart.conf file putting QRadio as a multimedia or system app. With last option it was smoother and audio rarely stuttered. It keeps working even when shutdown button is pressed (right now it stops) or when switching window/disabling lcd. The random stops are also less, but they keep showing and I still don't understand why amixer values get changed and mic disabled when I'm not touching it...
Another solution I tought about was not to use QtMobility but the standard FM receiver library but right now I don't have time to go learn it.

koivjann 2011-01-23 18:16

Re: [Announce] QRadio
 
Radio receiver in this application is the best so far. Thank you.
I cannot remove stations I have stored in one set via UI. Is there some config file which I could edit via terminal?

Could the last station you used be the default station when starting the radio next time.

gionni88 2011-01-23 18:46

Re: [Announce] QRadio
 
Keep the delete button hold for a few secs to delete stations wia UI. The config file is in /home/user/.config/Maemo/

gruik 2011-02-02 09:10

Re: [Announce] QRadio
 
I think it's disturbing to have the same background for the phone and qRadio. Black background like before was good.

gionni88 2011-02-04 00:37

Re: [Announce] QRadio
 
0.3.6 version should be imported into devel repository soon.

Background is black again, with an option to use the custom one into the app folder (the default one is still a pointer to current theme mediaplayer background9.
When starting app, the last station will be used.
Implemented the autoscan option. If picked, all the stations found scanning from the actual freq will be added into the current set.
Added a fast-written help window.

delmar 2011-02-04 12:50

Re: [Announce] QRadio
 
Thanks. I'll test it when I've finished to work.

But, any news about the bug with the speakers (needs a reboot because they stops to work)?


All times are GMT. The time now is 19:17.

vBulletin® Version 3.8.8