Built OTA download server

xiaoxiao2021-03-06  53

OTA means Over the Air, downloads and installs J2ME applications through wireless networks. Building an OTA server is relatively simple, but making a complete OTA server is very complicated, because it is designed to design software management, download billing, safety certification, etc. The main purpose of this paper is to describe the main principle of OTA download, and build an OTA server.

When our mobile phone issues requests to download the relevant software through the wireless network, usually we have access to a specific page. This can be WML written. We first sent a request for JAD files. Server received the request to send the JAD file to the client after requesting the client, and the client requests the JAR file according to the information of the MIDlet-Jar-URL, and the server will transfer the JAR package to the client again. Start installing the software. Flowchart to OTA download

Here's how to build an OTA environment, we still use Tomcat as a web server, first you want to make sure your IP address can be accessed by the outside, editing tomcat_home / conf / web.xml

See if he supports the following two MIME types

JAD text / vnd.sun.j2me.app-descriptorjar Application / Java-archive If not supported, add the following

JAD text / vnd.sun.j2me.app-descriptor jar Application / java-archive

Below you should prepare a WML file and a JAD file and related JAR files. Must note that the address of the JAD file should be an absolute address to point to JAR. For example, MIDlet-jar-url: http://222.28.218.222:8088/HelloWorldMidlet.jardown.wml file content is as follows

Software Center:

HelloWorld put these three files together in Tomcat_home / WebApps / root / Below, you can start downloading the HelloWorld application from your mobile phone.

转载请注明原文地址:https://www.9cbs.com/read-114124.html

New Post(0)