element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • 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
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs Using CP2130EK, an USB to SPI brigde, in Android (previous)
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: gihu
  • Date Created: 5 Jan 2015 12:08 PM Date Created
  • Views 408 views
  • Likes 0 likes
  • Comments 0 comments
  • android
  • cp2130
  • spi
  • usb
  • otg
Related
Recommended

Using CP2130EK, an USB to SPI brigde, in Android (previous)

gihu
gihu
5 Jan 2015

The CP2130 is an easy to use USB to SPI bridge, Silabs gives the necessary tools to get it running in several OS.


For Windows, Linux and OSX we have dll that once installed the OS recognize the CP2130, and you can code your program to communicate with it using a set of functions given in those API. This is very usefull when using these OS, but what about when you want to use an Android devices?


The Silabs solution for Android is a little bit more complex, you can compile the linux library for cp2130 in the linux kernel that runs under the Android, hence, once compiled, your Android will recognize  the IC, and then you can use the library functions when code your app. So, the way is always installing drivers or libraries in the OS, but the problem is that almost 100% of the android devices has no root permission by default, so this seems not to be a good option if you want to have a 'plug and play' solution for a comercial device for Android (rooting means special skills, losing warrannty...)


To avoid this issue, this answer is again in Silabs website, you can find the AN792, with the CP2130 specification, and with this application note and the usb host api in android sdk, you can get an app for any device which runs Android not rooted (minimum ICS), and with no-specific driver or dll for the CP2130, just install the app, plug the CP2130 and start communications.

 

See this two examples Using CP2130EK, an USB to SPI brigde, in Android (Part1) and Using CP2130EK, an USB to SPI brigde, in Android (Part2).

 

I really hope you enjoy this post,

Miguel

  • Sign in to reply
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 © 2023 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