Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:Using CommConnection with COM ports from MIDlets on S60 3rd Edition (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
CompatibilityArticle
Created: User:Technical writer 1 (30 Aug 2007)
Last edited: hamishwillee (24 Oct 2013)

Description

When the phone has been connected to some other device (usually PC) with a cable, you can open a CommConnection in a MIDlet running on that phone, and use that connection to communicate to an application running on the other device.

However, if you try to open a CommConnection using COM0 or COM1 (or any COM port), and also USB0 with certain S60 3rd Edition, FP1 devices, the MIDlet will either exit without warnings, or throw a 'SymbianOSError= -21 General' error. On S60 3rd Edition, FP2 the system returns the error code "Feature not supported".

It is also possible to query the system for available ports using System.getProperty("microedition.commports"). Even if this method call returns some COM ports on S60 devices, those should not be used for opening a CommConnection.

Solution

Open the CommConnection using the available USB ports. On certain S60 3rd Edition, FP1 devices, use USB1 if USB0 throws an error.

This page was last modified on 24 October 2013, at 06:01.
139 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×