CN1605991A - Java simulation method for mobile communication terminal - Google Patents

Java simulation method for mobile communication terminal Download PDF

Info

Publication number
CN1605991A
CN1605991A CNA2004100692348A CN200410069234A CN1605991A CN 1605991 A CN1605991 A CN 1605991A CN A2004100692348 A CNA2004100692348 A CN A2004100692348A CN 200410069234 A CN200410069234 A CN 200410069234A CN 1605991 A CN1605991 A CN 1605991A
Authority
CN
China
Prior art keywords
task
java
windows
simulator
mobile communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2004100692348A
Other languages
Chinese (zh)
Inventor
李大燮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LG Electronics China Research and Development Center Co Ltd
Original Assignee
LG Electronics China Research and Development Center Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LG Electronics China Research and Development Center Co Ltd filed Critical LG Electronics China Research and Development Center Co Ltd
Publication of CN1605991A publication Critical patent/CN1605991A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a Java analog method for mobile terminals, which used DLL to compose simulator as terminal, and achieves the purpose of terminals by the steps of: 1) loads the simulator, main-thread calls ''WTK_Start()'' function, generates various tasks, and initializes; 2) after generating and initializing the tasks, operates current the most advanced task ''MC task'', waits occurrence of external event, judges the type of the events by ''rex_wait_wtk()'' function, sets right signals according to the events; 3) when the event is key event, sets key event signal to attemper, to change implement mission by REX OS into implement mission by Windows OS; 4) receives signals by ''rex_wait ()'' function of ''UI task'' in wait state, passes to ''handle_keys()'' function to analyse the key value of the input key event, and passes to ''uistate_mvm()'' as practical embody part of ''MVM task'', to drive ''Java VM'' to the passed key event.

Description

The Java analogy method of mobile communication terminal
Technical field
The present invention relates to the Java analogy method of mobile communication terminal, particularly relate to a kind of not downloaded software in mobile communication terminal, and be to use Windows API (application programminginterface-application programming interface) to debug more easily and the Java analogy method of the mobile communication terminal of error tracking (Trace).
Background technology
The SDK (Software Development Kit, SDK (Software Development Kit)) of Sun Microsystems (SUN) issue is used as the instrument that perhaps judges whether to use specification that SUN newly issues etc. in the JAVA of test/inspection CP (ContentsProvider-content provider) exploitation of etc.ing under the Windows environment always.
But, though above-mentioned JAVA SDK is the useful tool of a kind of JAVA of being used for content development personnel reference, but in the actual development phase of mobile communication terminal, for J2ME (Java 2 PlatformMicro Edition, Java 2 platform miniature editions) terminal development personnel or content development personnel then do not have useful value, so far there is not a kind of exploitation/instruments of inspection, under terminal environments, transplant (Porting) MIDP (Mobile Information Device Profile, Mobile Information Device Profile)/during CLDC (Connected Limited Device Configuration-limited connection device configuration), whether can confirm in terminal operate as normal.
As a reference, above-mentioned J2ME is meant that Sun Microsystems (SUN) simplifies a kind of specification that makes it to be fit to mobile communication terminals such as mobile phone to complete version Java specification, and Mobile Information Device Profile (MIDP) is meant based on the description document that adopts KVM (Kilobyte VM-kilobyte virtual machine) for the CLDC of acquiescence VM (virtual machine).
On the other hand, be equipped on the REX of the most of OS of Qualcomm of use of real-time OS of mobile communication terminal, as mentioned above, in the past because the REX simulator at J2ME developer's Windows environment (JAVA REX WTK (Wireless Toolkits-wireless tool bag)) is not provided, therefore there are the following problems, that is,, need direct downloaded software in mobile communication terminal at every turn for the software of exploitation is debugged and error tracking.
Content of the present invention
Therefore, the present invention proposes in order to solve above-mentioned problem in the past just, and purpose is to provide a kind of Java analogy method of mobile communication terminal, and this method is downloaded software in mobile communication terminal not, and be to use Windows API, make debugging and error tracking easier.
For achieving the above object, the invention provides a kind of Java analogy method of mobile communication terminal, utilize dynamic link library to constitute Windows and come the various termination function of Simulation execution with the Java simulator, comprise the steps: 1) be written into described Windows with Java simulator " WTK dll ", so that Windows starts the JAVA module with simulator, main thread call function " WTK_Start () ", the generation task is also carried out initialization to it; 2) after the generation of above-mentioned task and initialization procedure finish, move current highest task " MC task ", then, wait for the generation of external event, judge that by " rex_wait_wtk () " function which kind of class is this incident be, be provided with meet the appropriate signal of incident takes place; 3) when above-mentioned incident is key events, by " pass_key_code () " function setup key events signal, dispatch by " rex_set_sigs () " function, Task Switching (task switching) action of once being carried out by REX OS is carried out by Windows OS; 4) " rex_wait () " function that is in " the UI task " of holding state receives above-mentioned signal and passes to " handle_keys () " function, which kind of key assignments the key events of " handle_keys () " Functional Analysis input is, and pass to " uistate_mvm () " as the actual embodiment portion of " MVM task ", at transmitting the key events of coming, drive " Java VM ".
Preferably, described Windows is the simulator of terminal form with the Java simulator, thereby under the Windows environment, utilizes keyboard or mouse to obtain and the identical effect of realization operating terminal.
Of the present inventionly to be intended to provide a kind of method, improve the mobile RTOS (Realtime Operating System-real time operating system) that Ceng Wufa realizes multitasking, can't realize simulation (Emulation) in Windows, it is the REX environment, downloaded software in mobile communication terminal not, and be to use Windows API, make debugging and error tracking easier, thereby the JAVA SDK (Software Development Kit) to Sun Microsystems (SUN) issue improves, and it can be used under terminal environments.
Brief description of drawings
Fig. 1 is the mobile communication terminal simulator operation picture exemplary plot under the Windows environment of the present invention;
Fig. 2 is the constitutional diagram of the Java analogy method of mobile communication terminal of the present invention.
Embodiment
With reference to the accompanying drawings, the preferred embodiments of the present invention are described.
Fig. 1 is the mobile communication terminal simulator operation picture exemplary plot of Windows environment of the present invention, as shown in the figure, it is by utilizing DLL (Dynamic Link Library, the simulator of terminal form dynamic link library) and " Phone Native API (the local application programming interfaces of the phone) " formation that is used to carry out termination function, use J2ME CLDC/MIDP bag (Package), in simulator, drive " JAVA KVM (kilobyte virtual machine) ".
Fig. 2 is the constitutional diagram of the Java analogy method of mobile communication terminal of the present invention, at first, be written into " WTK dll " (just Windows is with Java simulator (JAVA WTK) in order to start the JAVA module at Windows in simulator, promptly, utilize the simulator of the terminal form of dynamic link library (DLL) formation), main thread calls " WTK_Start () " function.
Wherein, above-mentioned " WTK_Start () " function carries out context initialization at Rex, generates each task (MC task, UI task, MVM task etc.) and it is carried out initialization.At this moment, task can be appended generation as required, in the task generative process, uses Windows API, generates with fine journey (Fiber) form.
Then, the generation of above-mentioned task and initialization procedure move current highest task " MCtask ", then the generation of waiting event (carrying out key input etc. for carry out terminal operation under the simulator environment) after finishing.
Then, after external event takes place, receive this incident in " rex_wait_wtk () " function of " MC task ", judge which kind of class event is, setting meets the appropriate signal (incident is transmitted form between task) of event, when this incident is key events, incident is passed to " pass_key_code () " function.
So, in " pass_key_code () " function, just be provided with key events.
Then, " rex_set_sigs () " function uses above-mentioned task that the middle fine journey of using (Fiber) is set by " rex_sched () " function and dispatches, and Task Switching (taskswitching) action of once being carried out by REX OS in the terminal was carried out by Windows OS.
Above-mentioned signal obtains from " rex_wait () " function of " the UI task " that be in holding state, pass to " handle_keys () " function, which kind of key assignments the key events of " handle_keys () " Functional Analysis input is, passes to " uistate_mvm () " as the actual embodiment portion of " MVM task ".
So, above-mentioned " uistate_mvm () " function then drives " JavaVM " at transmitting the key events that comes.
Generally speaking, REX OS is with time partitioning scheme conversion single task role, and the present invention then is thread (Thread) and the fine journey (Fiber) that can use Windows to provide, changes a plurality of tasks simultaneously.
Therefore, if drive the Java simulator (JAVA REX WTK) under the terminal environments that the present invention embodied, then by selecting pre-assigned simulator key, operation JAVA content, in this course, can carry out the action identical, thereby can utilize the Windows instruments such as visual studio of Microsoft to carry out the debugging of simulator/Rex/J2ME Native API etc. with terminal.
Such as the above-mentioned explanation of doing, the Java analogy method of mobile communication terminal of the present invention has following effect Really, that is, in mobile communication terminal, do not download software, but use Windows API, debugging is reached Error tracking is easier.
Another effect of the present invention is, makes the J2ME developer can be under Windows OS environment, Carry out and operation identical in terminal, can test/inspection have realized the content of commercialization, shorten volume Translate and download time, thereby improve developer's operating efficiency, be easier to develop various content.

Claims (3)

1. the Java analogy method of a mobile communication terminal is utilized dynamic link library to constitute Windows and is come the various termination function of Simulation execution with the Java simulator, comprises the steps:
1) be written into described Windows Java simulator, the main thread call function, the generation task is also carried out initialization to it;
2) after the generation of described task and initialization procedure finish, move current highest task, then, wait for the generation of external event, judge when externally incident takes place that the kind of incident takes place in institute, setting meet the signal of incident takes place;
3) when institute's event is key events, the key events signal is set, dispatches, the Task Switching action of being carried out by REX operating system is carried out by Windows operating system;
4) receive described key events signal, which kind of key assignments the key events of importing according to described key events signal analysis is, at transmitting the key events of coming, drives " Java kilobyte virtual machine ".
2. the Java analogy method of mobile communication terminal according to claim 1, it is characterized in that, the task that described step 1) generates comprises MC task, UI task, MVM task, and described these tasks are used the Windows application programming interface to generate with fine journey form and can be appended generation as required.
3. the Java analogy method of mobile communication terminal according to claim 1, it is characterized in that: described Windows is a terminal form with the Java simulator, so that under the Windows environment, utilizes keyboard or mouse to obtain and the identical effect of realization operating terminal.
CNA2004100692348A 2003-10-08 2004-07-15 Java simulation method for mobile communication terminal Pending CN1605991A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR10-2003-0070003 2003-10-08
KR1020030070003A KR100565295B1 (en) 2003-10-08 2003-10-08 Java emulation method for mobile communication device

Publications (1)

Publication Number Publication Date
CN1605991A true CN1605991A (en) 2005-04-13

Family

ID=34793023

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2004100692348A Pending CN1605991A (en) 2003-10-08 2004-07-15 Java simulation method for mobile communication terminal

Country Status (2)

Country Link
KR (1) KR100565295B1 (en)
CN (1) CN1605991A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704225A (en) * 2016-03-11 2016-06-22 浪潮(北京)电子信息产业有限公司 Method and device for small mobile communication terminal to remotely access super computer

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100692211B1 (en) * 2005-07-01 2007-03-09 엔에이치엔(주) Object management method by using fiber in a game-engine
WO2007061192A1 (en) * 2005-11-25 2007-05-31 Strastar A cyber terminal system and method
MX2008010441A (en) * 2006-02-13 2009-02-20 Maria Gaos System and method for generating and executing a platform emulation based on a selected application.

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704225A (en) * 2016-03-11 2016-06-22 浪潮(北京)电子信息产业有限公司 Method and device for small mobile communication terminal to remotely access super computer

Also Published As

Publication number Publication date
KR20050034162A (en) 2005-04-14
KR100565295B1 (en) 2006-03-30

Similar Documents

Publication Publication Date Title
EP1445693B1 (en) System and method for building and configuring cross-platform applications
Crnkovic Component-based approach for embedded systems
EP1445696A2 (en) Method and system for implementing native software application wrapper
CN101196738A (en) Open type numerical control system based on PC
De Pascale et al. The haptik library
EP2754043A1 (en) Methods and systems for producing, evaluating and simulating executable applications
CN113312245B (en) Integrated waveform management terminal and management method
CN100492287C (en) Software applied frame system facing data analysing instrument, and device and method for developing embedded system using the frame system
US7143400B2 (en) Configuration description language value management method and system
CN1605991A (en) Java simulation method for mobile communication terminal
EP1445694A2 (en) Modularization for J2ME platform implementation
KR20100026604A (en) Platform developing appratus for mobile communication device
JP2005515520A (en) Mobile communication device application processing system
EP3832457A1 (en) Support device and support program
Gatzka et al. The kertasarie vm
CN105959826B (en) A kind of methods, devices and systems handling message
Mostowski JAVA CARD Tools for Together Control Center
Douglass Model driven architecture and Rhapsody
Schmidt et al. Using Design Patterns to Evolve System Software from UNIX to Windows NT
Luder et al. Control programming using Java
Mikhailov Data transmission with Simulink on 6-DoF platform on CAN BUS
Kurniawan et al. Worqbench: an integrated framework for e-Science application development
CN113918214A (en) Program running method and device, electronic equipment and storage medium
Thu et al. A composite design pattern for object frameworks
Tarkoma JAVA AND NOMADIC DEVICES

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication