Hustle Play

Syd's blog.

On-Device Debugging for Sony Ericsson J2ME Phones

In this post I want to document the steps that one takes to start debugging a program running on a Sony Ericsson J2ME phone. A USB connection will be established between your computer (i.e. Windows XP 32-bit) and your phone (i.e. Sony Ericsson W810i). To do this, the proper data cable must be available.

Here are the steps:

  1. Install Sony Ericsson SDK
  2. Install Sony Ericsson PC Suite
  3. Restart Computer
  4. Connect Phone to Computer via USB cable
  5. Select ‘Phone Mode’ when prompted on the Phone.
  6. Start the Device Manager application (Right-click My Computer > Properties > Hardware > Device Manager)
  7. Expand the ‘Ports (COM & LPT)’ section. You should see two entries that pertain to your phone
    • Sony Ericsson Device 125 USB WMC Device Management
    • Sony Ericsson Device 125 USB WMC OBEX Interface
  8. Note the COM port associated with ‘Sony Ericsson Device 125 USB WMC Device Management’
  9. Start the Connection Proxy application (Start > All Programs > Java ME SDK for CLDC > Connection Proxy). Note that the Connection Proxy may already be open. Check your System Tray for the handset-and-green-lightening-bolt icon. Status will be ‘Not Connected’. Let’s change that.
  10. In Connection Proxy, click on the ‘Settings’ icon. It should be a green gear icon.
  11. Select the COM port that we noted before (Sony Ericsson Device 125 USB WMC Device Management). Do not touch the ‘Maximum Baud Rate’. Click ‘OK’
  12. Click ‘Connect’. This should establish a connection between your phone and your computer
  13. Start the Device Explorer application (Start > All Programs > Sony Ericsson > Java ME SDK for CLDC > Device Explorer)
  14. In the ‘Sony Ericsson Device Explorer’ pane, look for your phone. Try refreshing it if you don’t see your phone.
  15. Install your application
  16. Run your application
  17. View the ‘Console’ pane for output
Advertisement

3 Responses to On-Device Debugging for Sony Ericsson J2ME Phones

  1. Avinash June 12, 2011 at 8:36 pm

    Wow thanks… I was really looking for this.
    I’ll try it out tonight

  2. guillermo February 2, 2012 at 3:53 pm

    I have a problem with a Z780i. when i connect it via USB, the phone can’t get ip address. So I can’t connect with the proxy. The settings in th phone are ok (usb via computer, java developer mode active). The phone is JP8 compliant.

    • shpang February 2, 2012 at 7:18 pm

      guillermo, I’m not surprised. Sony is not consistent across it’s J2ME offerings. You notice that I specified the phone model I was using in my directions. This is because my experience has shown me that large variation across all J2ME phones, even the ones sold under the same manufacturer name. Unfortunately, I do not have a Z780i to fiddle with. Best of luck.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.