Cruzr's technical framework

Introduction

As a developer, when you try to write your first program on Cruzr, you may have many questions such as “What is the structure of the Cruzr system?”, “How do you create a simple project?”, "What is the difference between a Cruzr robot and other android devices such as mobile phones, tablets, and TV boxes?", and "How do the modules of the robot work?", and so on.

The following is a brief introduction to the Cruzr's technical framework, which will not only answer the questions above, but also let you understand the internal implementation principles of Cruzr, so everyone can quickly access their own programs.

Cruzr framework

The robot's technical architecture

Cruzr system framework
As can be seen from the figure above, Cruzr is mainly made up of four layers. From the top to the bottom are the application layer, business service layer, control layer, and hardware layer. The application layer provides the business functions of the robot. The business service layer is Cruzr's core service and provides various capabilities for the application layer. For example, the speech service provides speech recognition,natural language understanding , and text to speech capabilities. The control layer mainly controls the hardware modules of the robot.

Cruzr's internal implementation principle

By analyzing the Cruzr's framework, we can see that Cruzr's software structure is the application layer, service layer, and control layer from top to bottom. The application layer receives the events entered by the user and then calls the functions provided by the service layer through the API interface. The service layer sends the corresponding instruction to the control layer through the socket. The control layer controls the corresponding hardware module according to the instructions. At the same time, the data generated by the sensor is uploaded to the service layer through the control layer, and then returned to the application layer through the API interface. The application layer then sends the feedback to the user through interface display or voice.

What are the differences?

The difference between Cruzr and other android devices is that it has a more powerful hardware foundation and requires more service layers to manage it. However, developers only need to pay attention to our business service layer and the provided API interface. Therefore, customization and development based on Cruzr are the same as other android platforms.