Method for loading ReWorks operating system based on serial port

Through the serial port-based loading method, the complexity and cost of traditional operating system initialization and loading methods are solved, and the simplified operating system loading process is realized, which reduces hardware costs and improves development efficiency.

CN119829151AInactive Publication Date: 2025-04-15EAST CHINA INST OF COMPUTING TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411909673.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional operating system initialization and loading methods rely on complex network connections, resulting in difficult development, long cycles, cumbersome maintenance and high cost.

Method used

The serial port-based loading method is adopted to communicate with the CPU through the serial port device to realize the loading and startup of the ReWorks operating system. The method includes initializing the serial port, defining a private protocol, sending and verifying data, saving files, and starting the operating system.

Benefits of technology

Reduces design complexity and cost, simplifies the development process, shortens the development cycle, and improves the efficiency and reliability of system updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119829151A_ABST
    Figure CN119829151A_ABST
Patent Text Reader

Abstract

According to the method for loading the ReWorks operating system based on the serial port, loading operation conducted through the serial port is relatively simple, especially in the development and debugging stage, a developer can easily conduct interaction with equipment through a terminal, a serial port interface is usually configured by default of embedded equipment, extra hardware support is not needed, and the development and debugging efficiency is greatly improved. Most of computers and embedded devices support serial port communication, so that compatibility with various devices can be realized, and operation and migration among different platforms can be realized conveniently. Compared with a network protocol, a serial port communication protocol is simple, the cost is lower, and the method is suitable for beginners and rapid development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer communications, and in particular to a method for loading a ReWorks operating system based on a serial port. Background Art

[0002] With the widespread application of embedded systems, the requirements for operating system initialization and loading methods are constantly increasing. Traditional loading methods usually use network loading, which requires designing a network interface, adding peripheral circuits such as a network card and PHY, and implementing network initialization and network protocol configuration in the bootloader stage. It relies on more complex network connections or storage media, resulting in greater development difficulty, long development cycle, cumbersome maintenance and update processes, and high costs. Summary of the invention

[0003] The purpose of the technical solution of the present invention is to develop a simple, efficient and economical system loading method.

[0004] The technical solution of the present invention provides a method for loading a ReWorks operating system based on a serial port, comprising the following steps:

[0005] Create serial port receiving and sending rules according to the CPU manual and configure the corresponding interface of the serial port;

[0006] After initializing the serial port information, connect the corresponding serial port device to the interface;

[0007] The CPU performs command processing and interface configuration according to a preset private protocol, and the data transmitted to the external device after command processing is transmitted through a serial port according to a preset private protocol;

[0008] Open the Reworks operating system file on an external device and convert it to hexadecimal data;

[0009] Add checksum content according to hexadecimal data;

[0010] Send the data with added verification content to the CPU side through the configured serial port;

[0011] The CPU verifies the data with added verification content, and if the verification is successful, it is saved to the corresponding storage space;

[0012] When the ReWorks operating system needs to be started, the ReWorks operating system is started by transmitting a startup command through the serial port.

[0013] Preferably, the serial port information includes data bits, stop bits, parity bits and baud rate.

[0014] Preferably, the preset private protocol includes starting the serial port to receive data, verify data and save data.

[0015] The technical solution of the present invention proposes a method for loading the ReWorks operating system based on a serial port. The loading operation using a serial port is relatively simple, especially in the development and debugging stage. Developers can easily interact with the device through a terminal. The serial port interface is usually the default configuration of embedded devices, and no additional hardware support is required. Most computers and embedded devices support serial port communication, so it can achieve compatibility with a variety of devices and facilitate operation and migration between different platforms. Compared with network protocols, serial port communication protocols are simple and less expensive, and are suitable for beginners and rapid development. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of receiving a command by starting input;

[0017] Figure 2 This is a schematic diagram of opening the Reworks operating system file to be transferred;

[0018] Figure 3 This is a schematic diagram of the file transfer process in the Reworks operating system;

[0019] Figure 4 This is a schematic diagram of Reworks operating system file verification;

[0020] Figure 5 A schematic diagram of saving Reworks operating system files on a storage device. DETAILED DESCRIPTION

[0021] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the appended claims of the application equally.

[0022] The embodiment of the present invention provides a method for loading a ReWorks operating system based on a serial port, so as to realize a simplified operating system loading process, improve the efficiency and reliability of system updates, and reduce hardware costs. The method comprises: a first part is a CPU boot program, in which a private protocol of serial port communication needs to be added for communicating with external application software; a second part is application software, which mainly realizes sending commands through a serial port, receiving responses and status information from a CPU, and developing a loader.

[0023] The method specifically comprises the following steps:

[0024] Step 1: Initialize the serial port in the boot program and enter the start receiving command to realize the interconnection between the CPU serial port and external devices.

[0025] Wherein, step 1 comprises the following steps:

[0026] Step 1.1: Initialize the serial port's data bit, stop bit, parity bit, baud rate and other information;

[0027] Step 1.2: Implement the serial port transceiver program according to the CPU manual and provide the corresponding interface;

[0028] Step 1.3: Connect an external serial port device to enable the external device and the CPU serial port to send and receive data to each other.

[0029] Step 2: Add a private serial port protocol to the boot program, including start receiving, data verification, data saving and other functions.

[0030] Wherein, step 2 comprises the following steps:

[0031] Step 2.1: On the CPU side, according to the private protocol, start the serial port to receive data, verify data, and save data commands and interfaces;

[0032] Step 2.2: Implement the interface and command for sending serial data on the external device according to the same private protocol as step 2.1.

[0033] Step 3: Send the Reworks operating system file that needs to be updated to the CPU through the serial port via an external device.

[0034] Wherein, step 3 comprises the following steps:

[0035] Step 3.1: Open the Reworks operating system file on the external device and convert the file content into hexadecimal data for easy transmission through the serial port;

[0036] Step 3.2: Add verification method to the data to be sent;

[0037] Step 3.3: Send the processed Reworks operating system file to the CPU through the serial port.

[0038] Step 4: Verify the received Reworks operating system file, and if the verification is successful, save it to the corresponding storage space.

[0039] Wherein, step 4 comprises the following steps:

[0040] Step 4.1: After the CPU receives all the data, it inputs the data verification command in the CPU and performs data verification according to the verification method set in step 3.2;

[0041] Step 4.2: For files with successful data verification, enter the save file command on the CPU side to save the received Reworks operating system file on the storage device.

[0042] Step 5: Use the startup command to start the Reworks operating system loaded through the serial port.

[0043] Wherein, step 5 comprises the following steps:

[0044] Step 5.1: Enter the startup command on the CPU side to start the Reworks operating system loaded through the serial port.

[0045] The embodiment of the present invention provides a method for loading a ReWorks operating system based on a serial port, and the beneficial effects are as follows:

[0046] 1) Reduce design complexity, because the operating system can be updated only through the serial port, without the need to design a network interface;

[0047] 2) Reduce costs. By reducing the design of peripheral circuits such as network cards and PHY, the cost can be greatly reduced;

[0048] 3) Reduce development difficulty and shorten development cycle. Since the serial port is a basic peripheral of the CPU device, the underlying driver of the serial port is relatively complete, and the communication protocol of the serial port is also relatively simple to formulate, this solution can greatly reduce the development difficulty and shorten the development cycle.

[0049] The embodiment of the present invention adopts the method of loading the ReWorks operating system based on the serial port provided above, and creates a software based on loading the ReWorks operating system based on the serial port. The software interface is as follows: Figure 1-Figure 5 shown.

[0050] Figure 1 A schematic diagram of receiving a command by starting input; Figure 2 This is a schematic diagram of opening the Reworks operating system file to be transferred; Figure 3 This is a schematic diagram of the file transfer process in the Reworks operating system; Figure 4 This is a schematic diagram of Reworks operating system file verification; Figure 5 A schematic diagram of saving Reworks operating system files on a storage device.

Claims

1. A method for loading ReWorks operating system based on a serial port, characterized in that: The following steps are involved: Create serial port transceiver rules according to the CPU manual and configure the corresponding interface of the serial port; After initializing the serial port information, connect the corresponding serial port device to the interface; The CPU performs command processing and interface configuration according to a preset private protocol, and the data transmitted to the external device after command processing is transmitted through a serial port according to a preset private protocol; Open the Reworks operating system file on an external device and convert it to hexadecimal data; Add checksum content according to hexadecimal data; Send the data with added verification content to the CPU side through the configured serial port; The CPU verifies the data with added verification content, and if the verification is successful, it is saved to the corresponding storage space; When the ReWorks operating system needs to be started, the ReWorks operating system is started by transmitting a startup command through the serial port.

2. A method for loading ReWorks operating system based on a serial port as claimed in claim 1, characterized in that: The serial port information includes data bits, stop bits, parity bits and baud rate.

3. The method for loading the ReWorks operating system based on a serial port as claimed in claim 1, characterized in that: The preset private protocol includes starting the serial port to receive data, verify data and save data.

Citation Information

Patent Citations

  • Onboard embedded computer data loading method

    CN102495746A

  • Serial port driving system based on PCI bus

    CN111737180A

  • Computer file one-way transmission system

    CN116170430A