Welcome!

Mobile IoT Authors: Shelly Palmer, Elizabeth White, Yeshim Deniz, Liz McMillan, Ed Featherston

Related Topics: Mobile IoT

Mobile IoT: Article

Sinking Without a Trace

Sinking Without a Trace

Right now mention Java on mobile phones and most people think of something fun, with potential for the future. Games and puzzles are the order of the day, with the power and versatility of Java reduced to entertaining businesspeople on the train. But Java has much more to offer, and soon we're going to see it bursting out from its Sand Box to take on the world.

Java has had an impact on just about every area of computer technology, not the least, wireless. It's on mobile phone handsets where the original intention of Java has come closest to being realized. Mobile phones come in a wide range of types and styles, and the use of the MIDP (Mobile Information Device Profile) Java standard on millions of handsets has enabled unprecedented breadth of distribution for applications conforming to the standard. But while the ability to run basic applications on lots of phones is a good thing, it's only scratching the surface of what Java can do, and a new generation of phones is starting to see Java as much more than an environment for downloaded entertainment.

Java Caged
Java started on the PC and, in a story that is well told, found its niche embedded in Web sites and executed in browsers. Held within a Sand Box, Java applets (as these embedded programs are known) are limited as to what they can do, for the protection of the user. Nontechnical users can feel as confident running a Java applet as they do viewing an HTML page, in the knowledge that the browser will protect them from any nastiness. This works very well, and can be seen in everything from downloadable arcade games to news tickers and dancing text, but it was only the first step on Java's infiltration of our computer systems.

It is, of course, possible to write any application in Java, and while the concentration in the last few years has been on server-side components, there are many commercial desktop packages written in Java. For desktop applications the platform independence of Java is less important; porting an application to Windows and Mac just isn't very difficult.

But Java has many other advantages too. It's a very object-oriented language, offering fantastically easy code reuse. It's self-documenting and error intolerant, so even the sloppiest of developers is forced to implement a minimum of error trapping. All this leads to fast application development and deployment, which is a very attractive proposition on any platform.

There were several attempts to get rid of the whole operating system and just run everything on the desktop within Java. But the problems of re-creating all the applications currently used on Windows killed the Java OS before it was born. While many companies looked at moving their applications into Java, to run on a Java-based OS, Microsoft Office was never going to make that jump, and without Office, the idea was a nonstarter. But the dream of a Java-based environment isn't dead yet.

On phones we're very much at that first stage of Java implementation. The MIDP version 1.0 defines a very restrictive Sand Box, meaning that Midlets (as Java applications conforming to the MIDP are known) are very limited in the actions they can perform. While a Midlet can display things on the screen and create network connections to the rest of the Internet (over HTTP), it cannot communicate with other applications on the phone itself (such as the address book or diary), and it can't even take advantage of the very features that make a phone a phone, such as placing a call or sending a text message.

These limitations on the capabilities of MIDP have led to Java applications being limited to self-contained apps with limited functionality. This then leads to a perception, endemic in the mobile sphere, that Java is about games and graphics, rated somewhere near a color screen in must-have features. But these limitations won't last forever.

Extending Java the Proprietary Way
We've already seen companies extend their MIDP implementations to add functionality. A good example of this is the ability to send and receive text messages. Not only has SMS proved massively popular with users, it also presents a great communications channel for Java Midlets wanting to do everything from electronic commerce to non-time-sensitive multiplayer games.

This ability is so important that Nokia decided not to wait for the standard to be agreed on, but instead to go ahead and implement the functionality on their phones with a proprietary API. Of course, Nokia would much prefer to implement a standard API, and has worked within the JCP (Java Community Process) to establish that standard (now known as JSR120). But we are still waiting for handsets that implement this new standard.

An example may serve to illustrate the utility this will make possible. Mobile reps for a holiday tour company were equipped with Nokia 3410 handsets, a low-end phone supporting MIDP 1.0, with an m-commerce application on it. In order to sell extras to vacationers (activities like water skiing or horseback-riding trips) the reps run the application that asks them questions about how much the activity costs and the credit card details of the customer. These details are then formatted as an SMS message and sent to an authorization server, which responds with an SMS of its own, indicating that the transaction has been completed.

This SMS response is picked up by the application, which then displays the information to the rep. In this way, reps are able to accept credit card payments all over the world, using a client application that took under a day to create! Of course this application will work only on Nokia phones. Until a standard is implemented - and available on a wide range of devices - such applications will be limited to vertical markets where the choice of handset can be dictated.

Messaging is only one example where MIDP 1.0 falls short of what's wanted, so JSR118 defines MIDP 2.0, a completely new version of the MIDP standard. MIDP 2.0 not only allows Midlets much more freedom to communicate with in-built applications, but it also has a much more granular security model. Where an MIDP 1.0 Midlet simply couldn't do certain things, and could do others, MIDP 2.0 Midlets can be digitally signed and allowed to do things conditional as to who signed them.

The Midlet Identity
Through the use of digital signatures it's possible for an MIDP 2.0 Midlet to be identified as having been created by either the phone manufacturer, the network operator, a trusted partner, or an untrusted source. For those coming from an untrusted source the available functionality of MIDP 2.0 is much the same as version 1, with some graphical improvements, but for those with the right credentials, a world of possibilities opens up.

Not only is the ability to perform actions limited by who created the application, but some actions require user authorization depending on the signature. For example, any Midlet can send a text message, but the user will be asked to authorize every message sent. However, the network operator can create a Midlet that can send and receive text messages without user involvement, or knowledge. Because the network operator is responsible for the billing arrangements, it's up to them to ensure that their customer either isn't charged or doesn't mind. By breaking down the security model in this way, MIDP 2.0 Midlets can be much more functional, while still allowing freedom and confidence for the user.

With such a granular security model it's possible to use Java for more than just games and entertainment. Indeed, some phone manufacturers are starting to think of Java as a useful language for their own applications. Every phone handset has a range of applications embedded in it at manufacture, usually including a basic address book, message composition and inbox, phone-setting management, and often a very basic calendar or at least an alarm clock. These applications are, traditionally, developed in C to run on the operating system of the phone.

While phones offered only very basic functionality, this was not a problem, but as phones get more complex, these applications are becoming increasingly more time-consuming to develop (see Figure 1).

As the phone already has a JVM in it, and a Midlet signed by the manufacturer has access to all the resources most in-built applications need, there is no reason not to make use of Java for these embedded applications. Users may not be aware that they are running a Java Midlet, nor should they be, but the reduction in development time and the stability of Java can make everyone's life easier. One well-known manufacturer already uses Java Midlets to control the camera functions on their phone, so you might be using Java today without even knowing it!

Java to the Core
If it makes sense to create some of the applications embedded on the phone in Java, does it make sense to create any of them in C? With increased processor speeds and memory getting cheaper all the time, it might be possible to just create the whole suite of applications for the phone in Java, using the MIDP 2.0 profile. Such an environment would make changes to the hardware design easier, and ease development in what is an increasingly competitive market. There are some small penalties in speed and memory requirements, but these are already minimal and being further reduced.

This approach is offered by Esmertec, who suggests providing a phone application suite created wholly in MIDP 2.0, running on a minimal embedded OS. Obviously they need a core kernel, and have had to add a couple of proprietary extensions to get all the functionality they need, but the ability for quick integration of MIDP 2.0 applications and remote management of the software on the device, makes for a compelling proposition. Esmertec addresses the speed concerns inherent in Java by precompiling Midlets to native code as part of the installation process. This offers the performance of a JIT (Just In Time) compiler without the startup lag normally associated with JIT technologies.

The sinking of Java is taken one stage further by SavaJe, who has decided not to muck about with MIDP standards, and instead, has implemented pretty much the whole J2SE (Standard Edition) API. While still only possible on high-end handsets, this offers the ability to run normal Java applications, and to integrate new applications easily and quickly with the phone. Support for the Swing APIs allows innovative and interesting GUI development, while MIDP 2.0 Midlets are still supported within a Sand Box itself written in Java (see Figure 2).

Clearly the reality of the Java-based computer is still on its way, even if it's going to be in our pockets rather than on our desks. Java has always rested on top of everything, but by sinking into the OS before it can dominate mobile development, it's going to have to sink out of sight.

More Stories By Bill Ray

Bill Ray, former editor-in-chief (and continuing distinguished contributor to) Wireless Business & Technology magazine, has been developing wireless applications for over 20 ears on just about every platform available. Heavily involved in Java since its release, he developed some of the first cryptography applications for Java and was a founder of JCP Computer Services, a company later sold to Sun Microsystems. At Swisscom he was responsible for the first Java-capable DTV set-top box, and currently holds the position of head of Enabling Software at 02, a UK network operator.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@ThingsExpo Stories
IoT solutions exploit operational data generated by Internet-connected smart “things” for the purpose of gaining operational insight and producing “better outcomes” (for example, create new business models, eliminate unscheduled maintenance, etc.). The explosive proliferation of IoT solutions will result in an exponential growth in the volume of IoT data, precipitating significant Information Governance issues: who owns the IoT data, what are the rights/duties of IoT solutions adopters towards t...
With the introduction of IoT and Smart Living in every aspect of our lives, one question has become relevant: What are the security implications? To answer this, first we have to look and explore the security models of the technologies that IoT is founded upon. In his session at @ThingsExpo, Nevi Kaja, a Research Engineer at Ford Motor Company, discussed some of the security challenges of the IoT infrastructure and related how these aspects impact Smart Living. The material was delivered interac...
No hype cycles or predictions of zillions of things here. IoT is big. You get it. You know your business and have great ideas for a business transformation strategy. What comes next? Time to make it happen. In his session at @ThingsExpo, Jay Mason, Associate Partner at M&S Consulting, presented a step-by-step plan to develop your technology implementation strategy. He discussed the evaluation of communication standards and IoT messaging protocols, data analytics considerations, edge-to-cloud tec...
The Internet giants are fully embracing AI. All the services they offer to their customers are aimed at drawing a map of the world with the data they get. The AIs from these companies are used to build disruptive approaches that cannot be used by established enterprises, which are threatened by these disruptions. However, most leaders underestimate the effect this will have on their businesses. In his session at 21st Cloud Expo, Rene Buest, Director Market Research & Technology Evangelism at Ara...
"When we talk about cloud without compromise what we're talking about is that when people think about 'I need the flexibility of the cloud' - it's the ability to create applications and run them in a cloud environment that's far more flexible,” explained Matthew Finnie, CTO of Interoute, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
When growing capacity and power in the data center, the architectural trade-offs between server scale-up vs. scale-out continue to be debated. Both approaches are valid: scale-out adds multiple, smaller servers running in a distributed computing model, while scale-up adds fewer, more powerful servers that are capable of running larger workloads. It’s worth noting that there are additional, unique advantages that scale-up architectures offer. One big advantage is large memory and compute capacity...
Artificial intelligence, machine learning, neural networks. We’re in the midst of a wave of excitement around AI such as hasn’t been seen for a few decades. But those previous periods of inflated expectations led to troughs of disappointment. Will this time be different? Most likely. Applications of AI such as predictive analytics are already decreasing costs and improving reliability of industrial machinery. Furthermore, the funding and research going into AI now comes from a wide range of com...
We build IoT infrastructure products - when you have to integrate different devices, different systems and cloud you have to build an application to do that but we eliminate the need to build an application. Our products can integrate any device, any system, any cloud regardless of protocol," explained Peter Jung, Chief Product Officer at Pulzze Systems, in this SYS-CON.tv interview at @ThingsExpo, held November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA
With major technology companies and startups seriously embracing Cloud strategies, now is the perfect time to attend 21st Cloud Expo October 31 - November 2, 2017, at the Santa Clara Convention Center, CA, and June 12-14, 2018, at the Javits Center in New York City, NY, and learn what is going on, contribute to the discussions, and ensure that your enterprise is on the right path to Digital Transformation.
In his session at @ThingsExpo, Eric Lachapelle, CEO of the Professional Evaluation and Certification Board (PECB), provided an overview of various initiatives to certify the security of connected devices and future trends in ensuring public trust of IoT. Eric Lachapelle is the Chief Executive Officer of the Professional Evaluation and Certification Board (PECB), an international certification body. His role is to help companies and individuals to achieve professional, accredited and worldwide re...
SYS-CON Events announced today that Enzu will exhibit at SYS-CON's 21st Int\ernational Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Enzu’s mission is to be the leading provider of enterprise cloud solutions worldwide. Enzu enables online businesses to use its IT infrastructure to their competitive advantage. By offering a suite of proven hosting and management services, Enzu wants companies to focus on the core of their ...
Internet of @ThingsExpo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 21st Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The Internet of Things (IoT) is the most profound change in personal and enterprise IT since the creation of the Worldwide Web more than 20 years ago. All major researchers estimate there will be tens of billions devic...
Amazon started as an online bookseller 20 years ago. Since then, it has evolved into a technology juggernaut that has disrupted multiple markets and industries and touches many aspects of our lives. It is a relentless technology and business model innovator driving disruption throughout numerous ecosystems. Amazon’s AWS revenues alone are approaching $16B a year making it one of the largest IT companies in the world. With dominant offerings in Cloud, IoT, eCommerce, Big Data, AI, Digital Assista...
SYS-CON Events announced today that Cloud Academy named "Bronze Sponsor" of 21st International Cloud Expo which will take place October 31 - November 2, 2017 at the Santa Clara Convention Center in Santa Clara, CA. Cloud Academy is the industry’s most innovative, vendor-neutral cloud technology training platform. Cloud Academy provides continuous learning solutions for individuals and enterprise teams for Amazon Web Services, Microsoft Azure, Google Cloud Platform, and the most popular cloud com...
SYS-CON Events announced today that MobiDev, a client-oriented software development company, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. MobiDev is a software company that develops and delivers turn-key mobile apps, websites, web services, and complex software systems for startups and enterprises. Since 2009 it has grown from a small group of passionate engineers and business...
SYS-CON Events announced today that GrapeUp, the leading provider of rapid product development at the speed of business, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Grape Up is a software company, specialized in cloud native application development and professional services related to Cloud Foundry PaaS. With five expert teams that operate in various sectors of the market acr...
SYS-CON Events announced today that Ayehu will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on October 31 - November 2, 2017 at the Santa Clara Convention Center in Santa Clara California. Ayehu provides IT Process Automation & Orchestration solutions for IT and Security professionals to identify and resolve critical incidents and enable rapid containment, eradication, and recovery from cyber security breaches. Ayehu provides customers greater control over IT infras...
In his session at Cloud Expo, Alan Winters, an entertainment executive/TV producer turned serial entrepreneur, presented a success story of an entrepreneur who has both suffered through and benefited from offshore development across multiple businesses: The smart choice, or how to select the right offshore development partner Warning signs, or how to minimize chances of making the wrong choice Collaboration, or how to establish the most effective work processes Budget control, or how to ma...
SYS-CON Events announced today that CA Technologies has been named "Platinum Sponsor" of SYS-CON's 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. CA Technologies helps customers succeed in a future where every business - from apparel to energy - is being rewritten by software. From planning to development to management to security, CA creates software that fuels transformation for companies in the applic...
SYS-CON Events announced today that IBM has been named “Diamond Sponsor” of SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California.