Pirates: I am your father

Chapter 177 Untitled 24 (replacing the chapter, no need to read)



In life, we often encounter things piling up or want to do them after the current event, but often forget to do them when the time comes.This sometimes causes us to miss something, and even causes some safety accidents, which seriously affects our quality of life.If we can design a memo file that can be created by voice and set the time to remind us, it will greatly reduce the chance of us missing the time to do something, making our life more organized and high-quality.

Fire incidents caused by high temperatures in life are difficult to prevent. Sometimes it is clear that the temperature is just higher than normal at first and has not yet reached the ignition point. Because of our ignorance, it slowly rises to the ignition point, causing a small fire and then evolving into a large fire.If we could have a system that would alert us when the temperature exceeds normal temperatures, then this fire would never happen.

The home smart assistant developed in this project can be said to be a "life assistant" that serves the user's daily needs, but this "life assistant" is just an intelligent program.It meets users' various needs for life management and reminders. It can check weather conditions at any time, and can also remind users of weather conditions and precautions when people go out, in high temperatures.The following is an introduction to the requirements of each module.

The development platform Linux operating system used in this system is free and open source, and the gec6818 development board is not very expensive, with a value of about 400 yuan.The major functional modules of the system, such as weather broadcasts and memo reminders, which require the use of APIs and speech conversion synthesis technology, can be downloaded for free from the learning materials on major official websites or downloaded for reference in technology blog forums. The high temperature warning module is also only available. It needs to be connected to a dht11 module which costs a few yuan. As for the technology used for listening to music and making food recommendations in your spare time, it is also free and cost-free.Therefore, the research on this topic requires a certain economic cost, but it also falls into the category of low cost.In general, the design research of this system is economically feasible.

This system mainly uses Linux system as the development platform. The Linux system is safe and stable, supports a variety of compilation tools and cross-compilation, and has multiple functions. It is a powerful free open source operating system.This system uses the gec6818 development board as the carrier. The gec6818 development board supports driver development, touch screen interaction and networking development to meet the system development requirements.In terms of development and programming technology, the C language is mainly used as the development language, combined with touch screen algorithms and LCD display technology as the interface design and operation interaction of the system, and network programming technology, file IO programming, and driver development are used to design API access, voice conversion, and backup. Forget file settings and temperature sensing detection, combine the mysql database as a recipe database for dietary recommendations.Through research and analysis, the above technology can meet the technical research and development of this topic and realize the design function of the system.

Food is paramount for the people, and food is the most closely related to our lives.In today's society, people are no longer pursuing the issue of food and clothing, but also the nutritional balance of the diet.And here we can set up a module to record our daily food choices, and then recommend foods to us based on our nutritional intake in the recent period.

The home smart assistant developed in this project can be said to be a "life assistant" that serves the user's daily needs.But since it serves life, it must meet people's functional needs for life, and the system's immediacy, practicality, ease of use, stability, security, maintainability and scalability must be taken into consideration when designing.

Thread is the smallest scheduling unit in the operating system, and its essence is the allocation of time slices by the system.Through the allocation of time slices, it can realize multiple tasks bursting out at the same time, which facilitates us to solve the multi-task design encountered during development.For example, in this system, for the acquisition and display of time, the time display is dynamic and can be used as a thread to burst out at the same time as the main program to realize the system's time display.

http request is a technology built on tcp, which has four steps.First, a tcp communication connection is established, then the client formulates the http protocol, and then sends the http protocol to the server. Finally, the client receives the data returned by the server, which completes an http request. HTTP requests are generally used to access API interfaces. The weather reporting module designed in this system accesses the API interface of Xinzhi Weather through HTTP requests. After obtaining the returned jsion data, it parses to form the required weather data.

TCP is a transmission protocol. Although its transmission speed is relatively slow, it is safe and reliable.The first step is to establish a server and other clients, then realize data communication and interaction between the server and the client through a three-way handshake, and close the communication channel through four waves of hands.

The touch screen algorithm is a technology based on human-computer interaction, which provides convenience for communication between design and system, and also provides simplicity for system operation.Its essence is to obtain the coordinates of the location you clicked through the click event, and then judge the operation behavior based on this coordinate.This system is developed based on gec6818, which requires the application of quite a few touch screen algorithms.

This system is mainly divided into five major modules, including weather broadcast, high temperature warning, memo reminder, food recommendation, and listening to music in leisure time.The first is to get the time on the home page and display the time and simulate opening the door.The weather broadcast function can check the weather at any time, broadcast weather conditions at regular intervals, provide weather reminders when going out, switch cities and set weather reminder voices; the high temperature warning can set the normal temperature and warning temperature, and provide a first-level warning voice reminder when the temperature exceeds the normal temperature. , when the temperature exceeds the pre-warning temperature, a secondary warning buzzer will be used to remind and the temperature and humidity can be checked; the memo reminder has voice reminders for memo events, creating memo events, deleting memo events, modifying memo events, and viewing memo events. and set reminder time; diet recommendation has the functions of storing recommended data, viewing diet data, modifying diet data and recommending diet; relaxing in leisure time has the functions of listening to songs, playing videos, playing mini games and AI chatting.

The process of the memo reminder function is: start to detect the memo event and memo time. Here you can add, delete, modify and check the memo event and set the memo time.Then synthesize the memo voice and perform time matching judgment. If the time is up, the memo event voice reminder will be given. If the time is not up, the judgment will continue.


Tip: You can use left, right, A and D keyboard keys to browse between chapters.