UBports Robot Logo UBports Forum
    • 版面
    • 最新
    • 標籤
    • 熱門
    • 使用者
    • 群組
    • 搜尋
    • 註冊
    • 登入

    The Cell Broadcast story

    已排程 已置頂 已鎖定 已移動 OS
    73 貼文 12 Posters 17.0k 瀏覽 7 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
      回覆
      • 在新貼文中回覆
      登入後回覆
      此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
      • lduboeufL 離線
        lduboeuf
        最後由 lduboeuf 編輯

        Hi all, trying to work on the Cell-Broadcast feature.
        I'm writing here just as a shared note...

        First step could be to implement only Emergency Alerts.

        That would need a persistent Notification if possible with a specific sound ( see https://forums.ubports.com/topic/7794/cell-broadcast-story-ui/8), a notification in the messaging indicator and a way to read it later.

        We should also have a toggle in settings to enable/disable the feature.
        I know some country are even making the option mandatory.
        Question here: Should that option be in notification category or in cellular related things ?

        As that behaviour is almost like a classic sms, i'm planning to use the current Telepathy Framework by just doing some tweaks ( define a constant sender, MessageType of ChannelTextMessageTypeNotice ).
        Define a fake Contact that have the "warning" as the avatar so that it can be recognized in the messaging-app and popups/notifications.
        We are lucky to have already the phone part, Ofono expose a Dbus interface for CellBroadcast ( not tested yet )

        The work will involve work in telepathy-ofono, telephony-service, history-service (not sure)) , system-settings, gsettings-ubuntu-touch-schemas for the alert sound ).

        telepathy-ofono: Takes inputs from ofono cellbroadcast signals ( https://github.com/ubports/ofono/blob/xenial/doc/cell-broadcast-api.txt ). Currently there are notifications for the ETWS system (EmergencyBroadcast signal) and another for all other channels (IncomingBroadcast).
        My idea here is to merge the 2 signals and send toward Telepathy a TextMessage with the sender identified as "x-ofono-cellbroadcast", the Subject as the channel topic, type of message of ChannelTextMessageTypeNotice, and the body of the alert in text property.

        telephony-service: Listen to Telepathy incoming TextMessage, when message == ChannelTextMessageTypeNotice, sender is "x-cellbroadcast-alert" , and according to Subject, we should display a notification with the corresponding sound.
        Different levels of warning are here dependent of the Subject.
        The alert is also displayed in the message indicator, and a way to open messaging app to see it again.

        history-service: Listen to Telepathy incoming TextMessage ans stores the alert as a message ( message could be of type MessageTypeInformation)

        messaging-app: The alerts are gathered into a Thread, the notification icon could be the "broadcast icon", and messages can be styled differently according to their Subject ( channel ).

        system-settings: Subscribe to channels, toggles to the different type of broadcast

        e.g on Android:
        172725142-ac6bbcf0-df5d-4abe-af46-dd59374b46c3.png

        Issue reference: The issue: https://github.com/ubports/ubuntu-touch/issues/141

        Spec IETSI: https://www.etsi.org/deliver/etsi_ts/102900_102999/102900/01.03.01_60/ts_102900v010301p.pdf
        Spec 3GPP: https://www.3gpp.org/ftp/Specs/archive/23_series/23.041/ ( last one - see 9.4.1.2.2 Message Identifier for the channel list)

        android constants: https://github.com/aosp-mirror/platform_frameworks_base/blob/c5d02da0f6553a00da6b0d833b67d3bbe87341e0/telephony/java/com/android/internal/telephony/gsm/SmsCbConstants.java

        Help needed for the UX part:
        https://forums.ubports.com/topic/7794/cell-broadcast-story-ui/8

        Currenlty Xenial telepathy-ofono uses a libofono-qt version which does not include the Cellbroadcast API => See with Team

        The test procedure is written here ( see "Test" section) : https://github.com/ubports/ubuntu-touch/issues/2003

        LakotaubpL 1 條回覆 最後回覆 回覆 引用 5
        • LakotaubpL 離線
          Lakotaubp @lduboeuf
          最後由 編輯

          @lduboeuf My first though is Notification. When implemented this would be hard coded into the OS, is that right. So in effect is all ready on and working. The emergency messages are a form of notification so keeping that part easy to find and use makes Notification seem the right place for users to naturally start and look.
          This is only my initial thought lets see how it pans out.

          1 條回覆 最後回覆 回覆 引用 0
          • lduboeufL lduboeuf referenced this topic on
          • lduboeufL lduboeuf referenced this topic on
          • lduboeufL lduboeuf referenced this topic on
          • lduboeufL lduboeuf referenced this topic on
          • lduboeufL 離線
            lduboeuf
            最後由 編輯

            Feature integration summary here:
            https://github.com/ubports/ubuntu-touch/issues/2003

            1 條回覆 最後回覆 回覆 引用 2
            • K 線上
              kristatos
              最後由 編輯

              Hi @lduboeuf ,
              first of all thanks for your work on Cell Broadcast.
              Here in Germany there will be a nationwide test of alert-systems including Cell Broadcast on 08 December 2022. Is there any hope to see this feature in UT until December so that we can test it under real conditions?

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

              lduboeufL 1 條回覆 最後回覆 回覆 引用 0
              • lduboeufL 離線
                lduboeuf @kristatos
                最後由 lduboeuf 編輯

                @kristatos Hopefully it will be integrated in UT before December.
                This is now in the Ubports team hands.
                I can guarantee that all UT components are ready to handle Cell Broadcast messages. But there is still an unknow part which is hard to test without a real situation.

                K 2 條回覆 最後回覆 回覆 引用 0
                • K 線上
                  kristatos @lduboeuf
                  最後由 編輯

                  @lduboeuf Ok, that's sounds great. I think it will be good to have this feature before December, so that we can test under real conditions. I have two phones with UT for testing that.

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

                  1 條回覆 最後回覆 回覆 引用 0
                  • K 線上
                    kristatos @lduboeuf
                    最後由 編輯

                    @lduboeuf Hi, there is nothing on the OTA-24 page related to CB. Is there something we can do to help landing this in the next OTA (if it's not already to late)? I think we won't see OTA-25 before December or even this year. I think it would be good to test it under real conditions.

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

                    lduboeufL 2 條回覆 最後回覆 回覆 引用 0
                    • lduboeufL 離線
                      lduboeuf @kristatos
                      最後由 編輯

                      @kristatos said in The Cell Broadcast story:

                      @lduboeuf Hi, there is nothing on the OTA-24 page related to CB. Is there something we can do to help landing this in the next OTA (if it's not already to late)? I think we won't see OTA-25 before December or even this year. I think it would be good to test it under real conditions.

                      Hi,
                      No, this will not be for OTA-24 unfortunately. Already too many things in this OTA.
                      Hope the team can review my work soon after.

                      1 條回覆 最後回覆 回覆 引用 0
                      • lduboeufL 離線
                        lduboeuf @kristatos
                        最後由 編輯

                        @kristatos Even if CellBroadcast didn't get into an OTA, the feature is testable if you are in devel channel: (see test section )

                        https://github.com/ubports/ubuntu-touch/issues/2003

                        K 2 條回覆 最後回覆 回覆 引用 0
                        • K 線上
                          kristatos @lduboeuf
                          最後由 編輯

                          @lduboeuf Ok, then maybe I'll test with my E4.5, the Volla is my daily

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

                          1 條回覆 最後回覆 回覆 引用 0
                          • K 線上
                            kristatos @lduboeuf
                            最後由 編輯

                            @lduboeuf Hi, when I understand it correctly in the last QA, CB is also testable without being on devel channel. Is that correct? Is the test procedure in your link still up-to-date? If not, can you please make an instruction how to enable CB and which log-files you are interested in? I think it's easier for everybody who wants to help in testing/providing log-files on 08 December in Germany.

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

                            lduboeufL 1 條回覆 最後回覆 回覆 引用 0
                            • lduboeufL 離線
                              lduboeuf @kristatos
                              最後由 編輯

                              @kristatos said in The Cell Broadcast story:

                              @lduboeuf Hi, when I understand it correctly in the last QA, CB is also testable without being on devel channel. Is that correct? Is the test procedure in your link still up-to-date? If not, can you please make an instruction how to enable CB and which log-files you are interested in? I think it's easier for everybody who wants to help in testing/providing log-files on 08 December in Germany.

                              Cell Broadcast should be testable when on RC too, but i need to make sure before if any update needs to be done. After OTA-24 is published, i will check again and publish here the test procedure

                              lduboeufL 1 條回覆 最後回覆 回覆 引用 1
                              • lduboeufL 離線
                                lduboeuf @lduboeuf
                                最後由 lduboeuf 編輯

                                Hello all,

                                The test procedure is written here ( see "Test" section) : https://github.com/ubports/ubuntu-touch/issues/2003 and only supported on Xenial.
                                Note that a Focal test is available too

                                K 1 條回覆 最後回覆 回覆 引用 0
                                • K 線上
                                  kristatos @lduboeuf
                                  最後由 kristatos 編輯

                                  @lduboeuf Hi, today I switched my E4.5 to RC and followed the instructions from your test procedure (install three PR for legacy devices and set the CB-properties). The PR's seems to be installed, but when I want to subscribe to the CB-channels an error occured:
                                  screenshot20221204_175425797.png

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

                                  lduboeufL 1 條回覆 最後回覆 回覆 引用 0
                                  • lduboeufL 離線
                                    lduboeuf @kristatos
                                    最後由 編輯

                                    @kristatos said in The Cell Broadcast story:

                                    @lduboeuf Hi, today I switched my E4.5 to RC and followed the instructions from your test procedure (install three PR for legacy devices and set the CB-properties). The PR's seems to be installed, but when I want to subscribe to the CB-channels an error occured:
                                    screenshot20221204_175425797.png

                                    Just in case, do you have an active SIM in your phone ?

                                    K 1 條回覆 最後回覆 回覆 引用 0
                                    • K 線上
                                      kristatos @lduboeuf
                                      最後由 編輯

                                      @lduboeuf Yes I have switched my SIM from my Volla into the E4.5 and I can make calls with it.

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

                                      lduboeufL 1 條回覆 最後回覆 回覆 引用 0
                                      • lduboeufL 離線
                                        lduboeuf @kristatos
                                        最後由 lduboeuf 編輯

                                        @kristatos said in The Cell Broadcast story:

                                        @lduboeuf Yes I have switched my SIM from my Volla into the E4.5 and I can make calls with it.

                                        humm , if you updated ofono as in the procedure and rebooted, it should be good.
                                        What does running /usr/share/ofono/scripts/list-modems outputs ?

                                        you should see something like
                                        [ril_0]
                                        Interfaces = .... org.ofono.CellBroadcast

                                        you could also have a [ril_1] section if you inserted your sim card in the 2nd slot. In that case please adapt the subscribtion command with /ril_1

                                        K 1 條回覆 最後回覆 回覆 引用 0
                                        • K 線上
                                          kristatos @lduboeuf
                                          最後由 kristatos 編輯

                                          @lduboeuf said in The Cell Broadcast story:

                                          Interfaces = .... org.ofono.CellBroadcast

                                          No, not for ril_0 nor for ril_1

                                          Could it be that the patch wasn't applied successfully because there were no SIM-crads inside the device at this time?

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

                                          lduboeufL 2 條回覆 最後回覆 回覆 引用 0
                                          • lduboeufL 離線
                                            lduboeuf @kristatos
                                            最後由 lduboeuf 編輯

                                            @kristatos said in The Cell Broadcast story:

                                            @lduboeuf said in The Cell Broadcast story:

                                            Interfaces = .... org.ofono.CellBroadcast

                                            No, not for ril_0 nor for ril_1

                                            Could it be that the patch wasn't applied successfully because there were no SIM-crads inside the device at this time?

                                            No it should be fine without.
                                            To be sure what is the result of
                                            dpkg -l | grep ofono

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • lduboeufL 離線
                                              lduboeuf @kristatos
                                              最後由 lduboeuf 編輯

                                              @kristatos Just tested on my BQ4.5 and i have the same issue...

                                              Will have a look tomorrow, but i doubt we are going to investigate hours on a device that will not be Focal ready.
                                              Can't you test on your Volla 22 ? ( note that you can reinstall UT on it after all patches without issues )

                                              That is weird because i have tested on BQ4.5 before as well on Nexus5, XperiaX and Pixel3a. And the BQ is the only one not activating CellBroadcast

                                              K 1 條回覆 最後回覆 回覆 引用 0
                                              • 第一個貼文
                                                最後的貼文