News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Java/ J2ME mobile orbiter

Started by david_a_dawson, October 19, 2007, 04:31:08 PM

Previous topic - Next topic

hari

#60
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..
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

ddamron

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

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

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..
/*      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

Quote from: ddamron on February 20, 2008, 06:16:12 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 - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

ddamron

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

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 - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

jondecker76

Wow, this looks incredible!

Have you tried it on an actual phone yet?

hari

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 - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

hari

as requested in the chat some new screenies:





best regards,
Hari
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

ddamron

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

last one for tonite:



best regards,
Hari
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

hari

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


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 - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

hari

first real phone screenies:








best regards,
Hari
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

hari

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 - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation