webOS Nation Forums >  webOS smartphones (Pre, Pixi, Veer) >  webOS tips, information, and resources > Palm Pre and GPS (Additional GPS modes: Autonomous, Assisted, and Cached)
Palm Pre and GPS (Additional GPS modes: Autonomous, Assisted, and Cached)

  Reply
 
LinkBack Thread Tools Display Modes
Old 12/29/2009, 07:59 PM   #201 (permalink)
Forum Leader

 
Join Date: Jan 2008
Posts: 3,140
Likes Received: 0
Thanks: 24
Thanked 193 Times in 44 Posts
Default

Okay, this seems messed up to me.

So the USB Passthrough has it's own app (com.palm.usbpassthrough) that I managed to pull off the Pre. The relevant section of code is:

Code:
validateCode: function () {
	try {
		var codeV = this.controller.get('codeField').mojo.getValue();
		Mojo.Log.info("validateCode(): Code: " + codeV);
		if (!codeV || codeV.length < 5 || codeV.length > 5 || !this.serialNumber) {
			$('waitZone').style.left = '20px';
			$('waitZone').innerHTML = "<b>Invalid Authorization Code entered.</b><br/>Please obtain a valid code from your Palm representative.";
		} else {
			var codeTempRequest = this.controller.serviceRequest('palm://com.palm.logctld', {
				method: 'validate',
				parameters: {
					"code": codeV,
					"sn": this.serialNumber
				},
				onSuccess: function(result){
					this.controller.cancelServiceRequest(codeTempRequest);
					this.stopSpinner();
					$('waitZone').innerHTML = "";
					$('waitZone').style.display = 'none';
					$('entryGroup').style.display = 'none';
					$('masterGroup').style.display = 'none'; // show 
					$('menuGroup').style.display = 'block'; // show menu
					this.isActivationFile = true;
					this.saveMslCookie (codeV);
					this.getPassthroughMode();
				}.bind(this),
				onFailure: function(result){
					this.controller.cancelServiceRequest(codeTempRequest);
					this.isActivationFile = false;
					this.stopSpinner();
					$('masterGroup').style.display = 'none'; // hide 
					$('menuGroup').style.display = 'none'; // show menu
					Mojo.Log.error("validateCode Failed: " + result.errorText + " #" + result.errorCode + ", code: " + codeV + ", sn: " + this.serialNumber);
					$('waitZone').style.left = '20px';
					$('waitZone').innerHTML = 
						(result.errorCode && (result.errorCode == -9  || result.errorCode == -1) ?
							"<b>Invalid Authorization Code entered.</b>" :
							"<b>Unexpected error: " + result.errorText + "</b>")
						+ "<br/>Please obtain a valid code from your Palm representative.";
				}.bind(this)
			});
		}
	} catch (e) {
		Mojo.Log.error ("main.validateCode(): exception: " + e)
	}

},

The part we really care about is:

Code:
if (!codeV || codeV.length < 5 || codeV.length > 5 || !this.serialNumber) {
codeV is the value you enter. this.serialNumber is actually your serial number.



Hmm...how to fix that.....is for another day.

Last edited by Ebag333; 12/29/2009 at 08:36 PM.
Ebag333 is offline   Reply With Quote
Old 12/30/2009, 05:37 AM   #202 (permalink)
Member
 
trim81's Avatar
 
Join Date: Jul 2005
Location: 626, Los Angeles
Posts: 2,726
Likes Received: 0
Thanks: 381
Thanked 197 Times in 129 Posts
Default

edit nvm:

**my auto-locate GPS was turned off, turned it on now.
trim81 is offline   Reply With Quote
Old 12/30/2009, 10:41 AM   #203 (permalink)
Member

 
Join Date: Apr 2003
Location: Boston-area
Posts: 6,973
Likes Received: 116
Thanks: 418
Thanked 1,252 Times in 710 Posts
Default

Quote:
Originally Posted by Ebag333 View Post
Okay, this seems messed up to me.

So the USB Passthrough has it's own app (com.palm.usbpassthrough) that I managed to pull off the Pre. The relevant section of code is:

The part we really care about is:

Code:
if (!codeV || codeV.length < 5 || codeV.length > 5 || !this.serialNumber) {
codeV is the value you enter. this.serialNumber is actually your serial number.



Hmm...how to fix that.....is for another day.
Hmm, yeah, my serial number seems to be too long to enter.
jhoff80 is offline   Reply With Quote
Old 12/30/2009, 04:08 PM   #204 (permalink)
Member
 
Jonathan I Ezor's Avatar
 
Join Date: Mar 2006
Location: Long Island, NY, USA
Posts: 568
Likes Received: 16
Thanks: 285
Thanked 225 Times in 117 Posts
Default

Okay, easiest way to do this now (I think), assuming you have Terminal and the Terminal Service loaded already on your Pre and are otherwise familiar with the procedure using QPST:

1) Connect your Pre (already in Dev Mode) to the computer on which you've already loaded QPST (see parent post of thread) with a microUSB cable
2) Launch Terminal on your Pre
3) Type "mpt d" without the quotes and hit return; that switches to diagnostic mode
4) Launch QPST and follow the instructions in the parent post to re-enable the various GPS features
5) After closing QPST, go back to Terminal, and type "mpt x" without the quotes and hit return to reset the USB port to the normal settings.

That (should) do it. {Jonathan}
__________________
Prof. Jonathan I. Ezor
Writer, PreCentral
Past Palm Real Reviewer
@webOSquire on Twitter
Jonathan I Ezor is offline   Reply With Quote
Old 12/30/2009, 04:09 PM   #205 (permalink)
Forum Leader
 
mamouton's Avatar
 
Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes Received: 5
Thanks: 796
Thanked 1,165 Times in 801 Posts
Default

1.3.5 did remove the checkmarks from all but the default settings.
__________________
My contributions to customizing the Palm Pre.

Browser Mega Mix|Email Mega Mix|Additional Sync Days|
Disable Various Phone Sounds|Priority Discard Buttons|

Sign up for SugarSync Get 500MB extra space
Sign up for Dropbox Get 250MB extra space
mamouton is offline   Reply With Quote
Old 12/30/2009, 05:04 PM   #206 (permalink)
Forum Leader

 
Join Date: Jan 2008
Posts: 3,140
Likes Received: 0
Thanks: 24
Thanked 193 Times in 44 Posts
Default

Quote:
Originally Posted by Jonathan I Ezor View Post
Okay, easiest way to do this now (I think), assuming you have Terminal and the Terminal Service loaded already on your Pre and are otherwise familiar with the procedure using QPST:

1) Connect your Pre (already in Dev Mode) to the computer on which you've already loaded QPST (see parent post of thread) with a microUSB cable
2) Launch Terminal on your Pre
3) Type "mpt d" without the quotes and hit return; that switches to diagnostic mode
4) Launch QPST and follow the instructions in the parent post to re-enable the various GPS features
5) After closing QPST, go back to Terminal, and type "mpt x" without the quotes and hit return to reset the USB port to the normal settings.

That (should) do it. {Jonathan}
Yup, that's the way I fixed it.

Quote:
Originally Posted by mamouton View Post
1.3.5 did remove the checkmarks from all but the default settings.
Confirmed here as well.
Ebag333 is offline   Reply With Quote
Old 12/30/2009, 05:34 PM   #207 (permalink)
Member
 
Join Date: Nov 2008
Posts: 1,318
Likes Received: 4
Thanks: 142
Thanked 303 Times in 186 Posts
Default

This all still can't technically work with a 64 bit computer, right? There needs to be 64 bit diagnostic drivers for this to work. Am I understanding that this is still the case and being able to launch terminal has nothing to do with connecting through QPST?
bpdamas is offline   Reply With Quote
Old 12/30/2009, 05:43 PM   #208 (permalink)
Forum Leader

 
Join Date: Jan 2008
Posts: 3,140
Likes Received: 0
Thanks: 24
Thanked 193 Times in 44 Posts
Default

Quote:
Originally Posted by bpdamas View Post
This all still can't technically work with a 64 bit computer, right? There needs to be 64 bit diagnostic drivers for this to work. Am I understanding that this is still the case and being able to launch terminal has nothing to do with connecting through QPST?
Correct, unfortunately.
Ebag333 is offline   Reply With Quote
Old 12/30/2009, 06:04 PM   #209 (permalink)
Member
 
Join Date: Nov 2008
Posts: 1,318
Likes Received: 4
Thanks: 142
Thanked 303 Times in 186 Posts
Default

Quote:
Originally Posted by Ebag333 View Post
Correct, unfortunately.
I figured and after rereading step 4 again I realized my question was almost rhetorical.
bpdamas is offline   Reply With Quote
Old 12/30/2009, 06:28 PM   #210 (permalink)
Member

 
Join Date: Apr 2003
Location: Boston-area
Posts: 6,973
Likes Received: 116
Thanks: 418
Thanked 1,252 Times in 710 Posts
Default

Quote:
Originally Posted by Jonathan I Ezor View Post
Okay, easiest way to do this now (I think), assuming you have Terminal and the Terminal Service loaded already on your Pre and are otherwise familiar with the procedure using QPST:

1) Connect your Pre (already in Dev Mode) to the computer on which you've already loaded QPST (see parent post of thread) with a microUSB cable
2) Launch Terminal on your Pre
3) Type "mpt d" without the quotes and hit return; that switches to diagnostic mode
4) Launch QPST and follow the instructions in the parent post to re-enable the various GPS features
5) After closing QPST, go back to Terminal, and type "mpt x" without the quotes and hit return to reset the USB port to the normal settings.

That (should) do it. {Jonathan}
Yeah, definitely will do it that way after I webOS Doctor it. Stupidly, I switched it with mpt without Terminal installed.

Ah well, I'll deal with that when I get back from my vacation, just was hoping someone would come up with an easier solution in the meantime.
jhoff80 is offline   Reply With Quote
Old 12/30/2009, 06:55 PM   #211 (permalink)
Forum Leader

 
Join Date: Jan 2008
Posts: 3,140
Likes Received: 0
Thanks: 24
Thanked 193 Times in 44 Posts
Default

Quote:
Originally Posted by jhoff80 View Post
Yeah, definitely will do it that way after I webOS Doctor it. Stupidly, I switched it with mpt without Terminal installed.

Ah well, I'll deal with that when I get back from my vacation, just was hoping someone would come up with an easier solution in the meantime.
What about putting your Pre into USB recovery mode? Does Novaterm connect then?




This method, while cumbersome, does work. Unfortunately you need to have Terminal installed or use Novaterm.
  1. Download usbpassthrough-assistant.js at the bottom.
  2. Put your Pre into USB mode.
  3. Copy usbpassthrough-assistant.js to your Downloads folder.
  4. Via Terminal or Novaterm, enter the following command:
    mount -o remount,rw /
  5. Via Terminal or Novaterm, enter the following command:
    cp -f /media/internal/downloads/usbpassthrough-assistant.js /usr/palm/applications/com.palm.app.usbpassthrough/app/controllers
  6. Launch ##USBPASS# and use as normal.

Maybe someone can put that into a patch....
Attached Files
File Type: zip usbpassthrough-assistant.zip (6.2 KB, 83 views) Email Attachment
Ebag333 is offline   Reply With Quote
Old 12/31/2009, 01:18 AM   #212 (permalink)
Member

 
Join Date: Apr 2003
Location: Boston-area
Posts: 6,973
Likes Received: 116
Thanks: 418
Thanked 1,252 Times in 710 Posts
Default

Unfortunately, when in Novaterm using the USB recovery mode (I assume you mean when you hold down the volume up while plugging in the cord), many commands just tell you not found.

I'll have to use webOS Doctor when I'm back in the country (can't do it now without actual cell service), shouldnt be too big a deal since other than this, I'm entirely stock. I'd just suggest a big warning in the first post to not use the mpt command without terminal installed or without modifying that file beforehand.

No big deal though. I still very much appreciate that I was at least able to get standalone back on (like I said, not in the country right now, so without that I'd have no GPS access at all).
jhoff80 is offline   Reply With Quote
Old 12/31/2009, 05:46 PM   #213 (permalink)
Forum Leader

 
Join Date: Jan 2008
Posts: 3,140
Likes Received: 0
Thanks: 24
Thanked 193 Times in 44 Posts
Default

I've attached an updated version of Palm's USB Passthrough program.

Changes:

1) Shows up as an icon in the launcher.
2) Doesn't require a passcode (just hit validate).


To Install:

1) Download .ZIP.
2) Unzip.
3) Install via WebOS Quick Install (Drag and drop, then hit install).



Update: See the patch thread found here for an easier solution.

Last edited by Ebag333; 01/10/2010 at 03:27 PM.
Ebag333 is offline   Reply With Quote
Old 01/02/2010, 06:05 PM   #214 (permalink)
Member
 
jonaddis84's Avatar
 
Join Date: Aug 2009
Posts: 107
Likes Received: 0
Thanks: 6
Thanked 5 Times in 4 Posts
Default

"Windows needs to install driver software for your Reduced CDC Abstract Control Module (R-ACM)"

I have never seen this message before.

I tried installing the USB passthrough program from Ebag above, it appeared to have installed successfully but I see no icon in the launcher, and it still requires a passcode in passthrough mode.

Any suggestions?

How would I remove that USBpassthrough program? I feel like my pre is godawful slow now after installing it.
jonaddis84 is offline   Reply With Quote
Old 01/02/2010, 08:54 PM   #215 (permalink)
Member
 
Join Date: Sep 2009
Location: New England
Posts: 182
Likes Received: 0
Thanks: 51
Thanked 36 Times in 23 Posts
Default

Quote:
Originally Posted by jonaddis84 View Post
"Windows needs to install driver software for your Reduced CDC Abstract Control Module (R-ACM)"

I have never seen this message before.

I tried installing the USB passthrough program from Ebag above, it appeared to have installed successfully but I see no icon in the launcher, and it still requires a passcode in passthrough mode.

Any suggestions?

How would I remove that USBpassthrough program? I feel like my pre is godawful slow now after installing it.
I also tried installing via webOSQI but same results - didn't show up in the launcher and the pword was still required...and the phone seemed to slow down a bit and stutter occasionally. So I opened up Preware and it showed up in my list of installed applications, so I could remove it via Preware. I tried the copy & paste terminal method above and it worked great. However now I'm in QPST and trying to "read from phone" and it's asking me for my phone's programming service code. So even though I could get this far without it, I still need it to be able to modify GPS settings. So close and yet so far...
intlbeans is offline   Reply With Quote
Old 01/02/2010, 10:42 PM   #216 (permalink)
Forum Leader
 
mamouton's Avatar
 
Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes Received: 5
Thanks: 796
Thanked 1,165 Times in 801 Posts
Default

your phone's programming code is your msl code that you can get from sprint cs. Just tell them palm is telling you you need it to do a hard reset and they will give it to you, at least that is how I got mine.
__________________
My contributions to customizing the Palm Pre.

Browser Mega Mix|Email Mega Mix|Additional Sync Days|
Disable Various Phone Sounds|Priority Discard Buttons|

Sign up for SugarSync Get 500MB extra space
Sign up for Dropbox Get 250MB extra space
mamouton is offline   Reply With Quote
Thanked By: intlbeans
Old 01/03/2010, 03:47 AM   #217 (permalink)
Member
 
Join Date: Sep 2009
Location: New England
Posts: 182
Likes Received: 0
Thanks: 51
Thanked 36 Times in 23 Posts
Default

Thanks. So I didn't feel like waiting until 10am for Sprint CS to open up and ended up doing it the hard way, found both my one-time-use SPC and also my MSL in a couple of the Pre's memory addresses between 0x00A50000 AND 0x00A70000. Gotta love phone tools, hex editors and forums. More specifically:

My MSL memory address: 0x00A642C0 and 0x00A642D0

This was only tested and verified on my phone and no one else's, and I have no idea if this is consistent from phone to phone even on the same webOS version, but thought I would post it here just in case someone else was looking for this. Currently I am running webOS 1.3.5.

Edit: also forgot to mention I was able to successfully update my GPS settings per ebag's instructions.

Last edited by intlbeans; 01/03/2010 at 04:09 AM.
intlbeans is offline   Reply With Quote
Thanked by bbroecker, tk102
Old 01/03/2010, 01:06 PM   #218 (permalink)
Member
 
Join Date: Sep 2009
Location: New England
Posts: 182
Likes Received: 0
Thanks: 51
Thanked 36 Times in 23 Posts
Default

So I'm trying out my new more powerful GPS on my Pre and I'm amazed at how fast and accurate it is now. It keeps track of me perfectly now in places where it would flake out in tbe past. So besides concerns about battery life maybe, or lack of time to test and build it into the OS, does anybody know why Palm wouldn't want to include this by default?
intlbeans is offline   Reply With Quote
Thanked By: aikon2000
Old 01/03/2010, 09:06 PM   #219 (permalink)
Member
 
grndslm's Avatar
 
Join Date: Jan 2004
Posts: 2,874
Likes Received: 4
Thanks: 162
Thanked 217 Times in 143 Posts
Default

Quote:
Originally Posted by intlbeans View Post
So I'm trying out my new more powerful GPS on my Pre and I'm amazed at how fast and accurate it is now. It keeps track of me perfectly now in places where it would flake out in tbe past. So besides concerns about battery life maybe, or lack of time to test and build it into the OS, does anybody know why Palm wouldn't want to include this by default?
One would tend to believe that that was a decision made by Sprint and not Palm.
__________________

Get Homebrew Apps, Tweaks, & Patches Working In Less Than 5 Minutes

Cross-Platform Meta-Doctor Guide -- Bypass carrier-specific activation & MORE!
grndslm is offline   Reply With Quote
Old 01/03/2010, 09:26 PM   #220 (permalink)
Member
 
Join Date: Sep 2009
Location: New England
Posts: 182
Likes Received: 0
Thanks: 51
Thanked 36 Times in 23 Posts
Default

Quote:
Originally Posted by grndslm View Post
One would tend to believe that that was a decision made by Sprint and not Palm.
I see what you mean, especially since it seems like all the functionality we're messing with here is baked into the hardware. BTW I clicked the meta-doctor link on your sig and I was very impressed with the guide you created there, nice work. I have no need to do so atm but it almost made me want to give it a try. You should change the virtualbox part to a dual-boot install though, ubuntu/linux could always use a broader user base
intlbeans is offline   Reply With Quote
Thanked By: grndslm
Reply

 

Tags
gps standalone pre, qpst

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0