Friday, April 25, 2008

java app

spent couple hours going back and forth with Bryan Ito last night and met with him today. he brought his laptop because he was able to connect his i355 to his laptop. I brought mine and tried to connect his phone. It wouldn't work, at least, we can conclude the the problem isn't the phone being java enabled ,not the data cable, not the software. We double ckecked that we had the same versions for iden Java application loader and motorolla usb drivers. We are now guessing that it is a problem with vista since my laptop runs on Vista Business and his runs on xp2000. The java application loaded to my phone using his system and I am having an error in the class. I will trouble shoot this later this weekend . I am also going to try to load the iden jal and the usb drivers on my friends laptop whois running on xp2000 . this will let us know for sure if it is Vista.

note: on the motodev site this driver we are using is suppose to have been upgraded for the sole purpose of interfacing with Vista.

Tuesday, April 22, 2008

Here's what I did:

1)Downloaded the USB drivers from the following site because the data cable I bought uses USB connection.

http://developer.motorola.com/docstools/USB_Drivers/Handset_USB_Driver/

2)Downloaded iDen java application loader. When I use this and click "connect to phone" I get a pop-up error stating "Invalid com port selected" But when I go to preferences theedit box for Com Port doesn't accept any values and when I check connect via USB I get a pop-up error stating I have the wrong version of windows to use USB, but I’m running Windows Vista Business 32-bit.


3) Checked my device manager to make sure phone was connected to laptop. It is listed under Modems.


4) Downloaded Midway from http://developer.motorola.com/docstools/othertools/

And when I run this I get failed but the first time I ran the app I got time expired


5) found this site with info regarding time expired using Midway

https://support.developer.motorola.com/cgi-bin/motodev.cfg/php/enduser/std_adp.php?p_faqid=571&p_created=1170297507&p_sid=SsCf2Y1j&p_accessibility=0&p_lva=571&p_sp=cF9zcmNoPTEmcF9zb3J0X2J5PWRmbHQmcF9ncmlkc29ydD0mcF9yb3dfY250PTI5MCZwX3Byb2RzPTAmcF9jYXRzPTAmcF9wdj0mcF9jdj0mcF9zZWFyY2hfdHlwZT1hbnN3ZXJzLnNlYXJjaF9ubCZwX3NjZl9hbmRvcj0mcF9wYWdlPTEmcF9zZWFyY2hfdGV4dD1taWR3YXkgZG9lc24ndCByZWNvZ25pemUgZGV2aWNl&p_li=&p_topview=1

6) Downloaded UID Extraction Tool v2.2 to enable JAL from

http://developer.motorola.com/docstools/othertools/UID22/

And when I run it the bottom left shows no device connected.

7) I sent this information to Bryan Ito.

data cable came in yesterday

the data cable finally came in.
downloaded Net Beans with mobility pack 6.0.1
downloaded iDen java application loader from motorolla site
need to download the iden usb drivers also or phone won't connect at:
http://developer.motorola.com/docstools/USB_Drivers/Handset_USB_Driver/

currently not connecting reading through some documentation for the application loader

Wednesday, April 16, 2008

data cable

tried contacting Brian. went to Sprint store they said they don't carry data cables anymore and that I needed to find them at motorolla or after market company. Never heard back from Brian therefore went online and ordered one. Got priority mail should be here in 2-4 days .

Wednesday, April 9, 2008

netbeans and wireless toolkit

downloaded netbeans and sun wireless toolkit 2.5.2 for CLDC to test and alter Java application.
having problems with netbeans recognizing the application need to download the mobility pack. will do that later tonight

Tuesday, April 8, 2008

PHP mail function

spoke with someone today who suggested using the PHP mail function. here is a tutorial that discusses how to use it.
http://www.nusphere.com/php/web_php_email.htm
It is suppose to be able to handle html as well as plain text and to send attachments but it is suggested to use another application to do that.

java application

I haven't been posting. But have spent a few hours updating java application but have been continuously having hard time with it transferring to the phone again. tried using website of minegames.pcriot.com to transfer. Going to have to breakdown ands buy data cable.
currently running application on Sun Java wireless toolkit for CLDC.
attempted to place java app in public directory on uh sytem using ssh.

able to put trial gps locations into table of sql database using sql querry:

(this is using the standard GPS format created by NMEA)

INSERT INTO `gpslocations` (`GPSLocationID`, `LastUpdate`, `Latitude`, `Longitude`, `speed`, `direction`, `distance`, `gpsTime`, `LocationMethod`) VALUES
(1, '2007-07-17 17:44:37', 47.508464, -122.023040, '40', '356', '2', '9:02pm Tue, Jun 19 07', '327681'),
(2, '2007-07-17 17:49:43', 47.518773, -122.030123, '35', '335', '3', '9:03pm Tue, Jun 19 07', '327681'),
(3, '2007-07-17 17:51:00', 47.526416, -122.036533, '24', '330', '3', '9:04pm Tue, Jun 19 07', '8');

Tuesday, March 18, 2008

found some tips from "codeproject" to make java app more manageable. Located at:

http://www.codeproject.com/KB/vb/WritingGPSApplications1.aspx

the site offers a more simplified version of gps positioning. Also, was able to re-establish the MYSQL database on:

http://minegames.pcriot.com/

It is currently set as "GPS" with a table titled "locations" and has the following fields

location id
timestamp// this is a last updated field
latitude
longitude
speed//satellite info
bearing//satellite info
type//to decide wether the position is a fixed position or if it is still being calculated since the gps sends positions at predetermined intervals of time

this is an example string:

$GPRMC,040302.663,A,3939.7,N,10506.6,W,0.27,358.86,200804,,*1A
it is unclear at this time if all these variables are necessary for our application.

Sunday, March 2, 2008

forgot to give credit to code I have been using to structure my application:
http://sourceforge.net/project/showfiles.php?group_id=198122
This site offers open source code for a cell phone that sends it's position to be displayed on google maps.

Tuesday, February 26, 2008

spent a few hours finishing java application for cell phone. Need to download to phone and test position signal later this week

Friday, February 22, 2008

february 19th

walked around courtyard and grass area in front of POST to try and get gps from cellphone. I wa trying to get an average time to get the position. at first it took approximately 3 min. Each check after was approximately 2 min. just wanted to get a feel for the accuracy. If the java application is attempting to send out my position; how long does it take to get my position? This determines the accuracy of the game. If it takes 2 minutes to get my position then the server won't realize I've detonated a mine until 2+min after I entered that location. The big question is how accurate do we need to be for a game?

Wednesday, February 13, 2008

This is an expected weekly schedule for the rest of the semester but is subject to be adjusted according to problems that arise:

week 6-7: finish java application for cellphone to send out GPS signal and loaded onto cellphone
week 8-9: have server receive signal and compare to hardcoded database
week 10-11: create PHP server to send e-mails when signal is sent
week 12-13: attempt to alter database on server(plant mines ) from cellphone
week 14: attempt an evaluation of game
week15-16: complete report and gather documentation regarding project

Friday, February 8, 2008

created some basic html pages for the server website something easy for us to add and refer to during the project. This is the url address
http://minegames.pcriot.com/

Monday, February 4, 2008

received cell phone back from Bryan Ito and testing to connect to internet

Thursday, January 31, 2008

1/18/07

attempted to contact Bryan Ito from Sprint to obtain another Motorola i355 or other hardware to allow a download of a java application to the phone. This was an issue we faced last semester.

established a PHP server again the one created last semester was shut down due to inactivity over winter break. the host is x10Hosting. the url is http://minegames.x10hosting.com/. The server allows for email to be sent which is easier to use than sending sms from the server