Week 5

Week 5


This is the fifth week of our 5 weeks project. In this week, we:
  • The function of recording the address, connection time, and connection duration of the connected user is implemented.
  • Realized the function of counting the total number of people connected to WiFi per day.
  • designed and made a project poster.



Figure 1 shows the part of the code for recording the user's connection status and this code file named test.sh was placed in the router's folder named root which can be seen in Figure 2. When running this program, we can get a record of users connected status in real time. The results are shown in Figure 3.

Figure 1: Part of code

Figure 2: Display code file location

 Figure 3: The results of recording users connected status in real time





Download the log recorded by the router via the connection to the router's WiFi. Then run the program on our server to process the downloaded log to count the total number of people connected every day. The code language is JavaScript and the compiler is node.js. Figure 4 shows part of the code. The flowchart of Figure 5 shows this process in detail. Figure 6 Shows the results.
Figure 4: Part of code

Figure 5: Flowchart of the process

Figure 6: The results of counting total number of users per day













评论

此博客中的热门博文

Week 1

Week 2

Week 4