element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Moto Mods
  • Products
  • Manufacturers
  • Moto Mods
  • More
  • Cancel
Moto Mods
Forum Termapp firmware
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Moto Mods to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 3 replies
  • Subscribers 57 subscribers
  • Views 427 views
  • Users 0 members are here
Related

Termapp firmware

pstaple_ny
pstaple_ny over 8 years ago

Is there any detailed instruction on how to set up the firmware for the termapp(https://developer.motorola.com/build/examples/misc ?  Interested in starting to test some GPIO and UART stuff but couldn't find any detailed information like for the personality cards.  Can I set different GPIO inputs and outputs with this?

 

Any help would be greatly appreciated, sorry if this seem like a simple question.  Just starting out on the MDK.

  • Sign in to reply
  • Cancel
  • pstaple_ny
    0 pstaple_ny over 8 years ago

    Update, I got the firmware successfully uploaded.  Once I run the MDK-Terminal app and click on GPIO config I get no readings.  Has anyone experience this?

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • motomodsdev
    0 motomodsdev over 8 years ago in reply to pstaple_ny

    First question, did you Allow the MDK Terminal to have unrestricted access?  Without allowing this permission in Android, your APK cannot access the Raw channel.  I did notice that after granting the Permission I have to restart to access Raw.  Need to dig into what's going on there, but if you quit and relaunch the app after granting permissions it appears to work properly.

     

    To debug this, I used the debug message from the firmware to ensure it was receiving the commands (it was not).  Please confirm if you have the same behavior, and we'll dig into why Raw doesn't appear to open (in Android) after granting permissions.

     

    Thank you.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • motomodsdev
    0 motomodsdev over 8 years ago in reply to motomodsdev

    Yup, we were missing a couple of lines of code when the Permission is granted.

    In the MainActivity.java onRequestPermissionsResult() method:

    if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {

       setImageButtonEnabled(this, true, btSend, R.drawable.ic_send_24dp);

       personality.onPermissionGranted(true);

    } else {

       // TODO: user declined for RAW accessing permission.
       // To pop up a description dialog or other prompts to explain app cannot work
      // without permission.
       setImageButtonEnabled(this, false, btSend, R.drawable.ic_send_24dp);

       personality.onPermissionGranted(false);

    }

     

    If you add the lines in red, this should resolve your issue.  We'll work to get an update pushed to github (unless you beat us to it).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube