Method for starting wireless screen-transmission transmitting device, and wireless screen-transmission transmitting device

By using a secondary boot program and Nand flash or SPI Nand flash storage media in the wireless screen transmission device, the basic screen projection function is started first, which solves the problem of long startup time of the wireless screen transmission device and improves the user experience.

WO2025214118A1PCT designated stage Publication Date: 2025-10-16GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/083898
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-12
Filing Date
2025-03-20
Publication Date
2025-10-16

AI Technical Summary

Technical Problem

Wireless screen transmission equipment takes a long time to start up, resulting in a poor user experience.

Method used

A secondary boot program (i.e., the first boot program) is used to boot the system based on program data from Nand flash or SPI Nand flash storage media. By copying and decompressing the first type of program data in the secondary memory, the basic screen projection function is started first, avoiding the time-consuming problem of the traditional first-level boot program.

Benefits of technology

It shortens the startup time of the wireless screen transmission device, improves the user experience, and achieves faster startup speed and a sense of functional completion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025083898_16102025_PF_FP_ABST
    Figure CN2025083898_16102025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the embodiments of the present application are a method for starting a wireless screen-transmission transmitting device, and a wireless screen-transmission transmitting device. The wireless screen-transmission transmitting device comprises a first memory, wherein the first memory comprises a first partition, which stores bootloader data corresponding to a first bootloader, and a second partition, which stores first-type program data corresponding to a basic screen-mirroring function, the first bootloader being a second-stage bootloader. The method comprises: in response to a received starting signal, copying, to a second memory, bootloader data in a first partition of a first memory, and reading and executing the bootloader data, so as to start a first bootloader; on the basis of the execution of the first bootloader, copying, to the second memory, first-type program data in a second partition of the first memory, and performing decompression processing on the first-type program data in the second memory, so as to obtain first executable program data; and reading and executing the first executable program data, so as to start a basic screen-mirroring function. Therefore, the problem of starting taking a relatively long time is solved, and the starting duration is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

A starting method of a wireless screen transmission transmitting device and the wireless screen transmission transmitting device TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of screen transmission, and in particular to a starting method of a wireless screen transmission transmitting device and the wireless screen transmission transmitting device. BACKGROUND

[0002] With the development of Internet technology, electronic devices are various in types and have various uses. In some scenarios, users have an increasingly strong demand for convenient sharing of display content between multiple electronic devices, and screen transmission technology can meet the demand of users to a great extent.

[0003] Screen transmission technology is a technology for realizing communication connection and content sharing between electronic devices through a wireless screen transmission transmitting device. Before use, the wireless screen transmission transmitting device needs to be started first, and then corresponding pairing connection and content sharing can be performed.

[0004] In related technologies, when the wireless screen transmission transmitting device is started, a system is started by a first-level boot program (Uboot). The first-level boot program has a large amount of code, and a long starting time is required for starting the system. For users, the faster the wireless screen transmission transmitting device is started, the better the user experience is. Therefore, in related technologies, the system is started by the first-level boot program, which takes a long time and is not good for user experience. SUMMARY

[0005] Embodiments of the present application provide a starting method of a wireless screen transmission transmitting device and the wireless screen transmission transmitting device, which can solve the problem of long time consumption of starting the wireless screen transmission transmitting device, shorten the starting time, and improve user experience.

[0006] In a first aspect, embodiments of the present application provide a starting method of a wireless screen transmission transmitting device, for a wireless screen transmission transmitting device, the wireless screen transmission transmitting device comprising a first memory and a second memory, the first memory being a Nand flash storage medium or a SPI Nand flash storage medium, the first memory comprising a first partition and a second partition, the first partition storing boot program data corresponding to a first boot program, the first boot program being a second-level boot program, and the second partition storing first program data corresponding to a basic screen projection function; the starting method of the wireless screen transmission transmitting device comprising:

[0007] receiving a starting signal, in response to the starting signal, copying the boot program data in the first partition in the first memory to the second memory, reading and executing the boot program data to start the first boot program;

[0008] According to the execution of the first boot program, the first type of program data in the second partition in the first memory is copied to the second memory;

[0009] According to the execution of the first boot program, the first type of program data in the second memory is decompressed to obtain first executable program data;

[0010] The first executable program data is read and executed to realize the start of the basic screen projection function.

[0011] The above, through the secondary boot program (that is, the first boot program) based on the first type of program data to guide the start of the basic screen projection function of the system, based on the code amount of the secondary boot program is less than the primary boot program, so the time required for the corresponding boot system start is less than the primary boot program, so as to avoid the problem of long time of wireless screen transmission device start, shorten the start time, thereby improving the user experience; And when the basic screen projection function starts, that is, the effect of wireless screen projection is realized, for user experience, at this time, the start is completed, therefore, compared with the simultaneous start mode of all functions in the related art, the start speed of the mode of the embodiment is faster, thereby improving the user experience.

[0012] In an embodiment, according to the execution of the first boot program, the first type of program data in the second memory is decompressed to obtain first executable program data, comprising:

[0013] According to the execution of the first boot program, the first type of program data in the second memory is decompressed to obtain a kernel image and a root file system;

[0014] The first executable program data is read and executed to realize the start of the basic screen projection function, comprising:

[0015] The kernel image is read and executed to start the running of the kernel;

[0016] According to the running of the kernel, the root file system is decompressed;

[0017] The decompressed root file system is mounted to realize the start of the basic screen projection function.

[0018] The above, through the execution of the first boot program, the first type of program data in the second partition is copied to the second memory, to realize the start of the basic screen projection function corresponding to the first type of program data, so that the wireless screen transmission device can run the application corresponding to the basic screen projection function, for example, the screen transmission application, that is, the technical effect of screen transmission can be realized, for user experience, at this time, the start is completed, therefore, the embodiment preferentially starts the basic screen projection function, compared with the simultaneous start mode of all function applications in the related art, the start speed is faster, thereby improving the user experience.

[0019] In an embodiment, the first memory further comprises a third partition, and the third partition stores second program data of preset functions;

[0020] After reading and executing the first executable program data to realize the starting of the basic screen projection function, the method further comprises:

[0021] According to the execution of the first executable program data, the second program data in the third partition of the first memory is copied to the second memory;

[0022] The second program data in the second memory is read and executed to realize the starting of the preset functions.

[0023] By starting the preset functions corresponding to the third partition after starting the basic screen projection function, compared with the way of starting the basic screen projection function and the preset functions simultaneously in the related art, the embodiment greatly shortens the starting time, thereby improving the user experience.

[0024] In an embodiment, according to the execution of the first executable program data, the second program data in the third partition of the first memory is copied to the second memory, comprising:

[0025] According to the running of the kernel, the third partition in the first memory is mounted to the system device list;

[0026] According to the running of the kernel, the second program data in the mounted third partition is copied to the second memory.

[0027] In an embodiment, the second program data in the second memory is read and executed to realize the starting of the preset functions, comprising:

[0028] According to the running of the kernel, the second program data in the second memory is read and executed to realize the starting of the preset functions.

[0029] In an embodiment, after reading and executing the kernel image to start the running of the kernel, the method further comprises:

[0030] According to the running of the kernel, a card scanning signal of a preset phase value is sent to the wireless communication module;

[0031] An answer signal fed back by the wireless communication module is received, and the communication type of the wireless communication module is determined according to the answer signal;

[0032] Wireless communication initialization processing is performed according to the communication type.

[0033] The communication type of the wireless communication module is determined through the preset phase value of the card scanning signal. Compared with the mode of continuously attempting to determine in the related art, the card scanning time of the embodiment is shorter, so that the speed of determining the communication type is improved. Based on the improvement of the speed of determining the communication type, the speed of establishing the wireless communication connection with the screen receiving device is also relatively improved, and then the speed of starting the basic screen projection function of the wireless screen projection transmitting device can be improved. Based on the improvement of the speed of the basic screen projection function, the user experience can be improved.

[0034] In an embodiment, the second partition includes at least one data block;

[0035] According to the execution of the first boot program, the first type of program data in the second partition in the first memory is copied to the second memory, including:

[0036] According to the execution of the first boot program, the data block in the second partition is subjected to bad block cleaning processing to obtain a cleaned second partition;

[0037] According to the execution of the first boot program, the first type of program data in the cleaned second partition is copied to the second memory.

[0038] The above, through the first boot program to guide start basic screen projection function, only to the bad block in the second partition is subjected to bad block cleaning processing, compared with the same memory in the related art all bad block cleaning is completed after the mode of copying program data, the embodiment skips the third partition which is not needed temporarily, only the bad block cleaning processing is carried out to the second partition, thereby shortening the time of bad block cleaning, and then improving the overall speed of system startup.

[0039] In an embodiment, the first memory further includes a fourth partition, and the fourth partition stores boot program data corresponding to a second boot program, and the second boot program is a primary boot program;

[0040] The first memory receives a start signal, and in response to the start signal, the boot program data in the first partition in the first memory is copied to the second memory, and the boot program data is read and executed to start the first boot program, and after that, including:

[0041] According to the execution of the first boot program, a burning trigger signal is detected;

[0042] When the burning trigger signal is detected, in response to the burning trigger signal, the initial program data is received and the boot program data in the fourth partition in the first memory is copied to the second memory, and the boot program data is read and executed to start the second boot program;

[0043] According to the execution of the second boot program, the initial program data is burned into the first memory.

[0044] After the burning is completed, the initial program data in the first memory is copied to the second memory according to execution of the second boot program;

[0045] According to execution of the second boot program, the initial program data in the second memory is read and executed to perform system startup processing.

[0046] In a second aspect, the embodiments of the present application provide a wireless screen transmission transmitting device, which comprises an interface module, a first memory, a second memory and a processor; the first memory is a Nand flash storage medium or a SPI Nand flash storage medium; the first memory comprises a first partition and a second partition, the first partition stores boot program data corresponding to a first boot program, the first boot program is a second-level boot program, and the second partition stores first program data corresponding to a basic screen projection function;

[0047] The interface module is connected with the processor, and the processor is connected with the first memory and the second memory;

[0048] The interface module is configured to be connected with a terminal device, and send a startup signal to the wireless screen transmission transmitting device based on the connection;

[0049] The processor is configured to, when the startup signal is received, copy the boot program data in the first partition in the first memory to the second memory in response to the startup signal, read and execute the boot program data to start the first boot program, copy the first program data to the second memory according to execution of the first boot program, and perform decompression processing on the first program data in the second memory according to execution of the first boot program to obtain first executable program data;

[0050] The processor is further configured to read and execute the first executable program data to start the basic screen projection function.

[0051] The above, by setting the relatively cheap and relatively wide range of adaptation Nand Flash storage medium or SPI Nand Flash storage medium as the memory in the wireless screen transmission device, the cost of the wireless screen transmission device is reduced, and the wireless screen transmission device is started based on the secondary boot program (i.e. the first boot program) provided by the embodiment of the application. The method solves the problem that the wireless screen transmission device using Nand Flash storage medium or SPI Nand Flash storage medium as the memory has a long start-up time and poor user experience in the related art. The cost is reduced while the start-up time is shortened, thereby improving the user experience. According to the execution of the first boot program, the first type of program data corresponding to the first partition in the first memory (i.e. the Nand Flash storage medium or the SPI Nand Flash storage medium) is used to guide the wireless screen transmission device to start the basic screen projection function preferentially. The code amount of the secondary boot program is less than that of the primary boot program, so the time required for starting the system guided by the secondary boot program is also less than that of the primary boot program. In this way, the problem of long start-up time of the wireless screen transmission device can be solved, the start-up time is shortened, and the user experience is improved. In addition, when the basic screen projection function is started, the effect of wireless screen projection is achieved. For user experience, the function has been started at this time, so compared with the simultaneous start mode of all functions in the related art, the start speed of the mode of the embodiment is faster, thereby improving the user experience.

[0052] In an embodiment, the wireless screen transmission device further comprises a wireless communication module;

[0053] The wireless communication module is connected with the processor, and the wireless communication module is used to feed back an answer signal to the processor when receiving the card scanning signal with the preset phase value sent by the processor;

[0054] The processor is further used to determine the communication type of the wireless communication module according to the answer signal, and to perform wireless communication initialization processing according to the communication type.

[0055] The embodiment of the present application can start the first boot program belonging to the secondary boot program after receiving the start signal, copy the first type program data of the first partition in the first memory to the second memory through the first boot program, and perform decompression processing on the first type program data in the second memory according to the execution of the first boot program to obtain the first executable program data, read and execute the first executable program data to realize the start of the basic screen projection function. By using the above technical means, the system can be started based on the program data stored in the Nand flash storage medium or the SPI Nand Flash storage medium through the secondary boot program. The code amount of the secondary boot program is less than that of the primary boot program, so the time required for the corresponding boot system to start is also less than that of the primary boot program. In this way, the problem of long start time of the wireless screen transmission device can be avoided, the start time is shortened, and the user experience is improved. When the basic screen projection function is started, the effect of wireless screen projection is realized. For the user experience, the function has been started at this time, so compared with the simultaneous start mode of all functions in the related art, the start speed of the embodiment is faster, and the user experience is improved. BRIEF DESCRIPTION OF DRAWINGS

[0056] FIG. 1 is a wireless screen transmission scene schematic diagram provided by an embodiment of the present application;

[0057] FIG. 2 is a structure schematic diagram of a wireless screen transmission device provided by an embodiment of the present application;

[0058] FIG. 3 is a flowchart of a wireless screen transmission device start method provided by an embodiment of the present application;

[0059] FIG. 4 is a distribution schematic diagram of each partition in the first memory provided by an embodiment of the present application;

[0060] FIG. 5 is a flowchart of another wireless screen transmission device start method provided by an embodiment of the present application. DETAILED DESCRIPTION

[0061] For the purposes of the present application, the technical solutions and advantages will be clearer, specific embodiments of the present application will be described in more detail below with reference to the drawings. It can be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only the parts related to the present application are shown in the drawings, but not all the contents. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart describes each operation (or step) as a sequential process, many of the operations can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operations are completed, but can also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0062] FIG. 1 is a schematic diagram of a wireless screen transmission scenario according to an embodiment of the present application. Referring to FIG. 1, in the wireless screen transmission scenario, there are a wireless screen transmission transmitting device 10, a terminal device 20 and a screen transmission receiving device 30. The terminal device 20 is the sending end of the wireless screen transmission, and the screen transmission receiving device 30 is the receiving end of the wireless screen transmission. The wireless screen transmission transmitting device 10 is configured to transmit the content displayed on the screen of the terminal device 20 to the screen transmission receiving device 30 through the wireless communication module in the wireless screen transmission transmitting device 10, so as to realize the wireless screen transmission. FIG. 2 is a schematic diagram of the structure of a wireless screen transmission transmitting device according to an embodiment of the present application. Referring to FIGS. 1-2, the wireless screen transmission transmitting device 10 includes an interface module 101, a first storage 102, a second storage 103, a processor 104 and a wireless communication module 105. The wireless screen transmission transmitting device 10 is connected to the terminal device 20 through the interface module 101, and establishes a wireless connection with the screen transmission receiving device 30 through the wireless communication module 105. As shown in FIG. 1, the wireless screen transmission transmitting device 10 works between the terminal device 20 and the screen transmission receiving device 30, and is configured to transmit the content (such as audio and video data, text data, etc.) displayed on the screen of the terminal device 20 to the screen transmission receiving device 30, so that the screen transmission receiving device 30 can display the content displayed on the screen of the terminal device 20 synchronously through the display screen or an external display, for more people to watch and share. In an embodiment, the data transmitted by the wireless screen transmission transmitting device 10 to the screen transmission receiving device 30 is referred to as screen transmission data. The screen transmission data is obtained based on the actual content displayed on the screen of the terminal device 20. In some cases, the screen transmission data can be all the display content on the screen of the terminal device 20, or can be the display content in a part of the display window or interface on the screen of the terminal device 20.

[0063] In use, the user connects the interface module 101 in the wireless screen transmission device 10 with the interface of the terminal device 20, and the wireless screen transmission device 10 operates the system startup of the operating system through the internal processor 104 in cooperation with the first memory 102 and the second memory 103. The first memory 102 is used for storing corresponding program data, the second memory 103 is used for temporarily storing corresponding program data during startup, and the processor 104 is used for reading the program data stored in the second memory 103 and executing the program data to perform system startup and system operation.

[0064] When starting the wireless screen transmission device, a boot loader (Uboot) is usually used to boot the device. U-Boot (Universal Bootloader) is a commonly used open source boot loader, which usually includes the following steps:

[0065] Step 1, configure the boot device: in the configuration file of U-Boot, the type and location of the boot device need to be specified.

[0066] Step 2, load the kernel image: U-Boot will read the kernel image file from the memory 103 of the wireless screen transmission device 10 according to the boot device specified in the configuration file.

[0067] Step 3, load the device tree: in some architectures, the device tree file is used to describe the configuration and connection of hardware devices. U-Boot will load the device tree file and pass it to the kernel as hardware configuration information.

[0068] Step 4, set the startup parameters: U-Boot will set the parameters required for kernel startup, such as command line parameters and second memory allocation information. These parameters are usually stored in environment variables and passed to the kernel during startup.

[0069] Step 5, start the kernel: after everything is ready, U-Boot will jump to the entry point of the kernel to start the execution of the kernel.

[0070] From the above process, it can be seen that the process of booting the device using the boot loader (Uboot) has many steps and a large amount of code, so it takes a long time to boot the device.

[0071] In the related art, in order to shorten the time for the boot loader (Uboot) to boot the device, a memory with a faster read-write speed is usually selected in step 2 to shorten the time for reading the kernel image file, so as to achieve the purpose of fast booting. For example, an EMMC storage medium is used as the memory. Since the EMMC storage medium integrates a flash memory chip and an MMC controller, it can directly communicate with the host device through an MMC interface, thereby achieving fast booting. Therefore, most wireless screen transmission transmitting devices on the market usually use an EMMC storage medium as the memory. However, some chips do not support the EMMC storage medium, so the above-mentioned method cannot be used to shorten the boot time of the wireless screen transmission transmitting device. Moreover, the price of the EMMC storage medium is relatively high. If a widely used and relatively inexpensive Nand Flash storage medium or SPI Nand Flash storage medium is used as the memory, the read-write speed is relatively slow, and the problem of long boot time of the wireless screen transmission transmitting device and poor user experience cannot be solved.

[0072] Based on this, the embodiments of the present application provide a wireless screen transmission transmitting device and a booting method of the wireless screen transmission transmitting device. The first memory in the wireless screen transmission transmitting device is a Nand Flash medium or a SPI Nand Flash storage medium. The method boots the system based on the program data stored in the Nand flash storage medium or the SPI Nand Flash storage medium through a secondary boot loader (i.e., a first boot loader). The code amount of the secondary boot loader is less than that of the primary boot loader. Therefore, the time required for the corresponding booting system to start is less than the time required for the booting system to start through the primary boot loader in the related art. In this way, the problem of long boot time of the wireless screen transmission transmitting device can be avoided, the boot time is shortened, and the user experience is improved.

[0073] FIG. 2 is a structural schematic diagram of a wireless screen transmission transmitting device according to an embodiment of the present application. Referring to FIG. 2, the wireless screen transmission transmitting device 10 provided by the embodiment includes an interface module 101, a first memory 102, a second memory 103, a processor 104, and a wireless communication module 105. The wireless screen transmission transmitting device 10 is connected with a terminal device 20 through the interface module 101, and establishes a wireless communication connection with a screen transmission receiving device 30 through the wireless communication module 105. The first memory 102 is a Nand flash storage medium or a SPI Nand flash storage medium. The first memory 102 includes a first partition and a second partition. The first partition stores boot loader data corresponding to a first boot loader. The first boot loader is a secondary boot loader. The second partition stores first program data corresponding to a basic screen projection function.

[0074] In use, the user connects the interface module 101 with the interface of the terminal device 20, and the wireless screen transmission device 10 operates in cooperation with the first memory 102 and the second memory 103 through the internal processor 104 to perform system startup of the operating system, and can only execute corresponding application functions after the system startup. The first memory 102 is used to store corresponding program data, the second memory 103 is used to temporarily store corresponding program data during startup, and the processor 104 is used to read the program data stored in the second memory 103 and execute the program data to perform system startup and system operation.

[0075] During system startup, the processor 104 is used to copy the boot program data in the first partition in the first memory 102 to the second memory 103 in response to the startup signal when the startup signal is received, read and execute the boot program data to start the first boot program, and according to the execution of the first boot program, copy the first type of program data in the first partition in the first memory 104 to the second memory 103, and according to the execution of the first boot program, perform decompression processing on the first type of program data in the second memory 103 to obtain first executable program data. The processor 104 is also used to read and execute the first executable program data to start the basic screen projection function.

[0076] After the system is started, as shown in FIG. 1, the wireless screen transmission device 10 works between the terminal device 20 and the screen transmission receiving device 30, and is used to transmit the content (such as audio and video data, text data, etc.) displayed on the screen of the terminal device 20 to the screen transmission receiving device 30, and the screen transmission receiving device 30 can display the content displayed on the screen of the terminal device 20 through its own display screen or an external display to provide more people to watch and share. In one embodiment, the data transmitted by the wireless screen transmission device 10 to the screen transmission receiving device 30 is referred to as screen transmission data, and the screen transmission data is data obtained based on the actual display content on the screen of the terminal device 20. In some cases, the screen transmission data can be all display content on the screen of the terminal device 20, or can be display content in part of the display window or interface on the screen of the terminal device 20.

[0077] The above, by setting the relatively cheap and relatively wide range of adaptation Nand Flash storage medium or SPI Nand Flash storage medium as the first memory 102 in the wireless screen transmission device 10, the cost of the wireless screen transmission device 10 is reduced, and the wireless screen transmission device is started based on the secondary boot program (i.e. the first boot program) provided in the embodiment of the application. The method solves the problem that the wireless screen transmission device 10 has a long start-up time and poor user experience when using Nand Flash storage medium or SPI Nand Flash storage medium as the memory in the related art. The cost is reduced while the start-up time is shortened, thereby improving the user experience. According to the execution of the first boot program, the first partition in the first memory 102 (i.e. the Nand Flash storage medium or the SPI Nand Flash storage medium) is used to guide the wireless screen transmission device 10 to start the basic screen projection function preferentially. The code amount of the secondary boot program is less than that of the primary boot program, so the time required for starting the system guided by the secondary boot program is also less than that of the primary boot program. In this way, the problem of long start-up time of the wireless screen transmission device 10 can be solved, the start-up time is shortened, and the user experience is improved. In addition, when the basic screen projection function is started, the effect of wireless screen projection is realized. For user experience, the basic screen projection function has been started at this time. Therefore, compared with the simultaneous start-up mode of all functions in the related art, the start-up speed of the mode of the embodiment is faster, thereby improving the user experience.

[0078] FIG. 3 is a flowchart of a wireless screen transmission device start-up method provided by one embodiment of the application, which is used for the wireless screen transmission device 10 shown in FIG. 2. The wireless screen transmission device 10 includes a first memory 102 and a second memory 103. The first memory 102 is a Nand flash storage medium or a SPI Nand flash storage medium. The first memory 102 includes a first partition and a second partition. The first partition stores boot program data corresponding to a first boot program. The first boot program is a secondary boot program. The second partition stores first program data corresponding to a basic screen projection function. The wireless screen transmission device start-up method specifically includes the following steps.

[0079] S101, receive a start-up signal. In response to the start-up signal, copy the boot program data in the first partition in the first memory to the second memory, read and execute the boot program data to start the first boot program.

[0080] The startup signal can be a power-on signal or a reset signal. When the wireless screen transmission device is inserted into the terminal device, the terminal device can provide a power-on signal to the wireless screen transmission device, or a reset signal can be generated when a restart is triggered by a virtual control in the terminal device or a hardware button on the wireless screen transmission device. When the wireless screen transmission device receives a power-on signal or a reset signal, the system starts to start. When the startup signal is received, in response to the startup signal, the boot program data in the first sub-partition in the first memory is copied to the second memory. The second memory can be understood as a memory that temporarily stores the corresponding program data during startup. After the boot program data is copied to the second memory, the processor can read the boot program data from the second memory and execute the read boot program data to start the first boot program, such as SPL. By starting the first boot program, the system can be started according to the execution of the first boot program. Compared with the boot startup through the first boot program (such as Uboot) in the related art, the amount of code based on the second boot program is less, so the process in the boot startup process of the second boot program is relatively less, saving unnecessary processes in the startup process and shortening the startup time.

[0081] S102 : According to the execution of the first boot program, copy the first type of program data in the second partition in the first memory to the second memory.

[0082] The first memory includes a first partition, a second partition and a third partition, wherein the first partition is used to store the boot program data corresponding to the first boot program, the second partition is used to store the first type of program data corresponding to the basic screen projection function, and the third partition is used to store the second type of program data corresponding to the preset function. Preset functions include UI interaction function and USB drive function, etc. After the boot program data corresponding to the first partition is copied to the second memory, the boot program data in the second memory is read and executed to realize the startup and execution of the first boot program. According to the execution of the first boot program, the first type of program data in the second partition in the first memory is copied to the second memory, and the basic screen projection function can be started based on the first type of program data subsequently. As described above, by storing the first type of program data corresponding to the basic screen projection function and the second type of program data corresponding to the preset function separately, it is convenient to obtain and copy the corresponding program data to the corresponding partition according to needs during subsequent startup, thereby improving the work efficiency of system startup and system operation. In addition, when the first boot program boots the system to start, the first type of program data in the second partition is first copied to the second memory, so that the basic screen projection function can be started before the preset function. When the basic screen projection function is started, the effect of wireless screen projection is achieved. For the user experience, the startup is completed at this time. Therefore, compared with the simultaneous startup method of all functions in the related technology, the startup speed of this embodiment is faster, thereby improving the user experience.

[0083] S103, according to the execution of the first boot program, decompressing the first type of program data in the second memory to obtain first executable program data.

[0084] After copying the first type of program data to the second memory, the first type of program data may be stored in a compressed manner, and therefore corresponding decompression processing of the first type of program data is required in the second memory to obtain executable program data, i.e., first executable program data, and subsequent corresponding startup operations can be performed according to the executable program data. For example, the first type of program data is a FIT image, and after copying the FIT image to the second memory, the FIT image is decompressed in the second memory to obtain a kernel image and a root file system. The kernel image and the root file system can be understood as the first executable program data. As described above, by storing the first type of program in the second partition of the first memory in a compressed manner, the storage space can be saved. After copying the first type of program data to the second memory, the first executable program data is obtained by decompression processing, and the first executable program data can be directly read and executed subsequently. The decompression processing is performed in the second memory to avoid damage to the source file when directly processing in the first memory. When an exception occurs during the decompression process in the second memory, the first type of program data can be copied from the first memory to the second memory again to perform decompression processing in the second memory again, thereby protecting the first type of program data in the first memory and avoiding the wireless screen transmission device from being unable to start due to decompression exception, thereby improving the reliability of system startup.

[0085] S104, reading and executing the first executable program data to implement the startup of the basic screen projection function.

[0086] After decompression in the second memory obtains the first executable program data, the processor reads the first executable program data from the second memory and executes corresponding command actions according to the read first executable program data to implement the startup of the system. As described above, the second level boot program (i.e., the first boot program) guides the startup of the basic screen projection function of the system based on the first type of program data. The code amount of the second level boot program is less than that of the first level boot program, and therefore the time required for the second level boot program to guide the startup of the system is less than that of the first level boot program. In this way, the problem of long startup time of the wireless screen transmission device can be avoided, the startup time is shortened, and the user experience is improved. When the basic screen projection function is started, the effect of wireless screen projection is achieved. For the user experience, the system has been started at this time, and therefore, compared with the simultaneous startup of all functions in the related art, the method of the embodiment has faster startup speed, thereby improving the user experience.

[0087] The Nand flash storage medium and the SPI Nand flash storage medium are nonvolatile storage media based on NAND technology. The Nand flash storage medium and the SPI Nand flash storage medium have the characteristics of high storage density, low power consumption, long service life and high reliability, and have high integration density and low unit bit cost, and can be adapted to most chips (i.e., processors), so that in the embodiment, the Nand flash storage medium or the SPI Nand flash storage medium is used as the first memory, which can greatly reduce the production cost of the wireless screen transmission device, and cooperate with the wireless screen transmission device startup method provided in the embodiment to shorten the startup time and reduce the production cost, and based on the types of the adapted processors (chips), more, so as to improve the design diversity of the wireless screen transmission device.

[0088] The boot program data corresponding to the secondary boot program (for example, SPL) is stored in the first partition in the first memory. When the wireless screen transmission device is powered on or reset, the secondary boot program is loaded into the second memory through an automatic loading mechanism, and then the system startup is started. Among them, the SPL (secondary program loader) can be loaded by the bootrom as a second-level startup image (bl2) in the startup chain, which is mainly used to complete the initialization of some basic modules and DDR (memory), and load the next level image. In the fast startup scenario of the embodiment, the system can be directly started by the secondary boot program, compared with the boot startup by the primary boot program (for example, Uboot) in the related art, the code amount of the secondary boot program is less, so the process in the secondary boot program boot startup process is also relatively less, saving unnecessary processes in the startup process, and shortening the startup time.

[0089] In an embodiment, the system is started by the secondary boot program (i.e., the first boot program, for example, SPL), and the decompression time is less than 30 ms, compared with the way of starting the system by the primary boot program (i.e., the second boot program, for example, Uboot) in the related art, the decompression time of the embodiment is shorter.

[0090] In the foregoing step S101, when receiving the start signal, the start signal can be a power-on signal or a reset signal, in response to the start signal, the second memory is started and initialized. The second memory is used to temporarily store the corresponding program data during startup, and can be the memory in the device. Based on the initialization of the second memory, the subsequent copying of the program data to the second memory can be performed. After copying the program data to the second memory, the processor (MCU or CPU) can read the corresponding program data from the second memory and perform the corresponding execution action according to the read program data, and the system startup can be performed. After the initialization of the second memory, the first boot program is started. Since the boot program data corresponding to the first boot program is stored in the first memory using the Nand flash storage medium, after the initialization of the second memory, the boot program data of the first partition in the first memory can be copied to the second memory. For example, the boot program data can be loaded (copied) to the second memory through an automatic loading mechanism. After copying is completed, the processor (MCU or CPU) can read the boot program data from the second memory and execute the read boot program data to start the first boot program. As described above, after receiving the start signal, the second memory is started and initialized first, which provides a basic environment for subsequent system startup, facilitates the smooth progress of the subsequent process, and thus improves the overall work efficiency of the startup. After the initialization of the second memory is completed, the first boot program is started through the automatic loading mechanism, so that the system startup can be guided according to the execution of the first boot program in the subsequent process, thereby avoiding the long time consumption caused by guiding the system startup through the large amount of code of the first boot program (i.e., the second boot program, such as Uboot) in the related art. In the embodiment, the system startup is guided through the small amount of code of the second boot program (i.e., the first boot program, such as SPL). Based on the small amount of code, the time for starting the second boot program is relatively short, that is, the second boot program is started faster than the first boot program, thereby shortening the overall time for system startup and further improving the work efficiency of system startup.

[0091] In the foregoing step S102, after starting the first boot program, the program data in the first memory is copied to the second memory according to the execution of the first boot program. Since the program data in the first memory contains compiled and compressed data, after copying the program data to the second memory, the corresponding program data is decompressed in the second memory according to the execution of the first boot program, to obtain the first executable program data. Subsequently, the processor (MCU or CPU) performs the corresponding startup operation according to the first executable program data.

[0092] In order to further improve the starting speed, the first memory is subdivided into multiple partitions in the embodiment, the first memory includes a first partition, a second partition, a third partition and a fourth partition, wherein the first partition is used for storing the boot program data corresponding to the first boot program, the second partition is used for storing the first type program data corresponding to the basic screen projection function, the third partition is used for storing the second type program data corresponding to the preset function, and the fourth partition is used for storing the boot program data corresponding to the second boot program. For the wireless screen transmission transmitting device, the basic screen projection function corresponds to the screen projection application, and the preset function corresponds to the UI application and the USB drive application. For the basic screen projection function corresponding to the first type program data, it is necessary to start quickly in priority to maintain the basic screen projection function; for the preset function corresponding to the second type program data, it is a function extended on the basis of the basic screen projection function, and can be started later, that is, the preset function can be further started on the basis of maintaining the basic screen projection function. Therefore, after starting the first boot program, the first type program data in the second partition in the first memory is copied to the second memory according to the running of the first boot program, the processor (MCU or CPU) can read the first type program data from the second memory, and execute the read first type program data to realize the starting of the basic screen projection function. After the basic screen projection function is started, the wireless screen transmission transmitting device can run the application corresponding to the basic screen projection function, for example, the screen transmission application, that is, the technical effect of screen transmission can be realized. For the user experience, at this time, the starting has been completed, therefore, compared with the mode that all functions are started at the same time in the related art, the mode that the basic screen projection function is started in priority in the embodiment has faster starting speed, thereby improving the use experience of the user.

[0093] In an embodiment, when copying the program data in the corresponding partition in the first memory to the second memory, the corresponding position of each partition in the first memory can be determined according to the partition bit code, so that the corresponding program data can be acquired and copied from the corresponding position. FIG. 4 is a diagram illustrating the distribution of each partition in the first memory according to an embodiment of the present application. As shown in FIG. 4, the first memory includes a first partition 1021 (Part+sp1), a second partition 1024 (Boot_1), a third partition 1025 (Appfs_1), and a fourth partition 1023 (uboot). The position of the first partition 1021 (Part+sp1) in the first memory can be determined according to the partition bit code 0x00000000-0x00200000 of the first partition 1021 (Part+sp1). The position of the second partition 1024 (Boot_1) in the first memory can be determined according to the partition bit code 0x00400000-0x03400000 of the second partition 1024 (Boot_1). The position of the third partition 1025 (Appfs_1) in the first memory can be determined according to the partition bit code 0x06400000-0x012C0000 of the third partition 1025 (Appfs_1). The position of the fourth partition 1023 (uboot) in the first memory can be determined according to the partition bit code 0x00300000-0x00400000 of the fourth partition 1023 (uboot). When copying the boot program data in the corresponding first partition 1021 (Part+sp1) in the first memory to the second memory, the boot program data can be acquired and copied from the corresponding position in the first memory according to the partition bit code 0x00000000-0x00200000 of the first partition 1021 (Part+sp1). When copying the first type of program data to the second memory, the first type of program data can be acquired and copied from the corresponding position in the first memory according to the partition bit code 0x00400000-0x03400000 of the second partition 1024 (Boot_1). When copying the second type of program data to the second memory, the second type of program data can be acquired and copied from the corresponding position in the first memory according to the partition bit code 0x06400000-0x012C0000 of the third partition 1025 (Appfs_1). When copying the corresponding boot program data of the second boot program to the second memory, the boot program data can be acquired and copied from the corresponding position in the first memory according to the partition bit code 0x00300000-0x00400000 of the fourth partition 1023 (uboot).

[0094] It should be noted that, as shown in FIG. 4, the first memory includes other partitions in addition to the first partition 1021 (Part+spl), the second partition 1024 (Boot_1), the third partition 1025 (Appfs_1), and the fourth partition 1023 (uboot), such as a fifth partition 1022 (vnvm) and a sixth partition 1026 (reserver). The fifth partition 1022 (vnvm) is used to store some non-volatile data, which can be read / written at each stage of system startup.

[0095] In the foregoing step S103, when starting the base transmission screen function, the first type of program data can be stored in a compressed manner, and thus after copying the first type of program data to the second memory, corresponding decompression processing needs to be performed, so as to perform subsequent data reading. For example, the first type of program data is a FIT image. The FIT (Flattened Image Tree) image refers to an image file generated by compiling multiple images through dts (Device Tree Source) syntax. For example, a device tree, a kernel image, and a root file system are compressed into a FIT image. Thus, after copying the first type of program data of the second partition of the first memory to the second memory, according to execution of the first boot program, the first type of program data is decompressed in the second memory, to obtain a corresponding kernel image and root file system. The kernel image and the root file system can be understood as the first executable program data.

[0096] The kernel image refers to a binary image file of an operating system kernel, which contains core code and data structures required for operating system running. Subsequently, the operating system kernel can be started and run according to the kernel image. The root file system (Root File System) is the first file system mounted (read-only mounted) after the computer operating system is started, which contains key files and directories required for system boot and enabling system running. The root file system contains most of the contents other than the operating system kernel, including various library files, device files, configuration files, application programs, and user data. The root file system provides a basic environment required for operating system running. When the system is started, the kernel is first loaded into the second memory and executed, and then the kernel mounts the root file system and reads necessary configurations and programs from the root file system to initialize the system.

[0097] The first type of program data in the second partition is copied to the second memory through execution of the first boot program, so that the wireless screen transmission device can run the application corresponding to the basic screen transmission function, such as a screen transmission application, that is, the technical effect of screen transmission can be achieved. At this time, the user experience has been started and completed, therefore, compared with the simultaneous start of all function applications in the related art, the priority start of the basic screen transmission function has a faster start speed, thereby improving the user experience.

[0098] Before copying the first type of program data in the second partition to the second memory, the data blocks of the second partition in the first memory can be subjected to bad block detection according to execution of the first boot program, and the detected bad blocks can be subjected to bad block cleaning processing to obtain the second partition without bad blocks after cleaning. The first type of program data in the cleaned second partition is copied to the second memory. By cleaning the bad blocks in the second partition before copying to the second memory, the program data in the useless data blocks can be avoided to be copied to the second memory, thereby reducing the overall data amount of copying and improving the copying speed. In addition, based on the reduction of the program data in the useless data blocks, that is, the number of the first executable program data corresponding to be executed in the second memory is also relatively reduced, so that the working speed of data reading and execution command based on the first executable program data in the second memory is also relatively accelerated, thereby improving the overall working efficiency of system startup.

[0099] The first boot program is used to start the basic screen transmission function in this embodiment, and only the bad blocks in the second partition are subjected to bad block cleaning processing. Compared with the related art in which all bad blocks in the same memory are cleaned before copying the program data to the second memory, the third partition which is not needed temporarily is skipped in this embodiment, and only the second partition is subjected to bad block cleaning processing. The speed is optimized by 500ms+, thereby shortening the bad block cleaning time and improving the overall speed of system startup.

[0100] In the foregoing step S104, after the first executable program data is obtained by decompression in the second memory, the processor (MCU or CPU) reads the first executable program data from the second memory and executes the corresponding code command according to the read first executable program data to start the basic screen transmission function. The second boot program (i.e., the first boot program) is used to start the basic screen transmission function. The code amount of the second boot program is less than that of the first boot program, so the time required for starting the system by the second boot program is less than that by the first boot program. Therefore, the problem of long startup time of the wireless screen transmission device can be avoided, the startup time is shortened, and the user experience is improved.

[0101] In the second memory, the foregoing step is based on decompression of the first type of program data to obtain a corresponding kernel image and a root file system (i.e., first executable program data), and then the processor (MCU or CPU) can read the kernel image in the second memory and execute the read kernel image (code), thereby starting the kernel of the system. According to the starting and running of the kernel, the root file system is decompressed and mounted, thereby enabling the starting of the basic screen transmission function, such as starting the screen transmission application to perform screen transmission. Through the execution of the first boot program, the first type of program data in the second partition is copied to the second memory to enable the starting of the basic screen transmission function corresponding to the first type of program, so that the wireless screen transmission transmitting device can run the application corresponding to the basic screen transmission function, such as the screen transmission application, that is, the technical effect of screen transmission can be achieved. For the user experience, the basic screen transmission function has been started at this time, and therefore, compared with the simultaneous starting of all functions in the related art, the starting speed of the basic screen transmission function is faster, thereby improving the user experience.

[0102] When starting the kernel, according to the execution of the first boot program, a corresponding jump function is called, and the jump function jumps to the starting position of the kernel, i.e., the loading address of the kernel image in the second memory. After jumping to the loading address of the kernel image in the second memory, the kernel image is loaded to start the kernel, i.e., the code in the kernel image is read and executed. After the kernel is started, the next process is to start the first process (i.e., the init process), and before starting the first process, the root file system needs to be mounted. The root file system at least includes the following directories: / etc / , used to store important configuration files; / bin / , used to store commonly used and necessary execution files at startup; / sbin / , used to store system execution files required during the booting process; / lib / , used to store link libraries required by the execution files of / bin / and / sbin / , and Linux kernel modules; and / dev / , used to store device files. Based on the fact that the current kernel is in the starting stage and is not very stable, when mounting the root file system, the root file system is mounted in a read-only manner to protect the root file system. If the root file system is mounted in a read-write manner, the data on the root file system may be damaged in case of system downtime, and the system may take a long time to check and repair the root file system the next time it is started. After mounting the root file system, the init service is found and executed from the root file system, i.e., the first process (i.e., the init process) can be executed. Executing the first process can be understood as starting the application corresponding to the preset function, such as the UI application and / or the USB driver application.

[0103] Based on the third partition in the first memory for storing the second type of program data of the preset function, since the second type of program data is in the UBIFS format, the third partition needs to be mounted to the system device list first, and the third partition mounted can be queried by the processor (MCU or CPU). Therefore, after the foregoing starting the kernel and loading the root file system, according to the running of the kernel, the second type of program data of the third partition in the first memory is mounted to the system device list. Based on that the processor can query the third partition in the system device list, the second type of program parameters in the third partition mounted in the system device list are copied to the second memory. According to the running of the kernel, the second type of program data in the kernel is read and executed, to realize the starting of the preset function, such as starting the UI application and / or the USB drive application and the like preset function. For example, when the preset function is to start the USB starting application, after the starting of the preset function is completed, the corresponding CD drive is popped up on the terminal device connected with the wireless screen transmission transmitting device and the USB starting application is popped up.

[0104] The foregoing, by starting the preset function corresponding to the third partition after starting the basic screen transmission function, compared with the manner that the basic screen transmission function and the preset function are started at the same time in the related art, the embodiment greatly shortens the starting time, thereby improving the use experience of the user.

[0105] In an embodiment, referring to FIG. 2, the wireless communication module 105 is configured to establish a communication connection between the wireless screen transmission device 10 and the local area network. After the aforementioned starting of the kernel, the communication type of the wireless communication module 105 needs to be determined first, and then the subsequent communication connection of the local area network is based on the communication type. After the aforementioned starting of the kernel, the processor 104 can send a card scanning signal to the wireless communication module 105, and if the corresponding phase in the card scanning signal belongs to the target phase corresponding to the communication type, the wireless communication module 105 will feed back an answer signal to the processor 104. The processor 104 can determine the communication type of the wireless communication module 105 based on the answer signal and the card scanning signal. If the corresponding phase in the card scanning signal does not belong to the target phase corresponding to the communication type, the wireless communication module 105 will not feed back an answer signal. In related technologies, different phase values of the card scanning signal are sent to the wireless communication module 105 one by one until the communication type is determined when the answer signal is received. This method often needs a long time to determine the communication type, and only after the communication type is determined can the corresponding communication connection be established to start the basic screen projection function. The overall time of starting the basic screen projection function is increased based on the determination time of the communication type of the wireless communication module 105, thereby affecting the user's experience. Therefore, the wireless screen transmission device 10 provided in the embodiment is provided with a wireless communication module 105 of a fixed type. After starting the kernel, the card scanning signal of the preset phase value is sent to the wireless communication module 105 according to the running of the kernel. It should be noted that the preset phase value is the target phase corresponding to the wireless communication module 105 of the fixed type in the embodiment. Therefore, after the card scanning signal of the preset phase value is sent to the wireless communication module 105, the wireless communication module 105 will feed back the corresponding answer signal based on the card scanning signal. The processor 104 receives the answer signal fed back by the wireless communication module 105, and determines the communication type of the wireless communication module 105 according to the answer signal. After determining the communication type of the wireless communication module 105, the wireless communication initialization processing is performed according to the communication type, so that the corresponding wireless communication query entrance and wireless communication connection entrance are provided in the system, and the basic environment is provided for the subsequent manual or automatic communication connection. After the wireless communication initialization processing, the wireless screen transmission device 10 can establish a wireless communication connection with the screen transmission receiving device 30 through the wireless communication module 105 based on the preset wireless communication connection information based on the aforementioned determined communication type. After the basic screen projection function is started based on the first type of program data, the content (such as audio and video data, text data, etc.) displayed on the terminal device 20 screen based on the wireless communication connection can be directly transmitted to the screen transmission receiving device 30 through the wireless communication module 105, that is, the screen projection effect is realized.The above, by the preset phase value of the card scanning signal, the communication type of the wireless communication module 105 is determined, compared with the mode of constantly trying to determine in the related art, the card scanning time of the embodiment is shorter, thereby improving the speed of communication type determination, based on the improvement of the speed of communication type determination, the speed of establishing the wireless communication connection with the screen receiving device 30 is also relatively improved, thereby the speed of starting the basic screen projection function of the wireless screen projection transmitting device 10 can be improved, based on the improvement of the speed of the basic screen projection function, the user's use experience can be improved.

[0106] For example, the fixed type of wireless communication module provided in the embodiment is a WiFi module. The preset WiFi module corresponds to a WiFi card scanning signal, and the phase value of the WiFi card scanning signal is a target phase corresponding to the WiFi module. After starting the kernel, the processor sends a preset WiFi card scanning signal to the WiFi module, and the WiFi module feeds back a corresponding response signal to the processor based on the WiFi card scanning signal. The processor determines that the communication type of the current wireless communication module is WiFi type according to the received response signal, and then performs wireless communication initialization processing based on the WiFi type, provides a WiFi communication query entry and a network connection entry on the terminal device connected with the wireless screen projection transmitting device, and provides a basic environment for subsequent manual or automatic WiFi communication connection. The communication type determination method of the WiFi card scanning signal in the embodiment is faster than the multiple card scanning method of communication negotiation in the related art, and the speed optimization is more than 300ms, thereby improving the card scanning speed and the overall speed of starting the basic screen projection function of the system.

[0107] FIG. 5 is a flowchart of another wireless screen projection transmitting device starting method provided in an embodiment of the application. Referring to FIG. 5, the wireless screen projection transmitting device starting method comprises:

[0108] S201, according to the execution of the first boot program, a burning trigger signal detection is performed.

[0109] After starting the first boot program in the foregoing step S101, the detection of the burning trigger signal is needed. The burning trigger signal can be automatically triggered when used for the first time, or can be manually triggered by the user after being used for the first time. It can be triggered by a corresponding burning trigger button (which can be a virtual button or a hardware button). When the burning trigger signal is detected, the subsequent steps S202-S205 are executed to perform the burning processing and the system starting processing. When the burning trigger signal is not detected, the foregoing steps S101-S104 are executed to perform the system starting processing.

[0110] S202, in response to the burning trigger signal, receiving initial program data and copying the boot program data in the fourth partition in the first memory to the second memory, reading and executing the boot program data to start the second boot program when the burning trigger signal is detected.

[0111] When there is no program data (program data other than the first boot program and the second boot program) in the first memory in the wireless screen transmission device or the program data (program data other than the first boot program and the second boot program) in the first memory is unavailable when the burning trigger signal is detected, it is necessary to burn new program data (program data other than the first boot program and the second boot program) into the first memory before the system can be started based on the newly burned program data (program data other than the first boot program and the second boot program). The first boot program (secondary boot program) cannot guide the system to perform the burning operation, so the second boot program (primary boot program, such as Uboot) needs to be started to guide the system to perform the burning operation. Therefore, in response to the burning trigger signal, the terminal device receives the initial program data and copies the boot program data (i.e., the boot program data corresponding to the second boot program) in the fourth partition in the first memory to the second memory when the burning trigger signal is detected. The processor reads and executes the boot program data in the second memory to start the second boot program (i.e., the primary boot program, such as Uboot). After starting the second boot program, the initial program data received is burned into the corresponding partition of the first memory according to the running of the second boot program, and the system can be subsequently guided to start based on the initial program data.

[0112] S203, according to the execution of the second boot program, burning the initial program data into the first memory.

[0113] According to the running of the second boot program, the initial program data is burned into the corresponding partition of the first memory. For example, the first type of program data of the base screen projection function in the initial program data is burned into the second partition of the first memory, and the second type of program data of the preset function in the initial program data is burned into the third partition of the first memory. By burning the initial program data into the first memory, the corresponding program data can be subsequently copied from the first memory to the second memory for system startup.

[0114] S204, after burning, copying the initial program data in the first memory to the second memory according to the execution of the second boot program.

[0115] After the burning is completed, the corresponding initial program data exists in the first memory, and thus the initial program data in the first memory can be copied to the second memory according to the running of the second boot program, so that the processor can start the system according to the program data in the second memory.

[0116] S205, starting the system according to the second boot program and the initial program data in the second memory.

[0117] After the initial program data is copied to the second memory, the initial program data in the second memory is read and executed according to the running of the second boot program to realize system startup. The specific system startup process is the same as the foregoing steps S102-S104, and the only difference is that the boot program for booting the system is changed to the second boot program, so the specific system startup process will not be described here.

[0118] The above, through the use of a large amount of code of the first level boot program (i.e. the second boot program) for data burning and subsequent system startup when detecting the burning trigger signal. In actual use, data burning is usually only needed when using the wireless screen transmission device for the first time, and subsequent data burning is not needed with high probability, so in actual use, system startup is performed through the wireless screen transmission device startup method of the foregoing steps S101-104 except for the first time.

[0119] The above, by starting the first boot program belonging to the second level boot program after receiving the startup signal, copying the first type program data in the first partition in the first memory to the second memory through the first boot program, and performing decompression processing on the first type program data in the second memory according to the execution of the first boot program to obtain the first executable program data, reading and executing the first executable program data to realize the startup of the basic screen projection function. By using the above technical means, the system can be started based on the program data stored in the Nand flash storage medium or the SPI Nand Flash storage medium through the second level boot program. The code amount of the second level boot program is less than that of the first level boot program, so the time required for booting the system corresponding to the second level boot program is also less than that of the first level boot program. In this way, the problem of long startup time of the wireless screen transmission device can be avoided, the startup time is shortened, and the user experience is improved. When the basic screen projection function is started, the effect of wireless screen projection is realized. For the user experience, the system has been started at this time, and thus, compared with the simultaneous startup mode of all functions in the related art, the mode of the embodiment has faster startup speed, thereby improving the user experience.

[0120] The above merely describes the preferred embodiments of the present application and the technical principles applied. The present application is not limited to the specific embodiments described herein, and various obvious changes, modifications and replacements made by those skilled in the art without departing from the scope of the present application shall not be excluded. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and more other equivalent embodiments can be included without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. A method for starting a wireless screen transmission device, characterized in that: Used for a wireless screen transmission device, the wireless screen transmission device includes a first memory and a second memory, the first memory is a Nand flash storage medium or an SPI Nand flash storage medium, the first memory includes a first partition and a second partition, the first partition stores boot program data corresponding to a first boot program, the first boot program is a secondary boot program, and the second partition stores first-category program data corresponding to a basic screen projection function; The method comprises: receiving a startup signal, and in response to the startup signal, copying the boot program data in the first partition of the first memory to the second memory, and reading and executing the boot program data to start the first boot program; copying the first type of program data in the second partition in the first memory to the second memory according to the execution of the first boot program; decompressing the first type of program data in the second memory according to the execution of the first boot program to obtain first executable program data; Read and execute the first executable program data to enable the basic screen projection function.

2. The method according to claim 1, characterized in that The decompressing the first type of program data in the second memory to obtain first executable program data according to the execution of the first boot program includes: decompressing the first type of program data in the second memory according to the execution of the first boot program to obtain a kernel image and a root file system; The reading and executing the first executable program data to start the basic screen projection function includes: Read and execute the kernel image to start the kernel; Decompressing the root file system according to the operation of the kernel; Mount the decompressed root file system to start the basic screen projection function.

3. The method according to claim 1 or 2, characterized in that The first memory further includes a third partition, wherein the third partition stores second-category program data having a preset function; After reading and executing the first executable program data to start the basic screen projection function, the method further includes: copying the second type of program data in the third partition in the first memory to the second memory according to the execution of the first executable program data; The second type of program data in the second memory is read and executed to start the preset function.

4. The method according to claim 3, characterized in that The step of copying the second type of program data in the third partition in the first memory to the second memory according to the execution of the first executable program data includes: Mounting the third partition in the first memory to a system device list according to the operation of the kernel; According to the operation of the kernel, the second type of program data in the mounted third partition is copied to the second memory.

5. The method according to claim 4, characterized in that The reading and executing the second type of program data in the second memory to start the preset function includes: According to the operation of the kernel, the second type of program data in the second memory is read and executed to start the preset function.

6. The method according to claim 2, characterized in that After reading and executing the kernel image to start the kernel operation, the process includes: According to the operation of the kernel, a card scanning signal with a preset phase value is sent to the wireless communication module; receiving a response signal fed back by the wireless communication module, and determining a communication type of the wireless communication module according to the response signal; Perform wireless communication initialization processing according to the communication type.

7. The method according to claim 1, characterized in that The second partition includes at least one data block; The step of copying the first type of program data in the second partition in the first memory to the second memory according to the execution of the first boot program includes: performing bad block clearing processing on data blocks in the second partition according to the execution of the first boot program to obtain a cleared second partition; According to the execution of the first boot program, the first type of program data in the cleared second partition is copied to the second memory.

8. The method according to claim 1, characterized in that The first memory further includes a fourth partition, wherein the fourth partition stores boot program data corresponding to a second boot program, where the second boot program is a first-level boot program; After receiving the startup signal, copying the boot program data in the first partition of the first memory to the second memory in response to the startup signal, and reading and executing the boot program data to start the first boot program, the method further includes: Performing a burning trigger signal detection according to the execution of the first boot program; When the burn trigger signal is detected, in response to the burn trigger signal, receiving initial program data and copying the boot program data in the fourth partition of the first memory to the second memory, reading and executing the boot program data to start the second boot program; Burning the initial program data into the first memory according to the execution of the second boot program; After the burning is completed, the initial program data in the first memory is copied to the second memory according to the execution of the second boot program; According to the execution of the second boot program, the initial program data in the second memory is read and executed to perform system startup processing.

9. A wireless screen transmission device, characterized in that: It includes an interface module, a first memory, a second memory and a processor; the first memory is a Nand flash storage medium or an SPI Nand flash storage medium; the first memory includes a first partition and a second partition, the first partition stores boot program data corresponding to a first boot program, the first boot program is a secondary boot program, and the second partition stores first-category program data corresponding to a basic screen projection function; The interface module is connected to the processor, and the processor is connected to the first memory and the second memory; The interface module is used to connect with the terminal device and send a start signal to the wireless screen transmission device based on the connection; The processor is configured to, upon receiving the startup signal, copy the boot program data in the first partition of the first memory to the second memory in response to the startup signal, read and execute the boot program data to start the first boot program, copy the first type of program data to the second memory based on the execution of the first boot program, and decompress the first type of program data in the second memory based on the execution of the first boot program to obtain first executable program data; The processor is also used to read and execute the first executable program data to start the basic screen projection function.

10. The wireless screen transmission device according to claim 9, characterized in that: Also included is a wireless communication module; The wireless communication module is connected to the processor, and is configured to feed back a response signal to the processor upon receiving a card scanning signal with a preset phase value sent by the processor; The processor is further configured to determine a communication type of the wireless communication module according to the response signal, and perform wireless communication initialization processing according to the communication type.

Citation Information

Patent Citations

  • System secondary guiding method and device and storage medium

    CN110018852A

  • Display and wireless screen projection system and method

    CN110049362A

  • Screen projection method and system based on wireless transmission and storage medium

    CN110996019A

  • Screen projection transmitter, screen projection receiver, electronic equipment, screen projection system and screen projection method

    CN114442985A

  • Screen projection method and related equipment

    CN115665453A