CN113064582A - Method for developing and constructing operating system by using Python - Google Patents

Method for developing and constructing operating system by using Python Download PDF

Info

Publication number
CN113064582A
CN113064582A CN202110372147.3A CN202110372147A CN113064582A CN 113064582 A CN113064582 A CN 113064582A CN 202110372147 A CN202110372147 A CN 202110372147A CN 113064582 A CN113064582 A CN 113064582A
Authority
CN
China
Prior art keywords
handle
layer
key
python
operating system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110372147.3A
Other languages
Chinese (zh)
Inventor
刘静
陈华云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yunyu Technology Co ltd
Original Assignee
Shenzhen Yunyu Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yunyu Technology Co ltd filed Critical Shenzhen Yunyu Technology Co ltd
Priority to CN202110372147.3A priority Critical patent/CN113064582A/en
Publication of CN113064582A publication Critical patent/CN113064582A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B19/00Teaching not covered by other main groups of this subclass
    • G09B19/0053Computers, e.g. programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a method for developing and constructing an operating system pi OS by using Python, which comprises the pi OS, wherein the pi OS is formed by dividing into multi-layer components from bottom to top, and the main layer components are a Kernel layer, a Hal Lib layer, a frames layer and an APPS layer respectively. The application mainly comprises a Pi OS formed by a Kernel layer, a Hal Lib layer, a frames layer and an APPS layer. The Python programming is simple and beneficial to the programming of children, so that the interest of the programming of children can be improved by utilizing the Pi OS, the formation of the thinking of the programming of children is promoted, and the development of education is promoted.

Description

Method for developing and constructing operating system by using Python
Technical Field
The application relates to the field of operating systems, in particular to a method for developing and constructing an operating system pi OS by using Python.
Background
The operating system is a foundation stone of the electronic software industry and is one of the weakest links of the basic software industry in China. Google Android is limited to China, and has more than one year after coming out of hongmeng, but the Google Android cannot be formally applied to mobile phones in large batch. The seven fields of the new infrastructure use more or less operating systems, and the construction of the operating systems is also the foundation construction of the new infrastructure.
The Python programming is simple and elegant, and the Python program can run in an open source mode, which is well suited for novice programming. Electronic products running an operating system with pure python as a programming language are lacking in the market, so that children can learn python programming and use the python programming conveniently. We therefore improved this by proposing a method of building an operating system using Python development.
Disclosure of Invention
The present application provides a method for building an operating system pi OS using Python development to improve the above-mentioned problems.
The invention is particularly such that:
the device comprises a pi OS and is characterized in that the pi OS is formed by dividing the pi OS into a plurality of layers from top to bottom, and the main layers are an APPS layer, a frames layer, a Hal Lib layer and a Kernel layer respectively.
As a preferred embodiment of the present application, the APPS layer includes:
and developing and constructing APPS layer basic application by using Python, wherein the applications such as a desktop, system settings, an APP center, a browser, an input method, a video player, a camera, games and the like are provided for a user to use.
As a preferred technical solution of the present application, the frames layer includes:
firstly, the method comprises the following steps: constructing a framework layer library, and compiling a Python library item by item to provide a Python library of an operating environment for an APPS layer;
II, secondly: packing and publishing the Python library of the framework layer as an SDK, writing a developer guide and API document for use by developers.
As a preferred technical solution of the present application, the Hal Lib layer includes:
and constructing a Hal layer library, configuring and compiling the related dependency library item by item, configuring and compiling the main component library, generating a dynamic link library file, and providing a C/C + + library for the framework layer to support the operating environment.
As a preferred embodiment of the present application, the Kernel layer includes:
firstly, the method comprises the following steps: constructing a rich operating system, compiling a driver according to hardware peripherals, configuring a Kernel of the rich operating system, compiling to generate a Kernel binary file, and generating a Kernel header file for use in constructing a Hal layer;
II, secondly: and constructing a safety operating system, configuring the safety operating system according to the hardware peripheral compiling driver and the TA, and compiling to generate a safety system kernel binary file.
As a preferred embodiment of the present application, the pi OS application is mainly developed using Python, and may also be developed using C/C + + or other languages.
As a preferred technical scheme of the application, specific components of the pi OS can be increased, decreased and replaced. There are many alternatives to the specific implementation of the relevant components of the GUI, game framework, database, rich operating system, secure operating system, etc.
The utility model provides an use Python development to construct operating system pi OS application apparatus, a serial communication port, include the host computer and can dismantle the handle, the top of host computer one side is equipped with the button, the button is by switch power key, volume upper key, volume lower key, fingerprint authentication key constitution, the front of host computer is equipped with the TP screen, the positive last border of host computer is equipped with camera, 3D structure light camera, light sense, distance sense, earphone and first handle buckle in proper order, the bottom of host computer is equipped with microphone, USB type-C interface, loudspeaker, second handle buckle in proper order, the back of host computer is equipped with camera, dTOF degree of depth camera, Led and first wireless charger.
As a preferred technical scheme of the application, a CPU, a memory, a Flash, a rechargeable battery, a Modem, a radio frequency, a mainboard, a connecting line and a clamping groove are arranged in the host.
As a preferred technical scheme of this application, can dismantle the handle contains left handle and right handle, the front of left handle is equipped with key, lower key, left key and right key in proper order, the front of right handle is equipped with select key, confirm key, function key and return key in proper order, detachable handle divide into about detachable handle and integral type handle, the left handle right side of left and right detachable handle is fixed and is equipped with first host computer buckle, the left handle left side of left and right detachable handle is equipped with the USB interface, the right handle left side of left and right detachable handle is equipped with the second host computer buckle, the right handle right side of left and right detachable handle is equipped with the USB joint, the positive middle part of integral type handle is equipped with the second wireless charger, be equipped with chargeable cell in the integral type handle, one side of integral type handle is equipped with USB type-C joint, and a third host buckle is arranged on the other side of the integrated handle.
The invention has the beneficial effects that:
1. the pi OS formed by the Kernel layer, the Hal Lib layer, the frames layer and the APPS layer is simple and elegant in Python programming and is very suitable for children to learn programming, so that the interest of children in learning programming can be improved by utilizing the pi OS, the formation of children learning programming thinking is promoted, and the development of education is promoted;
2. the pi OS can be adapted to electronic products such as notebook computers, mobile phones, game machines and the like by using the device, so that the electronic products can directly load the pi OS and utilize the pi OS to learn programming, thereby saving time and being convenient to carry;
3. pi OS using "children growth and care" can help children use electronic products more reasonably, control the use of entertainment game software, prevent children from indulging in the entertainment game software in the electronic products and not study.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a block diagram of a method for building an operating system using Python development according to the present application;
FIG. 2 is a schematic diagram of the main body mechanism of the device for developing and constructing an operating system using Python provided in the present application;
fig. 3 is a schematic front view of a host computer of the device for developing and constructing an operating system using Python according to the present application;
fig. 4 is a schematic back view of a host computer of the device for developing and constructing an operating system using Python according to the present application;
fig. 5 is a bottom schematic view of a host that uses Python to develop and build a device for an operating system according to the present application;
FIG. 6 is a schematic view of a left-right split handle of the device for developing and constructing an operating system using Python according to the present application;
FIG. 7 is a schematic structural view of an integrated handle of the device for developing and constructing an operating system using Python according to the present application;
FIG. 8 is a system framework Python application layer presentation diagram of the method for developing and building an operating system using Python provided in the present application;
fig. 9 is a system framework Python framework layer & library layer display diagram of the method for developing and constructing an operating system using Python according to the present application;
FIG. 10 is a system framework C/C + +, Hal layer & library layer presentation diagram, of the method for building an operating system using Python development provided herein;
FIG. 11 is a system framework rich system kernel and a security system kernel presentation diagram of a method for building an operating system using Python development as provided herein;
fig. 12 is a system framework hardware display diagram of the method for constructing an operating system using Python development provided in the present application.
Icon: 1. a host; 2. a detachable handle; 3. pressing a key; 4. a TP screen; 5. a first handle buckle; 6. a second handle buckle; 7. a left handle; 8. a right handle; 9. a key is added; 10. a key is down; 11. a left key; 12. a right key; 13. a selection key; 14. a confirmation key; 15. A function key; 16. a return key; 17. a left-right separated handle; 18. an integral handle; 19. a first host buckle; 20. a USB interface; 21. a second host buckle; 22. a USB connector; 23. a second wireless charger; 24. a USB type-C connector; 25. and a third host buckle.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the embodiments of the present application will be described in detail and completely with reference to the drawings in the embodiments of the present application, and it should be understood that the described embodiments are some but not all of the embodiments of the present application. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by one of ordinary skill in the art from the embodiments given herein without undue experimentation, are within the scope of the present disclosure.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the embodiments of the present application, it should be noted that the indication of orientation or position relationship is based on the orientation or position relationship shown in the drawings, or the orientation or position relationship which is usually placed when the product of the application is used, or the orientation or position relationship which is conventionally understood by those skilled in the art, or the orientation or position relationship which is usually placed when the product of the application is used, and is only for the convenience of describing and simplifying the description, but does not indicate or imply that the device or element to be indicated must have a specific orientation, be constructed in a specific orientation, and be operated, and therefore, should not be construed as limiting the application. Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
In the description of the embodiments of the present application, it should also be noted that, unless otherwise explicitly stated or limited, the terms "disposed," "mounted," and "connected" are to be construed broadly, and may for example be fixedly connected, detachably connected, or integrally connected; the connection may be direct or indirect via an intermediate. The specific meaning of the above terms in this application will be understood in a particular context to those of ordinary skill in the art.
Example (b):
as shown in fig. 1, fig. 2, fig. 3, fig. 4, fig. 5, fig. 6, fig. 7, fig. 8, fig. 9, fig. 10, fig. 11, and fig. 12, the present application provides a method for constructing an operating system using Python development, which includes a pi OS, and is characterized in that the pi OS is formed by dividing components into multiple layers from top to bottom, and the main layer components are an APPS layer, a frames layer, a Hal Lib layer, and a Kernel layer, respectively.
Wherein the APPS layer comprises:
the method comprises the steps of developing and constructing an APPS (application platform) layer basic application, a desktop, system settings, an APP center, a browser and an input method by using Python, providing user use, and providing an application developed by using a Python language, wherein the application comprises the APP center, the desktop, the system settings, a virtual keyboard input method, the browser, a file browser and a programming IDE (integrated development environment), and an APP application (game) developed by a developer and an APP application (game) downloaded by a user.
Wherein the frames layer comprises:
firstly, the method comprises the following steps: constructing a framework layer library, and compiling a Python library item by item to provide a Python library of an operating environment for an APPS layer;
II, secondly: the Python library is used for packing and publishing a Python library of a frame layer as an SDK, writing a developer guide and an API document, providing developer use, and comprises data analysis, scientific calculation, an AI algorithm, a 2D game frame, a 3D game frame, a user interface GUI, a search engine, service management and child growth care service, and providing APP operation environment support and an API interface for application development.
Wherein the Hal Lib layer comprises:
constructing a Hal layer library, configuring and compiling related dependency libraries item by item, configuring and compiling a main component library, generating a dynamic link library file, providing a C/C + + library for a framework layer to support an operating environment, wherein the C/C + + library is a C/C + + library and comprises a 2D graphic engine, a 3D graphic engine, a user interface GUI, python, a database, an input method framework, process communication, multimedia, image coding, decoding and drawing, file coding, decoding, networking and encryption and decryption security, and providing basic library support for the framework layer.
Wherein, the Kernel layer includes:
firstly, the method comprises the following steps: constructing a rich operating system, compiling a driver according to hardware peripherals, configuring a Kernel of the rich operating system, compiling to generate a Kernel binary file, and generating a Kernel header file for use in constructing a Hal layer;
II, secondly: the method comprises the steps of constructing a safe operating system, configuring the safe operating system according to hardware peripheral compiling drivers and TAs, compiling to generate a safe system kernel binary file, and providing the most basic functions of the operating system, such as equipment management, task management, power consumption management, safety management, file system and the like based on a rich operating system, the rich operating system and the safe operating system and including hardware drivers.
The pi OS application is mainly developed by Python, and can also be developed by C/C + + or other languages.
Wherein, each specific component of the pi OS can be increased, decreased and replaced. There are many alternatives to the specific implementation of the relevant components of the GUI, game framework, database, rich operating system, secure operating system, etc.
The utility model provides an use Python development to construct operating system pi OS application apparatus, a serial communication port, including host computer 1 and detachable handle 2, the top of host computer 1 one side is equipped with button 3, button 3 comprises switch power key, volume upper key, volume lower key, fingerprint authentication key, the front of host computer 1 is equipped with TP screen 4, the positive last border of host computer 1 is equipped with the camera in proper order, 3D structure light camera, the light sense, apart from the sense, earphone and first handle buckle 5, the bottom of host computer 1 is equipped with the microphone in proper order, USB type-C interface, loudspeaker, second handle buckle 6, the back of host computer 1 is equipped with the camera, dTOF degree of depth camera, Led and first wireless charger.
The host 1 is internally provided with a CPU, a memory, a Flash, a rechargeable battery, a Modem, a radio frequency, a mainboard, a connecting line and a clamping groove.
Wherein, the detachable handle 2 comprises a left handle 7 and a right handle 8, the front of the left handle 7 is provided with an upper key 9, a lower key 10, a left key 11 and a right key 12 in sequence, the front of the right handle 8 is provided with a selection key 13, a confirmation key 14, a function key 15 and a return key 16 in sequence, the detachable handle 2 is divided into a left and a right separated handles 17 and an integrated handle 18, the right side of the left handle 7 of the left and the right separated handles 17 is fixedly provided with a first host buckle 19, the left side of the left handle 7 of the left and the right separated handles 17 is provided with a USB interface 20, the left side of the right handle 8 of the left and the right separated handles 17 is provided with a second host buckle 21, the right side of the right handle 8 of the left and the right separated handles 17 is provided with a USB connector 22, the middle part of the front of the integrated handle 18 is provided with a second wireless charger 23, the handle 18, the other side of the integrated handle 18 is provided with a third main machine buckle 25.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. The method for developing and constructing the pi OS of the operating system by using Python comprises the pi OS and is characterized in that the pi OS is formed by dividing the pi OS into multilayer components from top to bottom, and the main hierarchical components are an APPS layer, a framework layer, a Hal Lib layer and a Kernel layer respectively.
2. The method according to claim 1, wherein the APPS layer comprises:
and developing and constructing APPS layer basic application, desktop, system setting, APP center, browser, input method, video player, camera, game and other applications for users by using Python.
3. The method according to claim 1, wherein the frames layer comprises:
firstly, the method comprises the following steps: constructing a framework layer library, and compiling a Python library item by item to provide a Python library of an operating environment for an APPS layer;
II, secondly: packing and publishing the Python library of the framework layer as an SDK, writing a developer guide and an API document, and providing the developer for use.
4. The method of claim 1, wherein the hallib layer comprises:
and constructing a Hal layer library, configuring and compiling the related dependency library item by item, configuring and compiling the main component library, generating a dynamic link library file, and providing a C/C + + library for the framework layer to support the operating environment.
5. The method according to claim 1, wherein the Kernel layer comprises:
firstly, the method comprises the following steps: constructing a rich operating system, compiling a driver according to hardware peripherals, configuring a Kernel of the rich operating system, compiling to generate a Kernel binary file, and generating a Kernel header file for use in constructing a Hal layer;
II, secondly: and constructing a safety operating system, configuring the safety operating system according to the hardware peripheral compiling driver and the TA, and compiling to generate a safety system kernel binary file.
6. The method as claimed in claim 1, wherein the pi OS application is developed mainly using Python, and can also be developed using C/C + + or other languages.
7. The method of claim 1, wherein specific components of the pi OS are scalable and replaceable. There are many alternatives to the specific implementation of the relevant components of the GUI, game framework, database, rich operating system, secure operating system, etc.
8. The utility model provides an use Python development to construct operating system pi OS application apparatus, a serial communication port, include host computer (1) and can dismantle handle (2), the top of host computer (1) one side is equipped with button (3), button (3) are by switch power key, volume upper key, volume lower key, fingerprint authentication key constitution, the front of host computer (1) is equipped with TP screen (4), the positive last border of host computer (1) is equipped with camera, 3D structure light camera, light sense, distance sense, earphone and first handle buckle (5) in proper order, the bottom of host computer (1) is equipped with microphone, USB type-C interface, loudspeaker, second handle buckle (6) in proper order, the back of host computer (1) is equipped with camera, dTOF degree of depth camera, Led and first wireless charger.
9. The pi OS application device according to claim 8, wherein the host (1) is provided therein with a CPU, a memory, a Flash, a rechargeable battery, a Modem, a radio frequency, a main board, a connection line, and a card slot.
10. The pi OS application device according to claim 9, wherein the detachable handle (2) comprises a left handle (7) and a right handle (8), the front of the left handle (7) is sequentially provided with an upper key (9), a lower key (10), a left key (11) and a right key (12), the front of the right handle (8) is sequentially provided with a selection key (13), a confirmation key (14), a function key (15) and a return key (16), the detachable handle (2) is divided into a left-right detachable handle (17) and an integrated handle (18), the right side of the left handle (7) of the left-right detachable handle (17) is fixedly provided with a first host buckle (19), the left side of the left handle (7) of the left-right detachable handle (17) is provided with a USB interface (20), the left side of the right handle (8) of the left-right detachable handle (17) is provided with a second host buckle (21), control right handle (8) right side of disconnect-type handle (17) and be equipped with USB and connect (22), the positive middle part of integral type handle (18) is equipped with the wireless charger of second (23), be equipped with rechargeable battery in integral type handle (18), one side of integral type handle (18) is equipped with USB type-C and connects (24), the opposite side of integral type handle (18) is equipped with third host computer buckle (25).
CN202110372147.3A 2021-04-07 2021-04-07 Method for developing and constructing operating system by using Python Pending CN113064582A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110372147.3A CN113064582A (en) 2021-04-07 2021-04-07 Method for developing and constructing operating system by using Python

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110372147.3A CN113064582A (en) 2021-04-07 2021-04-07 Method for developing and constructing operating system by using Python

Publications (1)

Publication Number Publication Date
CN113064582A true CN113064582A (en) 2021-07-02

Family

ID=76566036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110372147.3A Pending CN113064582A (en) 2021-04-07 2021-04-07 Method for developing and constructing operating system by using Python

Country Status (1)

Country Link
CN (1) CN113064582A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114398069A (en) * 2021-12-10 2022-04-26 中国人民解放军战略支援部队信息工程大学 Method and system for identifying accurate version of public component library based on cross fingerprint analysis

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114398069A (en) * 2021-12-10 2022-04-26 中国人民解放军战略支援部队信息工程大学 Method and system for identifying accurate version of public component library based on cross fingerprint analysis

Similar Documents

Publication Publication Date Title
Bau et al. Learnable programming: blocks and beyond
US20200218519A1 (en) Methods and systems for creating applications using scene trees
Fernaeus et al. The material move how materials matter in interaction design research
Patterson et al. Computer organization and design ARM edition: the hardware software interface
US9710015B2 (en) Wearable computer system
CN107390777B (en) Dual screen tactile enabled convertible laptop computer
Narayanaswami et al. IBM's Linux watch, the challenge of miniaturization
CN109840061A (en) The method and electronic equipment that control screen is shown
CN109074245A (en) Vision diagram is converted into code
CN108228153B (en) Cooperation-oriented entity programming method and system
CN108351766B (en) Creating and modifying applications from mobile devices
CN113064582A (en) Method for developing and constructing operating system by using Python
US20150268788A1 (en) Multiple system interoperable interactive graphical user interface with upgradable, exchanable, and user removable central processing unit card
WO2011044722A1 (en) Unit cooperative processing apparatus, parallel cooperative processing apparatus and information processing methods thereof
US20080211698A1 (en) Keyboard with Variable Markings and Layouts
CN117436418A (en) Method, device, equipment and storage medium for generating specified type text
CN108093312A (en) Interactive approach and system based on barrage technology
Lamberta et al. Foundation HTML5 Animation with JavaScript
Pfeiffer et al. Virtual prototyping of mixed reality interfaces with internet of things (IoT) connectivity
Romano et al. Learn web development with Python: get hands-on with Python programming and Django web development
Schipor et al. GearWheels: A Software Tool to Support User Experiments on Gesture Input with Wearable Devices
Hou Research on Flattening Style Design of Game Interface Based on Cognitive Psychology
Al Ahmadi Survey of designing user interface for mobile applications
US12051205B1 (en) Systems and methods for interacting with a large language model
CN111782878B (en) Server, display device and video search ordering method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination