PyS60定位失败N80& E63

时间:2012-01-26 14:39:28

标签: python mobile positioning symbian pys60

我在使用诺基亚N80&amp ;;运行“定位网络”脚本时遇到问题。 E63。 相同的代码在最近的E5上运行正常。是否有任何可以提供帮助的PyS60大师?

这是脚本(摘自here): -

import positioning,e32,appuifw

# 'Hotwired' values - use
wifi    = 536979841
agps    = 270526860
gps     = 270526858
network = 270559509

def quit():
    app_lock.signal()

def c(data):
        if data['position']['latitude'] == data['position']['latitude']:
                print "Lat : ",data['position']['latitude']
                print "Long: ",data['position']['longitude']
                print "HAcc: ",data['position']['horizontal_accuracy']

app_lock = e32.Ao_lock()
appuifw.app.exit_key_handler = quit

try:
        #positioning.select_module(positioning.default_module())
        positioning.select_module(network)
        positioning.set_requestors([{"type":"service","format":"application","data":"gps_app"}])
        positioning.position(callback=c, interval=1000000,partial=0)
        print "Positioning started"
except:
        appuifw.note(u'Positioning start failed','error')


app_lock.wait()

try:
        positioning.stop_position()
except:
        appuifw.note(u'Positining stop failed','error')

0 个答案:

没有答案