|
Kategorie: Diplomové, bakalářské práce |
Tento dokument chci!
Tato práce zkoumá vhodnost a požadavky návrhu simulací pro simulátor NS-3 pro případ bezdrátových sítí používaných v měřící infrastruktuře společnosti Kamstrup. V práci jepopsán simulátor NS-3 a je vytvořena základní implementace dvou protokolů. WirelessM-Bus jako příklad jednosměrného protokolu pro zařízení napájené z baterií. Simulace Wireless M-Bus je porovnána s daty naměřenými v reálném systému. NS-3 poskytuje flexibilní prostředí pro vývoj simulací různých síťových protokolů, včetně těch určených pro sítě inteligentních měřidel.
cc can create their output databases, but
leave the existing data the database exists; most cases therefore necessary
to delete rename the existing database files before running them.
To make the measurements more convenient, small program was created in
order copy the contents the datafiles into one master database.cc and accepts list the datasets as
arguments, the output database name outputdb.allConcentrators
WHERE SignalVariance!=0 AND SignalMean!=0 GROUP BaseNumber, Number;
Both crawllogs.1 Measurements
The measurements were available set hourly SQLite datafiles for each the
concentrators. The columns this project used contained data
about: meter number, meter type, average received signal, average hit rate.
The program’s name crawllogs.DESCRIPTION THE AVAILABLE DATA
B.sqlite and can set the
source code. The program can used using the following shell command search
for all datasets:
find location −iname −print0 xargs crawllogs
To increase the execution speed the simulation and other operations, was useful
to also create database with mean values only.
It was generated using the following SQL command, which represents the equa-
tion 3.
39
. program genMeansDB.sqlite. They both used
the libsqlite [13] library work with the SQLite files.cc does ex-
actly that loads file outpudb.cc and genMeansDB.sqlite and generates file outputdb_means.6:
INSERT INTO allConcentrators
(BaseNumber, Ip, Number, Manufacture, Type,
SignalMean, SignalVariance, PacketHit, PacketHitRepeated)
SELECT BaseNumber, Ip, Number, Manufacture, Type,
avg(SignalMean), avg(SignalVariance)/count(SignalVariance),
avg(PacketHit), avg(PacketHitRepeated)
FROM orig.
Each the files contained table with row for every meter and repeater whose
signal was received during that hour