Initialization issue with CAT S61 after phone power-on

Home Forums Device specific CAT S60 smartphone Initialization issue with CAT S61 after phone power-on

This topic contains 3 replies, has 4 voices, and was last updated by Profile photo of Deandrea Deandrea 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)

  • Author

    Posts

  • #7841

    Profile photo of Jovan
    Jovan

    Participant

    We use Device discovery on app-startup to indicate to user whether the Flir device is present or not. Then, only after user navigates to activity that uses Flir device, stream is started.

    Issue: on CAT S61, when phone is booted and application started, Flir camera cannot be initialized and stream never starts. Latest logline is “I/MB: doing i2c” and after that only lines “W/ImageReader_JNI: Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers” are logged but thermal images are never rendered. This happens only after CAT S61 boot, and before Flir camera is initialized/used by any other app.

    On the other side, Example app from SDK always initializes successfully S61’s flir camera chip.

    Steps to reproduce:
    1) Open FLIRONEExampleApplication project from SDK
    2) Add EntryActivity with simple one-button layout and set it as app’s entry point
    3) Restart the phone and start the app from AndroidStudio before any other app

    Result: Flir camera never initializes.

    public class EntryActivity extends AppCompatActivity implements Device.Delegate {
    
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_entry);
    
            Device.startDiscovery(this, this);
    
            Button button = findViewById(R.id.button);
            button.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Device.stopDiscovery();
                    Intent intent = new Intent(v.getContext(), GLPreviewActivity.class);
                    v.getContext().startActivity(intent);
                }
            });
        }
    
        @Override
        public void onTuningStateChanged(Device.TuningState tuningState) {
    
        }
    
        @Override
        public void onAutomaticTuningChanged(boolean b) {
    
        }
    
        @Override
        public void onDeviceConnected(Device device) {
    
        }
    
        @Override
        public void onDeviceDisconnected(Device device) {
    
        }
    }

    #9550

    Profile photo of sanjib
    sanjib

    Participant

    Hi Jovan,<br />
    I am also getting same issue, have you got any solution for this issue

    • This reply was modified 3 months, 1 week ago by Profile photo of sanjib sanjib.

    #10021

    Profile photo of Randy
    Randy

    Participant

    Hello,</p>
    <p>I’ve a similar problem with the camera – the code from inside SDK caused a fatal crash. The app needs permanent permission to use the camera before launching, then it is working perfectly well.

    Randy
    view website

    #10024

    Profile photo of Deandrea
    Deandrea

    Participant

    Press and hold the Volume down and Power buttons until the LG logo appears on the screen mybkexperience.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.