Available online at www.sciencedirect.com Procedia Engineering 29 (2012) 3060 3064 2012 International Workshop on Information and Electronics Engineering (IWIEE) Design of a Chinese Input Method on the Remote Controller Based on the Embedded System Miao-miao Zhu a, Wan lin Gao a *, Zong-yuan Zhao a, Hong-biao Jiang a a College of Information and Electrical Engineering, China Agricultural University, Beijing 100083, China Abstract This paper introduces a Chinese input method on the remote controller based on the embedded system, this input method was designed based on SMP8653, it uses mapping relationship of tree structure management and searches Pinyin and Chinese character in list way. It has the function of self-learning and displaying association character. Its realization improves the Chinese input efficiency and is convenient for searching and managing the multi-media files. 2011 Published by Elsevier Ltd. Selection and/or peer-review under responsibility of Harbin University of Science and Technology Open access under CC BY-NC-ND license. Keywords:remote controller, Chinese input method, embedded system, SMP8653 1. Introduction In our countryside, as a result of computer ownership is relatively small and the network popular rate is low, the agriculture information is easily accepted by the peasants through viewing the videos, under this circumstance, through storing the large amount of agriculture information videos in portable mobile devices is an effective way of solving the problem lacking of information in our countryside.smp8653 chip produced by Sigma designs Integrates SATA (serial port) hard disk interface, CD-Room, two highspeed USB interfaces that support SATA hard disk. The multimedia player designed based on SMP8653 supports high-definition video display and mass storage, which meets the requirements of the peasant s agriculture information needs. According to the remote controller devices for the present multimedia player, there are only control methods which lack of Chinese input method to input effective information, this paper designs a Chinese input method on the remote controller based on SMP8653.This method aims * Wan-lin Gao. Tel.:010-62738536 E-mail address: gaowlin @cau.edu.cn.. 1877-7058 2011 Published by Elsevier Ltd. doi:10.1016/j.proeng.2012.01.440 Open access under CC BY-NC-ND license.
Miao-miao Zhu et al. / Procedia Engineering 29 (2012) 3060 3064 3061 at using simple management to provide a Chinese input through the remote controller. Therefore, the user can input Chinese to search and manage files conveniently. 2. The whole design of the input method on the remote controller The objective is to realize Chinese input method on the remote controller and display the Chinese characters on the screen. The whole framework includes input and signal sending part, the button decoding part, Chinese character database matching part, Chinese input and display part. The whole framework is shown in Figure 1. Fig. 1.The whole framework of the system Input and signal sending part: the input method on the remote controller uses common infrared remote controller as input device. Establish a mapping relationship from combinations of buttons to Chinese characters encoding by the remote controller. After tapping the buttons, find the target Chinese character through a mapping relationship from combinations of buttons to Chinese characters encoding. Send infrared with encoded information through the remote controller internal infrared light emitter diode. The button decoding part: the remote controller uses decoding program decodes infrared signal that received by the remote controller receiving terminal, and then sends the decoded control codes to the application program of the SMP8653 chip. Chinese character database matching part: the application program interacts with search engines. Search the target Chinese characters in the Chinese character database by using the control codes stored in the application program. It matches success if the target Chinese character is found (there may be many homophones when match success, the user can choose the character as needed), otherwise examine whether the Pinyin input is correct. Chinese input and display part: the search results based on the previous steps are displaying on the device screen through the graphics interface of the input method. 3. The realization of Chinese input based on SMP8653 3.1. The design of the remote controller buttons The remote controller buttons use 16 buttons to control input. The Pinyin input design uses the Jiugong Ge layout. The Look-up table of number and letter is shown in Table 1.The remaining eight buttons are used as control buttons. Numeric 0 is used as deleting Chinese characters, Numeric 1 is used as controlling invoking punctuation, The OK button is used as confirming finishing input, the up and down buttons are used as controlling flipping pages, the left and right buttons are used as selecting the
3062 Miao-miao Zhu et al. / Procedia Engineering 29 (2012) 3060 3064 next or previous Chinese character, the input method control button is used as starting, shutting, switching input control. The elements of the component of Chinese characters is a, b, c, d etc. The user can input the Pinyin elements according to the number corresponding to the letter. Table 1.The Look-up table of number and letter Number Letter 2 abc 3 def 4 ghi 5 jkl 6 mno 7 pgrs 8 tuv 9 wxyz 3.2.The signal receive and processing part The remote controller sends the signal of start the input method, and then the user can do all kinds of operations, e.g., input control, select control, delete control, etc. The SMP8653 chip provides supporting infrared equipment, we should install the remote controller driver in the kernel module before use. The installing comprises the following steps: 1. Find the device drivers in the configuration directory. 2. Start the font device to make the SMP8653 support the infrared remote controller and Chinese character database. The Modprobeir kernel module will download the infrared driver when it runs, the /dev/ir device node will be used(if there isn t the device node, the user can establish the node,e.g., $ mknod /dev/irc 2540). 3.3. The data structure and indexing of the input method In the input method, numbers convert to Pinyin and Pinyin convert to Chinese character by using tree structure management. The number button value one to one corresponds to Chinese character through all levels of the contrasting relations. Use double linked list to search through the pointer between Pinyin and Chinese characters, as shown in Figure 2. This input method uses the following data structure: Struct PinYin_Index { Char *PinYin_Num; Char *PinYin; Char *PinYin_HanZi; Char *PinYin_LianXiangCi; }
Miao-miao Zhu et al. / Procedia Engineering 29 (2012) 3060 3064 3063 Fig. 2. The diagram of the data structure PinYin_Num are all kinds of number combinations on the remote controller. PinYin is the number combinations corresponding to Pinyin, PinYin_HanZi is Pinyin corresponding to Chinese character, PinYin_LianXiangCi is used as function of associating Chinese character. 3.4.The design of Chinese input method of the SMP8653 multimedia players The implementation of Chinese input method through establishing a mapping relationship from combinations of buttons to Chinese characters encoding. [2].The Pinyin input method of the multimedia player flow chart is shown in Figure 3. Fig. 3. The Chinese input method of the SMP8653 multimedia player flow
3064 Miao-miao Zhu et al. / Procedia Engineering 29 (2012) 3060 3064 Step 1.Start the input method on the remote controller. Step 2.Decide whether it is Chinese input, if it is, go to step 3, otherwise, go to step 1. Step 3.Use the way of free number combinations to generate the Pinyin combinations, and then select the Pinyin combinations. Step 4.Display the candidate Chinese characters. Step 5.Decide whether the candidate Chinese characters are on the current page, if not, go to step 6, otherwise, go to step 7. Step 6.Turn the next page. Step 7.Tap buttons, select the target Chinese character. Step 8. Decide whether find the corresponding associated Chinese character, if not, go to step 3, otherwise, go to step 9. At the same time, search the corresponding Chinese characters according to dictionary databases and make the input through the user machine learning by itself. Step 9.Tap buttons, display the target Chinese character. As for Pinyin selection, Chinese characters search, etc., this method uses the look-up table search method and highlighting the invalid Pinyin input. And then search the corresponding Chinese characters according to dictionary databases and make the input through the user machine learning. According to the difference of the user s input custom, make the common Chinese characters that the user input adaptive sort, and get the final candidate Chinese characters. 4. Conclusion This paper designs a Chinese input method on the remote controller based on SMP8653, display the Chinese character on the screen through establishing the remote controller number combinations corresponding to Pinyin, Chinese character database search, the tree structure and linked list combining management mode. This input method uses the way of free number combinations to generate the Pinyin combinations, so that it can avoid the efficiency problem that using multiple taps on buttons. As for the input Chinese character, it will display association character, display the common phrase through selfleaning and record the use frequency. through the test, it achieved the initial predicting result. References [1] Min, H.S, Tong, X.C., Chen, Q.J.: Design Chinese Input Method in Embedded System. Microcomputer Information, 2006,vol. 23, pp.41-43. [2] Hu, M.X., Li, S.Q., Zhang, J.: Design and Implementation of Chinese Input Method in Embedded System. Computer Engineering, 2007,vol. 33,no.20, pp.279-282. [3]Wu X.: The development of Chinese input method based on Qtopia and embedded linux. Computer Applications and Software,2008, vol. 25,no.5, pp.227-236. [4]Po, L.M., Wong, C.K., Au, Y.K., Ng, K.H., Wong, K.M.: Six-Digit Stroke-based Chinese Input Method,2009, pp.818-823, Hong Kong. [5] Liao, g.g., Zhang, J.H.: Design of Embedded Chinese Input Method Based on Qtopia. Modern electronics technique,2010, vol. 10, pp.111-113. [6] Chang, J.: Design of Chinese Input Method in Embedded System. Electronic Engineering & Product World, vol.09a, pp.70-74, China (2004) [7]Jiang H.B. Gao W.L.. Etc: Research of an Architecture of Operating System Kernel Based on Modularity Concep, Mathematical and Computer Modelling, June 2010v 51, n 11-12, p 1421-1427