/
v28 BMS and Fieldbook app v6.0.0 data transfer via BrAPI using OIDC OAuth 2

v28 BMS and Fieldbook app v6.0.0 data transfer via BrAPI using OIDC OAuth 2

BMS version 27 has been thoroughly tested and confirmed as compatible with the specific Fieldbook version indicated on this page title. The use of other/newer Fieldbook versions downloaded from Github is at your own risk.

About Fieldbook app

Fieldbook app can be downloaded for free from Google Play or from Github

Fieldbook is an application that can be installed on Android tablets and phones. It was developed to work primarily on a tablet, but its performance on phones is very good.

Fieldbook App connects to BMS using BrAPI or export/import of Studybook files.

 

 

Citation : Rife, T.W.and J.A.Poland (2014) Field Book: An Open Source Application for Field Data Collection on Android. Crop Sci.54(4): 1624 – 1627.

Instructions

 

  1. Open the Fieldbook Application and go to Settings.

    image-20240809-130301.png

  2. Under Settings, go to BrAPI.

    image-20240809-125749.png
  3. Enable BrAPI to access its configuration.

    image-20240809-130521.png

  4. Go to BrAPI Version and select option V2.

  5. Under Auth Settings, open OIDC Flow then select the option OAuth2 Implicit Grant

  6. Open OIDC Discovery URL (the location of the OIDC discovery JSON document).

  7. Scan a barcode with the URL or define it as https://www.<institute’s BMS URL address>/bmsapi/<crop name>/.well-known/openid-configuration, for this tutorial use: https://trial-as.ibp.services/bmsapi/rice/.well-known/openid-configuration

    Click OK.

    image-20240811-030525.png

  8. Open Base URL. Scan a barcode with the URL or enter the BrAPI Base URL https://<institute’s BMS address>/bmsapi/<crop name> . In this tutorial use : https://trial-as.ibp.services/bmsapi/rice/

image-20240811-000401.png

  1. Click Authorize.

    image-20240811-030803.png

  2. It will launch the BMS Authorization page on a web browser of the Android device.  Enter the BMS login Name and Password and click on Sign In.

    image-20240809-134300.png

  3. Click Authorize.

  4. Click Import Source and Export Source to the BrAPI server as default Import and Export Source. Click Save.

    image-20240809-134626.png

     

  5. To get the studybook (Fields) instances, return to main screen and then click on FIELDS.

  6. To add environment instance into Fieldbook. Click on the +.

    image-20240811-031324.png

  7. Environments may be filtered by program or by trial. Select Filter by program.

    image-20240809-135740.png
  8. Select Rice Demo Program. Click Select Program.

    image-20240811-031804.png

  9. Observation Level must be set to PLOT if you wish to collect data at the plot level

    image-20240811-032333.png

  10. Select an environment from the List.

    image-20240811-032523.png

  11. Click Preview Field. This allows users to check the field before saving. Click Save.

    image-20240811-033958.png

  12. Click on Traits to select the traits that will be measured. Please take note that traits from other fields/environments will also be in the list of traits.

    image-20240811-035806.png

  13. To start entering observed values, click “COLLECT”.

  14. Collected observation values can be exported to BMS by clicking Export.

    image-20240811-041408.png

  15. The number of new or modified observations will be shown. In this example, 8 New Observations have been collected. Click Export.

    image-20240811-041022.png

  16. “BrAPI Export Successful” message shows up if the export is successful.

  17. When you go back to BMS, the observation tab will be highlighted with an orange line to show that the observations has pending data.

    image-20240810-235422.png

     

  18. Click Accept to update the BMS trial with the collected data from Fieldbook.

    image-20240810-235917.png

 

Other Fieldbook Installation and Settings instructions:

  • In the General Settings, set the Default import and export source as BrAPI.

Installation from downloaded .apk file

  1. Download APK file. It will usually go to the downloads folder.

    image-20240812-014344.png

  2. Click on the file <Field-Book-version.apk>

  3. Click install

    image-20240812-014722.png

  4. Open the app.

  5. Specify a Storage Location by clicking Choose a folder.

  6. Select the permission to allow access to photos and videos.

    image-20240812-021900.png
  7. Select or create a new folder for Fieldbook to use. Click CREATE NEW FOLDER.

    image-20240812-022549.png

     

  8. Type-in the name of the folder. Click OK.

    image-20240812-022825.png

     

  9. Click Use this Folder.

    image-20240812-023851.png

  10. Click Allow to allow access to the newly created folder.

    image-20240812-023409.png

  11. Click permissions. Best to use While using the app.

    image-20240812-024310.png

Alternative workflow: OIDC OAuth 2

Important: Android supported links

Make sure the Android setting Open supported links is set to Open in this app instead of “Ask every time”, for the link fieldbook.phenoapps.org

 

Related articles

https://ibplatform.atlassian.net/wiki/spaces/DT/pages/2477195339

Related content