KR101068004B1 - JavaScript file serving method and system - Google Patents
JavaScript file serving method and system Download PDFInfo
- Publication number
- KR101068004B1 KR101068004B1 KR1020080057724A KR20080057724A KR101068004B1 KR 101068004 B1 KR101068004 B1 KR 101068004B1 KR 1020080057724 A KR1020080057724 A KR 1020080057724A KR 20080057724 A KR20080057724 A KR 20080057724A KR 101068004 B1 KR101068004 B1 KR 101068004B1
- Authority
- KR
- South Korea
- Prior art keywords
- javascript file
- information
- mobile terminal
- terminal
- received
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
본 발명에 따르는 자바 스크립트 파일 제공 방법은 이동 단말에 의해 입력되는 요청을 웹서버로 전달하는 단계와, 상기 웹서버로부터 상기 요청과 관련되는 자바 스크립트 파일을 수신하는 단계와, 상기 수신된 자바 스크립트 파일을, 상기 이동 단말에서의 구현 환경을 고려하여 코드 변환하는 단계, 및 상기 코드 변환된 자바 스크립트 파일을, 상기 이동 단말로 전송하는 단계를 포함하는 것을 특징으로 한다.The method for providing a JavaScript file according to the present invention comprises the steps of: transmitting a request input by a mobile terminal to a web server, receiving a javascript file associated with the request from the web server, and receiving the received javascript file The step of code conversion in consideration of the implementation environment in the mobile terminal, and transmitting the code-transformed JavaScript file, characterized in that it comprises a step.
자바 스크립트 파일, 코드, 변환, 펌웨어, 이동 단말 JavaScript files, code, conversion, firmware, mobile terminal
Description
본 발명은 자바 스크립트 파일을 요청한 이동 단말로 상기 이동 단말의 구현 환경을 고려하여 코드 변환한 자바 스크립트 파일을 전송함으로써, 상기 이동 단말에서 상기 코드 변환된 자바 스크립트 파일을 실행하는 속도를 높일 수 있는 자바 스크립트 파일 제공 방법 및 시스템에 관한 것이다.According to the present invention, a Java file is transcoded to a mobile terminal requesting a JavaScript file in consideration of the implementation environment of the mobile terminal, thereby increasing the speed of executing the coded JavaScript file in the mobile terminal. It relates to a script file providing method and system.
현재 상용화된 모바일 인터넷 브라우저는 크게 두 가지 방식으로 나누어진다. 그 중에서, 일반적인 PC와 같은 방식으로 이동 단말에서 html, css, 이미지, JavaScript 등을 내려받아 파싱(parsing)한 후, 화면을 직접 렌더링(rendering)하는 풀 브라우저(Full Browser) 방식이 있다. 또 달리, 서버에서 파싱과 렌더링 과정을 처리한 후, 이동 단말로 결과 이미지 파일을 전송하는 웹뷰어(Web Viewer) 방식이 있다.Currently commercially available mobile internet browsers are divided into two ways. Among them, there is a full browser method that downloads and parses html, css, images, JavaScript, etc. from a mobile terminal in the same way as a general PC, and then directly renders a screen. Alternatively, there is a web viewer method of processing a parsing and rendering process in a server and transmitting a resultant image file to a mobile terminal.
풀 브라우저 방식의 경우, JavaScript, Flash를 내려받아 이동 단말에서 직접 수행하므로, 데이터를 다시 다운받을 필요가 없어 웹 사이트에 머무는 시간이 길어지면, 웹뷰어 방식에 비해 데이터 트래픽이 적다는 장점이 있다. 또한, 사용 자의 입력(마우스 클릭, 드래그)에 대한 처리를 이동 단말에서 직접 할 수 있어, 서버에 입력을 보내고, 서버에서 입력에 대한 처리를 하고 화면을 캡쳐하여 이미지를 다시 전송하는 웹뷰어 방식에 비해 반응속도가 빠르다는 장점이 있다.In the full browser method, since JavaScript and Flash are downloaded and executed directly on the mobile terminal, there is no need to download the data again, so if the time spent on the web site is long, the data traffic is less than that of the web viewer method. In addition, the user's input (mouse click, drag) can be handled directly from the mobile terminal, and the web viewer method sends input to the server, processes the input from the server, captures the screen, and sends the image again. In comparison, the reaction rate is faster.
그러나, 풀 브라우저 방식은, JavaScript가 컴파일(compile)언어가 아닌, 브라우저에서 소스 코드(source code)를 실행하는 스크립트 언어이고, 브라우저가 실행되는 이동 단말의 퍼포먼스의 한계로 인해 JavaScript의 실행속도가 느리다는 단점이 있다.However, the full browser method is a scripting language that executes source code in a browser, not a compile language, and the execution speed of JavaScript is slow due to the limitation of the performance of the mobile terminal in which the browser is executed. Has its drawbacks.
도 1은 종래기술에 따른 이동 단말, 웹 가속기 및 웹서버 간의 전체적인 연결관계를 도시한 도면이다.1 is a view showing the overall connection between a mobile terminal, a web accelerator and a web server according to the prior art.
웹 가속기는 이동 단말로부터 자바 스크립트 파일의 요청(S110)을 수신하여, 상기 요청된 자바 스크립트 파일을 제공하는 웹서버로 상기 자바 스크립트 파일을 요청(S120)하여, 상기 웹서버로부터 상기 자바 스크립트 파일을 수신한다(S130). 상기 웹 가속기는 데이터 트래픽을 줄이기 위하여, 상기 수신된 자바 스크립트 파일을 압축하여(S140), 상기 압축된 자바 스크립트 파일을 상기 이동 단말로 전송한다(S150). 이에 따라, 단계 S160에서, 이동 단말은 상기 수신한 자바 스크립트 파일의 압축을 해제하고, 압축 해제된 자바 스크립트 파일을 실행할 수 있다.The web accelerator receives a request for a JavaScript file from a mobile terminal (S110), requests the JavaScript file to a web server providing the requested JavaScript file (S120), and receives the JavaScript file from the web server. Receive (S130). The web accelerator compresses the received JavaScript file to reduce data traffic (S140), and transmits the compressed JavaScript file to the mobile terminal (S150). Accordingly, in step S160, the mobile terminal can decompress the received JavaScript file and execute the decompressed JavaScript file.
즉, 종래의 풀 브라우저 방식은 데이터 트래픽을 줄이기 위하여, 자바 스크립트 파일을 압축하여 전송할 뿐, 이동 단말에서의 자바 스크립트 파일 실행속도가 여전히 느리다는 문제점이 있다.That is, the conventional full browser method has a problem in that the JavaScript file execution speed is still slow in the mobile terminal only by compressing and transmitting the JavaScript file in order to reduce data traffic.
이에, 본 발명에서는, 자바 스크립트 파일을 요청한 이동 단말로 상기 이동 단말의 구현 환경을 고려하여 코드 변환한 자바 스크립트 파일을 전송함으로써, 상기 이동 단말에서 상기 코드 변환된 자바 스크립트 파일을 실행하는 속도를 높일 수 있는 새로운 기술을 제안하고자 한다.Therefore, in the present invention, by transmitting the JavaScript file is code-converted in consideration of the implementation environment of the mobile terminal to the mobile terminal requesting a JavaScript file, to speed up the execution of the code-converted JavaScript file in the mobile terminal I would like to propose a new technology.
본 발명은 상기와 같은 문제점을 해결하기 위하여 안출된 것으로서, 자바 스크립트 파일을 요청한 이동 단말로 상기 이동 단말의 구현 환경을 고려하여 코드 변환한 자바 스크립트 파일을 전송함으로써, 상기 이동 단말에서 상기 코드 변환된 자바 스크립트 파일을 실행하는 속도를 높일 수 있는 자바 스크립트 파일 제공 방법 및 시스템을 제공하는 것을 목적으로 한다.The present invention has been made to solve the above problems, and by transmitting a JavaScript file that is code-converted in consideration of the implementation environment of the mobile terminal to the mobile terminal requesting a JavaScript file, the code-converted at the mobile terminal An object of the present invention is to provide a method and system for providing a JavaScript file that can speed up execution of the JavaScript file.
또한, 본 발명은 이동 단말로부터 수신한 단말 정보 또는 펌웨어 정보에 상응하는 펌웨어를 이용하여 상기 이동 단말로 전송할 자바 스크립트 파일을 코드 변환함으로써, 각 이동 단말에서의 구현 환경을 고려하여 각 이동 단말에 맞게 자바 스크립트 파일을 코드 변환할 수 있는 자바 스크립트 파일 제공 방법 및 시스템을 제공하는 것을 목적으로 한다.In addition, the present invention by transcoding the JavaScript file to be transmitted to the mobile terminal by using the firmware corresponding to the terminal information or firmware information received from the mobile terminal, to suit each mobile terminal in consideration of the implementation environment in each mobile terminal An object of the present invention is to provide a method and system for providing a JavaScript file capable of transcoding the JavaScript file.
또한, 본 발명은 이동 단말로부터 수신한 변환 타입 정보에 상응하는 하드웨어 스펙 정보 또는 WIPI 플랫폼 정보를 이용하여 자바 스크립트 파일을 코드 변환함으로써, 각 이동 단말에서의 구현 환경을 고려하여 각 이동 단말에 맞게 자바 스크립트 파일을 코드 변환할 수 있는 자바 스크립트 파일 제공 방법 및 시스템을 제공하는 것을 목적으로 한다.In addition, the present invention code-converts the JavaScript file using hardware specification information or WIPI platform information corresponding to the conversion type information received from the mobile terminal, so that the Java is adapted to each mobile terminal in consideration of the implementation environment in each mobile terminal. An object of the present invention is to provide a method and system for providing a JavaScript file that can transcode the script file.
또한, 본 발명은 바이트코드(bytecode), 머신 코드(machine code), 또는 트리의 바이너리 포맷(Binary format) 중 어느 하나로 변환한 자바 스크립트 파일을 이동 단말로 전송하여, 상기 이동 단말에서의 자바 스크립트 파일 실행속도를 높임 으로써, 이동 단말에서도 PC와 동일한 리치 인터넷(RIA: Rich Internet Application)을 사용할 수 있는 자바 스크립트 파일 제공 방법 및 시스템을 제공하는 것을 목적으로 한다.In addition, the present invention transmits a JavaScript file converted to any one of byte code, machine code, or binary format of the tree to the mobile terminal, the JavaScript file in the mobile terminal By increasing the execution speed, an object of the present invention is to provide a method and system for providing a JavaScript file that can use the same Rich Internet Application (RIA: Rich Internet Application) in a mobile terminal.
상기와 같은 본 발명의 목적을 달성하기 위하여, 본 발명의 일실시예에 따른 자바 스크립트 파일 제공 방법은 이동 단말에 의해 입력되는 요청을 웹서버로 전달하는 단계와, 상기 웹서버로부터 상기 요청과 관련되는 자바 스크립트 파일을 수신하는 단계와, 상기 수신된 자바 스크립트 파일을, 상기 이동 단말에서의 구현 환경을 고려하여 코드 변환하는 단계, 및 상기 코드 변환된 자바 스크립트 파일을, 상기 이동 단말로 전송하는 단계를 포함하는 것을 특징으로 한다.In order to achieve the object of the present invention as described above, a method for providing a JavaScript file according to an embodiment of the present invention comprises the steps of forwarding a request input by a mobile terminal to a web server, and associated with the request from the web server Receiving a JavaScript file, transcoding the received JavaScript file in consideration of an implementation environment of the mobile terminal, and transmitting the transcoded JavaScript file to the mobile terminal. Characterized in that it comprises a.
또한, 본 발명의 일실시예에 따른 자바 스크립트 파일 제공 시스템은 이동 단말에 의해 입력되는 요청을 웹서버로 전달하고, 상기 웹서버로부터 상기 요청과 관련되는 자바 스크립트 파일을 수신하는 서버 통신모듈과, 상기 수신된 자바 스크립트 파일을, 상기 이동 단말에서의 구현 환경을 고려하여 코드 변환하는 코드 변환모듈, 및 상기 코드 변환된 자바 스크립트 파일을, 상기 이동 단말로 전송하는 단말 통신모듈을 포함하는 것을 특징으로 한다.In addition, the JavaScript file providing system according to an embodiment of the present invention is a server communication module for transmitting a request input by the mobile terminal to the web server, and receives a JavaScript file associated with the request from the web server, And a code conversion module for transcoding the received javascript file in consideration of the implementation environment of the mobile terminal, and a terminal communication module for transmitting the coded javascript file to the mobile terminal. do.
본 발명에 따르면, 자바 스크립트 파일을 요청한 이동 단말로 상기 이동 단말의 구현 환경을 고려하여 코드 변환한 자바 스크립트 파일을 전송함으로써, 상기 이동 단말에서 상기 코드 변환된 자바 스크립트 파일을 실행하는 속도를 높일 수 있게 된다.According to the present invention, by transmitting a Javascript file code-converted in consideration of the implementation environment of the mobile terminal to the mobile terminal requesting a JavaScript file, it is possible to increase the speed of executing the coded JavaScript file in the mobile terminal Will be.
또한, 본 발명에 따르면, 이동 단말로부터 수신한 단말 정보 또는 펌웨어 정보에 상응하는 펌웨어를 이용하여 상기 이동 단말로 전송할 자바 스크립트 파일을 코드 변환함으로써, 각 이동 단말에서의 구현 환경을 고려하여 각 이동 단말에 맞게 자바 스크립트 파일을 코드 변환할 수 있게 된다.In addition, according to the present invention, by transcoding the JavaScript file to be transmitted to the mobile terminal by using firmware corresponding to the terminal information or firmware information received from the mobile terminal, each mobile terminal in consideration of the implementation environment in each mobile terminal You will be able to transcode JavaScript files to fit your needs.
또한, 본 발명에 따르면, 이동 단말로부터 수신한 변환 타입 정보에 상응하는 하드웨어 스펙 정보 또는 WIPI 플랫폼 정보를 이용하여 자바 스크립트 파일을 코드 변환함으로써, 각 이동 단말에서의 구현 환경을 고려하여 각 이동 단말에 맞게 자바 스크립트 파일을 코드 변환할 수 있게 된다.In addition, according to the present invention, by transcoding the JavaScript file using hardware specification information or WIPI platform information corresponding to the conversion type information received from the mobile terminal, to each mobile terminal in consideration of the implementation environment in each mobile terminal. You will be able to transcode JavaScript files accordingly.
또한, 본 발명에 따르면, 바이트코드, 머신 코드, 또는 트리의 바이너리 포맷 중 어느 하나로 변환한 자바 스크립트 파일을 이동 단말로 전송하여, 상기 이동 단말에서의 자바 스크립트 파일 실행속도를 높임으로써, 이동 단말에서도 PC와 동일한 리치 인터넷(RIA)을 사용할 수 있게 된다.In addition, according to the present invention, by transmitting a JavaScript file converted to any one of the byte code, machine code, or binary format of the tree to the mobile terminal, the execution speed of the JavaScript file on the mobile terminal, thereby increasing You will be able to use the same Rich Internet (RIA) as your PC.
이하, 첨부된 도면을 참조하여, 본 발명에 따른 자바 스크립트 파일 제공 방법 및 시스템에 대하여 상세히 설명한다.Hereinafter, a method and system for providing a JavaScript file according to the present invention will be described in detail with reference to the accompanying drawings.
본 발명의 자바 스크립트 파일 제공 시스템은 웹가속기(Web Accelerator) 내부에 포함되어 구현되거나, 또는 웹가속기 외부에서 상기 웹가속기를 제어하여 본 발명이 목적하는 바를 구현할 수도 있다.The JavaScript file providing system of the present invention may be implemented by being included in a web accelerator, or by controlling the web accelerator from the outside of the web accelerator to implement the object of the present invention.
도 2는 본 발명의 일실시예에 따른 자바 스크립트 파일 제공 시스템과, 이동 단말, 단말 정보 서버 및 웹서버 간의 전체적인 연결관계를 도시한 도면이다.2 is a diagram illustrating an overall connection relationship between a JavaScript file providing system and a mobile terminal, a terminal information server, and a web server according to an embodiment of the present invention.
단계 S210에서, 이동 단말(210)은 자바 스크립트(JavaScript) 파일 제공 시스템(200)으로 자바 스크립트 파일을 요청한다. 이때, 이동 단말(210)은 단말 정보, 펌웨어 정보 또는 변환 타입 정보 중 적어도 하나를 자바 스크립트 파일 제공 시스템(200)에 전송할 수 있다. 여기서, 이동 단말(210)은 풀 브라우저 방식의 인터넷 브라우저를 제공하는 단말기일 수 있다.In operation S210, the
단계 S220에서, 자바 스크립트 파일 제공 시스템(200)은 이동 단말(210)의 요청을 수신하여, 상기 단말 정보, 상기 펌웨어 정보 또는 상기 변환 타입 정보 중 적어도 하나를 단말 정보 서버(220)로 전송한다. In operation S220, the JavaScript
실시예로, 자바 스크립트 파일 제공 시스템(200)은 상기 단말 정보 또는 상기 펌웨어 정보에 대응하는 펌웨어, 상기 변환 타입 정보에 상응하는 하드웨어 스펙 정보 또는 WIPI 플랫폼 정보를 기록, 유지할 수 있다. 그러나, 자바 스크립트 파일 제공 시스템(200)이 상기 펌웨어, 상기 하드웨어 스펙 정보 또는 상기 WIPI 플랫폼 정보를 저장하고 있지 않은 경우, 단말 정보 서버(220)로 상기 단말 정보, 상기 펌웨어 정보 또는 상기 변환 타입 정보를 전송하여, 이에 상응하는 정보들을 수신할 수 있다. In an embodiment, the JavaScript
단계 S230에서, 단말 정보 서버(220)는 상기 단말 정보, 상기 펌웨어 정보 또는 상기 변환 타입 정보를 수신하여, 이에 상응하는 펌웨어, 하드웨어 스펙 정보 또는 WIPI 플랫폼 정보를 자바 스크립트 파일 제공 시스템(200)으로 전송한다.In operation S230, the
단계 S240에서, 자바 스크립트 파일 제공 시스템(200)은 상기 정보들을 수신 하고, 웹서버(230)로 자바 스크립트 파일을 요청한다. 웹서버(230)는 이동 단말(210)이 요청한 자바 스크립트 파일을 제공하는 인터넷 서버일 수 있다.In operation S240, the JavaScript
단계 S250에서, 웹서버(230)는 상기 요청된 자바 스크립트 파일을 자바 스크립트 파일 제공 시스템(200)으로 전송한다.In step S250, the
단계 S260에서, 자바 스크립트 파일 제공 시스템(200)은 상기 자바 스크립트 파일을 수신하여, 상기 수신된 자바 스크립트 파일을, 이동 단말(210)에서의 구현 환경을 고려하여 코드 변환한다.In operation S260, the JavaScript
일례로, 자바 스크립트 파일 제공 시스템(200)은 상기 단말 정보 또는 상기 펌웨어 정보에 상응하는 펌웨어를 이용하여 상기 자바 스크립트 파일을 코드 변환하거나, 또는 상기 변환 타입 정보에 상응하는 하드웨어 스펙 정보 또는 WIPI 플랫폼 정보를 이용하여 상기 자바 스크립트 파일을 코드 변환할 수 있다.For example, the JavaScript
다른 일례로, 자바 스크립트 파일 제공 시스템(200)은 이동 단말(210)에서의 구현 환경을 고려하여 상기 자바 스크립트 파일을 바이트코드(bytecode), 머신 코드(machine code), 트리의 바이너리 포맷(binary format)으로 변환할 수 있다.In another example, the JavaScript
단계 S270에서, 자바 스크립트 파일 제공 시스템(200)은 상기 코드 변환된 자바 스크립트 파일을 이동 단말(210)로 전송한다.In operation S270, the JavaScript
단계 S280에서, 이동 단말(210)은 상기 코드 변환된 자바 스크립트 파일을 실행하여, 자바 스크립트 파일의 실행속도를 높임으로써, 이동 단말(210)의 사용자는 PC와 동일한 리치 인터넷(RIA: Rich Internet Application)을 사용할 수 있는 장점이 있다.In step S280, the
도 3은 본 발명의 일실시예에 따른 자바 스크립트 파일 제공 시스템의 구성을 도시한 도면이다.3 is a diagram illustrating a configuration of a JavaScript file providing system according to an embodiment of the present invention.
자바 스크립트 파일 제공 시스템(300)은 서버 통신모듈(310), 코드 변환모듈(320), 단말 통신모듈(330) 및 데이터베이스를 포함하여 구성될 수 있다.The JavaScript
서버 통신모듈(310)은 이동 단말(210)에 의해 입력되는 요청을 웹서버(230)로 전송하고, 상기 요청과 관련되는 자바 스크립트 파일을 수신한다.The server communication module 310 transmits a request input by the
그 전에, 단말 통신모듈(330)은 이동 단말(210)로부터 상기 요청을 수신할 때, 단말 정보, 펌웨어 정보 또는 변환 타입 정보를 함께 수신할 수 있다. 예를 들어, 상기 단말 정보는 이동 단말(210)의 전화번호, 모델명 등을 포함하고, 상기 펌웨어 정보는 펌웨어 버전을 포함하며, 상기 변환 타입 정보는 이동 단말(210)에서 요청하는 코드 변환 타입을 포함할 수 있다. 이러한 정보들은, 자바 스크립트 파일을 코드 변환할 때, 필요한 정보로서, 이동 단말(210)의 구현 환경을 파악하기 위한 자료로서 이용된다.Before that, when the terminal communication module 330 receives the request from the
코드 변환모듈(320)은 상기 수신된 자바 스크립트 파일을, 이동 단말(210)에서의 구현 환경을 고려하여 코드 변환할 수 있다.The code conversion module 320 may code convert the received JavaScript file in consideration of an implementation environment of the
본 발명의 실시예로, 코드 변환모듈(320)은 상기 수신된 단말 정보 또는 펌웨어 정보에 상응하는 펌웨어를 이용하여, 상기 자바 스크립트 파일을 코드 변환할 수 있다. 상기 펌웨어(Firmware)는 이동 단말(210)의 펌웨어로서, 자바 스크립트 파일 제공 시스템(300)의 데이터베이스에서 상기 단말 정보 또는 상기 펌웨어 정보에 상응하는 펌웨어를 미리 저장, 유지할 수 있다.In an embodiment of the present invention, the code conversion module 320 may code convert the JavaScript file using firmware corresponding to the received terminal information or firmware information. The firmware is firmware of the
그러나, 상기 펌웨어가 저장되어 있지 않은 경우, 서버 통신모듈(310)에서 상기 단말 정보 또는 상기 펌웨어 정보를 단말 정보 서버(220)로 전송하여, 이에 상응하는 펌웨어를 수신함으로써, 코드 변환모듈(320)이 상기 수신된 펌웨어를 이용하여, 상기 자바 스크립트 파일을 코드 변환할 수 있다.However, if the firmware is not stored, the server communication module 310 transmits the terminal information or the firmware information to the
본 발명의 다른 실시예로, 코드 변환모듈(320)은 상기 수신된 변환 타입 정보에 상응하는 하드웨어 스펙 정보 또는 WIPI 플랫폼 정보를 이용하여 상기 자바 스크립트 파일을 코드 변환할 수 있다. 상기 하드웨어 스펙 정보는 코드 변환된 자바 스크립트 파일을 실행 가능한 이동 단말(210)의 하드웨어 스펙을 포함하고, 상기 WIPI(Wireless Internet Platform for Interoperability) 플랫폼 정보는 이동 단말(210)이 WIPI 플랫폼 사용 가능 또는 불가능 여부에 대한 정보를 포함할 수 있다.In another embodiment of the present invention, the code conversion module 320 may code convert the JavaScript file using hardware specification information or WIPI platform information corresponding to the received conversion type information. The hardware specification information includes a hardware specification of the
이 또한 마찬가지로, 상기 데이터베이스에 하드웨어 스펙 정보 또는 WIPI 플랫폼 정보를 미리 저장, 유지할 수 있으나, 만약 필요한 하드웨어 스펙 정보 또는 WIPI 플랫폼 정보가 저장되어 있지 않은 경우, 서버 통신모듈(310)에서 상기 변환 타입 정보를 단말 정보 서버(220)로 전송하여, 이에 상응하는 하드웨어 스펙 정보 또는 WIPI 플랫폼 정보를 수신할 수 있다. 이에 따라, 코드 변환모듈(320)은 상기 수신된 하드웨어 스펙 정보 또는 WIPI 플랫폼 정보를 이용하여, 요청된 변환 타입에 따라 상기 자바 스크립트 파일을 코드 변환할 수 있다.Likewise, hardware specification information or WIPI platform information may be stored and maintained in advance in the database. However, if necessary hardware specification information or WIPI platform information is not stored, the server communication module 310 converts the conversion type information. By transmitting to the
본 발명의 또 다른 실시예로, 코드 변환모듈(320)은 상기 자바 스크립트 파일을 컴파일(compile)하여, 이동 단말(210)의 가상 머신(VM: Virtual Machine)에서 실행되는 바이트코드로 변환한다. 상기 가상 머신은 프로그램을 실행할 수 있도록 가상으로 컴퓨터를 소프트웨어로 구현한 것으로, 주로 운영체제(OS)에 독립적인 실행을 위해 사용될 수 있다. 상기 바이트코드는 상기 가상 머신에서 효율적으로 실행 가능하도록 만든 명령어 집합으로, 일반 소스 코드(source code)를 컴파일하여 만들 수 있으며, 가상 머신 위에서 실행된다. In another embodiment of the present invention, the code conversion module 320 compiles the JavaScript file, and converts the JavaScript file into bytecode executed in a virtual machine (VM) of the
본 발명에 따르면, 상기 바이트코드는 이동 단말(210)에서 자바 스크립트 파일을 실행하는 속도보다 빠르게 실행된다는 장점이 있다. 즉, 이동 단말(210)은 상기 바이트코드로 변환된 자바 스크립트 파일을 실행함으로써, 실행 속도를 현저히 낮출 수 있다. According to the present invention, the bytecode has an advantage that the
본 발명의 또 다른 실시예로, 코드 변환모듈(320)은 상기 자바 스크립트 파일을 상기 이동 단말의 CPU에서 실행되는 머신 코드로 변환한다. 상기 머신 코드는 CPU에 의해 직접 실행되는 명령어 집합으로, JIT(Just In Time) Compiler에 의해 상기 바이트코드를 머신 코드로 변경할 수 있다. 상기 머신 코드는 하드웨어(CPU)에 의존적이다. 상기 머신 코드도 상기 바이트코드와 마찬가지로, 이동 단말(210)에서 자바 스크립트 파일을 실행하는 속도보다 빠르게 실행된다는 장점이 있다.In another embodiment of the present invention, the code conversion module 320 converts the JavaScript file into machine code that is executed in the CPU of the mobile terminal. The machine code is a set of instructions that are directly executed by the CPU, and the byte code may be converted into machine code by a Just In Time (JIT) Compiler. The machine code is hardware dependent (CPU). Like the byte code, the machine code has an advantage that the
본 발명의 또 다른 실시예로, 코드 변환모듈(320)은 상기 자바 스크립트 파일을 파싱(parsing)하여 트리(Tree)의 바이너리 포맷으로 변환한다. 자바 스크립트(JavaScript)는 웹서버(230)에서 소스 코드가 전송되어, 브라우저에서 상기 소스 코드를 직접 실행하는 스크립트 언어로서, 코드 변환모듈(320)은 상기 자바 스크립 트 파일의 자바 스크립트 소스를 파싱하여 이동 단말(210)의 브라우저가 해석할 수 있는 parsing tree 또는 syntax tree를 구성한 후, 상기 구성된 트리를 바이너리 포맷으로 변환할 수 있다. 이러한, 바이너리 포맷 역시, 자바 스크립트 파일을 실행하는 속도보다 신속하게 실행시킬 수 있다.In another embodiment of the present invention, the code conversion module 320 parses the JavaScript file and converts the JavaScript file into a binary format of a tree. Javascript (JavaScript) is a script language that the source code is transmitted from the
이동 통신모듈(330)은 상기 코드 변환된 자바 스크립트 파일을, 이동 단말(210)로 전송한다.The mobile communication module 330 transmits the transcoded JavaScript file to the
이에 따라, 이동 단말(210)은 상기 전송된 코드가 바이너리코드인 경우, 가상 머신 위에서 실행하여 자바 스크립트 파일의 실행 속도를 높일 수 있다. 또는, 이동 단말(210)은 JIT Compiler를 통해 상기 바이너리코드를 이동 단말(210)의 하드웨어에 최적화된 머신 코드로 변경하여 실행 속도를 극대화할 수도 있다.Accordingly, when the transmitted code is a binary code, the
또 달리, 이동 단말(210)은 상기 전송된 코드가 머신 코드인 경우, 하드웨어에서 직접 실행하거나, 또는 상기 전송된 코드가 트리의 바이너리 포맷인 경우, 브라우저에서 트리를 구성한 후, 인터프리터(interpreter)를 통해 실행할 수도 있다.Alternatively, if the transmitted code is machine code, the
도 4는 본 발명의 일실시예에 따른 자바 스크립트 파일 제공 방법의 순서를 도시한 흐름도이다.4 is a flowchart illustrating a procedure of a method for providing a JavaScript file according to an embodiment of the present invention.
상기 자바 스크립트 파일 제공 방법은 본 발명의 자바 스크립트 파일 제공 시스템(300)에 의해 구현될 수 있다. 또한, 이하에서는 상술한 도 3을 참조하여 도 4를 설명함으로써 발명의 이해를 도모한다.The JavaScript file providing method may be implemented by the JavaScript
단계 S410에서, 자바 스크립트 파일 제공 시스템(300)은 이동 단말(210)에 의해 입력되는 요청을 웹서버(230)로 전달한다. 그 전에, 단말 통신모듈(330)은 이동 단말(210)로부터 상기 요청을 수신할 때, 단말 정보, 펌웨어 정보 또는 변환 타입 정보를 함께 수신할 수 있다. 이러한 정보들은, 자바 스크립트 파일을 코드 변환할 때, 필요한 정보로서, 이동 단말(210)의 구현 환경을 파악하기 위한 자료로서 이용된다.In operation S410, the JavaScript
단계 S420에서, 자바 스크립트 파일 제공 시스템(300)은 웹서버(230)로부터 상기 요청과 관련되는 자바 스크립트 파일을 수신한다.In operation S420, the JavaScript
단계 S430에서, 자바 스크립트 파일 제공 시스템(300)은 상기 수신된 자바 스크립트 파일을, 상기 이동 단말에서의 구현 환경을 고려하여 코드 변환한다.In operation S430, the JavaScript
일례로, 코드 변환모듈(320)은 상기 단말 정보 또는 상기 펌웨어 정보에 상응하는 펌웨어를 이용하여 상기 자바 스크립트 파일을 코드 변환하거나, 또는 상기 변환 타입 정보에 상응하는 하드웨어 스펙 정보 또는 WIPI 플랫폼 정보를 이용하여 상기 자바 스크립트 파일을 코드 변환할 수 있다.For example, the code conversion module 320 codes the JavaScript file using firmware corresponding to the terminal information or the firmware information, or uses hardware specification information or WIPI platform information corresponding to the conversion type information. To transcode the JavaScript file.
다른 일례로, 코드 변환모듈(320)은 이동 단말(210)에서의 구현 환경을 고려하여 상기 자바 스크립트 파일을 바이트코드, 머신 코드, 트리의 바이너리 포맷으로 변환할 수 있다.As another example, the code conversion module 320 may convert the JavaScript file into a binary format of a byte code, a machine code, and a tree in consideration of an implementation environment of the
따라서, 본 발명의 자바 스크립트 파일 제공 시스템(300)은 각 이동 단말에서의 구현 환경을 고려하여 각 이동 단말에 맞게 자바 스크립트 파일을 코드 변환함으로써, 각 이동 단말에서 자바 스크립트 파일을 처리하는 처리 속도를 현저히 줄일 수 있는 효과가 있다.Accordingly, the JavaScript
단계 S440에서, 자바 스크립트 파일 제공 시스템(300)은 상기 코드 변환된 자바 스크립트 파일을, 이동 단말(210)로 전송한다.In operation S440, the JavaScript
이에 따라, 이동 단말(210)은 상기 코드 변환된 자바 스크립트 파일을 실행하여, 자바 스크립트 파일의 실행속도를 높임으로써, 별도의 프로그램 설치 없이도 PC와 동일한 리치 인터넷(RIA: Rich Internet Application)을 제공할 수 있다는 장점이 있다.Accordingly, the
또한, 본 발명의 실시예들은 다양한 컴퓨터로 구현되는 동작을 수행하기 위한 프로그램 명령을 포함하는 컴퓨터 판독 가능 매체를 포함한다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다.Further, embodiments of the present invention include a computer readable medium having program instructions for performing various computer implemented operations. The computer readable medium may include program instructions, data files, data structures, etc. alone or in combination. The media may be program instructions that are specially designed and constructed for the present invention or may be available to those skilled in the art of computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tape, optical media such as CD-ROMs, DVDs, and magnetic disks, such as floppy disks. Magneto-optical media, and hardware devices specifically configured to store and execute program instructions, such as ROM, RAM, flash memory, and the like. Examples of program instructions include not only machine code generated by a compiler, but also high-level language code that can be executed by a computer using an interpreter or the like.
지금까지 본 발명에 따른 구체적인 실시예에 관하여 설명하였으나, 본 발명의 범위에서 벗어나지 않는 한도 내에서는 여러 가지 변형이 가능함은 물론이다. 그러므로, 본 발명의 범위는 설명된 실시예에 국한되어 정해져서는 안되며, 후술하는 특허청구범위뿐 아니라 이 특허청구범위와 균등한 것들에 의해 정해져야 한다.While specific embodiments of the present invention have been described so far, various modifications are possible without departing from the scope of the present invention. Therefore, the scope of the present invention should not be limited to the described embodiments, but should be determined by the equivalents of the claims and the claims.
도 1은 종래기술에 따른 이동 단말, 웹 가속기 및 웹서버 간의 전체적인 연결관계를 도시한 도면이다.1 is a view showing the overall connection between a mobile terminal, a web accelerator and a web server according to the prior art.
도 2는 본 발명의 일실시예에 따른 자바 스크립트 파일 제공 시스템과, 이동 단말, 단말 정보 서버 및 웹서버 간의 전체적인 연결관계를 도시한 도면이다.2 is a diagram illustrating an overall connection relationship between a JavaScript file providing system and a mobile terminal, a terminal information server, and a web server according to an embodiment of the present invention.
도 3은 본 발명의 일실시예에 따른 자바 스크립트 파일 제공 시스템의 구성을 도시한 도면이다.3 is a diagram illustrating a configuration of a JavaScript file providing system according to an embodiment of the present invention.
도 4는 본 발명의 일실시예에 따른 자바 스크립트 파일 제공 방법의 순서를 도시한 흐름도이다.4 is a flowchart illustrating a procedure of a method for providing a JavaScript file according to an embodiment of the present invention.
<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for the main parts of the drawings>
300: 자바 스크립트 파일 제공 시스템300: JavaScript file serving system
310: 서버 통신모듈310: server communication module
320: 코드 변환모듈320: code conversion module
330: 단말 통신모듈330: terminal communication module
340: 데이터베이스340: database
Claims (17)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020080057724A KR101068004B1 (en) | 2008-06-19 | 2008-06-19 | JavaScript file serving method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020080057724A KR101068004B1 (en) | 2008-06-19 | 2008-06-19 | JavaScript file serving method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20090131796A KR20090131796A (en) | 2009-12-30 |
KR101068004B1 true KR101068004B1 (en) | 2011-09-26 |
Family
ID=41690929
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020080057724A Expired - Fee Related KR101068004B1 (en) | 2008-06-19 | 2008-06-19 | JavaScript file serving method and system |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101068004B1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102553371B1 (en) * | 2023-03-29 | 2023-07-07 | 주식회사 하임아이엔씨 | Method and device for automating mcu firmware update customized according to use environment |
KR102604270B1 (en) * | 2023-08-22 | 2023-11-21 | 주식회사 피앤피시큐어 | Communication encryption plug-in method and system for applications using JAVA BCI technology |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040038459A (en) * | 2002-11-01 | 2004-05-08 | 한국전자통신연구원 | A Customized-XHTML document Converting Method And System of HTML document using device profile |
KR20060007739A (en) * | 2004-07-21 | 2006-01-26 | 아이넥스네트워크 주식회사 | Method and system for providing wireless internet service using MWCL (Mobile |
KR100827752B1 (en) * | 2006-11-28 | 2008-05-07 | 곽기영 | Web Browsing Performance Improvement System through Mobile Web Gateway Server in Wireless Wide Area Network Environment |
KR100832881B1 (en) | 2008-01-14 | 2008-05-28 | 벨록스소프트(주) | A terminal device in which dynamic WM interworking with a card is implemented, a card and a terminal for the card |
-
2008
- 2008-06-19 KR KR1020080057724A patent/KR101068004B1/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040038459A (en) * | 2002-11-01 | 2004-05-08 | 한국전자통신연구원 | A Customized-XHTML document Converting Method And System of HTML document using device profile |
KR20060007739A (en) * | 2004-07-21 | 2006-01-26 | 아이넥스네트워크 주식회사 | Method and system for providing wireless internet service using MWCL (Mobile |
KR100827752B1 (en) * | 2006-11-28 | 2008-05-07 | 곽기영 | Web Browsing Performance Improvement System through Mobile Web Gateway Server in Wireless Wide Area Network Environment |
KR100832881B1 (en) | 2008-01-14 | 2008-05-28 | 벨록스소프트(주) | A terminal device in which dynamic WM interworking with a card is implemented, a card and a terminal for the card |
Also Published As
Publication number | Publication date |
---|---|
KR20090131796A (en) | 2009-12-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9146732B2 (en) | Systems and methods for executing an application on a mobile device | |
US8910115B2 (en) | Systems and methods for application development | |
US9063765B2 (en) | System and methods for distributed execution of computer executable programs utilizing asymmetric translation | |
CN111381817A (en) | Method, device, medium and electronic equipment for realizing cross-platform multi-language development | |
US20130044824A1 (en) | Script-based video rendering | |
US20080288380A1 (en) | Method and System for Providing Streamed Game Software on Portable Terminal | |
JP2010533896A (en) | Computer graphics rendering | |
EP3872630B1 (en) | Request processing method and apparatus, electronic device, and computer storage medium | |
CN117041234A (en) | Interaction method of web end and original end and terminal equipment | |
KR101116939B1 (en) | Mobile terminal and method for operating web application the mobile terminal | |
KR101068004B1 (en) | JavaScript file serving method and system | |
CN103561082B (en) | Compression request processing method and server | |
US8112500B2 (en) | Technique of relaying communications between client apparatus and server apparatus | |
CN105100958A (en) | Method and device for video traffic guidance based on Android system | |
US10282403B2 (en) | Server device, client device, information processing method, and recording medium | |
KR101046446B1 (en) | Web page loading method and system | |
KR101412614B1 (en) | METHOD, TERMINAL AND COMPUTER-READABLE RECORDING MEDIA FOR COMPILING JAVASCRIPT INCLUDED IN WEB APPLICATION USING AOT (Ahead Of Time) | |
KR101070967B1 (en) | Wipi contents download system and method thereof | |
KR20090122703A (en) | Conversion program provision server and method | |
KR20050094372A (en) | System and method for servicing multimedia contents and recording medium thereof | |
CN111338633A (en) | Installation-free file generation method and device and electronic equipment | |
KR101288845B1 (en) | System for processing Multi mobile service and method therefor | |
KR20110099383A (en) | How to create resource file packages available across heterogeneous platforms and how to use resources on heterogeneous platforms | |
CN118138835A (en) | Video transcoding method, device, equipment and storage medium | |
CN117573277A (en) | WeChat applet page dynamic method, system, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PA0109 | Patent application |
St.27 status event code: A-0-1-A10-A12-nap-PA0109 |
|
R18-X000 | Changes to party contact information recorded |
St.27 status event code: A-3-3-R10-R18-oth-X000 |
|
A201 | Request for examination | ||
PA0201 | Request for examination |
St.27 status event code: A-1-2-D10-D11-exm-PA0201 |
|
P22-X000 | Classification modified |
St.27 status event code: A-2-2-P10-P22-nap-X000 |
|
D13-X000 | Search requested |
St.27 status event code: A-1-2-D10-D13-srh-X000 |
|
D14-X000 | Search report completed |
St.27 status event code: A-1-2-D10-D14-srh-X000 |
|
PG1501 | Laying open of application |
St.27 status event code: A-1-1-Q10-Q12-nap-PG1501 |
|
E902 | Notification of reason for refusal | ||
PE0902 | Notice of grounds for rejection |
St.27 status event code: A-1-2-D10-D21-exm-PE0902 |
|
R18-X000 | Changes to party contact information recorded |
St.27 status event code: A-3-3-R10-R18-oth-X000 |
|
P11-X000 | Amendment of application requested |
St.27 status event code: A-2-2-P10-P11-nap-X000 |
|
P13-X000 | Application amended |
St.27 status event code: A-2-2-P10-P13-nap-X000 |
|
E902 | Notification of reason for refusal | ||
PE0902 | Notice of grounds for rejection |
St.27 status event code: A-1-2-D10-D21-exm-PE0902 |
|
P11-X000 | Amendment of application requested |
St.27 status event code: A-2-2-P10-P11-nap-X000 |
|
P13-X000 | Application amended |
St.27 status event code: A-2-2-P10-P13-nap-X000 |
|
PN2301 | Change of applicant |
St.27 status event code: A-3-3-R10-R13-asn-PN2301 St.27 status event code: A-3-3-R10-R11-asn-PN2301 |
|
E701 | Decision to grant or registration of patent right | ||
PE0701 | Decision of registration |
St.27 status event code: A-1-2-D10-D22-exm-PE0701 |
|
GRNT | Written decision to grant | ||
PR0701 | Registration of establishment |
St.27 status event code: A-2-4-F10-F11-exm-PR0701 |
|
PR1002 | Payment of registration fee |
St.27 status event code: A-2-2-U10-U11-oth-PR1002 Fee payment year number: 1 |
|
PG1601 | Publication of registration |
St.27 status event code: A-4-4-Q10-Q13-nap-PG1601 |
|
PN2301 | Change of applicant |
St.27 status event code: A-5-5-R10-R13-asn-PN2301 St.27 status event code: A-5-5-R10-R11-asn-PN2301 |
|
LAPS | Lapse due to unpaid annual fee | ||
PC1903 | Unpaid annual fee |
St.27 status event code: A-4-4-U10-U13-oth-PC1903 Not in force date: 20140921 Payment event data comment text: Termination Category : DEFAULT_OF_REGISTRATION_FEE |
|
R18-X000 | Changes to party contact information recorded |
St.27 status event code: A-5-5-R10-R18-oth-X000 |
|
PC1903 | Unpaid annual fee |
St.27 status event code: N-4-6-H10-H13-oth-PC1903 Ip right cessation event data comment text: Termination Category : DEFAULT_OF_REGISTRATION_FEE Not in force date: 20140921 |
|
P22-X000 | Classification modified |
St.27 status event code: A-4-4-P10-P22-nap-X000 |
|
R18-X000 | Changes to party contact information recorded |
St.27 status event code: A-5-5-R10-R18-oth-X000 |