Initialization issue with CAT S61 after phone power-on

Home Forums FLIR ONE SDK Development Device specific CAT S60/S61 smartphones Initialization issue with CAT S61 after phone power-on

This topic contains 8 replies, has 7 voices, and was last updated by Profile photo of Oliver Oliver 4 days, 14 hours ago.

Viewing 9 posts - 1 through 9 (of 9 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 12 months 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.

    #12254

    Profile photo of Oliver
    Oliver

    Participant

    I experience the same problem on the CAT S61 with the lib Version 3.1.5.
    It also happens sometimes if the app is freshly installed. A restart of the app usually helps.
    All the permissions are set from the beginning.

    Any feedback is appreciated

    thanks
    oliver

    #12260

    Profile photo of Gavin
    Gavin

    Keymaster

    Hi Oliver,
    I’m currently looking into this issue and will get back to you in 1-2 days.

    Best,
    Gavin
    FLIR Community Support

    #12268

    Profile photo of Oliver
    Oliver

    Participant

    Hi Gavin

    Okay thank you very much. If you need additional information just let me know.

    Best regards,

    Oliver

    #12722

    Profile photo of James
    James

    Participant

    Hi Oliver! I need some extra information, is it possible?

    • This reply was modified 2 weeks, 2 days ago by Profile photo of James James.

    #13358

    Profile photo of Oliver
    Oliver

    Participant

    Hey James

    Sure, how can I contact you?

    Also mail notification does not work for me in this forum.

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

You must be logged in to reply to this topic.