Author Topic: Java/ J2ME mobile orbiter  (Read 307677 times)

uplink

  • Administrator
  • Guru
  • *****
  • Posts: 192
  • Linux and LinuxMCE witchdoctor
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #75 on: February 28, 2008, 12:48:33 pm »
the sdp lookup is finished.. needs more testing (e.g. test if it breaks the symbian orbiter [it should not]).
The patch for BD is here: http://svn.charonmedia.org/trac.cgi/browser/home/hari/bt-test/BD-javamo.patch
The patch has been included in the LinuxMCE tree. I split the .h into two files: a .h and a .cpp, because I don't like functional code in headers :) but that's the only modification I made.

The code was tested with a Windows Mobile phone and a Nokia Symbian phone, and it worked fine.

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #76 on: February 28, 2008, 02:21:01 pm »
The patch has been included in the LinuxMCE tree.
perfect.

Quote
I split the .h into two files: a .h and a .cpp, because I don't like functional code in headers :) but that's the only modification I made.
yeah, you are right. Think I was lacy after much java programming these days ;)

Quote
The code was tested with a Windows Mobile phone and a Nokia Symbian phone, and it worked fine.
ok.

Thank you for your assistance and best regards,
Hari
« Last Edit: February 28, 2008, 02:36:56 pm by hari »
rock your home - http://www.agocontrol.com home automation

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #77 on: February 29, 2008, 11:04:20 am »
Hi all,

First, thanks Hari, and others, for the great work. I am looking forward to trying this out.  :)

And for trying it out, please correct me if I am wrong:
If I understand the whole thing correctly, the patch now added to the tree will allow LMCE to discover a Java MO running on a phone. So what I need to do to get this working is:
* Upgrade to LMCE 7.10 beta4 (when it is available)
* Install the JAD file on my phone
* Run the JavaMO and let LMCE discover it

Is this correct, or am I missing something basic?

sambuca

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #78 on: February 29, 2008, 01:22:48 pm »
If I understand the whole thing correctly, the patch now added to the tree will allow LMCE to discover a Java MO running on a phone.
yes. You can't specify the rfcomm channel for a spp server in j2me (security reasons). So we can't use the hard coded channel 19. The new code in BD simply does an sdp lookup for the service name "Pluto".

Quote
* Upgrade to LMCE 7.10 beta4 (when it is available)
yes. you could also exchange the libBD* in /usr/pluto/lib if you are running a 0710 version. For 0704 you need a wrapper script (to change LD_LIBRARY_PATH).

Quote
* Install the JAD file on my phone
you want the JAR. The JAD is needed to install the JAR on the phone.

Quote
* Run the JavaMO and let LMCE discover it
Is this correct, or am I missing something basic?

correct. In fact, whe lmce detects your phone, you simply select "Symbian". After that it alerts you that the sending of the program to the phone failed. Tell it to not try again. You can also change the screen size on the Orbiter for that phone (used 240x320 (PDA) for my n73).

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Java/ J2ME mobile orbiter
« Reply #79 on: March 04, 2008, 08:54:16 am »
Hello Hari,

do you know if the Nokia 8800 Arte supports the right Java stuff?

The only mentioning of JSR082 if found was on a japanese site. http://f15ijp.no-ip.org/mobile/wiki/index.php/Nokia_8800_Arte The phone is a gem, and if would work with your PerfectMO, I'd have a reason ... ;-)

rgds
Oliver

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #80 on: March 04, 2008, 10:55:30 am »
Hello Hari,

do you know if the Nokia 8800 Arte supports the right Java stuff?

The only mentioning of JSR082 if found was on a japanese site. http://f15ijp.no-ip.org/mobile/wiki/index.php/Nokia_8800_Arte The phone is a gem, and if would work with your PerfectMO, I'd have a reason ... ;-)

rgds
Oliver

if that specifications are correct, yes, it should run the JavaMO fine..

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

lfd

  • Regular Poster
  • **
  • Posts: 16
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #81 on: March 08, 2008, 09:55:47 pm »
Hi Hari,

Congrats and thanks for the efforts you are putting into the project.

I was browsing the source repository and found JavaMO.jar. I have tried to install it on a Nokia N95 and E61 but I get "Invalid Jar file" error on both.

I really would love a try it; any ideas why it wouldn't work?

Thanks,

-Damien

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #82 on: March 08, 2008, 10:23:01 pm »
I was browsing the source repository and found JavaMO.jar. I have tried to install it on a Nokia N95 and E61 but I get "Invalid Jar file" error on both.
My N73 wants the jad file, too, to accept the jar. I simply copy both to the memory card and select the jad file from the file manager. You probably also have to enable installing of unsigned software.

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

lfd

  • Regular Poster
  • **
  • Posts: 16
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #83 on: March 09, 2008, 07:20:24 pm »
Thanks Hari it works.

It is the first time I had to install an application this way. It is strange that the S60 app manager does not let you install the JAR straight forward.

Ok I'll have to update to beta4 if I got it right and it should work like a charm.

Cheers,

-Damien

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #84 on: March 09, 2008, 08:23:13 pm »
It is the first time I had to install an application this way. It is strange that the S60 app manager does not let you install the JAR straight forward.
seems like MIDP2.0/CLDC1.1 jar's need a .jad file..

Quote
Ok I'll have to update to beta4 if I got it right and it should work like a charm.
hehe, no. It will work like a charm when it's finished. It's alpha for now.. still need to tweak some bits.

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

gazlang

  • Guru
  • ****
  • Posts: 210
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #85 on: March 12, 2008, 02:06:28 pm »
I have tried this on my N95 - managed to get the .jar to install on the phone and when I run it it displays the screen 'waiting for connection' - I assume this is all working.

However, I added my phone when discovered on LMCE and told it it was a symbian and answered yes to downloading the orbiter software. I received a bluetooth message on my phone with the software (which obviously wont run) but then LMCE does nothing (apparently waiting to install the software on my phone). I run the MO.jar on my phone and still get the screen 'waiting for connection'

Do I need to patch something on LMCE? I am running beta 4 and thought the patch had been applied to this release.
AMD Athlon 5800+ X2
Asus M2N-SLI-Deluxe
2x Corsair XMS6400 DDR2 512mb
Samsung 400GB SATA + 500GB SATA
nVidia GeForce 7300GT
Hauppauge Nova-T 500
Hauppauge PVR-500
Thermaltake low-noise 450w PSU
Thermaltake Bach Case w/ imon vfd
Fiire Remote
UIRT

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #86 on: March 12, 2008, 04:30:40 pm »
ok..
the patch went into the trunk but I assume it was not copied to the 0710 release branch..
you need to patch BD and compile it yourself..

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

rafik24

  • Guru
  • ****
  • Posts: 158
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #87 on: March 12, 2008, 05:54:29 pm »
  Hi Hari,

 Well done ( as usual ), thanks for making the java orbiter become true so much of us where looking forward t that (us non dev people) .

 As i'm writting i'm downloading the lmce source from svn and it will take forever before i see the java mo working.

 As i'm impatient to see this, would you mind giving us the BD patched binaries so i can try this before i finish compilling.


 All the best,

Rafik

 

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #88 on: March 12, 2008, 08:04:27 pm »
i will do when i have moved my dev env over to my brand new b4 installation..

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

lfd

  • Regular Poster
  • **
  • Posts: 16
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #89 on: March 12, 2008, 08:56:43 pm »
I'm at the same point where I should apply the patch.

Hari, do you have any instructions or a little "how to" apply the patch? I am not familiar with the development environment for this project.

If you have something and time ( :) ) it would be nice to update/create the JavaMO page on the Wiki. I could help you to do it if you are overloaded.

Cheers,

-Damien