UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    FM radio service

    Scheduled Pinned Locked Moved OS
    fm-radio
    30 Posts 9 Posters 6.4k Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • mardyM Offline
        mardy
        last edited by

        Hi all!
        I wrote a blog post about my adventures with the Redmi Note 7 Pro FM radio chip, which saw a relatively happy ending. For those interested in technical details (or device porters) it might be an interesting read.

        For all the others, the point of my message is that I intend to write a system service to handle FM radio. On the application side, it will be possible to use the QRadioTuner C++ APIs or the QML Radio element. No promise on timelines (I do have a handful of higher priority items on my queue), but it should be coming. 🙂

        Ciao,
        Alberto

        ? K 3 Replies Last reply Reply Quote 9
        • K Offline
          kristatos
          last edited by

          I had lost the hope that this will come one day, great news 👍

          BQ Aquaris E4.5 (UT 16.04)
          Vollaphone (UT 20.04)

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @mardy
            last edited by

            @mardy Hi would you please give me the configuration of the Note7? I am not so lucky with the Xiaomi Redmi Note 9. We had also tried to make an app for the device. The problem always restart. Hopefully there will be something like this for the Merlin device. Good luck with your device.

            mardyM 1 Reply Last reply Reply Quote 0
            • KaizenK Offline
              Kaizen
              last edited by

              Hey, do you think you would be able to include your post under Links and docs? That way, you get traffic from a relevant place

              Here
              https://devices.ubuntu-touch.io/device/violet/developer/

              1 Reply Last reply Reply Quote 1
              • K Online
                kugiigi @mardy
                last edited by

                @mardy This is awesome. I also already gave up on this since it seems to be technically challenging and FM radio is now a niche. Do you think this could work on different devices with fm radio?
                Last I read, every device has its own implementation.

                mardyM 1 Reply Last reply Reply Quote 0
                • mardyM Offline
                  mardy @Guest
                  last edited by

                  @dpitti said in FM radio service:

                  @mardy Hi would you please give me the configuration of the Note7? I am not so lucky with the Xiaomi Redmi Note 9.

                  What exactly do you mean by "configuration"? I think that the blog post has all the links, but you are welcome to ask.

                  What's the output of getprop vendor.bluetooth.soc in your phone?

                  ? D 3 Replies Last reply Reply Quote 0
                  • mardyM Offline
                    mardy @kugiigi
                    last edited by

                    @kugiigi said in FM radio service:

                    @mardy This is awesome. I also already gave up on this since it seems to be technically challenging and FM radio is now a niche. Do you think this could work on different devices with fm radio?
                    Last I read, every device has its own implementation.

                    Yes, you are correct, but some devices have the same chip. There are more details in the blog post, but in short, I believe that all Snapdragon-based devices should either work out of the box, or be supported with some work.

                    1 Reply Last reply Reply Quote 1
                    • ? Offline
                      A Former User @mardy
                      last edited by

                      This post is deleted!
                      ? 1 Reply Last reply Reply Quote 0
                      • ? Offline
                        A Former User @Guest
                        last edited by A Former User

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • ? Offline
                          A Former User @mardy
                          last edited by A Former User

                          This post is deleted!
                          N 1 Reply Last reply Reply Quote 0
                          • N Offline
                            nero355 @Guest
                            last edited by

                            @dpitti
                            Please make smaller screenhosts or simply use code tags for such stuff :

                            #Your code here
                            Or here! :)
                            

                            My phones :

                            • BQ Aquaris E5 HD Ubuntu Phone Edition - Ubuntu Touch 16.04 LTS
                            • ZUK Z2 Pro - ZUI Android 8.x
                            • Xiaomi Mi 9T - Jolla SailFish 3.4.x Community Build

                            P.S. : I am NOT a developer! ;)

                            ? 1 Reply Last reply Reply Quote 0
                            • ? Offline
                              A Former User @nero355
                              last edited by A Former User

                              @nero355 I would like to apologize for the photo that is a little too large. If my smartphone hadn't been messing around like that, things would have turned out differently. Let's see if I can get these photos even smaller with the PC.

                              Hello as you see in the picture no output. But the funny thing about the thing is that their commands only sound the microphone instead of the radio on Merlin. But it's the right direction. An MTK chip is built in, so much we already know. And also the kernel crash is no more. At least that's how it is with me on the Merlin. Thanks for your work.

                              What does FM radio mean, is it a niche product? Unfortunately for many smartphone owners there is no other alternative to listening to the radio when you are on the go and have no internet. Unfortunately there is no successor to the LG Stylus 2 that Dab + and FM had. I think it's good what the blogger @mardy has done. Maybe you can somehow get the radio to work at the Merlin.

                              Bildschirmfoto zu 2021-12-09 12-36-05.png

                              Bildschirmfoto zu 2021-12-09 12-36-33.png

                              mardyM N 2 Replies Last reply Reply Quote 1
                              • mardyM Offline
                                mardy @Guest
                                last edited by

                                @dpitti said in FM radio service:

                                What does FM radio mean, is it a niche product? Unfortunately for many smartphone owners there is no other alternative to listening to the radio when you are on the go and have no internet. Unfortunately there is no successor to the LG Stylus 2 that Dab + and FM had. I think it's good what the blogger @mardy has done. Maybe you can somehow get the radio to work at the Merlin.

                                Can you please paste the output from this command?

                                ls -l /dev/radio* /dev/fm*
                                

                                If you get something, there's hope it will eventually be supported 🙂

                                D ? FuseteamF 3 Replies Last reply Reply Quote -1
                                • D Offline
                                  domubpkm @mardy
                                  last edited by

                                  @mardy Volla OTA-20
                                  screenshot20211209_175013546.png

                                  1 Reply Last reply Reply Quote 0
                                  • ? Offline
                                    A Former User @mardy
                                    last edited by A Former User

                                    @mardy Xiaomi Redmi Note 9 Merlin OTA 20

                                    Bildschirmfoto zu 2021-12-09 19-42-50.png

                                    I have an FM app myself to test it, there comes something with Com from time to time in the log. I thank you for your help anyway. In the Xiaomi Group, I made people aware of their blog. Let's see if there might still be radio at some point. Even if you say there should be something in the terminal. Wait until Focal has been ported, better kernel and so I guess.

                                    1 Reply Last reply Reply Quote 0
                                    • N Offline
                                      nero355 @Guest
                                      last edited by

                                      @dpitti said in FM radio service:

                                      @nero355 I would like to apologize for the photo that is a little too large.

                                      It's not a big deal but it's just soo annoying to see any of my monitors suddenly downgraded to one of those old 14 inch CRT monitors with 640x480 resolution! 😉

                                      We have a Terminal app which you can use to copy->paste stuff.
                                      You can do the same via ADB and a PC or Laptop while your phone is connected via your USB cable.

                                      Let's not waste screenspace together! 😉

                                      My phones :

                                      • BQ Aquaris E5 HD Ubuntu Phone Edition - Ubuntu Touch 16.04 LTS
                                      • ZUK Z2 Pro - ZUI Android 8.x
                                      • Xiaomi Mi 9T - Jolla SailFish 3.4.x Community Build

                                      P.S. : I am NOT a developer! ;)

                                      ? 1 Reply Last reply Reply Quote 0
                                      • ? Offline
                                        A Former User @nero355
                                        last edited by

                                        @nero355 Sorry, I'm not a professional with UT yet. Ok, that's good about the Adb and the PC. I still need help with that too. But I understand your objections 🙂

                                        1 Reply Last reply Reply Quote 1
                                        • FuseteamF Offline
                                          Fuseteam @mardy
                                          last edited by Fuseteam

                                          @mardy hi, so /dev/fm does exist on the redmi note 9 (merlin) and the redmi 9(lancelot) just like on the vollaphone, however the volla fm radio app crashes the phone whenever the radio is started.

                                          according notkit the crash occurs somewhere in here: https://github.com/MiCode/MTK_kernel_modules/blob/lancelot-q-oss/connectivity/fmradio/core/fm_main.c#L242
                                          no idea why at the moment

                                          @dpitti hear has been tweaking the volla fm radio app to find a way to have it not crash over at https://github.com/1978Enrico/fmradio-volla

                                          it should be noted that the both merlin and lancelot have a shotwave antenna, i am somewhat hoping to build a check somewhere that the app doesn't prompt for the headset. but perhaps this could be a part of the radio service checks, whether an antenna is available, headset or shortwave.
                                          on merlin and lancelot the presence of a shortwave antenna can be queried with getprop ro.vendor.mtk_fm_short_antenna_support

                                          ? 1 Reply Last reply Reply Quote 0
                                          • ? Offline
                                            A Former User @Fuseteam
                                            last edited by A Former User

                                            @fuseteam Good morning, or could it be that we see the WiFi antenna instead of the FM antenna? Just as a question because in most cases the headset is used as an FM antenna. If the internal antenna will only bring something close to the transmission mast either way. In the rural region you always have to use a headset or an antenna with a 3.5 MM jack connection.

                                            Bildschirmfoto zu 2021-12-10 09-38-32.png

                                            Bildschirmfoto zu 2021-12-10 09-50-20.png!

                                            FuseteamF 1 Reply Last reply Reply Quote 0
                                            • FuseteamF Offline
                                              Fuseteam @Guest
                                              last edited by

                                              @dpitti hi, no it is really the fm radio antenna. i have no idea what they did physically but the redmi 9 and redmi note 9 do not need the headset to act like an antenna at all. in cases where does not have that antenna that command returns either nothing or 0 i'd imagine

                                              ? 1 Reply Last reply Reply Quote 0
                                              • First post
                                                Last post