PDA



View Full Version : PHP Source - Focus tool


JeffElkins
05-08-2004, 05:58 PM
Is source code available for the focus tool or a generic web->PCS gateway? I'd like to try my hand writing some code for it.

TIA

Dave
05-08-2004, 07:58 PM
The code to Focus was written by Spryde of 3GWiz.com and we were asked to not share it.

The code is pretty old and partially buggy. I have asked for assistance if somebody would like to code a replacement with more options. Then we could put a new version online. Any takers?

JeffElkins
05-08-2004, 08:19 PM
The code to Focus was written by Spryde of 3GWiz.com and we were asked to not share it.

The code is pretty old and partially buggy. I have asked for assistance if somebody would like to code a replacement with more options. Then we could put a new version online. Any takers?

I know PHP, but I know zip about dealing with cell phones. I'd love to help, but starting from scratch isn't an attractive option.

neotope
05-08-2004, 11:40 PM
I know PHP, but I know zip about dealing with cell phones. I'd love to help, but starting from scratch isn't an attractive option.

You don't have to know anything about cell phones to write Focus. All Focus does is upload a file to the server and send a link to the file to the phone. No extra knowledge required for doing that. I think you are looking at in an overly complex way.

plik
05-09-2004, 01:33 AM
Dave- what options would you like added?

JeffElkins
05-09-2004, 05:38 AM
You don't have to know anything about cell phones to write Focus. All Focus does is upload a file to the server and send a link to the file to the phone. No extra knowledge required for doing that. I think you are looking at in an overly complex way.

'm not trying to complicate things :)

PHP uploading code is standard stuff, it's sending a message to the phone that I'm clueless about.

neotope
05-09-2004, 10:30 AM
'm not trying to complicate things :)

PHP uploading code is standard stuff, it's sending a message to the phone that I'm clueless about.

You send a message to the phone using the mail command. The same way you would send an email message. number@messaging.sprintpcs.com

JeffElkins
05-09-2004, 12:19 PM
You send a message to the phone using the mail command. The same way you would send an email message. number@messaging.sprintpcs.com


Well, that's simple enough. Thanks!

JeffElkins
05-09-2004, 02:49 PM
Just as a simple start I coded a quick & dirty messaging gateway. No error checking on input as yet.

http://www.elkins.org/sprint.php

For ringers and graphics is a simple url in the message all that's needed?

i.e. http://www.nowhere.com/test.mid

JeffElkins
05-09-2004, 04:37 PM
Ok, I discovered to trigger a download for installation, a .gcd file needs to be created. So, I sent the link: http://www.elkins.org/test.jpg.gcd to my phone.

That text file contains:

Content-Type: image/jpeg
Content-Name: test.jpg
Content-Version: 1.0
Content-Vendor: elkins.org
Content-URL: http://www.elkins.org/test.jpg
Content-Size: 7065

It comes through fine, warns me it's not trusted content, but when the download starts:

Data error 907
Server error

Any idea what a 907 error is?

TIA

neotope
05-09-2004, 04:41 PM
Ok, I discovered to trigger a download for installation, a .gcd file needs to be created. So, I sent the link: http://www.elkins.org/test.jpg.gcd to my phone.

That text file contains:

Content-Type: image/jpeg
Content-Name: test.jpg
Content-Version: 1.0
Content-Vendor: elkins.org
Content-URL: http://www.elkins.org/test.jpg
Content-Size: 7065

It comes through fine, warns me it's not trusted content, but when the download starts:

Data error 907
Server error

Any idea what a 907 error is?

TIA

You have to add a MIME type for GCD files on your server. Do some searching and you should find a couple threads on this.

JeffElkins
05-09-2004, 05:17 PM
You have to add a MIME type for GCD files on your server. Do some searching and you should find a couple threads on this.

Thanks. Unfortunately, adding the mime types using:

AddType text/x-pcs/gcd gcd
AddType audio/vnd.qcelp qcp
AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar
AddType application/x-pmd pmd
AddType application/x-pmd cmx
AddType audio/vnd.qcelp qcp
AddType audio/midi mid
AddType image/jpeg jpg
AddType image/png png

resulted in the same error. I just noticed this thread was moved to feedback, so I'll open a new thread in the proper area if I don't solve the problem in a day or so...

Thanks again for your help!

JeffElkins
05-09-2004, 05:58 PM
Thanks. Unfortunately, adding the mime types using:

AddType text/x-pcs/gcd gcd




That was the problem. The gcd mimetype was typed incorrectly. All is now well :)

AErph
05-09-2004, 11:36 PM
if someone wanted to start this up as a project I could help, I have my version on my personal site, however, its got some bugs I can't work out...

EBFoxbat
01-20-2005, 08:53 AM
Thanks. Unfortunately, adding the mime types using:

AddType text/x-pcs/gcd gcd
AddType audio/vnd.qcelp qcp
AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar
AddType application/x-pmd pmd
AddType application/x-pmd cmx
AddType audio/vnd.qcelp qcp
AddType audio/midi mid
AddType image/jpeg jpg
AddType image/png png


Ok, I just added those to my server, all is well. However, I know I had to do it but I dont know what it was that I did. Can someone breifly explain what mime is ?

 
SprintUsers.com was created in January 2002 as a resource for users of Sprint PCS products and services to learn about and share information. We have cll phone reviews, Cellular Accessories, Downloads, PDA reviews, Ringtones, all of the latest Sprint PCS news and information, an area where you can find help in creating a ring tone or custom image for you phone, and so much more. The most popular section is the message board where visitors can read and write messages, ask questions, and get advice about their cellular phone from other users.