## 2 Materials and Methods
### The Concept and Infrastructure of the Created System  
The information system that was designed and then created and that realizes the aim of the work, integrates different technologies. The first elements of the discussed system are beacons, units generating and sending data in definite time intervals. Signals that are sent are registered by smartphones, equipped with proper, original software, written for the individual needs of this paper. It uses libraries delivered by the producer of beacons. Data that are registered are saved in files on smartphone. Other elements of the system are the consequence of adopting two separate scenarios of their further processing. The first was based on Microsoft technologies, which was abandoned due to unsatisfactory efficiency tests. The time of data processing turned out to be too long. Technologies comprising the first scenario, apart from the solutions presented earlier are the following:  
Figure 3: The positions of base stations in den and feeding area. Figure 2: Beacon round the neck of the monitored animal. * Dropbox Platform
* Tools making up BI--by Microsoft
* Client Program--Excel. In the second scenario, a sufficient efficiency was ensured by applying Google Cloud and Google Docs technologies. In this case data were sent from smartphones to cloud calculator and were stored in Cloud Storage, and then were transferred to analytical bases designed and set up on BigQuery platform:  
* Estimote Beacons, Sticker model with Nordic chip. * Cellular phones--with original application. * Plane of data integration--original application. * Analytical database--original diagram
* Integrated layer of data presentation. The presented concept is of multilayer nature, which presents technologies and action on high level of generality. A couple of layers, performing various functions and utilizing other technologies, form the architecture of the created system (Figure 4):  
* Data acquisition. * Synchronization (data transfer). * ETL layer (data processing). * Analytical base. * Tools for data analysis. The first of the mentioned layers is responsible for data acquisition. It is created both with equipment and software. The process of data acquisition begins when the application is activated in the cellular phone. They collect data from the beacons, which are within its range. Each beacon sends data, every single second in the \"broadcast\" format, which are registered in the receiving station in the CSV format (Comma separated values) on the microSD card. In order to simplify data management, the size of files was reduced. This aim was achieved via recording data in a single file covering only one hour of research. Next measurements were registered in the following files. The limited memory size of the base station as well as security reasons meant that we favored using the Dropbox platform, which together with the created application, forms another layer. It ensures both data synchronization and safe data storage. Synchronizing files with data located on Dropbox platform and in receiving stations is a cyclical process at a 3-min interval. All files stored on the Dropbox platform have history of version. The above allows to restore any file condition in which a given file was stored in the last 30 days. This mechanism also protects us from losing data in case of lack of internet connection. The use of beacons, as new data providers, used in the process of identification of behavior and physiological condition of dairy cattle involved devising the concept system, including both hardware and software solutions [3]. The key elements creating the proposed system together with infrastructure were illustrated (see Figure 2). The measurements of physical quantities were done with beacons, attached to the collars of  
Figure 4: The concept of the created system. the selected animals. The data, after partial processing by the inbuilt beacon software, were sent in the form of radio signals with the transmission bands of 2.4 GHz, in specified intervals.