MIDlets, System.out, and Series 40 phones

hartti | 18 October, 2006 19:42

There is a document on Forum Nokia web site describing how to redirect the System.out and System.err on newer S60 phones. I dawned only recently to me that this similar functionality is quite easy to achieve on Series 40 phones.

 

By "debug" I simply mean here that one can see the System.out stream on a connected PC while running your midlet on Series 40 handset. I have not yet had time find out for sure which handsets support this, but works at least on newest handsets like 5300.

 

How did I got it working? I first installed PC Suite on my PC (yes, running Windows here). I also created a test midlet printing messages during execution with System.out.println() and installed it on my handset.

 

Then I connected the phone with a USB cable (selected the mode to be the default) and waited the corresponding drivers to be installed. I went on to check from the PC Device manager what was the com port assigned to my phone.


"Control Panel -> System -> Hardware -> Device Manager -> Ports (COM & LPT). You should see something like: "Nokia GSM Phone USB" there.
Select Properties -> Port Settings -> Advanced. The port should be something between COM1 and COM10 for the Terminal program to be able to access it. Change it if necessary."

If you changed the port it is always a good idea to disconnect the phone and reconnect it, to make sure the port change is updated.

 

Open a terminal program and connect to that port. HyperTerminal works, but the output gets messy with the linefeeds. Instead you could use some other, more configurable terminal program, like Terminal.

 

Run your midlet and enjoy the stream of messages displaying on the terminal screen.


RSSComments

Re: MIDlets, System.out, and Series 40 phones

vickeryj | 08/06/2007, 21:15

This doesn't seem to work on the Cingular 6126

Re: MIDlets, System.out, and Series 40 phones

Jarada0077 | 03/09/2007, 14:28

PuTTY is a good alternative to Terminal. To configure, simply follow the following instructions:

Goto: Connection > Serial
|-- Serial line to connect to: COM4 (or whatever COM port you use)
|-- Parity: None
|-- Flow Control: None

Goto: Terminal
|-- Implicit CR in every LF: Ticked

Goto: Session
|-- Connection Type > Serial: Ticked

You can save the session to then use it again and again.

Re: MIDlets, System.out, and Series 40 phones

dd_plus | 30/07/2008, 14:30

Tried on the 5200:
This method does not work over a bluetooth connection. However, USB cable plus PuTTY work like a charm. There is no actual need to change the COM port.

Re: MIDlets, System.out, and Series 40 phones

dd_plus | 30/07/2008, 14:51

Tried on the 5200:
This method does not work over a bluetooth connection. However, USB cable plus PuTTY work like a charm. There is no actual need to change the COM port.

Re: MIDlets, System.out, and Series 40 phones

fletcher.jonnes | 20/02/2009, 15:08

Hi there. It works in 3120Classic with Putty.

Not working in Nokia 6233

colombus2in | 25/03/2009, 19:53

Hi
I connected Nokia 6233 device for like the steps given below its having COM 20 port but using putty I am not able to get the System.out.println values. But if connect nokia 5200 it selects COM 22 port and it displays the debug statements . What could be the reason any idea ???

Hi

kotta518 | 02/05/2009, 10:49

I connected with Nokia 6275 via com30 But i have not get any log in the terminal.Is all s40 Devices support this are not?Can you please let me know if any thing i miss.

is S40 5th edition support

marekdef | 16/06/2009, 16:07

Hi I am able to connect to 6300 (using mini usb cable) and I can see the output

I have 5220 5310 6500slide which are S40 5th edition and they use micro-usb cable (CA-101?).
With those phones I cannot see the output?

I am sure that we used 5220 to get an output some time ago. In the meantime we upgraded software.

Could it be the software issue, family issue or cable issue or finally we only need to send something to the phone to get it talking to us?

Re: MIDlets, System.out, and Series 40 phones

jnorris | 24/06/2009, 12:44

I am also having problems with a Nokia 6212 getting the log. It worked perfectly this morning, then I performed a software-update (re-flash) and now nothing comes through the log.

I'm using putty, but same settings as before but now I cannot debug. Any idea what might have changed, or how to fix?

James

MIDlets, System.out, and Series 40 phones

sachin.sqa | 01/08/2009, 00:46

I am using Nokia 6500 device. I am unable to see any logs in puTTy. Are there any AT commands which can be used for seeing the logs? Like in iDEN devices we need to give AT and AT+IAPPL=2 and then only logs can be seen in puTTY.

Re: MIDlets, System.out, and Series 40 phones

thijsman86 | 23/11/2009, 12:30

Using the Nokia 6500 slide, I also can't see any output in the puTTy window.
I tried various values in the settings, but none gave satisfying result.

Anybody knows/has a solution? It seems the 5th edition devices all have this problem.

You must login to post comments. Login
 
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2012 All rights reserved