Hustle Play
Syd's blog.
On-Device Debugging for Sony Ericsson J2ME Phones
Posted by on February 3, 2011
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:
- Install Sony Ericsson SDK
- Install Sony Ericsson PC Suite
- Restart Computer
- Connect Phone to Computer via USB cable
- Select ‘Phone Mode’ when prompted on the Phone.
- Start the Device Manager application (Right-click My Computer > Properties > Hardware > Device Manager)
- 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
- Note the COM port associated with ‘Sony Ericsson Device 125 USB WMC Device Management’
- 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.
- In Connection Proxy, click on the ‘Settings’ icon. It should be a green gear icon.
- 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’
- Click ‘Connect’. This should establish a connection between your phone and your computer
- Start the Device Explorer application (Start > All Programs > Sony Ericsson > Java ME SDK for CLDC > Device Explorer)
- In the ‘Sony Ericsson Device Explorer’ pane, look for your phone. Try refreshing it if you don’t see your phone.
- Install your application
- Run your application
- View the ‘Console’ pane for output
Advertisement
Wow thanks… I was really looking for this.
I’ll try it out tonight
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.
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.