Projekt

Obecné

Profil

« Předchozí | Další » 

Revize b6744c04

Přidáno uživatelem Jakub Šilhavý před asi 2 roky(ů)

re #9423 Edited README.md

Zobrazit rozdíly:

client/README.md
1
# Automatická detekce a dokumentace připojených USB zařízení - Client - Bug Thugs
1
# Automatic detection and documentation of connected USB devices - Client - Bug Thugs
2 2

  
3
---
4

  
5
- [Description](#description)
6
- [Requirements](#requirements)
7
  * [Windows](#windows)
8
- [Build](#build)
9
- [Execution](#execution)
10

  
11
---
12

  
13
## Description
14

  
15
This client application periodically scans all USB devices connected to the computer. For each device, it tries to retrieve its **vendor id**, **product id**, and **serial number**, which is believed to be unique for all devices from the same vendor. This data, along with a timestamp and computer-related information, is sent to the server (API). If the application fails to send the data, it will store the payload in a disk-based cache. The client then periodically accesses the cache in order to resend the failed payloads to the server.   
16

  
17
## Requirements
18

  
19
As required, the application was written in Python. In order to successfully run the application, the user needs to have Python 3 installed on their machine. Furthermore, they are required to run the following command to install all dependencies the application takes advantage of.
20

  
21
```
22
pip install -r requirements.txt
23
```
24

  
25
### Windows
26

  
27
For the Windows operating system, the user also needs to install the following tool.
28

  
29
- https://sourceforge.net/projects/libusb-win32/
30

  
31
Upon successful installation of this library, the following file should be created`C:\WINDOWS\system32\libusb0.dll`. The application uses this file to scan USB devices connected to the PC.
32

  
33
## Build
34

  
35
In order to create an executable file of the application, the user can use the `build.bat` file located in the root directory of the project structure. If everything goes well, a file called `licence_detector.exe` should be created in the same location. This file represents the executable file of the application.
36

  
37
## Execution
38

  
39
Before the very first start of the application, the user is required to execute the following command from the terminal in order to give the client access to all USB devices of the same vendor id and product id.
40

  
41
```
42
install-filter.exe install --device=USB\Vid_064f.Pid_2af9.Rev_0100
43
```
44

  
45
Vector Keyman: vendor id = **064f**, product id = **2af9**
46

  
47
After that, they can simply run the application by running the following command from the terminal.
48

  
49
```
50
licence_detector.exe --help
51
```

Také k dispozici: Unified diff