Forums - Initializing

9 posts / 0 new
Last post
Initializing
bereket
Join Date: 1 May 18
Posts: 11
Posted: Fri, 2018-05-18 02:07

I have developed a simpple android app using msdc-api (aar) to test eMBMS network.  My plan is just to see a signal if the mobile is able to connect to the eMBMS. I have intialized in the following way after implementing

IMSDCAppManagerEventListener,IMSDCNetworkControllerEventListener
private void init(){
    updateInfoView("init()");
    //MSDCAppManagerInitParams contains the options needed during the initialization of the MSDCAppManager. It starts MSDC.
    MSDCAppManagerInitParams mSDCAppManagerInitParams = new MSDCAppManagerInitParams();

    mSDCAppManagerInitParams.receptionReportingOptIn = true;

    //if optIn value is true, it means the app is participating in reception reporting. By default it is null (false).
    //optIn value can be provided in UI application properties file as a config option or it can be hard coded
    //to the required value.
    mSDCAppManagerInitParams.receptionReportingOptIn = true;

    updateInfoView("initializeMSDC()");
    updateInfoView("Watting for MSDC confirmation ...");
    //This method initializes the MSDC.
    MSDCAppManager.getInstance().initializeMSDC(mSDCAppManagerInitParams);
}

 

I was expecting one of the call functions:  initialization confirmation, error or warning. But none of  callback methods is called.

When I initialize what are the parametes/requirment  needed ?

 

 

  • Up0
  • Down0
AnkitK Moderator
Join Date: 20 Aug 14
Posts: 61
Posted: Tue, 2018-05-22 13:25

Have you added addMSDCEventListener to IMSDCAppManager?

  • Up0
  • Down0
bereket
Join Date: 1 May 18
Posts: 11
Posted: Tue, 2018-05-22 18:34

Thanks a lot for the answer.  Yes, I have added. I have done exactly similar to the sample code. For instance the "network module"  which notifies the signal strength. here is the code, but I haven't got any success or error message.  

 

import android.app.Activity;

import android.os.Bundle;


        import android.util.Log;

        import android.widget.TextView;


        import com.cumucore.msdcapp.R;

        import com.qualcomm.msdc.MSDCAppManager;

        import com.qualcomm.msdc.controller.IMSDCAppManagerEventListener;

        import com.qualcomm.msdc.controller.IMSDCNetworkController;

        import com.qualcomm.msdc.controller.IMSDCNetworkControllerEventListener;

        import com.qualcomm.msdc.object.MSDCAppManagerInitParams;


public class NetworkModuleActivity extends Activity implements IMSDCAppManagerEventListener, IMSDCNetworkControllerEventListener {


    private TextView mInfoTextView = null;

    private String mInfoStr = "Network Service call back implementation";


//Instance for network controller

//networkServiceInitializeConfirmation(), broadcastCoverageNotification(), signalLevelNotification(), networkServiceError()

// and roamingNotification()

    private IMSDCNetworkController mIMSDCNetworkController = null;


    @Override

    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);


        setContentView(R.layout.activity_network_module);

        mInfoTextView = (TextView) findViewById(R.id.info_text_view_networkmodule);

        updateInfoView(" On Create");

        init();


        MSDCAppManager.getInstance().addMSDCEventListener(this);


        mIMSDCNetworkController = MSDCAppManager.getInstance().getNetworkController();

        mIMSDCNetworkController.addNetworkEventListener(this);


    }


    private void init() {

        updateInfoView("init()");

//MSDCAppManagerInitParams contains the options needed during the initialization of the MSDCAppManager. It starts MSDC.

        MSDCAppManagerInitParams mSDCAppManagerInitParams = new MSDCAppManagerInitParams();


        mSDCAppManagerInitParams.receptionReportingOptIn = true;


        updateInfoView("initializeMSDC()");

//This method initializes the MSDC.

        MSDCAppManager.getInstance().initializeMSDC(mSDCAppManagerInitParams);


    }


    @Override

    protected void onResume() {

        super.onResume();

        mIMSDCNetworkController.addNetworkEventListener(this);

    }


    private void updateInfoView(String str) {


        if (mInfoTextView != null) {

// We wanted to display recent messages on top

            mInfoStr = str + "\n" + mInfoTextView.getText();

            mInfoTextView.setText(mInfoStr);

            mInfoTextView.postInvalidate();

        }

    }


    @Override

    public void initializeMSDCConfirmation() {

        updateInfoView("initializeMSDCConfirmation SUCCESS");

    }


    @Override

    public void msdcError(int errorCode, String message) {

        updateInfoView("msdcError errorCode = " + errorCode + ", message = " + message);

    }


    @Override

    public void msdcWarning(int erroCode, String message) {

        updateInfoView("msdcWarning =" + erroCode + message);

    }


    @Override

    public void terminateMSDCConfirmation() {

        updateInfoView("terminateMSDCConfirmation **");

    }


    @Override

    public void e911Indication(int state) {

        updateInfoView("e911Indication state = " + state);

    }


    @Override

    public void msdcUnavailableNotification(int reason) {

        updateInfoView("msdcUnavailableNotification reason = " + reason);

    }


    @Override

    public void msdcAvailableNotification(int which, Object o) {

        updateInfoView("msdcAvailableNotification which = " + which);

    }


    @Override

    public void networkServiceInitializeConfirmation() {

        updateInfoView("networkServiceInitializeConfirmation SUCCESS");

//call enable/disable signal strength signal for monitoring

        int period = 1; //Period in seconds

        mIMSDCNetworkController.enableSignalLevelMonitoring(period);

        mIMSDCNetworkController.disableSignalLevelMonitoring();

    }


    @Override

    public void broadcastCoverageNotification(int state) {

        updateInfoView("broadcastCoverageNotification state = " + state);

    }


    @Override

    public void signalLevelNotification(int signalLevel) {

        updateInfoView("signalLevelNotification signalLevel = " + signalLevel);


    }


    @Override

    public void networkServiceError(int errorCode, String message) {

        updateInfoView("networkServiceError errorCode = " + errorCode + ", message = " + message);

    }


    @Override

    public void roamingNotification(int state) {

        updateInfoView("roamingNotification state = " + state);

    }


    @Override

    protected void onDestroy() {

        updateInfoView("onDestroy()");

        closeMSDC();

        super.onDestroy();

    }


    @Override

    public void onBackPressed() {

        updateInfoView("onBackPressed()");

        closeMSDC();

        super.onBackPressed();

    }


    private void closeMSDC() {

//Remove event listeners

        MSDCAppManager.getInstance().removeMSDCEventListener(this);

        mIMSDCNetworkController.removeNetworkEventListener(this);


        updateInfoView("terminateMSDC()");


        MSDCAppManager.getInstance().terminateMSDC();

    }

}
  • Up0
  • Down0
AnkitK Moderator
Join Date: 20 Aug 14
Posts: 61
Posted: Tue, 2018-05-29 14:24

Are you using SDK-stub for loopback response or middleware?

 

Thanks

Ankit

  • Up0
  • Down0
bereket
Join Date: 1 May 18
Posts: 11
Posted: Mon, 2018-06-04 01:40

Hello.

Thanks for replay, I am trying to develop using Google-pixel device using MSDC api( .aar).  But found out the middleware the phone has  is Virizon.

Could you guide us on how to make a licence/arrangement on how to get the middleware so that we will be able to install in our Google pixel

Thanks

Br, Bereket

  • Up0
  • Down0
AnkitK Moderator
Join Date: 20 Aug 14
Posts: 61
Posted: Tue, 2018-06-05 16:49

Hello Bereket,

Which company do you represent? The MSDC (middleware) is released to OEM's only.

 

Thanks

Ankit

  • Up0
  • Down0
bereket
Join Date: 1 May 18
Posts: 11
Posted: Mon, 2018-06-11 04:15

Hello Ankitk,

We are small startup company trying to implement eMBMS. we have tried with other vendor application. Now we want to develop our own app using Qualcomm api for only testing purpose.

Is there any chance, which we will be able to make arrangement with Qualcomm, so that, we get the middleware to manually install in our testing device

Br.,

Bereket

  • Up0
  • Down0
AnkitK Moderator
Join Date: 20 Aug 14
Posts: 61
Posted: Mon, 2018-06-11 10:29

Hello,

  Middleware access needs some lisencing agreements. For you to proceed I recommend using Google Pixel 2017 device. Google already has Qualcomms middleware installed on them.

This device has been used by many other UI developers to develop eMBMS solutions based on Qualcomm middleware.

 

Thanks

Ankit

  • Up0
  • Down0
balaji0
Join Date: 2 Sep 18
Posts: 2
Posted: Sun, 2018-09-02 02:32

hi 

has anyone developed test app for eMBMS video, please 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.