Starting method of wireless screen transmission transmitting equipment and wireless screen transmission transmitting equipment

By using a secondary bootloader and Nand flash or SPI Nand flash storage media in the wireless screen sharing device, the boot process was optimized, the problem of excessively long boot time was solved, and faster boot speed and better user experience were achieved.

CN120848828APending Publication Date: 2025-10-28GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410440264.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-12
Publication Date
2025-10-28

AI Technical Summary

Technical Problem

Wireless screen sharing devices take a long time to start up, resulting in a poor user experience.

Method used

The system boots using a two-level bootloader (i.e., the first bootloader) 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 second memory, the basic screen projection function is started first, avoiding the problem of the long time consumption of the traditional first-level bootloader.

Benefits of technology

It shortens the startup time of wireless screen sharing devices, improves user experience, reduces costs, and increases the device's compatibility and startup speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120848828A_ABST
    Figure CN120848828A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a wireless screen transmission transmitting equipment starting method and wireless screen transmission transmitting equipment, the wireless screen transmission transmitting equipment comprises a first memory, the first memory comprises a first partition storing bootstrap program data corresponding to a first bootstrap program and a second partition storing first type program data corresponding to a basic screen projection function, the first bootstrap program is a secondary bootstrap program; the method comprises the steps that in response to a received starting signal, boot program data in a first partition in a first storage are copied into a second storage, and the boot program data are read and executed to start a 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 bootstrap program, and decompressing the first type of program data in the second memory to obtain first executable program data; reading and executing the first executable program data, and starting a basic screen projection function; the problem of long starting time is solved, and the starting time is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of screen sharing technology, and in particular to a method for starting a wireless screen sharing transmitter and the wireless screen sharing transmitter itself. Background Technology

[0002] With the development of internet technology, electronic devices are becoming increasingly diverse in form and function. In some scenarios, users have a growing need for convenient sharing of content displayed across multiple electronic devices, and screen sharing technology can largely meet this need.

[0003] Screen sharing technology enables communication and content sharing between electronic devices through wireless screen sharing transmitters. Before use, the wireless screen sharing transmitter needs to be booted up; only then can pairing, connection, and content sharing occur.

[0004] In related technologies, when a wireless screen sharing transmitter starts up, it boots the system using a primary bootloader (Uboot). However, due to the large amount of code in the primary bootloader, the system boot process takes a considerable amount of time. For users, a faster startup speed for the wireless screen sharing transmitter results in a better user experience. Therefore, the method of booting the system using a primary bootloader in these technologies is time-consuming and provides a poor user experience. Summary of the Invention

[0005] This application provides a startup method and a wireless screen transmission device, which can solve the problem of long startup time for wireless screen transmission devices, shorten startup time, and improve user experience.

[0006] In a first aspect, embodiments of this application provide a startup method for a wireless screen sharing transmitter, the wireless screen sharing transmitter including a first memory and a second memory, the first memory being a Nandflash storage medium or an SPI Nand flash storage medium, the first memory including 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 secondary boot program, the second partition storing first type of program data corresponding to basic screen sharing functions; the startup method of the wireless screen sharing transmitter includes:

[0007] Upon receiving a startup signal, in response to the startup signal, the boot program data in the first partition of the first memory is copied to the second memory, and the boot program data is read and executed 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 of 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 is decompressed in the second memory to obtain the first executable program data;

[0010] Read and execute the first executable program data to enable the basic screen mirroring function.

[0011] As described above, the basic screen projection function of the system is launched by a secondary bootloader (i.e., the first bootloader) based on the first type of program data. The code size of the secondary bootloader is smaller than that of the first bootloader, so the startup time of the corresponding bootloader is also less than that of the first bootloader. This avoids the problem of long startup time for wireless screen projection devices, shortens the startup time, and thus improves the user experience. Furthermore, when the basic screen projection function is started, the wireless screen projection effect is achieved. From the user's perspective, the startup is complete at this point. Therefore, compared with the simultaneous startup of all functions in related technologies, the startup speed of this embodiment is faster, thereby improving the user experience.

[0012] In one embodiment, according to the execution of the first bootloader, the first type of program data is decompressed in the second memory to obtain the first executable program data, including:

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

[0014] Read and execute the first executable program data to initiate basic screen mirroring functionality, including:

[0015] Read and execute the kernel image to start the kernel.

[0016] Based on kernel operation, decompress the root file system;

[0017] Mount the decompressed root file system to enable basic screen mirroring functionality.

[0018] As described above, by executing the first boot program, the first type of program data in the second partition is copied to the second memory to start the basic screen sharing function corresponding to the first type of program data. This allows the wireless screen sharing transmitting device to run the application corresponding to the basic screen sharing function, such as a screen sharing application, and thus achieve the technical effect of screen sharing. From the user's perspective, the process is now complete. Therefore, the method of prioritizing the start of the basic screen sharing function in this embodiment is faster than the method of starting all functions and applications simultaneously in related technologies, thereby improving the user experience.

[0019] In one embodiment, the first memory further includes a third partition, which stores a second type of program data with preset functions;

[0020] After reading and executing the first executable program data to enable basic screen mirroring functionality, the process includes:

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

[0022] Read and execute the second type of program data in the second memory to start the preset function.

[0023] As described above, by starting the basic screen sharing function and then starting the preset function corresponding to the third partition, compared with the method of starting the basic screen sharing function and the preset function simultaneously in related technologies, this embodiment greatly shortens the startup time, thereby improving the user experience.

[0024] In one embodiment, copying second type of program data from a third partition in a first memory to a second memory according to the execution of first executable program data includes:

[0025] Based on the kernel's operation, the third partition in the first memory is mounted to the system device list;

[0026] Based on the kernel's operation, the second type of program data in the mounted third partition is copied to the second memory.

[0027] In one embodiment, reading and executing a second type of program data in a second memory to initiate a preset function includes:

[0028] Based on the kernel's operation, the second type of program data in the second memory is read and executed to enable the startup of the preset function.

[0029] In one embodiment, after reading and executing the kernel image to start the kernel, the process includes:

[0030] Based on the kernel's operation, a card scanning signal with a preset phase value is sent to the wireless communication module;

[0031] Receive the response signal from the wireless communication module and determine the communication type of the wireless communication module based on the response signal;

[0032] Perform wireless communication initialization processing based on the communication type.

[0033] As described above, the communication type of the wireless communication module is determined by scanning the card with a preset phase value. Compared with the method in related technologies that requires multiple phase values ​​of scanning cards to be continuously tried to determine the type, the scanning time in this embodiment is shorter, thereby improving the speed of communication type determination. Based on the improved speed of communication type determination, the corresponding speed of establishing a wireless communication connection with the screen sharing receiving device is also relatively improved, which in turn can improve the speed at which the wireless screen sharing transmitting device starts the basic screen sharing function. Based on the improved speed of the basic screen sharing function, the user experience can be improved.

[0034] In one 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 of the first memory is copied to the second memory, including:

[0036] Based on the execution of the first boot program, bad block cleanup is performed on the data blocks in the second partition to obtain the cleaned second partition;

[0037] 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 storage.

[0038] As described above, the basic screen sharing function is started by the first boot program, and bad blocks in the second partition are cleared only. Compared with the method in related technologies where program data is copied only after all bad blocks in the same memory are cleared, this embodiment skips the third partition that is not yet needed and only clears bad blocks in the second partition, thereby shortening the bad block clearing time and improving the overall speed of system startup.

[0039] In one embodiment, the first memory further includes a fourth partition, which stores boot program data corresponding to the second boot program, wherein the second boot program is a first-level boot program;

[0040] Upon receiving a startup signal, and in response to the startup signal, copying the boot program data from the first partition of the first memory to the second memory, reading and executing the boot program data to start the first boot program, the process includes:

[0041] Based on the execution of the first boot program, the burning trigger signal is detected;

[0042] When a programming trigger signal is detected, in response to the programming trigger signal, the system receives initial program data and copies the boot program data in the fourth partition of the first memory to the second memory, reads and executes the boot program data 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 process is complete, the initial program data in the first memory is copied to the second memory according to the execution of the second boot program;

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

[0046] In a second aspect, embodiments of this application provide a wireless screen sharing transmitting device, which 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 type program data corresponding to basic screen sharing functions;

[0047] The interface module is connected to the processor, and the processor is connected to the first memory and the second memory.

[0048] The interface module is used to connect to the terminal device and send a start signal to the wireless screen transmission device based on the connection;

[0049] When the processor receives a startup signal, in response to the startup signal, it copies the boot program data in the first partition of the first memory to the second memory, reads and executes the boot program data to start the first boot program, and copies the first type of program data to the second memory according to the execution of the first boot program, and decompresses the first type of program data in the second memory according to the execution of the first boot program to obtain the first executable program data.

[0050] The processor is also used to read and execute the first executable program data to start the basic screen mirroring function.

[0051] The above-mentioned method reduces the cost of wireless screen transmission devices by using relatively inexpensive and widely compatible Nand Flash or SPI Nand Flash storage media as memory. Furthermore, in conjunction with the boot method for wireless screen transmission devices based on a secondary bootloader (i.e., a first bootloader) provided in this application embodiment, it solves the problem of excessively long boot times and poor user experience associated with using Nand Flash or SPI Nand Flash storage media as memory in related technologies. This achieves cost reduction while shortening boot time, thereby improving the user experience. According to the execution of the first boot program, the wireless screen transmission device is guided to prioritize the start of the basic screen projection function based on the first type of program data corresponding to the first partition in the first memory (i.e., Nand Flash storage medium or SPI Nand Flash storage medium). Since the code size of the secondary boot program is smaller than that of the primary boot program, the startup time required for its corresponding boot system is also less than that of the primary boot program. This solves the problem of long startup time for the wireless screen transmission device, shortens the startup time, and thus improves the user experience. In addition, when the basic screen projection function is started, the wireless screen projection effect is achieved. From the user's perspective, the startup is complete at this point. Therefore, compared with the simultaneous startup method of all functions in related technologies, the startup speed of this embodiment is faster, thereby improving the user experience.

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

[0053] The wireless communication module is connected to the processor. When the wireless communication module receives a card scanning signal with a preset phase value sent by the processor, it sends a response signal back to the processor.

[0054] The processor is also used to determine the communication type of the wireless communication module based on the response signal, and to perform wireless communication initialization processing based on the communication type.

[0055] This embodiment of the application, upon receiving a start signal, initiates a first boot program, which is a secondary boot program. The first boot program copies first-type program data from the first partition of the first memory to the second memory. Following the execution of the first boot program, the first-type program data is decompressed in the second memory to obtain first executable program data. This first executable program data is then read and executed to initiate the basic screen projection function. Using this technique, the system can be booted using program data stored in Nand flash or SPI Nand Flash storage media via a secondary boot program. Since the code size of the secondary boot program is smaller than that of the primary boot program, the boot time required is also shorter. This avoids the problem of long startup times for wireless screen projection devices, shortening the startup time and improving the user experience. Furthermore, when the basic screen projection function is fully started, the wireless screen projection effect is achieved. From the user's perspective, the process is complete. Therefore, compared to the simultaneous startup of all functions in related technologies, the method in this embodiment has a faster startup speed, thus improving the user experience. Attached Figure Description

[0056] Figure 1 This is a schematic diagram of a wireless screen sharing scenario provided in one embodiment of this application;

[0057] Figure 2 This is a schematic diagram of the structure of a wireless screen-sharing transmitting device provided in one embodiment of this application;

[0058] Figure 3 A flowchart illustrating a method for starting a wireless screen-sharing transmitter, as provided in one embodiment of this application;

[0059] Figure 4 This is a schematic diagram showing the distribution of partitions in a first memory according to one embodiment of this application;

[0060] Figure 5 A flowchart illustrating another method for starting a wireless screen sharing transmitting device, as provided in one embodiment of this application. Detailed Implementation

[0061] To make the objectives, technical solutions, and advantages of this application clearer, specific embodiments of this application will be described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely for explaining this application and not for limiting it. It should also be noted that, for ease of description, only the parts relevant to this application are shown in the drawings, not all of them. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but may also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0062] Figure 1 This is a schematic diagram of a wireless screen sharing scenario provided in one embodiment of this application, with reference to... Figure 1 In the wireless screen sharing scenario, there are wireless screen sharing transmitter 10, terminal device 20 and screen sharing receiver 30. Terminal device 20 is the transmitter of wireless screen sharing, and screen sharing receiver 30 is the receiver of wireless screen sharing. Wireless screen sharing transmitter 10 is used to send the content displayed on the screen of terminal device 20 to screen sharing receiver 30 through its own internal wireless communication module to realize wireless screen sharing. Figure 2 This is a schematic diagram of the structure of a wireless screen-sharing transmitting device according to one embodiment of this application, with reference to... Figure 1-Figure 2 The wireless screen transmission device 10 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 device 10 connects 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. Figure 1 As shown, the wireless screen sharing transmitter 10 operates between the terminal device 20 and the screen sharing receiver 30, and is used to transmit the content displayed on the screen of the terminal device 20 (such as audio and video data, text data, etc.) to the screen sharing receiver 30. The screen sharing receiver 30 can simultaneously display the content displayed on the screen of the terminal device 20 through its own display screen or an external display, allowing more people to view and share it. In one embodiment, the data sent by the wireless screen sharing transmitter 10 to the screen sharing receiver 30 is recorded as screen sharing data. The screen sharing data is data obtained based on the actual content displayed on the screen of the terminal device 20. In some cases, the screen sharing data can be the entire display content on the screen of the terminal device 20, or it can be the display content in a partial display window or interface on the screen of the terminal device 20.

[0063] During use, the user connects the interface module 101 of the wireless screen transmission device 10 to the interface of the terminal device 20. The wireless screen transmission device 10, through its internal processor 104, works with the first memory 102 and the second memory 103 to boot the operating system. Only after the system boots can the corresponding application functions be executed. The first memory 102 is used to store the corresponding program data, and the second memory 103 is used to temporarily store the corresponding program data during startup. The processor 104 is used to read the program data stored in the second memory 103 and execute this program data to perform system startup and system operation.

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

[0065] Step 1: Configure the boot device: In the U-Boot configuration file, you need to specify the type and location of the boot device.

[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 connectivity of hardware devices. U-Boot loads the device tree file and passes it to the kernel as hardware configuration information.

[0068] Step 4: Set boot parameters: U-Boot sets the parameters required for kernel startup, such as command-line arguments and secondary memory allocation information. These parameters are usually stored in environment variables and passed to the kernel at startup.

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

[0070] As can be seen from the above process, the process of booting a device using a bootloader (Uboot) involves many steps and a large amount of code, thus requiring a long boot time.

[0071] In related technologies, to shorten the boot time of the bootloader (Uboot) in the device, a faster read / write speed memory is usually selected in step 2 above to shorten the time for reading the kernel image file, thereby achieving fast boot. For example, eMMC storage media is used as the memory. Since eMMC storage media integrates flash memory chips and MMC controllers, it can communicate directly with the host device through the MMC interface, thus achieving fast boot. Therefore, most wireless screen sharing transmitters on the market usually use eMMC storage media as the memory. However, some chips do not support eMMC storage media, so the above method cannot be used to shorten the boot time of the wireless screen sharing transmitter. Moreover, eMMC storage media is also relatively expensive. If more widely used and cheaper Nand Flash storage media or SPI Nand Flash storage media are used as the memory, their read / write speed is slow, which cannot solve the problem of excessively long boot time and poor user experience of the wireless screen sharing transmitter mentioned above.

[0072] Based on this, this application provides a startup method for a wireless screen sharing transmitter and the wireless screen sharing transmitter itself. The first memory in the wireless screen sharing transmitter is a Nand Flash medium or an SPI Nand Flash storage medium. The method uses a secondary boot program (i.e., the first boot program) to boot the system based on the program data stored in the Nand Flash storage medium or the SPI Nand Flash storage medium. The amount of code in the secondary boot program is less than that in the primary boot program, so the time required to boot the system is also less than that required to boot the system using the primary boot program in related technologies. This avoids the problem of long startup time for the wireless screen sharing transmitter, shortens the startup time, and improves the user experience.

[0073] Figure 2 This is a schematic diagram of the structure of a wireless screen-sharing transmitting device according to an embodiment of this application, with reference to... Figure 2 The wireless screen sharing transmitting device 10 provided in this 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 sharing transmitting device 10 is connected to the terminal device 20 through the interface module 101, and establishes a wireless communication connection with the screen sharing receiving device 30 through the wireless communication module 105. The first memory 102 is a Nandflash storage medium or an 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, which is a secondary boot program. The second partition stores first type program data corresponding to the basic screen sharing function.

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

[0075] Upon system startup, processor 104, upon receiving a startup signal, copies boot program data from the first partition of the first memory 102 to the second memory 103 in response to the startup signal. It then reads and executes the boot program data to start the first boot program. Based on the execution of the first boot program, it copies first type program data from the first partition of the first memory 104 to the second memory 103. Finally, based on the execution of the first boot program, it decompresses the first type program data in the second memory 103 to obtain first executable program data. Processor 104 is also used to read and execute the first executable program data to start basic screen mirroring functions.

[0076] After the system starts up, such as Figure 1 As shown, the wireless screen sharing transmitter 10 operates between the terminal device 20 and the screen sharing receiver 30, and is used to transmit the content displayed on the screen of the terminal device 20 (such as audio and video data, text data, etc.) to the screen sharing receiver 30. The screen sharing receiver 30 can simultaneously display the content displayed on the screen of the terminal device 20 through its own display screen or an external display, allowing more people to view and share it. In one embodiment, the data sent by the wireless screen sharing transmitter 10 to the screen sharing receiver 30 is recorded as screen sharing data. The screen sharing data is data obtained based on the actual content displayed on the screen of the terminal device 20. In some cases, the screen sharing data can be the entire display content on the screen of the terminal device 20, or it can be the display content in a partial display window or interface on the screen of the terminal device 20.

[0077] As described above, by using a relatively inexpensive and widely compatible Nand Flash 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. Furthermore, in conjunction with the boot method for the wireless screen transmission device based on a secondary boot program (i.e., the first boot program) provided in this application embodiment, the problem of excessively long boot times and poor user experience in the wireless screen transmission device 10 when using Nand Flash or SPI Nand Flash storage media as memory in related technologies is solved. This achieves cost reduction while shortening the boot time, thereby improving the user experience. According to the execution of the first boot program, the wireless screen transmission device 10 is guided to prioritize the start of the basic screen projection function based on the first type of program data corresponding to the first partition in the first memory 102 (i.e., Nand Flash storage medium or SPI Nand Flash storage medium). Since the code size of the secondary boot program is smaller than that of the primary boot program, the startup time required for its corresponding boot system is also less than that of the primary boot program. This solves the problem of the long startup time of the wireless screen transmission device 10, shortens the startup time, and thus improves the user experience. In addition, when the basic screen projection function is started, the wireless screen projection effect is achieved. From the user's perspective, the startup is complete at this time. Therefore, compared with the simultaneous startup method of all functions in related technologies, the startup speed of this embodiment is faster, thereby improving the user experience.

[0078] Figure 3 This is a flowchart illustrating a method for starting a wireless screen-sharing transmitter according to an embodiment of this application. The method is used for... Figure 2 The wireless screen sharing transmitter 10 shown includes a first memory 102 and a second memory 103. The first memory 102 is a Nand flash memory or an SPI Nand flash memory, and includes a first partition and a second partition. The first partition stores boot program data corresponding to a first boot program, which is a secondary boot program. The second partition stores first-type program data corresponding to basic screen sharing functions. The startup method of this wireless screen sharing transmitter specifically includes:

[0079] S101. Receive a startup signal, and in response to the startup signal, copy the boot program data in the first partition of 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 sharing transmitter is plugged into the terminal device, the terminal device can provide a power-on signal to the wireless screen sharing transmitter, 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 sharing device. When the wireless screen sharing device receives the power-on signal or the reset signal, it begins system startup. Upon receiving the startup signal, in response to the startup signal, the boot program data in the first sub-partition of the first memory is copied to the second memory. The second memory can be understood as the 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 subsequent system startup can be guided according to the execution of the first boot program. Compared with the startup based on a first-level boot program (such as Uboot) in related technologies, the code based on the second-level boot program is smaller, so the process of the second-level boot program startup process is also relatively smaller, 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 of the first memory to the second memory.

[0082] The first memory includes a first partition, a second partition, and a third partition. The first partition stores bootloader data corresponding to the first bootloader, the second partition stores first-type program data corresponding to the basic screen mirroring function, and the third partition stores second-type program data corresponding to preset functions. Preset functions include, for example, UI interaction functions and USB driver functions. After copying the bootloader data corresponding to the first partition to the second memory, reading and executing the bootloader data in the second memory to start and execute the first bootloader, the first-type program data in the second partition of the first memory is copied to the second memory based on the execution of the first bootloader. Subsequently, the basic screen mirroring function can be started based on this first-type program data. By storing the first-type program data corresponding to the basic screen mirroring function and the second-type program data corresponding to the preset functions separately, it is easier to retrieve and copy the corresponding program data from the corresponding partition as needed during subsequent startups, thereby improving the efficiency of system startup and operation. Furthermore, when the first boot program boots the system, the first type of program data in the second partition is copied to the second memory, so that the basic screen casting function can be started before the preset function. When the basic screen casting function is started, the wireless screen casting effect is achieved. For the user experience, the system has already started. Therefore, compared with the simultaneous start-up of all functions in related technologies, the method of this embodiment has a faster start-up speed, thereby improving the user experience.

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

[0084] After copying the first type of program data to the second storage, since this data may be stored compressed, it needs to be decompressed in the second storage to obtain executable program data, i.e., the first executable program data. Subsequent boot operations can then be performed based on this executable program data. For example, if the first type of program data is a FIT image, after copying it to the second storage, it is decompressed to obtain the kernel image and root file system. The kernel image and root file system can be understood as the first executable program data. As described above, by compressing and storing the first type of program in the second partition of the first memory, storage space can be saved. After copying the first type of program data to the second memory, the first executable program data is obtained through decompression. Subsequently, the first executable program data can be directly read and executed. Decompression is performed in the second memory to avoid damaging the source file by directly processing it in the first memory. If an abnormality 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 for re-decompression. This protects the first type of program data in the first memory and prevents the wireless screen transmission device from failing to start due to decompression abnormalities, thereby improving the reliability of system startup.

[0085] S104. Read and execute the first executable program data to start the basic screen mirroring function.

[0086] After decompressing the first executable program data in the second memory, the processor reads the first executable program data from the second memory and executes corresponding commands based on the read first executable program data to start the system. As described above, the basic screen projection function of the system is started by a secondary bootloader (i.e., a first bootloader) based on the first type of program data. The code size of the secondary bootloader is smaller than that of the primary bootloader, therefore the time required to start the system is also less than that of the primary bootloader. This avoids the problem of long startup time for wireless screen projection devices, shortens the startup time, and improves the user experience. Furthermore, when the basic screen projection function is started, the wireless screen projection effect is achieved. From the user's perspective, the startup is complete at this point. Therefore, compared to the simultaneous startup of all functions in related technologies, the method in this embodiment has a faster startup speed, thereby improving the user experience.

[0087] Nand flash memory and SPI Nand flash memory are non-volatile memory media based on NAND technology. Nand flash memory and SPI Nand flash memory feature high storage density, low power consumption, long lifespan, and high reliability. They have high integration density and low cost per bit, and are compatible with most chips (i.e., processors). Therefore, using Nand flash memory or SPI Nand flash memory as the first memory in this embodiment can significantly reduce the production cost of the wireless screen sharing device. Furthermore, combined with the wireless screen sharing device startup method provided in this embodiment, it can shorten startup time while reducing production costs. Moreover, due to the wider variety of compatible processors (chips), it can improve the design diversity of the wireless screen sharing device.

[0088] The bootloader data corresponding to the secondary bootloader (e.g., SPL) is stored in the first partition of the first memory. When the wireless screen transmitting device is powered on or reset, the secondary bootloader is loaded into the second memory via an automatic loading mechanism, and then the system boot process begins. The SPL (secondary program loader) can be loaded by the bootrom in the boot chain as the second-level boot image (bl2). It is mainly used to initialize some basic modules and DDR (memory), and load the next-level image. In the fast boot scenario of this embodiment, the system can be directly booted via the secondary bootloader. Compared with booting via a primary bootloader (e.g., Uboot) in related technologies, the code size based on the secondary bootloader is smaller, therefore the boot process of the secondary bootloader is also relatively smaller, saving unnecessary steps in the boot process and shortening the boot time.

[0089] In one embodiment, the system is booted using a secondary bootloader (i.e., a first bootloader, such as SPL), and the decompression time is less than 30ms. Compared with the related technologies that boot the system using a primary bootloader (i.e., a second bootloader, such as Uboot), the decompression time of this embodiment is shorter.

[0090] In step S101, upon receiving a startup signal (which can be a power-on signal or a reset signal), the second memory is started and initialized in response to the startup signal. The second memory is used to temporarily store the corresponding program data during startup and can be the device's RAM. Only after the second memory is initialized can subsequent program data copying be performed. After the program data is copied to the second memory, the processor (MCU or CPU) can read the corresponding program data from the second memory and perform corresponding execution actions based on the read program data, thus enabling system startup. After the second memory is initialized, the first bootloader is started. Since the bootloader data corresponding to the first bootloader is stored in the first memory using Nand flash storage, the bootloader data of the first partition in the first memory can be copied to the second memory after the second memory is initialized. For example, the bootloader data can be loaded (copied) to the second memory using an autoload mechanism. After copying, the processor (MCU or CPU) can read the bootloader data from the second memory and execute the read bootloader data to start the first bootloader. As described above, upon receiving the startup signal, the second memory is first booted and initialized to provide a basic environment for subsequent system startup, facilitating smooth subsequent processes and improving overall startup efficiency. After the second memory initialization is complete, the first bootloader is started through an automatic loading mechanism, allowing subsequent system startup to be guided based on the execution of the first bootloader. This avoids the time-consuming process caused by booting the system through a large-code first-level bootloader (i.e., the second bootloader, such as Uboot) in related technologies. This embodiment boots the system through a smaller-code second-level bootloader (i.e., the first bootloader, such as SPL). Due to the smaller code size, the startup time of the second-level bootloader is also relatively short, meaning that starting the second-level bootloader is faster than starting the first-level bootloader, thereby shortening the overall system startup time and further improving system startup efficiency.

[0091] In the aforementioned step S102, after the first boot program is started, 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 package in the first memory contains compiled and compressed data, after the program data is copied to the second memory, the corresponding program data in the second memory is decompressed according to the execution of the first boot program to obtain the first executable program data. The subsequent processor (MCU or CPU) then performs the corresponding startup operation based on the first executable program data.

[0092] To further improve startup speed, this embodiment divides the first memory into multiple partitions, including a first partition, a second partition, a third partition, and a fourth partition. The first partition stores the boot program data corresponding to the first boot program, the second partition stores the first type of program data corresponding to the basic screen mirroring function, the third partition stores the second type of program data corresponding to the preset function, and the fourth partition stores the boot program data corresponding to the second boot program. For wireless screen mirroring devices, the basic screen mirroring function corresponds to the screen mirroring application, and the preset function corresponds to the UI application and USB driver application, etc. The basic screen mirroring function corresponding to the first type of program data needs to be started quickly to maintain the basic screen mirroring function. The preset function corresponding to the second type of program data is an extension function based on the basic screen mirroring function and can be started later. That is, the preset function can be further started after maintaining the basic screen mirroring function. Therefore, after starting the first boot program, according to the operation of the first boot program, the first type of program data in the second partition of the first memory is copied to the second memory. The processor (MCU or CPU) can read the first type of program data from the second memory and execute the read first type of program data to realize the startup of the basic screen mirroring function. Once the basic screen mirroring function is activated, the wireless screen mirroring transmitting device can run the application corresponding to the basic screen mirroring function, such as a screen mirroring application, which can achieve the technical effect of screen mirroring. From the user's perspective, the process is complete at this point. Therefore, the method of activating the basic screen mirroring function first in this embodiment is faster than the method of activating all functions at the same time in related technologies, thereby improving the user experience.

[0093] In one embodiment, when copying program data of a corresponding partition in the first memory to the second memory, the location of each partition in the first memory can be determined according to the partition bit code, so that the corresponding program data can be obtained and copied from the corresponding location. Figure 4 This application provides a schematic diagram illustrating the distribution of partitions in a first memory according to one embodiment. Figure 4As shown, the first memory includes a first partition 1021 (Part+spl), a second partition 1024 (Boot_1), a third partition 1025 (Appfs_1), and a fourth partition 1023 (uboot). The location of the first partition 1021 (Part+spl) in the first memory is determined by its partition bit codes 0x00000000 to 0x00200000. The location of the second partition 1024 (Boot_1) in the first memory is determined by its partition bit codes 0x00400000 to 0x03400000. The location of the third partition 1025 (Appfs_1) in the first memory is determined by its partition bit codes 0x06400000 to 0x012C0000. The location of the fourth partition 1023 (uboot) in the second memory is determined by its partition bit codes 0x00300000 to 0x00400000. When copying the boot program data from the first partition 1021 (Part+spl) in the first memory to the second memory, the boot program data can be retrieved and copied from the corresponding location in the first memory based on the partition bit codes 0x00000000 to 0x00200000 of the first partition 1021 (Part+spl). When copying the first type of program data to the second memory, the first type of program data can be retrieved and copied from the corresponding location in the first memory based on the partition bit codes 0x00400000 to 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 retrieved and copied from the corresponding location in the first memory based on the partition bit codes 0x06400000 to 0x012C0000 of the third partition 1025 (Appfs_1). When copying the boot program data corresponding to the second boot program to the second memory, the boot program data can be obtained and copied from the corresponding location in the first memory according to the partition code 0x00300000~0x00400000 of the fourth partition 1023 (uboot).

[0094] It should be noted that, as Figure 4 As shown, 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), the first memory also includes other partitions, such as the fifth partition 1022 (vnvm) and the sixth partition 1026 (reserver). The fifth partition 1022 (vnvm) is used to store some non-volatile data, which can be read / written at various stages of system startup.

[0095] In step S103, when starting the basic screen sharing function, since the first type of program data may be stored in compressed form, after copying the first type of program data to the second memory, it needs to be decompressed before subsequent data reading can proceed. For example, the first type of program data may be a FIT image. A FIT (Flattened Image Tree) image is an image file generated by compiling multiple images using DTS (Device Tree Source) syntax. For example, the device tree, kernel image, and root file system can be compiled and compressed into a single FIT image. Therefore, after copying the first type of program data from the second partition of the first memory to the second memory, the first type of program data is decompressed in the second memory according to the execution of the first boot program, resulting in the corresponding kernel image and root file system. The kernel image and root file system can be understood as the first executable program data.

[0096] A kernel image is a binary image file of the operating system kernel. It contains the core code and data structures required for the operating system to run. The kernel image can then be used to boot and run the operating system's kernel. The root file system is the first file system mounted (read-only) after the computer's operating system boots. It contains the critical files and directories needed for system booting and enabling system operation. The root file system contains most of the content outside the operating system kernel, including various library files, device files, configuration files, applications, and user data. The root file system provides the basic environment required for the operating system to run. When the system boots, the kernel is first loaded into secondary storage and executed. Then, the kernel mounts the root file system and reads the necessary configurations and programs from it to initialize the system.

[0097] As described above, by executing the first boot program, the first type of program data in the second partition is copied to the second memory to start the basic screen sharing function corresponding to the first type of program data. This allows the wireless screen sharing transmitting device to run the application corresponding to the basic screen sharing function, such as a screen sharing application, and thus achieve the technical effect of screen sharing. From the user's perspective, the process is now complete. Therefore, the method of prioritizing the start of the basic screen sharing function in this embodiment is faster than the method of starting all functions and applications simultaneously in related technologies, thereby improving the user experience.

[0098] Before copying the first type of program data from the second partition to the second memory, bad block detection can be performed on the data blocks of the second partition in the first memory based on the execution of the first boot program. Detected bad blocks are then cleared, resulting in a second partition free of bad blocks. The first type of program data from the cleared second partition is then copied to the second memory. By clearing bad blocks from the second partition before copying to the second memory, program data within useless data blocks can be avoided, thus reducing the overall amount of data copied and improving copying speed. Furthermore, the reduction in useless data blocks means a relative decrease in the number of executable first programs to be executed in the second memory. Therefore, the subsequent data reading and command execution based on the executable first programs in the second memory will be faster, thereby improving the overall efficiency of system startup.

[0099] In this embodiment, the basic screen sharing function is started by the first boot program. Bad blocks in the second partition are cleared only. Compared with the method in related technologies where program data is copied to the second memory only after all bad blocks in the same memory are cleared, this embodiment skips the third partition that is not yet needed and only clears bad blocks in the second partition. This optimizes the speed by 500ms+, thereby shortening the bad block clearing time and improving the overall system startup speed.

[0100] In step S104, after decompressing the first executable program data in the second memory, the processor (MCU or CPU) reads the first executable program data from the second memory and executes the corresponding code commands according to the read first executable program data to start the basic screen projection function. As described above, the basic screen projection function is started through a secondary bootloader (i.e., the first bootloader). Since the code size of the secondary bootloader is smaller than that of the primary bootloader, the startup time required for the corresponding boot system is also less than that of the primary bootloader. This avoids the problem of long startup time for wireless screen projection devices, shortens startup time, and improves the user experience.

[0101] In the second memory, the aforementioned steps are based on decompressing the first type of program data to obtain the corresponding kernel image and root file system (i.e., the first executable program data). The processor (MCU or CPU) can then read the kernel image from the second memory and execute the read kernel image (code), thereby starting the system kernel. Based on the kernel's startup and operation, the root file system is decompressed and mounted, thus enabling the startup of basic screen sharing functions, such as launching a screen sharing application for screen sharing. As described 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 enable the startup of the basic screen sharing function corresponding to the first type of program. This allows the wireless screen sharing transmitting device to run the application corresponding to the basic screen sharing function, such as a screen sharing application, thus achieving the technical effect of screen sharing. From the user's perspective, the startup is complete at this point. Therefore, this embodiment prioritizes starting the basic screen sharing function, which, compared to the simultaneous startup of all functions in related technologies, results in a faster startup speed, thereby improving the user experience.

[0102] During kernel startup, the execution of the first bootloader calls the corresponding jump function, which jumps to the kernel's starting location, i.e., the load address of the kernel image in the second memory. After jumping to the load address of the kernel image in the second memory, the kernel image is loaded to start the kernel, that is, the code in the kernel image is read and executed. After the kernel starts, the next process is to start the first process (i.e., the init process). Before starting the first process, the root file system needs to be mounted. The root file system includes at least the following directories: / etc / , used to store important configuration files; / bin / , used to store frequently used executable files that are required at boot; / sbin / , used to store system executable files required during boot; / lib / , used to store the link libraries required by the executable files in / bin / and / sbin / , as well as Linux kernel modules; and / dev / , used to store device files. Since the kernel is currently in the boot stage and is not yet very stable, the root file system is mounted in read-only mode to protect it. Because if the root file system is mounted in a read-write manner, and the system accidentally crashes, firstly, the data on the root file system may be corrupted, and secondly, the system will spend a long time checking and repairing the root file system upon the next boot. After mounting the root file system, the init service is located and executed from the root file system, which means 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 USB driver application.

[0103] The third partition in the first memory is used to store the second type of program data for preset functions. Since the second type of program data is in UBIFS format, the third partition needs to be mounted to the system device list before it can be found by the processor (MCU or CPU). Therefore, after the kernel is started and the root file system is loaded, the second type of program data in the third partition of the first memory is mounted to the system device list according to the kernel's operation. Since the processor can find 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 kernel's operation, the second type of program data in the kernel is read and executed to start the preset functions, such as starting the UI application and / or USB driver application. For example, when the preset function is to start the USB boot application, after the preset function is started, the corresponding CD drive and the USB boot application are ejected on the terminal device connected to the wireless screen sharing transmitter.

[0104] As described above, by starting the basic screen sharing function and then starting the preset function corresponding to the third partition, compared with the method of starting the basic screen sharing function and the preset function simultaneously in related technologies, this embodiment greatly shortens the startup time, thereby improving the user experience.

[0105] In one embodiment, reference is made to Figure 2The wireless communication module 105 is used to establish a communication connection between the wireless screen transmission device 10 and the local area network (LAN). After the kernel is started, the communication type of the wireless communication module 105 needs to be determined before subsequent LAN communication connections can be established. After the kernel is started, the processor 104 can send a card scanning signal to the wireless communication module 105. If the phase corresponding to the card scanning signal belongs to the target phase corresponding to the communication type, the wireless communication module 105 will send a response signal back to the processor 104. The processor 104 can determine the current communication type of the wireless communication module 105 based on the response signal and the card scanning signal. If the phase corresponding to the card scanning signal does not belong to the target phase corresponding to the communication type, the wireless communication module 105 will not send a response signal. In related technologies, scanning signals with different phase values ​​are typically sent one by one to the wireless communication module 105 until a response signal is received to determine the communication type. This method often takes a long time to determine the communication type. Only after the communication type is determined can the corresponding communication connection be established and the basic screen projection function be started. The increased time for determining the communication type of the wireless communication module 105 increases the overall startup time of the basic screen projection function, thus affecting the user experience. Therefore, this embodiment provides a wireless screen projection transmitting device 10 with a fixed-type wireless communication module 105. After the kernel starts, it sends a scanning signal with a preset phase value to the wireless communication module 105 according to the kernel's operation. It should be noted that the preset phase value is the target phase corresponding to the fixed-type wireless communication module 105 in this embodiment. Therefore, after sending the scanning signal with the preset phase value to the wireless communication module 105, the wireless communication module 105 will feed back a corresponding response signal based on the scanning signal. The processor 104 receives the response signal fed back by the wireless communication module 105 and determines the communication type of the wireless communication module 105 based on the response signal. After determining the communication type of the wireless communication module 105, wireless communication initialization is performed according to the communication type, so that the system provides the corresponding wireless communication query entry and wireless communication connection entry, providing a basic environment for subsequent manual or automatic communication connections. After the wireless communication initialization, the wireless screen-sharing transmitting device 10 can establish a wireless communication connection with the screen-sharing receiving device 30 based on the aforementioned determined communication type through the wireless communication module 105 according to the preset wireless communication connection information. After the basic screen-sharing function is started based on the first type of program data, the content displayed on the screen of the terminal device 20 (such as audio and video data, text data, etc.) can be directly transmitted to the screen-sharing receiving device 30 through the wireless communication module 105 based on the wireless communication connection, thus realizing the screen-sharing effect.As described above, the communication type of the wireless communication module 105 is determined by scanning the card with a preset phase value. Compared with the method in related technologies that requires multiple phase values ​​of scanning the card to be continuously tried to determine the type, the scanning time in this embodiment is shorter, thereby improving the speed of determining the communication type. Based on the improved speed of determining the communication type, the corresponding speed of establishing a wireless communication connection with the screen transmission receiving device 30 is also relatively improved, which in turn can improve the speed at which the wireless screen transmission transmitting device 10 starts the basic screen projection function. Based on the improved speed of the basic screen projection function, the user experience can be improved.

[0106] For example, the fixed-type wireless communication module provided in this embodiment is a WiFi module. A WiFi scanning signal corresponding to the WiFi module is preset, and the phase value of this WiFi scanning signal is the target phase corresponding to the WiFi module. After the kernel starts, the processor sends the preset WiFi scanning signal to the WiFi module. The WiFi module feeds back a corresponding response signal to the processor based on the WiFi scanning signal. The processor determines that the current communication type of the wireless communication module is WiFi based on the received response signal, and then performs wireless communication initialization processing based on the WiFi type. A WiFi communication query entry and a network connection entry are provided on the terminal device connected to the wireless screen projection transmitting device, providing a basic environment for subsequent manual or automatic WiFi communication connections. Compared to the multiple scanning methods through communication negotiation in related technologies, the method of determining the communication type through WiFi scanning signals in this embodiment optimizes the speed by more than 300ms, thereby improving the scanning speed and thus improving the overall speed of the system initiating basic screen projection functions.

[0107] Figure 5 A flowchart illustrating another method for starting a wireless screen-sharing transmitting device according to an embodiment of this application is provided, with reference to... Figure 5 The startup methods for wireless screen transmission devices include:

[0108] S201. Based on the execution of the first boot program, the burning trigger signal is detected.

[0109] After starting the first boot program in step S101, the burning trigger signal needs to be detected. The burning trigger signal can be automatically triggered upon first use, or it can be manually triggered by the user after the first use. It can be triggered by a corresponding burning trigger button (which can be a virtual button or a hardware button). When a burning trigger signal is detected, subsequent steps S202-S205 are executed to perform the burning process and system startup process. If no burning trigger signal is detected, the aforementioned steps S101-S104 are executed to perform the system startup process.

[0110] S202. When a programming trigger signal is detected, in response to the programming trigger signal, the system receives initial program data and copies the boot program data in the fourth partition of the first memory to the second memory, reads and executes the boot program data to start the second boot program.

[0111] When a burning trigger signal is detected, if the first memory in the wireless screen transmission device does not contain program data (program data other than the first and second boot programs) or the program data in the first memory (program data other than the first and second boot programs) is unavailable, new program data (program data other than the first and second boot programs) needs to be burned into the first memory before the system can boot based on the newly burned program data. Since the first boot program (secondary boot program) cannot guide the system to perform the burning operation, the second boot program (primary boot program, such as Uboot) needs to be started to guide the system to perform the burning operation. Therefore, upon detecting a burning trigger signal, in response to the burning trigger signal, the processor receives program data from the terminal device and copies the boot program data in the fourth partition of the first memory (i.e., the boot program data corresponding to the second boot program) to the second memory. 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 the second bootloader is started, the received initial program data is burned into the corresponding partition of the first memory according to the operation of the second bootloader, and the system can then be booted based on the initial program data.

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

[0113] According to the execution of the second bootloader, the received initial program data is burned into the corresponding partition in the first memory. For example, the first type of program data for the basic projection function in the initial program data is burned into the second partition in the first memory, and the second type of program data for the preset functions in the initial program data is burned into the third partition in the first memory. Only after the initial program data is burned into the first memory can the corresponding program data be copied from the first memory to the second memory to start the system.

[0114] S204. 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.

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

[0116] S205. Perform system startup processing based on the initial program data in the second boot program and 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 execution of the second boot program to achieve system startup. The specific system startup process is the same as the aforementioned steps S102-S104, the only difference being that the boot program that boots the system is changed to the second boot program, so the specific system startup process will not be described in detail here.

[0118] As described above, the larger-code primary bootloader (i.e., the secondary bootloader) is used for data burning and subsequent system startup only when a burning trigger signal is detected. However, in actual use, data burning is usually only required the first time the wireless screen transmission device is used, and subsequent data burning is unlikely to be performed again. Therefore, in actual use, except for the first use, the system is started using the wireless screen transmission device startup method described in steps S101-104 above.

[0119] As described above, upon receiving the start signal, a first boot program, belonging to the secondary boot program, is initiated. This first boot program copies the first type of program data from the first partition of the first memory to the second memory. Following the execution of the first boot program, the first type of program data is decompressed in the second memory to obtain the first executable program data. This first executable program data is then read and executed to initiate the basic screen projection function. Using this technique, the system can be booted using program data stored in Nand flash or SPI Nand Flash storage media via a secondary boot program. The code size of the secondary boot program is smaller than that of the primary boot program, therefore, the boot time required is also shorter. This avoids the problem of long startup times for wireless screen projection devices, shortening the startup time and improving the user experience. Furthermore, when the basic screen projection function is fully initiated, the wireless screen projection effect is achieved. From the user's perspective, the process is complete at this point. Therefore, compared to the simultaneous startup of all functions in related technologies, the method in this embodiment has a faster startup speed, thus improving the user experience.

[0120] The above description is merely a preferred embodiment and the technical principles employed in this application. This application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions that can be made by those skilled in the art will not depart from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the claims.

Claims

1. A method for starting a wireless screen transmission device, characterized in that, For use in a wireless screen sharing transmission device, the wireless screen sharing 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, the second partition stores first type program data corresponding to basic screen sharing functions; The method includes: Upon receiving a startup signal, in response to the startup signal, the boot program data in the first partition of the first memory is copied to the second memory, and the boot program data is read and executed to start the first boot program; According to the execution of the first boot program, the first type of program data in the second partition of the first memory is copied to the second memory; According to the execution of the first boot program, the first type of program data is decompressed in the second memory to obtain the first executable program data; The first executable program data is read and executed to initiate the basic screen mirroring function.

2. The method according to claim 1, characterized in that, The step of decompressing the first type of program data in the second memory to obtain the first executable program data according to the execution of the first boot program includes: According to the execution of the first boot program, the first type of program data is decompressed in the second memory to obtain the kernel image and the root file system; The step of reading and executing the first executable program data to initiate the basic screen mirroring function includes: Read and execute the kernel image to start the kernel. Based on the kernel's operation, decompress the root file system; Mount the decompressed root file system to enable the basic screen mirroring function.

3. The method according to claim 1 or 2, characterized in that, The first memory also includes a third partition, which stores a second type of program data with preset functions; After reading and executing the first executable program data to activate the basic screen mirroring function, the process includes: Based on the execution of the first executable program data, the second type of program data in the third partition of the first memory is copied to the second memory; The second type of program data in the second memory is read and executed to initiate the preset function.

4. The method according to claim 3, characterized in that, The step of copying the second type of program data from the third partition of the first memory to the second memory based on the execution of the first executable program data includes: Based on the operation of the kernel, the third partition in the first memory is mounted to the system device list; Based on 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 step of reading and executing the second type of program data in the second memory to activate the preset function includes: Based on the operation of the kernel, the second type of program data in the second memory is read and executed to enable the startup of the preset function.

6. The method according to claim 2, characterized in that, After reading and executing the kernel image to start the kernel, the process includes: Based on the operation of the kernel, a card scanning signal with a preset phase value is sent to the wireless communication module; Receive the response signal fed back by the wireless communication module, and determine the communication type of the wireless communication module based on 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 from the second partition of the first memory to the second memory according to the execution of the first boot program includes: Based on the execution of the first boot program, bad block cleanup is performed on the data blocks in the second partition to obtain the cleaned 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 also includes a fourth partition, which stores boot program data corresponding to the second boot program, the second boot program being a first-level boot program; The process of receiving a startup signal, responding to the startup signal, copying boot program data from the first partition of the first memory to the second memory, reading and executing the boot program data to start the first boot program, and then includes: Based on the execution of the first bootloader, a burning trigger signal is detected; Upon detecting the programming trigger signal, in response to the programming trigger signal, the system receives initial program data and copies the boot program data in the fourth partition of the first memory to the second memory, reads and executes the boot program data to start the second boot program; According to the execution of the second bootloader, the initial program data is burned into the first memory; After the burning process 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 bootloader, 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 type program data corresponding to basic screen projection functions; 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 to the terminal device and send a start signal to the wireless screen transmission device based on the connection; When the processor receives the startup signal, it responds to the startup signal by copying the boot program data in the first partition of the first memory to the second memory, reading and executing the boot program data to start the first boot program, copying the first type of program data to the second memory according to the execution of the first boot program, and decompressing the first type of program data in the second memory according to the execution of the first boot program to obtain the first executable program data. The processor is also used to read and execute the first executable program data to start the basic screen mirroring function.

10. The wireless screen transmission device according to claim 9, characterized in that, It also includes a wireless communication module; The wireless communication module is connected to the processor, and when the wireless communication module receives a card scanning signal with a preset phase value sent by the processor, it sends a response signal back to the processor. The processor is further configured to determine the communication type of the wireless communication module based on the response signal, and perform wireless communication initialization processing based on the communication type.