Antifurto satellitare con telefoni Symbian
— Post in lavorazione —
Link utili:
Modulo Pys60 per Location Api (s60 2nd e 3rd)
Sorgente esempio per LocationRequestor (TEST.PY nello zip: cerca GPS interno, se non lo trova cerca GPS bluetooth)
Symbian SIS Developer Certficate (Signed .SIS)
Thread su forum nokia sul modulo pys60 LocatinRequestor
Sorgente completo Python per leggere coordinate da GPS bluetoth esterno (ottimo, formatta anche le coordinate)
Sorgente di base per accesso a GPS interno (NMEA location viewer)
Sorgenti PythonGPS vari (NMEA Info)
Bozza di sorgente python che:
-riceve un messaggio
-legge le coordinate da GPS bluetooth
-invia un messaggio
(L’indentatura si è persa, vedi forum)
import inbox
import e32
import socket
import appuifw
import messagingdef read_sms(id):
e32.ao_sleep(0.1)
i=inbox.Inbox()
sms_text=i.content(id)
appuifw.note(u”Messaggio da elaborare: ” + sms_text, “info”)
# esegue procedure diverse a seconda del messaggio ricevuto.
# Ad esempio, legge coordinate da GPS:
sock=socket.socket(socket.AF_BT,socket.SOCK_STREAM)
address,service=socket.bt_discover() ‘ cerca ricevitore.
target=(address,service.values()[0]) ‘ si collega
sock.connect(target)’ al ricevitore.
to_gps=sock.makefile(“r”,0) ‘ prepara lettura coordinate.
msg=to_gps.readline() ‘ legge riga.
messaging.sms_send(“[NUMERO], msg) ‘ invia SMS contenente coordinate.’ Collega ricezione messaggi ad esecuzione procedura:
i=inbox.Inbox()
i.bind(read_sms)
[…] Add a bluetooth GPS receiver and you have a GPS antitheft. (GoogleCode […]
[…] Antifurto satellitare con telefoni Symbian […]