Author Topic: Need some help with FlirOneSDK sample app  (Read 4310 times)

0 Members and 1 Guest are viewing this topic.

Offline Ben321Topic starter

  • Frequent Contributor
  • **
  • Posts: 894
Need some help with FlirOneSDK sample app
« on: March 31, 2016, 02:17:40 pm »
I can download it here http://www.file-upload.net/download-11032220/FlirOneSDK.apk.html
And it works with my FLIR One (as well as having a simulator for if you don't already have a FLIR One). Now at the bottom, there's a picture of a camera, which I assume allows you to capture images. Problem is, I don't know where it saves them, and there's no settings menu in the app to pic a destination for the images.

Also, there's a streaming option for connecting to a server, but I'm not sure where to download the server software.

Any help with using this app will be greatly appreciated.
 

Offline Ben321Topic starter

  • Frequent Contributor
  • **
  • Posts: 894
Re: Need some help with FlirOneSDK sample app
« Reply #1 on: March 31, 2016, 08:49:55 pm »
I managed to finally find the answer to one of my 2 questions. The pictures are stored in the Pictures folder which is located on the root of the SD card. But there's still a problem with it. It appears the version of the sample app I downloaded has a bug. It can only correctly capture in "Thermal Image" and "Blended MSXImage" modes. Using any other mode will cause it to automatically default to one of the previously mentioned 2 modes at the instant of taking the picture, then revert back to currently selected mode for viewing. This means I can't capture in "Thermal Linear Flux14Bit Image" mode which is the TRUE RAW 160x120 image (not the cropped 120x90 image upscaled to 640x480). It also means I can't capture in the "Thermal Radiometric Kelvin Image" mode which appears to be a mode that has AGC disabled so the brightness of the image doesn't fluctuate based on the brightest and darkest points in the image.
Would be nice if somebody edited the source code and fixed this bug in the sample app, and then reposted the compiled APK for me to download.

And I still can't figure out where to download a server program to receive the image stream when using the sample app in streaming mode. Streaming mode requires a TCP connection to a server that will receive the image stream.
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Need some help with FlirOneSDK sample app
« Reply #2 on: March 31, 2016, 11:54:57 pm »
Why do you open here a new post? Are you eager for informations?
This thread was correct for your question about my uploaded SDK sample:
Inside the android sdk app (see post above) there is an simulator which works without a real FlirOne.
http://www.file-upload.net/download-11032220/FlirOneSDK.apk.html

When I press the snapshot button, where do the files get saved to?

Offline Ben321Topic starter

  • Frequent Contributor
  • **
  • Posts: 894
Re: Need some help with FlirOneSDK sample app
« Reply #3 on: April 01, 2016, 01:22:21 am »
Why do you open here a new post? Are you eager for informations?
This thread was correct for your question about my uploaded SDK sample:
Inside the android sdk app (see post above) there is an simulator which works without a real FlirOne.
http://www.file-upload.net/download-11032220/FlirOneSDK.apk.html

When I press the snapshot button, where do the files get saved to?

I just checked the other thread. You still haven't answered it in the other thread. I just hope you can fix the bugs I mentioned. If you actually compiled the first version of it yourself (the one you posted the link to), then you have access to the source code, and should be able to compile a fixed version of the app.
« Last Edit: April 01, 2016, 01:42:11 am by Ben321 »
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Need some help with FlirOneSDK sample app
« Reply #4 on: April 01, 2016, 08:07:50 am »

Offline Ben321Topic starter

  • Frequent Contributor
  • **
  • Posts: 894
Re: Need some help with FlirOneSDK sample app
« Reply #5 on: April 01, 2016, 06:58:00 pm »
you can download the free SDK after an email registration and self compile the source code
http://developer.flir.com/getting-started/

I posted some source code modifications in this thread:
https://www.eevblog.com/forum/thermal-imaging/question-about-flir-one-for-android/msg803915/#msg803915

https://www.eevblog.com/forum/thermal-imaging/question-about-flir-one-for-android/msg820345/#msg820345

I hope you will be able to fix these bugs for me, and then post the re-compiled APK file for download (not just link to the fixed source code), as I don't even know how to program for Android. You'll need more than the FLIR One SDK. You'll also need the Android SDK (also called ADK) from Google, and the Android SDK requires Java SDK (also called JDK). I actually uninstalled ADK and JDK from my harddrive a few months ago, after trying and failing to figure out how to even use ADK. The graphical interface of ADK itself is NOT AT ALL user friendly. It was a pain in the neck just to figure out how to add a button to the interface. It was a pain in the neck just figuring out where the "compile" button was to actually compile the program. I NEVER could figure out how to get it to compile in "release" mode, so I had to compile in "debug" mode in order to generate the APK file. And at the end of the day, I still just had an app that had a button that I could push, that did NOTHING. I don't think I'm ever going to try to program for Android again. It's just too hard.

I know very little when it comes to programming in pure Java. I know even LESS when it comes to programming for Android. And I suspect I will need to become a MASTER Java programmer before I even TOUCH Android programming. Obviously 2 MAJOR obstacles that must be overcome, before I even THINK about trying to write programs for the FLIR One device.

Fortunately you seem to have already mastered all of the needed skills, as you were able to successfully compile the FLIR One SDK sample app originally (with all the bugs in tact), and also seem to have modified the source at one point (but not recompiled the modified version). This is why I'm coming to you, and asking you to fix the bugs in that app, and post a download link to the APK for the fixed version of the app.
« Last Edit: April 01, 2016, 07:00:31 pm by Ben321 »
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Need some help with FlirOneSDK sample app
« Reply #6 on: April 03, 2016, 04:33:05 pm »
I'm sure, if you can write this code
https://www.eevblog.com/forum/thermal-imaging/flir-fff-viewer-version-1-4/
then you are also able to compile the SDK sample (there are no java code changes necessary) :)

Offline Ben321Topic starter

  • Frequent Contributor
  • **
  • Posts: 894
Re: Need some help with FlirOneSDK sample app
« Reply #7 on: April 04, 2016, 12:44:54 am »
I'm sure, if you can write this code
https://www.eevblog.com/forum/thermal-imaging/flir-fff-viewer-version-1-4/
then you are also able to compile the SDK sample (there are no java code changes necessary) :)

I wrote my FFF viewer in Visual Basic 6. I've been using that for YEARS. I could probably write software in my sleep, using VB6. I've NEVER written an actual working app for Android. Last time I tried, it was like PULLING TEETH just to add a button and text box to a form, and make it print the text "hello world" in a text box.

Now if some third party manages to make their own Android IDE that behaves identically to VB6 (has the same look-and-feel) and allows compiling apps for Android, I might try that, but right now, though I have reinstalled Android Studio for the sole purpose of compiling the FLIR One SDK sample app, I have very little confidence that I will even be able to get that app to compile correctly. Give me a VB6 style IDE that compiles Android stuff though, and it should be a LOT easier.
 

Offline Ben321Topic starter

  • Frequent Contributor
  • **
  • Posts: 894
Re: Need some help with FlirOneSDK sample app
« Reply #8 on: April 04, 2016, 06:00:18 pm »
After several hours working on it, I FINALLY added most of the features I wanted to the FLIR One sample app, but there's a couple I still need to add:
make the images be rotated based on orientation of the phone
allow the app to be the default app for the FLIR One device (add it to the list of suggested defaults that pops up when you first plug in your FLIR One)

What method do I call to  detect the phone's orientation in Android language?
How do I configure an app so that it appears in the list of suggested default apps when you first plug in your FLIR One?
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Need some help with FlirOneSDK sample app
« Reply #9 on: April 04, 2016, 07:02:49 pm »
I think, there is a better forum for your questions about the SDK:
http://developer.flir.com/forums/forum/flir-one-developer-community/


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf