Академический Документы
Профессиональный Документы
Культура Документы
DetlevHauschildt
Why? Lotsofdataonmobilephones:
But:
Source:http://www.nu.nl/internet/1721108/jongerenkoesteren oudesmsberichtenvideo.html
BluetoothSerialPort
Conventionalserialports:
Bluetoothserialports:
HowtogetaBluetoothserialport?
Localdevice(ifpresent)canalwaysdoit Remotedevicemustofferit,butGSMsusuallyshould Creatingtheconnectionisataskoftheoperatingsystem,forexample: Ubuntu/Debian: sudoaptgetinstallbluetooth sudohcitoolscan (findblutoothaddrofdevice) sdptoolbrowse00::11::22:33:44:55 locatechannelnrforSerialPort rfcommconnect/dev/rfcomm0 00:11::22:33:44:552
ChecktheCOMportunderProperties (portnrchosenabove)
Queryphoneinterminalprogram
#Queryaphoneinteractivelyinterminalprogram'minicom': #(Windows:hyperterminal) #Firstsetitupproperly CUbuntu:/home/detlev>sudominicoms #interactively: #Serialportsetup #SerialDevice: /dev/rfcomm0 #Bps/Par/Bis: 96008N1 #Savesetupasdfl #ExitfromMinicom CUbuntu:/home/detlev>minicom Welcometominicom2.3 [...] OK AT+CGMM SAMSUNGSGHG600
OK
>minicom_log_00
HowtodothisinPerl?
Threelayers: Device::SerialPort(nonWindows)or Win32::SerialPort(Windows)
replacestheterminalprogram, i.e.writesrawbytestoandreadsrawbytesfromtheserialport
Device::Modem
Device::Gsm
DemoofDevice::Modem
ShortscriptthatsendsAT+CCLK?tothephoneandshowstheanswer
assumesthatphoneisconnectedto/dev/rfcomm0
DemoofDevice::Gsm
ShortscriptthatshowstheanswertoAT+CCLK?,thecurrentnetworkandlistsunpacked SMSmessages:
$perlgsm.plp0cAT+CCLK? [...]sameasbefore $perlgsm.plp0cnetwork question:'network' NLKPN $perlgsm.plp0cmessagesbME "","POSTBANK","TotaalbedragoverboekingenE363,00..Volgnummer97;TANcode 737308.","29/06/0823:36:4004","0" "+33686811111","","Mijxussendismsgon...Detlev@","","1"
>sourceofgsm.pl
Summary
Steps:
minicomorhyperterminal
Questions...?