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

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Re: Java/ J2ME mobile orbiter
« Reply #30 on: February 16, 2008, 05:07:16 am »
Last I checked, Blackberries with 4.x have Bluetooth support..
It's been a while since I looked into that, I'm not sure if it's JSR082..
also, 4.x is MIDP2.0/cldc1.1.

You can check your blackberry.. it's in the settings somewhere.
It's a page that states Java version..

My Blackberry Pearl 8100 supports it. :)

Regards,

Dan
The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #31 on: February 16, 2008, 06:56:57 am »
Colin,
perhaps you want to list the blackberry phone model you have and see if anyone (myself included) can do some looking into it.

I don't think "crappy old" was an official model number  ;D Then again... I'm not a guru here

From memory that was the model number :) but know I come to look more closely, they also seem to be known as Blackberry Curve 8310. v4.2.2.146 is the firmware on platform 2.5.0.16...

Hmmm.... looking at the other modules version numbers, I see CLDC-1.1 mentioned, also MIDP-2.0 and JTWI v1.0 if they have anything to do with it...

Col.

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #32 on: February 16, 2008, 06:59:37 am »
Last I checked, Blackberries with 4.x have Bluetooth support..
It's been a while since I looked into that, I'm not sure if it's JSR082..
also, 4.x is MIDP2.0/cldc1.1.

You can check your blackberry.. it's in the settings somewhere.
It's a page that states Java version..

My Blackberry Pearl 8100 supports it. :)

Regards,

Dan


Thanks Dan, sorry should have gone to the end of the thread before my last post!

Matthew

  • Douchebag
  • Addicted
  • *
  • Posts: 567
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #33 on: February 16, 2008, 05:02:46 pm »
Does that mean it's limited to 3 addresses.  Would everyone using this need to purchase this license for their bt dongles?
no. That stack is only for development. Together with it and the mpowerplayer you can emulate a real phone with jsr082 using bluez hardware. That really speeds up development as you don't have to test on the phone itself. The emulator included in Sun's wireless toolkit can't use real hardware so you can't talk to the Bluetooth_Dongle from the sim.

You could of course use the stack in another j2se java application. We don't need that because Bluetooth_Dongle is not an java app and directly communicates with the HCI device.

You don't need the stack for using the JavaMO with a real phone.

I would buy you the license for E25. Can I buy it and transfer it to you, rather than pay PayPal fees twice?
of course. This is the address of my dongle: 00:09:DD:50:23:2D

I just sent you a PM with instructions how to retrieve your customized unlimited development license. Let us know how the development goes.

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #34 on: February 16, 2008, 08:44:10 pm »
I just sent you a PM with instructions how to retrieve your customized unlimited development license. Let us know how the development goes.
way cool! Thank you very much for your support. I'll keep you posted on the progress.

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

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #35 on: February 17, 2008, 03:02:18 pm »
Hi Devs,

as this is my first midp project maybe some java guy can look at the code and see if I'm doing something terribly wrong:
http://svn.charonmedia.org/trac.cgi/browser/home/hari/javamo/com/linuxmce/javamo

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

Matthew

  • Douchebag
  • Addicted
  • *
  • Posts: 567
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #36 on: February 17, 2008, 05:19:24 pm »
as this is my first midp project maybe some java guy can look at the code and see if I'm doing something terribly wrong:
http://svn.charonmedia.org/trac.cgi/browser/home/hari/javamo/com/linuxmce/javamo

At first glance, you are doing some things "terribly" wrong. For example,
Quote from: CharonMedia SVN
BD_PC_ReportMyVersion.java
Code: [Select]
public class BD_PC_ReportMyVersion extends BDCommand {
26         public BD_PC_ReportMyVersion() {
27                 super();
28         }
(...)

But superclass BDCommand.java has no member "BD_PC_ReportMyVersion()", nor does BDCommand's superclass "SerializeClass", etc, so there's no "super()" to call.

And that's just the first class/method I looked at. The naming and use of CLASS CONSTANTS also looks wrong.

But to get started (with the basic debugging question), what are you expecting these classes to do, and what are they doing instead?

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #37 on: February 17, 2008, 06:07:13 pm »
But superclass BDCommand.java has no member "BD_PC_ReportMyVersion()", nor does BDCommand's superclass "SerializeClass", etc, so there's no "super()" to call.
that super() is meant to call the constructor of the super class (so the BD_PC_ReportMyVersion() constructor should also call BDCommand()..).

Quote
And that's just the first class/method I looked at. The naming and use of CLASS CONSTANTS also looks wrong.
could you please be more specific?

Quote
But to get started (with the basic debugging question), what are you expecting these classes to do, and what are they doing instead?
so they are supposed to process BD commands. And they do that pretty fine for now. I don't experience any problems. It's only that time advanced since my java class at university and I want some whiz to go over the code before I write the whole app based on some fundamental flaws..
rock your home - http://www.agocontrol.com home automation

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #38 on: February 17, 2008, 06:54:09 pm »
yeah, it works pretty good:

Code: [Select]
root@golem9:/usr/src/home/javamo# make bluezsim
cd /home/hari/java/mpp-sdk && java -jar player.jar /usr/src/home/javamo/output/JavaMO.jad
mpowerplayer 2.0.1185
44090208
avetanaBluetooth version 1.3.18a
hciOpenDevice(0)
setting HCI_DEVICE_ID to 0
Channel opened at 1
S:10
S:0
S:0
S:0
S:11
S:0
S:0
S:0
S:50
S:48
S:48
S:54
S:46
S:49
S:49
S:46
S:48
S:57
S:0
ReceiveLong: got byte: 5
ReceiveLong: got byte: 0
ReceiveLong: got byte: 0
ReceiveLong: got byte: 0
ReceiveLong: long result: 5
GOT ACK: OKAY
S:1
S:0
S:0
S:0
S:0
S:0
S:0
S:0
ReceiveLong: got byte: 101
ReceiveLong: got byte: 0
ReceiveLong: got byte: 0
ReceiveLong: got byte: 0
ReceiveLong: long result: 101
Got BD_CP_SEND_ME_KEYSTROKES
ReceiveLong: got byte: 1
ReceiveLong: got byte: 0
ReceiveLong: got byte: 0
ReceiveLong: got byte: 0
ReceiveLong: long result: 1
SEND KEY STROKES: true
S:5
S:0
S:0
S:0
S:79
S:75
S:65
S:89
S:0
S:1
S:0
S:0
S:0
S:0
S:0
S:0
S:0
ReceiveLong: got byte: 100
ReceiveLong: got byte: 0
ReceiveLong: got byte: 0
ReceiveLong: got byte: 0
ReceiveLong: long result: 100
ReceiveLong: got byte: 0
ReceiveLong: got byte: 0
ReceiveLong: got byte: 0
ReceiveLong: got byte: 0
ReceiveLong: long result: 0

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

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Re: Java/ J2ME mobile orbiter
« Reply #39 on: February 17, 2008, 07:28:49 pm »
Hari,

I'm not up on my java, but from what I can see, YOU ROCK.

What I can remember about the j2me platform was dealing with the screen (canvas) was a pain in the A$$.

It looks like you're about to hit that stage,

I'll see if I can find some old code on what I was doing..

Great work!
The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #40 on: February 17, 2008, 09:25:24 pm »
hehe, it sends me a picture:

Code: [Select]
ReceiveLong: got byte: 102
ReceiveLong: got byte: 0
ReceiveLong: got byte: 0
ReceiveLong: got byte: 0
ReceiveLong: long result: 102
Get BD_CP_SHOW_IMAGE

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

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #41 on: February 17, 2008, 11:30:22 pm »
the code may be really bad but it shows a picture:



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

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #42 on: February 17, 2008, 11:47:35 pm »
Cool, Hari! Well done - let me know if you need testers. I have a Blackberry Curve and also a Sony K{something}!

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #43 on: February 17, 2008, 11:49:40 pm »
Cool, Hari! Well done - let me know if you need testers. I have a Blackberry Curve and also a Sony K{something}!
you could compile the beast and see if it runs on your phone ;)
and we need to patch Bluetooth_Dongle to do a SDP query.

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

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Re: Java/ J2ME mobile orbiter
« Reply #44 on: February 17, 2008, 11:51:38 pm »
go ask Hari ;)
The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.