View: 3398|Reply: 18
|
Symbian Phone As An External GPSR
[Copy link]
|
|
waaa...mmg menarik....bravo gak utk musang...hooyee hoooyee
P/S masih kumpul duit utk dptkan hp yg ada built in gps.. |
|
|
|
|
|
|
|
Reply #1 musang_pulut's post
wah bagusla mcm ni.. satu n95 satu n73. satu mapking satu garmin. kuikui. tp itu kalo ade lagi fon xtra |
|
|
|
|
|
|
|
Reply #3 tonkgang's post
cari pocket pc la tonk. Skrin besar. Jdkan n95 hang sbg proxy |
|
|
|
|
|
|
|
Lagi kaedah utuk jadikan Symbian Phone as EXTERNAL GPS device
1. Install Python interpreter: http://downloads.sourceforge.net ... 735938&big_mirror=0
2. Install python script shell: http://downloads.sourceforge.net ... 735948&big_mirror=0
3. Copy/paste quoted script ni dlm notepad
from socket import *
#import socket
#import time
import e32
import appuifw
#
# S60 Python GPS Server
#
# Steve Penna - [email protected]
#
# See http://www.amk.ca/python/howto/sockets/
# http://discussion.forum.nokia.com/forum/showthread.php?t=55953
# http://otaku.org/files/serverbtconsole.py
# Bluetooth socket - fake GPS device
class GPS:
def __init__(self, tracker):
self.tracker = tracker
self.connect()
def write(self,str):
print u"sending: " + str
return self.conn.send(str.replace('\n','\r\n'))
def connect(self):
self.sock = socket(AF_BT,SOCK_STREAM)
self.p = bt_rfcomm_get_available_server_channel(self.sock._sock)
print u"binding.."
self.sock.bind(("", self.p))
print u"bound; advertising..."
bt_advertise_service( u"BT-GPS Com Port", self.sock._sock, True, RFCOMM)
print u"advertised; setting security..."
set_security(self.sock._sock, AUTHOR)
print "done; start listening..."
self.sock.listen(1)
print u"listening... now accept"
(self.conn, self.address) = self.sock.accept()
print u"accepted..."
while (self.tracker.running == 1):
self.write('$GPRMC,201609.000,A,5114.9295,N,00010.7517,W,0.44,120.10,090807,,*1A\n')
e32.ao_sleep(0.2)
self.write('$GPGGA,201610.000,5114.9292,N,00010.7514,W,1,06,2.2,101.4,M,47.0,M,,0000*4C\n')
e32.ao_sleep(0.2)
self.write('$GPGSA,A,3,21,24,16,06,31,07,,,,,,,3.6,2.2,2.9*3D\n')
e32.ao_sleep(0.2)
self.write('$GPGSV,3,1,11,16,70,287,30,21,64,113,17,07,42,079,27,24,39,057,34*72\n')
e32.ao_sleep(0.2)
print u"done"
#print "Connecting to " + str(target)
def close(self):
self.conn.close()
self.sock.close()
# main program class
class GPSTracker:
def __init__(self):
self.running = 0
# opens/closes file and connects/disconnects from gps
def startTracking(self):
if (self.running == 1):
print u"Already running"
return
self.running = 1
print u"app starting.."
gps = GPS(self)
# console debug
print u" "
print u'closing gps...'
gps.close()
print u'done'
# sets flag for tracking to stop
def stopTracking(self):
if (self.running == 0):
print u"Already stopped"
return
self.running = 0
# exit handler
def exit_key_handler():
app_lock.signal()
# main
app_lock = e32.Ao_lock()
appuifw.app.exit_key_handler = exit_key_handler
tracker = GPSTracker()
appuifw.app.menu = [(u"Start Tracking", tracker.startTracking), (u"Stop Tracking", tracker.stopTracking)]
app_lock.wait()
# after exit pressed....
print u"Exit called"
tracker.stopTracking()
Save as gpsserv.py
Copy/paste gpsserv.py dlm folder phyton
Selamat mencuba....
[ Last edited by musang_pulut at 12-1-2008 01:01 PM ] |
|
|
|
|
|
|
|
AKu pair XDA II (non-gps gadjet) utk navigation menggunakan Garmin dgn N82 sbg gpsr... |
|
|
|
|
|
|
|
Reply #6 musang_pulut's post
hang guna yg mana? gpsext.jar ke phyton? |
|
|
|
|
|
|
|
aku guna gpsext.jar
GMXT senang je. Patch dgn sw.unl
Mcm garmin que tak blh nak pair wpun aku guna gpsgate..
Mapking pon tak blh lagi...
Tak jumpa com port...
Tgh tgh dok menggodek..... |
|
|
|
|
|
|
|
Berjaya jugak akhirnya...
Mapking G10 (O2 XDA II) + N82 (Gpsr)
[ Last edited by musang_pulut at 13-1-2008 11:09 AM ] |
|
|
|
|
|
|
|
Musang, aku nak mintak hang tolong recce la kalau2 ada app utk symbian yg boleh share GPS data utk guna lebih dari satu GPS app dalam satu phone, kira2 mcm GPSGate la. Satu lagi kalau ada, app yg boleh record GPS data dalam interval 1 saat. Kalau ada mcm yg aku sebut tu, Symbian user boleh la guna MXT utk navigate dan satu lagi app yg boleh record 1s, yg mana kedua2nya jalan serentak.
Sebab kat MSM aku tengok ramai jugak yg berminat tracking dengan Symbian MXT tapi sbb settingnya tak optimal, kengkadang track tu payah nak diterima oleh mappers. Kalau ada jumpa, kau canang2la kat sana, lagi ramai trackers, lagi bagus!
Aku ada jumpa satu Java app ni, kalau rajin hang test tengok, boleh record 1s interval ke?
http://www.qcontinuum.org/gpstrack/index.htm
[ Last edited by dvpro at 14-1-2008 11:29 PM ] |
|
|
|
|
|
|
|
ExtGPS ni jugak tidak mengganggu navigasi dr aplikasi gps yg digunakan dlm symbian phone walapun pada masa yang sama signal gps turut sama digunakan oleh non-gps gadjet.
Aku test guna GarminMXT dlm N82 serentak dengan Mapking G10 pada PPC |
|
|
|
|
|
|
|
Originally posted by musang_pulut at 15-1-2008 08:35 AM
Aku kurang jelas dgn soklan hang
"app yg boleh record GPS data dalam interval 1 saat"
yg tu utk record track laluan kita kot. setiap 1 saat dia rekodkan position supaya boleh dapat satu laluan yg detail skit. senang sikit utk mappers nak baca data dari pengguna yg nak contribute laluan yg xda dlm map.
er btol ke dvpro? |
|
|
|
|
|
|
|
Reply #13 tonkgang's post
A'ah betulla tu... kalau ada app yg boleh rekod camtu boleh la guna utk rekod tracklog, tapi kalau tak boleh share GPS signal utk guna 2 GPS app dlm satu phone, maknanya kena guna app tu walaupun mungkin takleh navigate sbb boleh guna satu2 GPS app pada satu2 masa. Aku ada terjumpa satu Java app yg boleh rekod tracklog tapi tak pasti recordingnya berapa saat setiap node. Boleh korang cuba try test uji?
http://www.qcontinuum.org/gpstrack/index.htm |
|
|
|
|
|
|
|
Reply #14 dvpro's post
aku fhm skrg. Maknanya blhla sapa2 record laluan yg blm ada dlm map then buat contribution kt msm.
Cuma masalahnya Gpstrack ni perlukan standalone gpsr utk tracking. Mcm kes aku susah sikit nak buat testing kecuali klu aku ada dua symbian phone. Non-gps symbian phone utk Gpstrack dan built-in symbian phone utk extgps.
[ Last edited by musang_pulut at 16-1-2008 08:07 AM ] |
|
|
|
|
|
|
|
Reply #16 musang_pulut's post
|
|
|
|
|
|
|
Lagi satu software utk contribute track
GPSED
Record tracks of your trips anywhere on the Earth from your mobile device. Tracks are traced on Google Maps and stored in an online archive. All you need to start tracking is a mobile device with the internal or external GPS receiver.
Currently GPSed mobile application supports RIM BlackBerry handhelds and a wide range of J2ME mobile phones, like Nokia N95, Nokia N82, Nokia 6110 Navigator and others.
http://gpsed.com/mobiles |
|
|
|
|
|
|
| |
|