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

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #60 on: February 19, 2008, 10:53:34 pm »
began to implement keypresses:



best regards,
Hari

btw: ddamron: it switched on the PLCBUS lamp shortly before i took the screenshot ;) That was one of those moments..
« Last Edit: February 19, 2008, 11:08:11 pm by 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 #61 on: February 19, 2008, 11:12:54 pm »
can you say... SWEET!!!
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.

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Re: Java/ J2ME mobile orbiter
« Reply #62 on: February 20, 2008, 04:54:28 am »
damn hari,

Every time I think I'm starting to catch up in your code, you go and jump another hurdle!

It's hard to keep up with you! hehe
nice work BTW, I see you implemented all the keys..
I like the way you laid out your code.. everything in it's own file...
Also like the manifest and the output folder ;)

Heh, I'm still trying to figure out the bluetooth..
Oh, BTW, I saw your recordstore function.. cool..
VERY nice work.  I'm proud to call you a friend!

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.

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Re: Java/ J2ME mobile orbiter
« Reply #63 on: February 20, 2008, 06:16:12 am »
Hari,
I found you trick, you sneaky little #@$! hehehe
attempting to help out, I coded some of BD_CP_ShowVMC.java...
then, I tried to check it in to surprise you..
I don't have commit access :(
so here it is..
Code: [Select]
/*      This is a Java based bidirectional command processor implementation for Plutohome/LinuxMCE

        Copyright (C) 2008, Harald Klein <hari@vt100.at> and Dan Damron <dan@danthecomputerman.info>

        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        any later version.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
*/

package com.linuxmce.javamo;

import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class BD_CP_ShowVMC extends DBCommand {
        char m_iStore;
        long m_iVMCSize;
        byte[] m_pVMC;
        long m_iVMCFileNameSize;
        byte[] m_pVMCFilename;

        public BD_CP_ShowVMC() {
                super();
        }

        public void parseCommand() {
                startreading();
                        m_iStore = readchar();
                        m_iVMCSize = readlong();
                        m_pVMC = readBlock(miVMCSize);
                        m_iVMCFileNameSize = readlong();
                        m_pVMCFileName = readBlock(m_iVMCFileNameSize);
        }

        public boolean processCommand(Object target) {
                JavaMO mJavaMO = (JavaMO)target;

//not finished
        }
}
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 #64 on: February 20, 2008, 08:42:30 am »
I found you trick, you sneaky little #@$! hehehe
thats not a trick thats a design goal. That was the reason why I simply used pluto naming at first. So I literally could copy and paste the command structures.

Quote
attempting to help out, I coded some of BD_CP_ShowVMC.java...
then, I tried to check it in to surprise you..
I don't have commit access :(
so here it is..
Committed revision 1540.

Quote
VERY nice work.  I'm proud to call you a friend!
me too, dan!
And I'm really glad that you jump on the code..

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 #65 on: February 20, 2008, 06:19:12 pm »
Heh, well, I try..
I can pick it up fairly easily.
I haven't coded in java for quite a while..
heh, it's starting to come to me...
You have to stop taking leaps and bounds to let me catch up! lol
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 #66 on: February 24, 2008, 01:25:09 am »
Hi devs,

some status update:
* added sdp lookup code: http://svn.charonmedia.org/trac.cgi/browser/home/hari/bt-test/sdp.c (integration into Bluetooth_Dongle.cpp pending)
* added SET_IMAGE_QUALITY command
* began implementing SHOW_LIST command
* added some javadoc: http://www.vt100.at/javamo-doc/
* improved timing

and last not least some eye candy:





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

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: Java/ J2ME mobile orbiter
« Reply #67 on: February 24, 2008, 03:14:42 am »
Wow, this looks incredible!

Have you tried it on an actual phone yet?

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Java/ J2ME mobile orbiter
« Reply #68 on: February 24, 2008, 07:52:01 am »
yes, but without talking to Bluetooth_Dongle (needs some tweaks to browse for the rfcomm channel as you can see in this thread).
The actual application version starts and opens bluetooth on the phone. And I did successful JRS082 echo tests with the phone. The simulation talks to Bluetooth_Dongle over a real rfcomm link.

Maybe we will get some memory/heap problems on the real hardware.. lets see..

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 #69 on: February 25, 2008, 04:16:59 pm »
as requested in the chat some new screenies:





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 #70 on: February 25, 2008, 07:27:04 pm »
Heh, Hari, you ROCK.
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 #71 on: February 26, 2008, 01:32:23 am »
last one for tonite:



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 #72 on: February 27, 2008, 12:36:12 am »
Hi devs,

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

Code: [Select]
05      02/27/08 0:04:40.853            Detected device mac: 00:1E:3B:6D:B6:9B link quality: -78 <0xb4de8b90>
10      02/27/08 0:04:40.853            Socket::SendMessage type 2 id 4 from 130 to -1001 <0xb4de8b90>
10      02/27/08 0:04:40.855            Receive string: MESSAGE 155            <0xb55e9b90>
10      02/27/08 0:04:40.855            Received MESSAGE 155            0x823c578 device: 130 <0xb55e9b90>
10      02/27/08 0:04:40.856            Received Message type 1 ID 60 from 9 to 130 (device: 130) resp 0 <0xb55e9b90>
05      02/27/08 0:04:40.856            About to connect to PlutoMO. We'll suspend scanning... <0xb55e9b90>
05      02/27/08 0:04:40.856            Suspending scanning... <0xb55e9b90>
10      02/27/08 0:04:40.856            start of const 00:1E:3B:6D:B6:9B <0xb55e9b90>
05      02/27/08 0:04:40.898            Inquiry complete
 <0xb65ebb90>
10      02/27/08 0:04:40.898            The scanning is suspended. We'll ignore the results of this scan <0xb65ebb90>
01      02/27/08 0:04:44.148            received channel: 3
 <0xb55e9b90>
05      02/27/08 0:04:44.221            Successfully connected to the symbian application 00:1E:3B:6D:B6:9B <0xb55e9b90>
05      02/27/08 0:04:44.221            Connected to PlutoMO. <0xb55e9b90>
10      02/27/08 0:04:44.221            pthread_create returned with 0 <0xb55e9b90>
10      02/27/08 0:04:44.222            HandleBDCommandProcessorThread started <0xb4de8b90>

whats missing:
* figure out why BD_PC_SelectedFromList does not work
* figure out why comms get stuck on the real phone
* handle special key input for telecom screens
* debugging, testing, cleanups

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 #73 on: February 27, 2008, 12:05:53 pm »
first real phone screenies:








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 #74 on: February 27, 2008, 03:17:03 pm »
it looks way better with 240x320 fullscreen:



it's very crisp looking, the N800's cam is not able to reproduce it. I will take some sane shots with a real cam when the batteries are loaded.

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