SlideShare a Scribd company logo
1 of 6
Download to read offline
Tyler Bailey
9/21/2016
Dosenet Additions Report
The goal of Dosenet is to provide transparent, relevant measurements of radioactivity in
the environment for the purposes of outreach, public education, and research. These devices are
located throughout the Bay Area and are steadily being added to locations throughout Europe
and Asia. There are currently two devices that Dosenet utilizes: The Silicon Device and the
Kromek D3S. The Silicon Device is the original device and is a silicon detector connected to a
Raspberrypi Microcontroller. The actual silicon detector is sourced from the Japanese nonprofit,
Radiation-Watch. The detector counts the amount of gamma radiation (number of photons) that
are incident on detector’s surface area, converts the counts (number of photons that are incident
on the detector) into counts per minute averaged over a five-minute period, and then converts the
counts per minute to the rate of radiation dose (microsieverts per hour) that people are being
exposed to. This radiation dose is then sent to the central server which is displayed to the public
through the website URL https://radwatch.berkeley.edu/dosenet/map. The long term goal for
development of the Silicon Device is to prepare them for WIFI access (the devices are currently
connected to the internet through Ethernet), and to revamp the source code to facilitate future
software development. The main reason for preparing them for WIFI access is to allow device to
be located outside of buildings. This allows data to be collected on how weather conditions can
affect natural radiation levels.
The Kromek D3S is a Cs-I detector and is currently being prepared for deployment into
schools. The D3S is a spectrum detector which means it has the ability to distinguish the energy
of the gamma radiation that is incident on the detector. The appeal of this feature is that it
provides adequate information to determine which specific radioisotopes are located in the
environment. Like the Dosenet Device, the D3S is connected to a Raspberrypi microcontroller
and will send data to the same central server. To prepare the D3S devices for the public, the
original code that Kromek designed had to be modified and combined with code that will allow
the D3S to serve similar purposes as the Dosenet Device. Scripts also had to be designed to add
plotting features to the D3S for ease of data visualization.
The main improvement made to the Silicon Device code is the Data_Handler class. This
class’s main purpose is to decide and execute what to do with each cpm (counts per minute).
This cleans up the Manager class (Manager manages all the other classes) because Manager only
has to call a Data_Handler.handle_cpm method which only takes up one line in the Manager
class. The Data_Handler class also adds a data_log and a save_to_memory feature. The data_log
allows data to be collected in a text file. This data is envisioned to be used for future educational
purposes for high school or middle school students who are interested in programming and/or
nuclear science. The save_to_memory feature allows data not to be loss if the internet connection
goes down during device operation. If data fails to send or to be received by a server, it is added
to a deque object. The data is stored there until the network goes back up or if the device reboots.
If the device turns off (during a nightly reboot or a manual shut off), the data is sent to a backlog
file. Upon the initialization of the manager class (in other words a reboot or when a device is
manually turned on), saved data in this backlog file is resent to the deque object thus preventing
the loss of data.
The other improvement made is the switch from UDP to TCP network protocol. The
main allure of TCP protocol is that there is no need for a Network class. This old class included a
couple sub-processes which had the potential to make some features unnecessarily complex and
hard to update. The TCP protocol instead checks to see if the network is up just by trying to send
the data to the server. If everything is working correctly, nothing happens, and the data is
successfully sent. If the network is down, the program alerts the user, and the data is sent to the
deque object. To add this feature, the Data_Handler class had to be adjusted. The main method
essentially turned into a try and except block. The method will try to normally send the data. If a
socket error is raised (most commonly caused when the network is down), an error message will
be printed and the data will be sent to the deque object.
The newest Dosenet device, D3S, is a Cs-I detector. The device code is modeled
similarly to the Dosenet device code. It includes a Manager_D3S class, a Data_Handler_D3S
class, and uses some newly added methods from the Sender class (Sender is in charge of sending
data to the central server). The one challenge with the D3S code is incorporating the code that
came with the device. This code is not the easiest to read and also imports a substantial number
of objects from the Kromek library. To tackle this obstacle, the original code has been modified
and implanted into the run method of the Manager_D3S class. The device is structured to send
data every minute through a TCP network protocol. The Sender methods that were added are
specifically tailored to the type of data that the D3S device sends. The Manager_D3S also
collects the data in a Numpy array object for easier data manipulation in the future. There is also
some code that allows LED support for future development.
Plotting features have also been implemented for the D3S device. The first plotting script
plots the Total Spectrum that the D3S device gathers. The D3S device has a data_log feature
similar to the Silicon Device. After allowing the device to operate for some time under the
data_log mode (the device sends data to the data_log), the data can be extracted from the
data_log and put into a deque object. From there, a method exists that ensures the data is in a
Numpy array and then rebins to 256 bins (the default is 4096) to remove noise. The script then
sums up all the data and outputs a Matplotlib plot of the total spectra. An example plot is located
below in Figure 1. The other plotting script that has been added plots a Waterfall plot. Once
again data is extracted from the data_log and put into a deque object. The data is made sure to be
a Numpy array and also rebinned as before. The goal of this Waterfall plot is to take data from
the deque and show the progression of the spectra versus time. For ease of visibility, the plot will
display each spectra as a color map where each index will represent a bin and each color will
represent an amount of counts. Each individual spectrum will be represented by a row and each
row will be stacked together forming an array-like plot. An example waterfall plot is located
below in Figure 2.
Figure 1
Figure 1 shows an example of the Total Spectrum Plotting feature. Data was collected from the
natural radiation levels in the basement of Etcheverry Hall. The y-axis is the number of counts
while the x-axis is the channel number (or bin number).
Figure 2
Figure 2 shows an example of the Waterfall Plotting feature. Data was collected from the natural
radiation levels in the basement of Etcheverry Hall. The y-axis labels each spectrum while the x-
axis is the channel number (or bin number). For this colormap, red indicates the highest amount
of counts while blue indicates low or no counts.
Overall, the Silicon Device’s code has been revamped to be more object-orientated.
Along with this, the device now operates under TCP network protocol, and a memory buffer has
been implemented which prevents data from being loss in the case when the network is down or
when the data fails to send. This has all been done in order to pave way for the inevitable switch
to wireless from wired network connection. The D3S device’s original code has been modified
and combined with code so the device can interact with the Dosenet Network. The framework
has also been established for plotting features on the D3S with plotting scripts including the
Total Spectrum Plot and the Waterfall Plot. Other features that are still in development or need to
be developed are modifying how different devices reboot nightly to check for new software
updates, adding a TCP ‘handshake’ feature where the network will check which git repository
the software on a certain device is from and which repository should perform a git pull from to
try to update the software, and enabling for the Waterfall plot to run and update in real time.

More Related Content

What's hot

difference between hub, bridge, switch and router
difference between hub, bridge, switch and routerdifference between hub, bridge, switch and router
difference between hub, bridge, switch and routerAkmal Cikmat
 
Lan basic
Lan basicLan basic
Lan basicOnline
 
Dc ch08 : local area network overview
Dc ch08 : local area network overviewDc ch08 : local area network overview
Dc ch08 : local area network overviewSyaiful Ahdan
 
Basics Of Comuter Networking
Basics Of Comuter NetworkingBasics Of Comuter Networking
Basics Of Comuter Networkinganishgoel
 
Networking Basics
Networking BasicsNetworking Basics
Networking BasicsCarlo Fonda
 
CE-Introduction-history-Draft
CE-Introduction-history-DraftCE-Introduction-history-Draft
CE-Introduction-history-DraftRoman Krzanowski
 
Basic Networking Network
Basic Networking NetworkBasic Networking Network
Basic Networking NetworkJGrace Johnny
 
Advanced computer network lab manual (practicals in Cisco Packet tracer)
Advanced computer network lab manual (practicals in Cisco Packet tracer)Advanced computer network lab manual (practicals in Cisco Packet tracer)
Advanced computer network lab manual (practicals in Cisco Packet tracer)VrundaBhavsar
 
Computer Networks- Introduction and Data Link Layer
Computer Networks- Introduction and Data Link LayerComputer Networks- Introduction and Data Link Layer
Computer Networks- Introduction and Data Link LayerDeepak John
 
Computer Network Introduction by Mr. Lokesh Kumar #easterscience
Computer Network Introduction by Mr. Lokesh Kumar #easterscienceComputer Network Introduction by Mr. Lokesh Kumar #easterscience
Computer Network Introduction by Mr. Lokesh Kumar #easterscienceLOKESH KUMAR
 
Exploitation of Local Area Network Services
Exploitation of Local Area Network ServicesExploitation of Local Area Network Services
Exploitation of Local Area Network ServicesMohammed El Hedhly
 
Local Area Network – Wired LAN
Local Area Network – Wired LANLocal Area Network – Wired LAN
Local Area Network – Wired LANRaj vardhan
 
Chapter 1 overview-stij3053 - Network Design
Chapter 1 overview-stij3053 - Network DesignChapter 1 overview-stij3053 - Network Design
Chapter 1 overview-stij3053 - Network Designnakomuri
 
Basic networking 07-2012
Basic networking 07-2012Basic networking 07-2012
Basic networking 07-2012Samuel Dratwa
 
Networking fundamentals
Networking fundamentalsNetworking fundamentals
Networking fundamentalsjpprakash
 

What's hot (20)

difference between hub, bridge, switch and router
difference between hub, bridge, switch and routerdifference between hub, bridge, switch and router
difference between hub, bridge, switch and router
 
Lan basic
Lan basicLan basic
Lan basic
 
Dc ch08 : local area network overview
Dc ch08 : local area network overviewDc ch08 : local area network overview
Dc ch08 : local area network overview
 
Basics Of Comuter Networking
Basics Of Comuter NetworkingBasics Of Comuter Networking
Basics Of Comuter Networking
 
Networking Basics
Networking BasicsNetworking Basics
Networking Basics
 
Computer Network - Unit 1
Computer Network - Unit 1Computer Network - Unit 1
Computer Network - Unit 1
 
CE-Introduction-history-Draft
CE-Introduction-history-DraftCE-Introduction-history-Draft
CE-Introduction-history-Draft
 
Basic Networking Network
Basic Networking NetworkBasic Networking Network
Basic Networking Network
 
Mod10
Mod10Mod10
Mod10
 
Advanced computer network lab manual (practicals in Cisco Packet tracer)
Advanced computer network lab manual (practicals in Cisco Packet tracer)Advanced computer network lab manual (practicals in Cisco Packet tracer)
Advanced computer network lab manual (practicals in Cisco Packet tracer)
 
Computer Networks- Introduction and Data Link Layer
Computer Networks- Introduction and Data Link LayerComputer Networks- Introduction and Data Link Layer
Computer Networks- Introduction and Data Link Layer
 
Networking Brief Overview
Networking Brief OverviewNetworking Brief Overview
Networking Brief Overview
 
Computer Network Introduction by Mr. Lokesh Kumar #easterscience
Computer Network Introduction by Mr. Lokesh Kumar #easterscienceComputer Network Introduction by Mr. Lokesh Kumar #easterscience
Computer Network Introduction by Mr. Lokesh Kumar #easterscience
 
Exploitation of Local Area Network Services
Exploitation of Local Area Network ServicesExploitation of Local Area Network Services
Exploitation of Local Area Network Services
 
Local Area Network – Wired LAN
Local Area Network – Wired LANLocal Area Network – Wired LAN
Local Area Network – Wired LAN
 
Chapter 1 overview-stij3053 - Network Design
Chapter 1 overview-stij3053 - Network DesignChapter 1 overview-stij3053 - Network Design
Chapter 1 overview-stij3053 - Network Design
 
PPT of Communications Systems
PPT of Communications SystemsPPT of Communications Systems
PPT of Communications Systems
 
Basic networking 07-2012
Basic networking 07-2012Basic networking 07-2012
Basic networking 07-2012
 
Unit_I - 1
Unit_I - 1Unit_I - 1
Unit_I - 1
 
Networking fundamentals
Networking fundamentalsNetworking fundamentals
Networking fundamentals
 

Viewers also liked

Job scams : English and foreign language teachers
Job scams : English and foreign language teachersJob scams : English and foreign language teachers
Job scams : English and foreign language teachersThe Free School
 
report grace spelling
report grace spellingreport grace spelling
report grace spellingAstha Lama
 
Amira Mohamed Mohamed Kamal .....
Amira Mohamed Mohamed Kamal .....Amira Mohamed Mohamed Kamal .....
Amira Mohamed Mohamed Kamal .....Amira Kamal
 
degree_certificate_Gergo_Kiss
degree_certificate_Gergo_Kissdegree_certificate_Gergo_Kiss
degree_certificate_Gergo_KissGerg? Kiss
 
II DÍA ANIMACIÓN A LAS MATEMÁTICAS
II DÍA ANIMACIÓN A LAS MATEMÁTICASII DÍA ANIMACIÓN A LAS MATEMÁTICAS
II DÍA ANIMACIÓN A LAS MATEMÁTICASLaura Puch
 
CURSO DE MANTENIMIENTO Y REPARACION DE CALDERAS E INTERCAMBIADORES DE CALOR
CURSO DE MANTENIMIENTO Y REPARACION DE CALDERAS E INTERCAMBIADORES DE CALORCURSO DE MANTENIMIENTO Y REPARACION DE CALDERAS E INTERCAMBIADORES DE CALOR
CURSO DE MANTENIMIENTO Y REPARACION DE CALDERAS E INTERCAMBIADORES DE CALOREdgar Jos Garc
 
Paseo aleman
Paseo alemanPaseo aleman
Paseo alemanruilopez
 

Viewers also liked (20)

06 poluicao visual
06 poluicao visual06 poluicao visual
06 poluicao visual
 
Job scams : English and foreign language teachers
Job scams : English and foreign language teachersJob scams : English and foreign language teachers
Job scams : English and foreign language teachers
 
Trabajo práctico n° 3.pptx1
Trabajo  práctico n° 3.pptx1Trabajo  práctico n° 3.pptx1
Trabajo práctico n° 3.pptx1
 
computacion
computacioncomputacion
computacion
 
report grace spelling
report grace spellingreport grace spelling
report grace spelling
 
solar energy
solar energysolar energy
solar energy
 
Mecanismos de participacion
Mecanismos de participacionMecanismos de participacion
Mecanismos de participacion
 
Amira Mohamed Mohamed Kamal .....
Amira Mohamed Mohamed Kamal .....Amira Mohamed Mohamed Kamal .....
Amira Mohamed Mohamed Kamal .....
 
Hi Phil
Hi PhilHi Phil
Hi Phil
 
MERTORIOUS SERVICE MEDAL JUSTIFICATION AND CERTIFICATE
MERTORIOUS SERVICE MEDAL JUSTIFICATION AND CERTIFICATEMERTORIOUS SERVICE MEDAL JUSTIFICATION AND CERTIFICATE
MERTORIOUS SERVICE MEDAL JUSTIFICATION AND CERTIFICATE
 
degree_certificate_Gergo_Kiss
degree_certificate_Gergo_Kissdegree_certificate_Gergo_Kiss
degree_certificate_Gergo_Kiss
 
Exxon mobil
Exxon mobilExxon mobil
Exxon mobil
 
II DÍA ANIMACIÓN A LAS MATEMÁTICAS
II DÍA ANIMACIÓN A LAS MATEMÁTICASII DÍA ANIMACIÓN A LAS MATEMÁTICAS
II DÍA ANIMACIÓN A LAS MATEMÁTICAS
 
[IIAM] Technologies de agro processamento: caril de inflorescência de banana,...
[IIAM] Technologies de agro processamento: caril de inflorescência de banana,...[IIAM] Technologies de agro processamento: caril de inflorescência de banana,...
[IIAM] Technologies de agro processamento: caril de inflorescência de banana,...
 
CURSO DE MANTENIMIENTO Y REPARACION DE CALDERAS E INTERCAMBIADORES DE CALOR
CURSO DE MANTENIMIENTO Y REPARACION DE CALDERAS E INTERCAMBIADORES DE CALORCURSO DE MANTENIMIENTO Y REPARACION DE CALDERAS E INTERCAMBIADORES DE CALOR
CURSO DE MANTENIMIENTO Y REPARACION DE CALDERAS E INTERCAMBIADORES DE CALOR
 
Resumen economico cig_20140331
Resumen economico cig_20140331Resumen economico cig_20140331
Resumen economico cig_20140331
 
Paseo aleman
Paseo alemanPaseo aleman
Paseo aleman
 
Coneccion de la web 2
Coneccion de la web 2Coneccion de la web 2
Coneccion de la web 2
 
San pio x
San pio xSan pio x
San pio x
 
[IIAM] Fernanda Gomes - Investigação Agrária e Mudanças Climáticas
[IIAM] Fernanda Gomes - Investigação Agrária e Mudanças Climáticas[IIAM] Fernanda Gomes - Investigação Agrária e Mudanças Climáticas
[IIAM] Fernanda Gomes - Investigação Agrária e Mudanças Climáticas
 

Similar to Dosenet_Report

A NETWORK-BASED DAC OPTIMIZATION PROTOTYPE SOFTWARE 2 (1).pdf
A NETWORK-BASED DAC OPTIMIZATION PROTOTYPE SOFTWARE 2 (1).pdfA NETWORK-BASED DAC OPTIMIZATION PROTOTYPE SOFTWARE 2 (1).pdf
A NETWORK-BASED DAC OPTIMIZATION PROTOTYPE SOFTWARE 2 (1).pdfSaiReddy794166
 
Alice data acquisition
Alice data acquisitionAlice data acquisition
Alice data acquisitionBertalan EGED
 
Paper id 25201467
Paper id 25201467Paper id 25201467
Paper id 25201467IJRAT
 
Programming Without Coding Technology (PWCT) Features - Programming Paradigm
Programming Without Coding Technology (PWCT) Features - Programming ParadigmProgramming Without Coding Technology (PWCT) Features - Programming Paradigm
Programming Without Coding Technology (PWCT) Features - Programming ParadigmMahmoud Samir Fayed
 
FEC & File Multicast
FEC & File MulticastFEC & File Multicast
FEC & File MulticastYoss Cohen
 
Eclipse Con Europe 2014 How to use DAWN Science Project
Eclipse Con Europe 2014 How to use DAWN Science ProjectEclipse Con Europe 2014 How to use DAWN Science Project
Eclipse Con Europe 2014 How to use DAWN Science ProjectMatthew Gerring
 
Sector Sphere 2009
Sector Sphere 2009Sector Sphere 2009
Sector Sphere 2009lilyco
 
sector-sphere
sector-spheresector-sphere
sector-spherexlight
 
Notes for banking railway opsc psc preparationx
Notes for  banking railway opsc psc preparationxNotes for  banking railway opsc psc preparationx
Notes for banking railway opsc psc preparationxRAJSEKHAR PEDINA
 
An in-building multi-server cloud system based on shortest Path algorithm dep...
An in-building multi-server cloud system based on shortest Path algorithm dep...An in-building multi-server cloud system based on shortest Path algorithm dep...
An in-building multi-server cloud system based on shortest Path algorithm dep...IOSR Journals
 
Hw09 Hadoop Based Data Mining Platform For The Telecom Industry
Hw09   Hadoop Based Data Mining Platform For The Telecom IndustryHw09   Hadoop Based Data Mining Platform For The Telecom Industry
Hw09 Hadoop Based Data Mining Platform For The Telecom IndustryCloudera, Inc.
 
Programmable Exascale Supercomputer
Programmable Exascale SupercomputerProgrammable Exascale Supercomputer
Programmable Exascale SupercomputerSagar Dolas
 
REAL-TIME PEDESTRIAN DETECTION USING APACHE STORM IN A DISTRIBUTED ENVIRONMENT
REAL-TIME PEDESTRIAN DETECTION USING APACHE STORM IN A DISTRIBUTED ENVIRONMENTREAL-TIME PEDESTRIAN DETECTION USING APACHE STORM IN A DISTRIBUTED ENVIRONMENT
REAL-TIME PEDESTRIAN DETECTION USING APACHE STORM IN A DISTRIBUTED ENVIRONMENTcscpconf
 
Real-Time Pedestrian Detection Using Apache Storm in a Distributed Environment
Real-Time Pedestrian Detection Using Apache Storm in a Distributed Environment Real-Time Pedestrian Detection Using Apache Storm in a Distributed Environment
Real-Time Pedestrian Detection Using Apache Storm in a Distributed Environment csandit
 
Erik Proposal Final
Erik Proposal FinalErik Proposal Final
Erik Proposal FinalErik Messier
 
Data Analysis In The Cloud
Data Analysis In The CloudData Analysis In The Cloud
Data Analysis In The CloudMonica Carter
 

Similar to Dosenet_Report (20)

A NETWORK-BASED DAC OPTIMIZATION PROTOTYPE SOFTWARE 2 (1).pdf
A NETWORK-BASED DAC OPTIMIZATION PROTOTYPE SOFTWARE 2 (1).pdfA NETWORK-BASED DAC OPTIMIZATION PROTOTYPE SOFTWARE 2 (1).pdf
A NETWORK-BASED DAC OPTIMIZATION PROTOTYPE SOFTWARE 2 (1).pdf
 
prj exam
prj examprj exam
prj exam
 
Alice data acquisition
Alice data acquisitionAlice data acquisition
Alice data acquisition
 
An Optics Life
An Optics LifeAn Optics Life
An Optics Life
 
Eg4301808811
Eg4301808811Eg4301808811
Eg4301808811
 
Paper id 25201467
Paper id 25201467Paper id 25201467
Paper id 25201467
 
Programming Without Coding Technology (PWCT) Features - Programming Paradigm
Programming Without Coding Technology (PWCT) Features - Programming ParadigmProgramming Without Coding Technology (PWCT) Features - Programming Paradigm
Programming Without Coding Technology (PWCT) Features - Programming Paradigm
 
FEC & File Multicast
FEC & File MulticastFEC & File Multicast
FEC & File Multicast
 
Eclipse Con Europe 2014 How to use DAWN Science Project
Eclipse Con Europe 2014 How to use DAWN Science ProjectEclipse Con Europe 2014 How to use DAWN Science Project
Eclipse Con Europe 2014 How to use DAWN Science Project
 
Sector Sphere 2009
Sector Sphere 2009Sector Sphere 2009
Sector Sphere 2009
 
sector-sphere
sector-spheresector-sphere
sector-sphere
 
Notes for banking railway opsc psc preparationx
Notes for  banking railway opsc psc preparationxNotes for  banking railway opsc psc preparationx
Notes for banking railway opsc psc preparationx
 
An in-building multi-server cloud system based on shortest Path algorithm dep...
An in-building multi-server cloud system based on shortest Path algorithm dep...An in-building multi-server cloud system based on shortest Path algorithm dep...
An in-building multi-server cloud system based on shortest Path algorithm dep...
 
H017113842
H017113842H017113842
H017113842
 
Hw09 Hadoop Based Data Mining Platform For The Telecom Industry
Hw09   Hadoop Based Data Mining Platform For The Telecom IndustryHw09   Hadoop Based Data Mining Platform For The Telecom Industry
Hw09 Hadoop Based Data Mining Platform For The Telecom Industry
 
Programmable Exascale Supercomputer
Programmable Exascale SupercomputerProgrammable Exascale Supercomputer
Programmable Exascale Supercomputer
 
REAL-TIME PEDESTRIAN DETECTION USING APACHE STORM IN A DISTRIBUTED ENVIRONMENT
REAL-TIME PEDESTRIAN DETECTION USING APACHE STORM IN A DISTRIBUTED ENVIRONMENTREAL-TIME PEDESTRIAN DETECTION USING APACHE STORM IN A DISTRIBUTED ENVIRONMENT
REAL-TIME PEDESTRIAN DETECTION USING APACHE STORM IN A DISTRIBUTED ENVIRONMENT
 
Real-Time Pedestrian Detection Using Apache Storm in a Distributed Environment
Real-Time Pedestrian Detection Using Apache Storm in a Distributed Environment Real-Time Pedestrian Detection Using Apache Storm in a Distributed Environment
Real-Time Pedestrian Detection Using Apache Storm in a Distributed Environment
 
Erik Proposal Final
Erik Proposal FinalErik Proposal Final
Erik Proposal Final
 
Data Analysis In The Cloud
Data Analysis In The CloudData Analysis In The Cloud
Data Analysis In The Cloud
 

Dosenet_Report

  • 1. Tyler Bailey 9/21/2016 Dosenet Additions Report The goal of Dosenet is to provide transparent, relevant measurements of radioactivity in the environment for the purposes of outreach, public education, and research. These devices are located throughout the Bay Area and are steadily being added to locations throughout Europe and Asia. There are currently two devices that Dosenet utilizes: The Silicon Device and the Kromek D3S. The Silicon Device is the original device and is a silicon detector connected to a Raspberrypi Microcontroller. The actual silicon detector is sourced from the Japanese nonprofit, Radiation-Watch. The detector counts the amount of gamma radiation (number of photons) that are incident on detector’s surface area, converts the counts (number of photons that are incident on the detector) into counts per minute averaged over a five-minute period, and then converts the counts per minute to the rate of radiation dose (microsieverts per hour) that people are being exposed to. This radiation dose is then sent to the central server which is displayed to the public through the website URL https://radwatch.berkeley.edu/dosenet/map. The long term goal for development of the Silicon Device is to prepare them for WIFI access (the devices are currently connected to the internet through Ethernet), and to revamp the source code to facilitate future software development. The main reason for preparing them for WIFI access is to allow device to be located outside of buildings. This allows data to be collected on how weather conditions can affect natural radiation levels. The Kromek D3S is a Cs-I detector and is currently being prepared for deployment into schools. The D3S is a spectrum detector which means it has the ability to distinguish the energy of the gamma radiation that is incident on the detector. The appeal of this feature is that it provides adequate information to determine which specific radioisotopes are located in the
  • 2. environment. Like the Dosenet Device, the D3S is connected to a Raspberrypi microcontroller and will send data to the same central server. To prepare the D3S devices for the public, the original code that Kromek designed had to be modified and combined with code that will allow the D3S to serve similar purposes as the Dosenet Device. Scripts also had to be designed to add plotting features to the D3S for ease of data visualization. The main improvement made to the Silicon Device code is the Data_Handler class. This class’s main purpose is to decide and execute what to do with each cpm (counts per minute). This cleans up the Manager class (Manager manages all the other classes) because Manager only has to call a Data_Handler.handle_cpm method which only takes up one line in the Manager class. The Data_Handler class also adds a data_log and a save_to_memory feature. The data_log allows data to be collected in a text file. This data is envisioned to be used for future educational purposes for high school or middle school students who are interested in programming and/or nuclear science. The save_to_memory feature allows data not to be loss if the internet connection goes down during device operation. If data fails to send or to be received by a server, it is added to a deque object. The data is stored there until the network goes back up or if the device reboots. If the device turns off (during a nightly reboot or a manual shut off), the data is sent to a backlog file. Upon the initialization of the manager class (in other words a reboot or when a device is manually turned on), saved data in this backlog file is resent to the deque object thus preventing the loss of data. The other improvement made is the switch from UDP to TCP network protocol. The main allure of TCP protocol is that there is no need for a Network class. This old class included a couple sub-processes which had the potential to make some features unnecessarily complex and hard to update. The TCP protocol instead checks to see if the network is up just by trying to send
  • 3. the data to the server. If everything is working correctly, nothing happens, and the data is successfully sent. If the network is down, the program alerts the user, and the data is sent to the deque object. To add this feature, the Data_Handler class had to be adjusted. The main method essentially turned into a try and except block. The method will try to normally send the data. If a socket error is raised (most commonly caused when the network is down), an error message will be printed and the data will be sent to the deque object. The newest Dosenet device, D3S, is a Cs-I detector. The device code is modeled similarly to the Dosenet device code. It includes a Manager_D3S class, a Data_Handler_D3S class, and uses some newly added methods from the Sender class (Sender is in charge of sending data to the central server). The one challenge with the D3S code is incorporating the code that came with the device. This code is not the easiest to read and also imports a substantial number of objects from the Kromek library. To tackle this obstacle, the original code has been modified and implanted into the run method of the Manager_D3S class. The device is structured to send data every minute through a TCP network protocol. The Sender methods that were added are specifically tailored to the type of data that the D3S device sends. The Manager_D3S also collects the data in a Numpy array object for easier data manipulation in the future. There is also some code that allows LED support for future development. Plotting features have also been implemented for the D3S device. The first plotting script plots the Total Spectrum that the D3S device gathers. The D3S device has a data_log feature similar to the Silicon Device. After allowing the device to operate for some time under the data_log mode (the device sends data to the data_log), the data can be extracted from the data_log and put into a deque object. From there, a method exists that ensures the data is in a Numpy array and then rebins to 256 bins (the default is 4096) to remove noise. The script then
  • 4. sums up all the data and outputs a Matplotlib plot of the total spectra. An example plot is located below in Figure 1. The other plotting script that has been added plots a Waterfall plot. Once again data is extracted from the data_log and put into a deque object. The data is made sure to be a Numpy array and also rebinned as before. The goal of this Waterfall plot is to take data from the deque and show the progression of the spectra versus time. For ease of visibility, the plot will display each spectra as a color map where each index will represent a bin and each color will represent an amount of counts. Each individual spectrum will be represented by a row and each row will be stacked together forming an array-like plot. An example waterfall plot is located below in Figure 2. Figure 1 Figure 1 shows an example of the Total Spectrum Plotting feature. Data was collected from the natural radiation levels in the basement of Etcheverry Hall. The y-axis is the number of counts while the x-axis is the channel number (or bin number).
  • 5. Figure 2 Figure 2 shows an example of the Waterfall Plotting feature. Data was collected from the natural radiation levels in the basement of Etcheverry Hall. The y-axis labels each spectrum while the x- axis is the channel number (or bin number). For this colormap, red indicates the highest amount of counts while blue indicates low or no counts. Overall, the Silicon Device’s code has been revamped to be more object-orientated. Along with this, the device now operates under TCP network protocol, and a memory buffer has been implemented which prevents data from being loss in the case when the network is down or when the data fails to send. This has all been done in order to pave way for the inevitable switch to wireless from wired network connection. The D3S device’s original code has been modified and combined with code so the device can interact with the Dosenet Network. The framework has also been established for plotting features on the D3S with plotting scripts including the
  • 6. Total Spectrum Plot and the Waterfall Plot. Other features that are still in development or need to be developed are modifying how different devices reboot nightly to check for new software updates, adding a TCP ‘handshake’ feature where the network will check which git repository the software on a certain device is from and which repository should perform a git pull from to try to update the software, and enabling for the Waterfall plot to run and update in real time.