Odroidmagazine Turn Your ODROID Into A: GIANT TABLET and Create the Ultimate Android Experience!
Total Page:16
File Type:pdf, Size:1020Kb
I/O Shield access • Install and learn the basics of Rebol now! Year One Issue #2 Feb 2014 ODROIDMagazine Turn your ODROID into a: GIANT TABLET And create the ultimate Android experience! High Performance computing at home • Meet an Odroidian Creation and fine granular control Mauro Ribeiro, Senior Software engineer • Estimating Radio net interference: Using Java mutithreading • Linux Gaming - emulators • Start programming right away! • The art of multi boxing • USB Gadget drivers • 811.02ac router with odroid XU Dominate your device ports to do everything Get up to 433mbit/sec EDITORIAL service to the world-wide ODROID and Open Source communities, Hard Kernel is proud to present its newest contribution to ARM technology: A ODROID Magazine, a free monthly PDF e-zine! This cutting-edge online publication brings you the latest ODROID news, as well as featured articles from the expert community that has grown around the amazing ODROID family of micro-powerhouse computers. Intended for all levels of expertise from beginner to guru, ODROID Magazine features definitive guides for new owners, with easy-to-follow steps in setting up your ODROID, installing operating systems and software, and troubleshooting common issues. For more technical users, each month will feature expert tips, hacker discus- sions, cutting-edge projects, and technical articles to explore new ways of making your ODROID even more versatile. Hard Kernel’s ODROID Magazine is an ideal opportunity for our community to come together to share and contribute articles, so that everyone can be successful with their ODROID. Each month, a series of article topics will be posted for consideration, and all community members are encouraged to send submissions in exchange for monthly rewards for those selected for publication. The best articles are those that walk the reader through complex concepts and procedures in a simple-to-read format. At least one picture or graphic per article is required, and should be between 500-2000 words. In this issue, we show you how to turn your ODROID into an enormous 42” touchscreen Android tablet, suitable for kiosks, digital signage, gaming, accessibility, and just plain fun. You’ve never played Fruit Ninja like this! ODROIDMagazine Rob Roy, Chief Editor Bo Lechnowsky, Editor Bruno Doiche, Art Editor I am a computer programmer living I am President of Respectech, Inc., a Spent his last vacation doing nothing. and working in Silicon Valley, CA, technology consultancy in Ukiah, CA, And didn’t manage to do the half of it. USA, designing and building websites USA that I founded in 2001. From my such as Vevo, Hi5, Dolby Laboratories background in electronics and com- and Hyundai. My primary languages puter programming, I manage a team are jQuery, Angular JS and HTML5/ of technologists, plus develop custom CSS3. I also develop pre-built operat- solutions for companies ranging from ing systems, custom kernels and opti- small businesses to worldwide corpora- mized applications for the ODROID tions. ODROIDs are one of the weap- platform based on Hardkernel’s official ons in my arsenal for tackling these releases, for which I have won several projects. My favorite development Monthly Forum Awards. I own a lot of languages are Rebol and Red, both of ODROIDs, which I use for a variety of which run fabulously on ARM-based purposes, including media center, web systems like the ODROID-U2. I have server, application development work- deep experience with many unique op- station, and gaming console. erating systems. ODROID Magazine, published monthly at http://magazine.odroid.com, is your source for all things ODROIDian. • Hard Kernel, Ltd. • 704 Anyang K-Center, Gwanyang, Dongan, Anyang, Gyeonggi, South Korea, 431-815 • Makers of the ODROID family of quad-core development boards and the world’s first ARM big.LITTLE architecture based single board computer. Join the ODROID community with members from over 135 countries, at http://forum.odroid.com, and explore the new technologies offered by Hardkernel at http://www.hardkernel.com. ODROID MAGAZINE 3 ODROID MAGAZINE 3 CONVERTING A MONITOR TO A GIANT ANDROID TABLET Justin Lee and Charles Park ouch screens are common in de- also more expensive, especially when An infrared touch screen uses an array vices such as smartphones, game the screen size is larger than 20 inches. of X-Y infrared LED and photodetec- Tconsoles, all-in-one computers and A capacitive screen can only be acti- tor pairs around the edges of the screen tablets. They also play a prominent role in vated with an exposed finger (no gloves to detect a disruption in the pattern of the design of digital appliances such as dig- or pointers), and can experience opera- LED beams. These LED beams cross ital signage, Point of Sale (POS) systems, tional difficulties if the monitor is not each other in vertical and horizontal pat- satellite navigation devices, mobile phones, correctly mounted into a metal housing terns, which helps the sensors pick up video games and some e-books. due to the electrical field. Considering the exact location of the touch. A major The Android OS, one of the main its ease of use and lower cost, the in- benefit of the infrared system is that it operating systems for the ODROID, frared-type touch screen is better suited can detect essentially any input, including has an intuitive user interface designed for this project. a finger, gloved finger, stylus or pen. It for use with a touch screen. This article is generally used in outdoor applications describes how to use an ODROID to Infrared(IR) Grid and point of sale systems which cannot change any monitor or TV into a giant touch screens rely on a conductor (such as a bare fin- Android tablet. ger) to activate the touch screen. Unlike capacitive touch screens, in- Infrared vs frared touch screens do not require any Capacitive touch patterning on the glass, which increas- screen es durability and optical clarity of the overall system. However, infrared touch Touch screens primarily use either screens are sensitive to dirt and dust infrared or capacitive technology. Ca- that can interfere with the IR beams, pacitive touch screens are more popu- and suffer from parallax in curved sur- lar for smartphones and tablets, but are Principle of IR (Infrared) touch screen faces and accidental touch notifications ODROID MAGAZINE 4 MAKE YOUR GIANT ANDROID TABLET if the user hovers his/her finger over It’s important to check whether the Nexio Co., Ltd. Other touch screens will the screen while searching for the item touch screen is really Windows 8 com- report different VID, PID and vendor to be selected. patible or not. True Plug & Play de- information. vices do not require a separate driver Step 2: Modify to be installed on a hid-ids.h and hid- Windows PC. If the multitouch.c touch screen needs a specific device driv- After downloading the appropriate er, it is not natively Android kernel source from dn.odroid. compatible with com, navigate to the kernels/drivers/hid/ Windows 8 and will directory, then add the VID and PID to be less likely to work the end of the hid-ids.h header file. with Android. Principle of IR (Infrared) Multi-touch screen There are 4 steps to using the touch screen with the Android OS in a How to Choose an nutshell: Infrared touch screen 1) Get the Vendor ID and Product ID from the You can make your own touch screen touch screen USB interface. Example PID and VID values added to by following guides found on the Inter- 2)Modify the files hid-ids.h and hid- kernels/drivers/hid/hid-ids.h net, but it is not easy to implement the multitouch.c, both located in kernel/drivers/ complex multi-touch algorithm and well hid/ Also, add the new ID in the hid- aligned IR emitter/receiver pairs. 3) Build the kernel with the HID-MULTITOUCH multitouch.c source file. It must be Before purchasing an infrared touch option enabled, and transfer the kernel image placed in the hid_device_id mt_devices to the ODROID. screen, it’s important to evaluate its com- structure define. patibility with Android. It must meet at 4) Create an IDC (Input Device Configuration) file. least one of the following requirements: 1) Is your touch screen listed in the Linux multi-touch compatibility table? Step 1: Check the http://lii-enac.fr/en/ar- VID and PID chitecture/linux-input/ Plug the touch screen into any Linux multitouch-devices.html If yes, it will be very easy to activate your PC, then find the VID and PID by typing touch screen. lsusb in the terminal as below right. To determine which device entry 2) Is your touch screen Windows 8 compatible? is associated with the touch screen, list If yes, you need to add a few lines in the Kernel the devices before connecting the touch Example of adding the touch screen ID to driver and an input configuration file. screen, then list them again after connect- kernels/drivers/hid/ ing it. The new entry will correspond to hid-multitouch.c 3) Does your touch screen manufacturer sup- the touch screen device. ply specific Android driver source code? During our project, when the If yes, you need to follow their porting in- struction. 23-inch touch screen was con- nected, an entry of VID:03FC, A touch screen which meets the first PID:05D8 appeared in the de- requirement was not available in our lo- vice list, which represents a touch cal Korean or Chinese markets. Some screen made by Elitegroup Com- touch screen manufacturers in China of- puter Systems. With the 42-inch fered to supply the driver source code touch screen connected, an entry for their products, but the sample code of VID:1870, PID:0119 appeared was not useful in the real world.