TMCnet News

A Research of Touch-screen Digital Photo Frame Based on µC/OS-II Real-time Operating System [Sensors & Transducers (Canada)]
[April 22, 2014]

A Research of Touch-screen Digital Photo Frame Based on µC/OS-II Real-time Operating System [Sensors & Transducers (Canada)]


(Sensors & Transducers (Canada) Via Acquire Media NewsEdge) Abstract: Compared with touch-tone operation photo frame, touch-screen digital photo frame possesses some standing-out features such as huge storage capacity, and good software maintainability. Touch-screen digital photo frame introduces the embedded real-time systems through the application of Mini2440 analog digital photo frame system and Modbus protocol. µC/OS-II real-time operating system is added up to the newly developed platform, which is featured for photo show, slide show and system configuration. This study plays a significant role in demonstrating advantages of application of µC/OS-II system, which contributes to a high quality of photos, short response time, large storage space and user-friendly interface. Copyright © 2013 IFSA.



Keywords: Digital photo frame, µC/OS-II, Real-time Operating System, Mini2440, Touch-screenone.

(ProQuest: ... denotes formulae omitted.) 1. Introduction 1.1. This is a Subtitle Example µC/OS-II is a real-time preemptive multitasking operating systems based on priority, including functions of real-time kernel, task management, time management, inter-task communication synchronization, and memory management [1, 2]. On the platform, each task can be independent and mutual non-interference, which is easy to achieve on-time and correct implementation of the real-time application design and expansion. That is to say, pC/OS-II greatly contributes to simplify the design process. The pC/OS-II operating system featured for small and exquisite structure, opened source code, which is designed for the systems and software development of the micro-controller, being able to seize the real-time multi-task kernel.


Code of the pC/OS-II system is written in majority of ANSI C language, including a small part of the assembly code to make it available for different microprocessor architecture [3]. So far, qC/OS-II has been widely used all over the world, referred to various areas, such as mobile phones, routers, hubs, uninterruptible power supplies, aircraft, medical equipment and industrial control. In fact, the qC/OS-II system has passed a very rigorous testing, and got a certification released by the U.S. FAA, which is allowed to be used in aircraft. These indicate that the pC/OS-II system is stable and reliable. In addition, the outstanding feature of qC/OS-II system is open-source, and easy to transplant and maintenance [4, 5]. What's more, the implementation of pC/OS-II is highly effective, taking small space, and with strong portability and good real-time performance. Given a different priority task to each task, pC/OS-II real-time operating system can effectively task scheduling to ensure timely response to each task, and reduce the complexity of the program.

1.2. The Research Background of Digital Photo Frame Living in the modem society, developing from the touch-tone operation into the touch-screen operation is an inevitable trend for almost all modem electronic products, regardless of mobile phones or laptops, even children's toy games [6]. Since the emergency of digital photo frame products in 2008, it has provided huge opportunities to enterprises and the industry chain. At present, the market gradually became mature, which leads to an increasing market demand such as in the cases of moving into new houses, festivals, weddings etc. Ultimately, digital photo frame which helps to bring huge convenience by science and technology, gradually replaced the demand of paper-based and stent photo frame. However, the market development of digital photo frame in China has to overcome two major difficulties: the price and application space [7]. From the standpoint of technology, development of future digital photo frame will be polarized [8]. Part of the product focuses on stressing some basic functions and low-cost, such as integrating alarm clock, calendar and family decoration into the function. Low-cost strategy is adopted by these products. Another part of the products adds some new functions, such as Wi-Fi, DVB-T, real-time reporting weather, stocks and other information. Thereby, they are expected to become a "desktop information center". In addition, the touch panel will become a new bright spot of an application. Undoubtedly, the embedded system is one of the most popular and the most promising IT applications [9].

2. Research Methods and Techniques 2.1. Theory of Knowledge Main theoretical knowledge points mentioned in the project include: 1) Embedded system principles and interface technology: LCD works with the driver; Touch screen works and the driver, AD data acquisition theory and program design, using EEPROM I2C access methods, principles and program design of real-time clock; 2) The Modbus Protocol: Protocol composition, how it works, how to use them; 3) pC/OS-II operating system [10, 11]: application development, all kinds of communication mechanisms between the tasks of theory and program design; 4) Development of methods: development of software engineering processes, DARTS real-time software analysis and design, software quality assurance; 5) Development tools: ADS1.2 methods, the use of embedded cross development methods.

2.2. Basic Experiment This project involves the following major basic experiments: 1) LCD test [12, 13]: English characters in LCD initialization, LCD display, LCD graphic display, LCD display color settings, and so on.

2) Touch screen experiment: initialization. Touchscreen based on elements such as break contact coordinates get in the way.

3) Real time clock (RTC) experiment: initialization of the real-time clock chip, reading and setting of real time clock time parameters, and so on.

4) Simple application of the Modbus communication protocol: between two experimental tanks (plate) using Modbus Protocol simple communication.

5) ADC experiment [14, 15]: initialization of the ADC, ADC system onboard voltage of DC voltage source method, and so on.

6) I2C bus experiment: I2C bus initialization, settings, data read/write methods, the I2C bus EEPROM read/write methods, and so on.

7) RS485 experiment: initialization settings of RS485, RS485 communication methods, and so on.

8) pC/OS-II basic experiment: including pC/OS-II system initialization, multitasking application programming, communication mechanism between the tasks.

2.3. Design Goals The goal is to design a digital photo frame system, which was developed by the Mini2440 development board. There are primary three goals for the digital photo frame system: improving accuracy, reducing the response time of touch screen, and enhance the robustness of the system. Specifically, the system designed has to meet the following requirements: 1) Use Mini2440 analog digital photo frame system.

2) Mini2440 and pc machine get code downloads and pictures via USB cable and serial cable operation.

3) Pictures stored in Mini2440 can be displayed on the LCD, and complete the related action.

2.4. Functional Goals 1) Provides GUI functionality, supports power on the beautiful main interface; Provides photo gallery, slide shows, and features such as system configuration can be easily switched between the various functions.

2) Photo browsing supports the function of manually turning the page in both directions.

3) Slide navigation features play, pause function.

4) System configuration function should provide the system time setting, product information, pictures, and information functions.

5) This product supports BMP photo formats.

Below is part of the programming code: ...

2.5. Operating Environment 1) This project needs to complete software development, required hardware use Mini2440 Development Board.

2) Supporting software: the project needs to design real-time multi-tasking applications, choose pC/OS-II system as a platform, for integrated environment using ADS 1.2.

2.6. User Interface User interfaces are shown in Fig. l.The four subpictures are main interface, Photo gallery, Photos show interface and Interface of system configuration subsequently.

3. Experiment 3.1. Data Flow Analysis Define abbreviations and acronyms the first time they are used in the text, even after they have been defined in the abstract. Abbreviations such as IEEE, IFSA, ac, de, ms, etc. do not have to be defined. Do not use abbreviations in the title or heads unless they are unavoidable.

According to DARTS design method, the results of analysis needs analysis in the previous step to make data flow analysis, and draw the following data flow diagram. Part of the programming code is shown below: int Main(int arge, char **argv) {OSInit 0; OSTimeSet(O); OSTaskCreate(MainTask,(void*)0,&MainTaskStk [MainTaskStkLengh-1 ], MainTaskPrio); OSStart 0; return 0;} 3.2. The Division of Tasks The task module is divided as shown above in Fig. 2: a total of seven tasks include initialization task, touch screen task command recognition tasks browsing tasks, photos, slide show tasks, system configuration tasks, LCD display task.

3.3. Program Flow Chart for Tasks Fig. 3 is a flowchart regarding to command recognition and information processing tasks and part of its programming code.

3.4. Coding and Testing Start measuring ADS 1.2. In c code, use DebugRel to generate the target, then compile-link works, to find the results. And debug is shown in Fig. 4.

4. The Study Results 4.1. Loading Debug Development of the 'digital photo frame' has passed a number of modifications; in CodeWarrior we build a debug file, now it is to be staged in the ADX and Board-level debugging. Click Debug in the ADX, load the debug file. In the absence of experimental box when connected to the computer, the program did not appear errors.

During the debugging process, we connect together our computer and the test chamber through data lines, turn on computer HyperTerminal, then start up the test chamber; the HyperTerminal will have a corresponding reaction.

Finally we open DNW and have the corresponding data set. Clicking on the USB port in transmit/restore will require 2440ucos example file to be loaded into the test box; test chamber will have corresponding changes according to the pictures and procedures we designed and loaded [16].

Photo gallery, photo shows, and system configuration are three main tasks of the program we designed in the research. Respectively, click on photo gallery and photos displayed in the main interface, you will jump to the corresponding photo gallery and photo show interface. Photo browsing is to display a picture, clicking the picture to the back button takes you to the main interface, click the left button to jump on the preview next pictures. As for photo show, you can click on the play and pause features to play and pause. System configuration has 7-button tasks, click on the photo information, pictures, information, OK to return. There is the system time settings accordingly to achieve its function. Click return and return to the main interface.

Fulfillments of these tasks are as we design, there is no error.

4.2. Summary Embedded system is a kind of dedicated system completely embedded within the controlled device [17-19]. Compared to general system of personal computer, embedded system is usually performed with specific requirements of pre-defined tasks. Owing that the embedded system is only aimed at a specific task, which makes the designers can optimize it, downsize and reduce costs [20]. As embedded systems are usually massively produced, saving of per unit cost can be enlarged by hundreds of production.

This study successfully applies the pC/OS-II realtime operation system into digital photo frame system, which primarily focuses on three functions: photo gallery, photo shows, and system configuration. What's more, multi-tasking scheduling, and design of the communication mechanism based on two-level state machine greatly helps to deal with the problem of multi-messaging between task complexities. However, there are disadvantages in newly designed digital photo frame: both portion of tasks and user operation interfaces need to be improved.

Acknowledgements This work was supported in part by NSFC under Grant No. 71163033, and by China Postdoctoral Science Foundation under Grant No. 2012T50676.

References [1] . Abigail Durrant, David Fröhlich, Abigail Sellen, Evanthia Lyons, Home curation versus teenage photography: Photo displays in the family home, International Journal of Human-Computer Studies, 67, 12,2009, pp. 1005-1023.

[2] . Irvail Satheesh Prabhu, Andrew I. Edwards, Shakeel Akhtar, Presentation of posters using a videocompatible digital photo frame, British Journal of Oral and Maxillofacial Surgery, 46, 6, 2008, pp. 513-514.

[3] . Tinghuai Wang, John Collomosse, Rui Hu, David Slatter, Darryl Greig, Phil Cheatle, Stylized ambient displays of digital media collections, Computers & Graphics, 35, 1, 2011, pp. 54-66.

[4] . Erman Coskun, Martha Grabowski, Software complexity and its impacts in embedded intelligent real-time systems, Journal of Systems and Software, 78, 2,2005, pp. 128-145.

[5] . Ihor Kuz, Yan Liu, Ian Gorton, Gemot Heiser, CAmkES: A component model for secure microkernel-based embedded systems, Journal of Systems and Software, 80, 5,2007, pp. 687-699.

[6] . Michael Nunes, Saul Greenberg, Carman Neustaedter, Using physical memorabilia as $3 [7] . Sunghyuk Kwon, Chungsik Kim, Sujin Kim, Sung H. Han, Two-mode target selection: Considering target layouts in small touch screen devices, International Journal of Industrial Ergonomics, 40, 6, 2010, pp. 733-745.

[8] . Mikhail V. Konnik, Sergey N. Starikov, The use of a consumer grade photo camera in optical-digital correlator for pattem recognition and input scene restoration, Optics Communications, 282, 21, 2009, pp. 4210-4219.

[9] . Kaibin Wang, Ping Li, Jingke Liu, Dianyan Ning, Application of pC/OS-II in the Design of Mine dc Electrical Prospecting Instrument, Procedía Earth and Planetary Science, 3,2011, pp. 485-492.

[10] . S. Y. Sun, H. B. Qin, J. D. Cui, H. B. Ding, Porting pC/OS-II to Cortex-M3 and optimization, Computer System Application, 19,4, 2010, pp. 208-211.

[11] . Yong Zhao, Yu Li, Jing Zhan, The Double-System Architecture for Trusted OS, Physics Procedía, 25, 2012, pp. 2006-2013.

[12] . Chung-Yi Chu, Min-Chun Pan, Effective thermal emission on TFT-LCD TV panels for improving image quality, Advances in Engineering Software, 41,2,2010, pp.130-140.

[13] . Kae-Long Lin, Use of thin film transistor liquid crystal display (TFT-LCD) waste glass in the production of ceramic tiles, Journal of Hazard Materials, 148, 2007, pp. 91-97.

[14] . Guanzhong Huang, Pingfen Lin, A 150/conversionstep 8-bit 50 MS/s asynchronous SAR ADC with efficient charge recycling technique, Microelectronics Journal, 43, 12,2012, pp. 941-948.

[15] . R. Allan Belcher, A 12 bit 125 MHz ADC using direct interpolation, Measurement, 28, 2, 2000, pp. 77-83.

[16] . Barbara Lohse, Robin Rifkin, Jodi Stotts Krall, Digital Photo Receivers Deliver Herbal Education for Low-income Persons, Journal of Nutrition Education and Behavior, 41, 6,2009, pp. 438-440.

[17] . L. P. Maguire, T. M. McGinnity, L. J. McDaid, Issues in the development of an integrated environment for embedded system design: Part B: design and implementation, Microprocessors and Microsystems, 23,4, 1999, pp. 199-206.

[18] . Jin-Hyun Kim, Jae-Hwan Sim, Jin-Young Choi, Resource-Oriented Design Framework for Embedded System Components, Electronic Notes in Theoretical Computer Science, 215,2008, pp. 171-189.

[19] . Zhonglei Wang, Andreas Herkersdorf, Software performance simulation strategies for high-level embedded system design, Performance Evaluation, 67, 8,2010, pp. 717-739.

[20] . F. Thomas, M. M. Nayak, S. Udupa, J. K. Kishore, V. K. Agrawal, A hardware/software codesign for improved data acquisition in a processor based embedded system, Microprocessors and Microsystems, 24, 3,2000, pp. 129-134.

1,* Chunnian Liu,1 Li Li,2 Xiaobo Yang, 3 Hua Xiao 1 School of Information Engineering, Nanchang University, Nanchang, 330031, China 2 School of Education, Nanchang University, Nanchang, 330031, China 3 Library, Jiangxi Agricultural University, Nanchang, 330031, China *Tel.: 18970920720 * E-mail: [email protected] Received: 16 September 2013 /Accepted: 22 November 2013 /Published: 30 December 2013 (c) 2013 International Frequency Sensor Association

[ Back To TMCnet.com's Homepage ]