[RVB2601 Creative Application Development] PC Health Status Detector
[Copy link]
PC Health Checker
Author: Song Guangfa
When using the PC, the fan often runs wildly. When you open the task manager and check the CPU usage, the CPU soars to 100% due to the task manager and other tasks. It is impossible to confirm whether the fan is running wildly due to the CPU usage. At the same time, I need to open multiple software such as vscode or pycharm at the same time, but I hate putting a window on the desktop to display the current remaining memory.
- Brief introduction of the work (100-200 words) + photos of the work
Connect the PC to the PC health detector made by 2601 through wireless network or wired mode. If there is a device that displays the current CPU usage, memory remaining, and swap area remaining without opening the task manager, it is easy to judge the current PC status. Confirm whether the current freeze is caused by the CPU or the lack of memory space causes data exchange.
- System block diagram (combined with pictures and text)
Use the 2601 display module to display the health data of the PC, the data comes from the statistical program of the PC. The display module is connected to the PC via Ethernet or serial port.
- Functional description and analysis of each part (combined with pictures and text)
1. Display side design
The PC health display uses the black and white display that comes with the development board, and divides the display into three lines. The first line shows the current CPU usage, the second line shows the current PC memory usage, and the third line shows the current usage of the swap partition.
The display system uses the lvgl third-party library. A label is created in the gui task and text is added to the label. Three char variables are added to the global variables. Since the calculation on the PC side is more convenient, the char-type CPU usage, memory usage, and swap area usage are directly replaced on the 2601 side.
Add a wireless receiving program, use the wifi interface, and add a cli interface for wired connection. When data is received from the PC side, replace the data part in the text, and the display driver will refresh the updated value to the display.
- PC test data collection and transmission
The PC-side statistical tool is implemented using Python. Python has a psutil library that can count CPU usage, memory usage, SWAP usage and other attributes. Use the Ethernet communication library to send data, and use the USB to serial port to send cli commands to transmit data
https://gitee.com/sgf201/pc_health
- Video presentation (video description + link)
Display the current working status of the PC. To test the effect, open a VScode project. You can clearly see that the CPU usage of the PC has increased, and the memory space occupied has also increased.
https://www.bilibili.com/video/BV1TU4y1R7fC?share_source=copy_web
- Project summary (project text summary + post sharing link summary)
https://en.eeworld.com/bbs/thread-1198484-1-1.html
https://en.eeworld.com/bbs/thread-1198843-1-1.html
8. Others
A few tips for Flathead Brother:
1. The demo takes up almost all the flash space, so it is not possible to add more content based on the demo. It is better to leave more than half of the space for the demo
2. There is no wizard-like instructions for flash space configuration
3. After the code is modified, the debugging will appear to be running away, and there will be no effective prompts, which is quite a headache. It is suspected that the boot state is not satisfied. It is recommended to provide a more robust project for general users.
|