Configuration switching method, electronic device, and storage medium

By dividing the storage area in the storage unit and establishing a mapping relationship, efficient configuration switching of FPGA is realized, which solves the problem of cumbersome reprogramming operation in the existing technology and improves the efficiency of configuration update.

CN120743317BActive Publication Date: 2025-12-09APUTURE IMAGING IND CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511221010.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-29
Publication Date
2025-12-09
Estimated Expiration
2045-08-29

AI Technical Summary

Technical Problem

In the existing technology, the configuration switching of FPGA-based UHF transmitters and receivers requires reprogramming the memory cells, which is cumbersome and time-consuming.

Method used

By dividing the storage unit into multiple storage areas and establishing a mapping relationship between the storage areas and the configuration stream file, a switching instruction carrying the target configuration information is generated, and the target stream file is directly determined for configuration switching, avoiding repeated burning operations.

Benefits of technology

It simplifies the configuration information loading process, significantly saves configuration update time, and improves the efficiency of configuration switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120743317B_ABST
    Figure CN120743317B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a configuration switching method, an electronic device and a storage medium. The method is applied to a first device, a plurality of first storage areas are divided in a first storage unit, and a first mapping relationship between the first storage areas and first configuration stream files of different bandwidths is established. When a first switching instruction carrying target configuration information is received, a second switching instruction indicating that a second device performs configuration switching is generated synchronously. Based on the target configuration information, a first target stream file is determined, and configuration switching of the configuration of communication of the first device is performed. The storage units of the first device and the second device do not need to be repeatedly programmed, the loading process of the first target stream file of the target configuration information is effectively simplified, and the time for configuration update is significantly saved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of audio transmission, in particular to a configuration switching method, an electronic device and a storage medium. BACKGROUND

[0002] In related technologies, the configuration mode of an Ultra High Frequency (UHF or U) segment transmitter and receiver based on a Field Programmable Gate Array (FPGA) is mostly to read bit stream configuration information from a FLASH memory. When the bandwidth of U segment transmission needs to be changed, new bit stream configuration information of the FPGA needs to be configured, and the FLASH memory unit of the transmitter and receiver needs to be reprogrammed. The reprogramming is usually performed by using an Over-the-Air Technology (OTA) or a FLASH disk (for example, a U disk), which is complicated and time-consuming. SUMMARY

[0003] Embodiments of the present application provide a configuration switching method, an electronic device and a storage medium, which avoid the complicated operation of reprogramming the memory unit of the transmitter and receiver, and save the programming time.

[0004] In a first aspect, an embodiment of the present application provides a configuration switching method applied to a first device including a first memory unit, the first memory unit including a plurality of first storage areas, the first storage areas having a first mapping relationship with a preset first configuration stream file; the method includes:

[0005] generating a second switching instruction in response to a preset first switching instruction; the first switching instruction carrying target configuration information used for communication;

[0006] sending the second switching instruction to a second device; the second device being configured to analyze the second switching instruction to obtain the target configuration information, and perform configuration switching;

[0007] determining a first target stream file according to the first mapping relationship and the target configuration information; the first target stream file being any configuration stream file in the plurality of first configuration stream files;

[0008] performing configuration switching on the configuration of communication of the first device based on the first target stream file.

[0009] In some embodiments, the first storage area has a second mapping relationship with preset first configuration information, and the target configuration information is any configuration information in the plurality of first configuration information; and the determining, according to the first mapping relationship and the target configuration information, of a first target stream file comprises:

[0010] determining, according to the second mapping relationship, of a first target area corresponding to the target configuration information; and the first target area is any storage area in the plurality of first storage areas;

[0011] determining, according to the first mapping relationship, of a first target stream file corresponding to the first target area.

[0012] In some embodiments, the method further comprises:

[0013] obtaining a first capacity occupied by the first configuration stream file and a first number of the first configuration stream file;

[0014] determining, based on the first capacity and the first number, of a second capacity occupied by the first storage unit;

[0015] performing partition processing on the first storage unit according to the second capacity and the first capacity and / or the first number, to obtain the plurality of first storage areas.

[0016] In some embodiments, the method further comprises:

[0017] determining first address information corresponding to the first storage area;

[0018] mapping the first address information with the first configuration stream file to obtain the first mapping relationship.

[0019] In some embodiments, the first storage unit further comprises a second storage area, the second storage area being different from the first storage area, and the second storage area comprising preset second configuration stream files; and after the determining, according to the first mapping relationship and the target configuration information, of a first target stream file, the method further comprises:

[0020] performing verification on the first target stream file to obtain a first verification result;

[0021] if the first verification result indicates that the first target stream file is abnormal, obtaining the second configuration stream file;

[0022] performing configuration switching on a configuration of communication of the first device based on the second configuration stream file to obtain first prompt information corresponding to the second configuration stream file, the first prompt information being used to instruct the first device to load configuration information corresponding to the second configuration stream file.

[0023] In a second aspect, the embodiment provides a configuration switching method, applied to a second device including a second storage unit, the second storage unit including a plurality of third storage areas, the third storage areas having a third mapping relationship with a preset third configuration flow file; the method includes:

[0024] receiving a second switching instruction sent by a first device;

[0025] analyzing the second switching instruction to obtain target configuration information of communication;

[0026] determining a second target flow file according to the third mapping relationship and the target configuration information; the second target flow file being any configuration flow file in the plurality of third configuration flow files;

[0027] performing configuration switching on configuration of communication of the second device based on the second target flow file.

[0028] In some embodiments, the third storage areas have a fourth mapping relationship with preset second configuration information, the target configuration information being any configuration information in the plurality of second configuration information; the determining of the second target flow file according to the third mapping relationship and the target configuration information includes:

[0029] determining a second target area corresponding to the target configuration information according to the fourth mapping relationship; the second target area being any storage area in the plurality of third storage areas;

[0030] determining a second target flow file corresponding to the second target area according to the third mapping relationship.

[0031] In a third aspect, the embodiment provides a first device, including a first storage and a first processor, the first storage storing a computer program, the computer program being executed by the first processor to implement the configuration switching method of the first aspect.

[0032] In a fourth aspect, the embodiment provides a second device, including a second storage and a second processor, the second storage storing a computer program, the computer program being executed by the second processor to implement the configuration switching method of the second aspect.

[0033] In a fifth aspect, the embodiment provides a computer readable storage medium, storing a computer program, the computer program being loaded by a processor to execute steps in any one of the configuration switching methods of the first device or steps in the configuration switching method of the second device.

[0034] The configuration switching method provided by the embodiment divides a plurality of first storage areas in the first storage unit, and establishes a first mapping relationship between the first storage areas and first configuration stream files of different bandwidths; a second switching instruction indicating the second device to perform configuration switching is synchronously generated in response to a first switching instruction carrying target configuration information; the first target stream file is determined based on the target configuration information, and configuration switching is performed on the configuration of the communication of the first device. The storage unit of the first device and the second device does not need to be repeatedly programmed, which effectively simplifies the loading process of the first target stream file of the target configuration information, and significantly saves the configuration update time. BRIEF DESCRIPTION OF DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0036] Figure 1 A flowchart of the configuration switching method provided by the embodiment of the present application;

[0037] Figure 2 Another flowchart of the configuration switching method provided by the embodiment of the present application;

[0038] Figure 3 A structure diagram of the configuration switching system provided by the embodiment of the present application;

[0039] Figure 4 A structure diagram of the configuration switching device provided by the embodiment of the present application;

[0040] Figure 5 Another structure diagram of the configuration switching device provided by the embodiment of the present application;

[0041] Figure 6 A structure diagram of the first device provided by the embodiment of the present application;

[0042] Figure 7 A structure diagram of the second device provided by the embodiment of the present application. DETAILED DESCRIPTION

[0043] The technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.

[0044] In the description of the present application, it needs to be understood that the orientation or positional relationship indicated by the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer" and the like is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element indicated must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second" are only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features defined as "first", "second" can explicitly or implicitly include one or more features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise specifically limited.

[0045] "A and / or B" includes the following three combinations: only A, only B, and a combination of A and B.

[0046] The use of "adapted for" or "configured for" in the present application means open and inclusive language that does not exclude devices adapted for or configured for performing additional tasks or steps. In addition, the use of "based on" means open and inclusive, because a process, step, calculation or other action "based on" one or more conditions or values can be based on additional conditions or values in practice.

[0047] In the present application, the word "exemplary" is used to mean "serving as an example, instance, or illustration." Any implementation described as "exemplary" in the present application is not necessarily to be construed as preferred or advantageous over other implementations. The following description is presented to enable any person skilled in the art to make and use the present application. In the following description, for the purposes of explanation, details are set forth in order to provide a thorough understanding of the present application. It will be apparent to one ordinarily skilled in the art that the present application can be practiced without these specific details. In other instances, well-known structures and processes are not described in detail in order to avoid obscuring the description of the present application. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.

[0048] Figure 1 A flowchart of a configuration switching method provided for an embodiment of the present application is shown in FIG. 1, which provides a configuration switching method applied to a first device including a first storage unit, the first storage unit including a plurality of first storage areas, the first storage areas having a first mapping relationship with a preset first configuration stream file; the method includes: Figure 1 A flowchart of a configuration switching method provided for an embodiment of the present application is shown in FIG. 1, which provides a configuration switching method applied to a first device including a first storage unit, the first storage unit including a plurality of first storage areas, the first storage areas having a first mapping relationship with a preset first configuration stream file; the method includes:

[0049] Step 101: generating a second switching instruction in response to a preset first switching instruction; the first switching instruction carries target configuration information used for communication.

[0050] In this embodiment, the first storage unit can be a FLASH storage unit, and the first storage area can be a FLASH storage area. The target configuration information can be determined according to actual conditions, which is not limited herein. As an example, the target configuration information can be information carried by the first switching instruction and used for configuration of communication between the first device and the second device, such as working frequency band, modulation mode, bandwidth, etc. The first device can be determined according to actual conditions, which is not limited herein. As an example, the first device can be a host device used for sending audio information, such as a U-band transmitter.

[0051] In this embodiment, the first device can include a first human-computer interaction interface and a first processing unit, and the first processing unit can be a microcontroller unit (MCU). The first switching instruction can be control information input by a user based on the first human-computer interaction interface. Before generating the second switching instruction in response to the preset first switching instruction, the selection operation of the user on the target configuration information can be received through the first human-computer interaction interface, and the first switching instruction can be obtained by analyzing the selection operation of the user through the first processing unit.

[0052] In this embodiment, the process of generating the second switching instruction in response to the preset first switching instruction can be determined according to actual conditions, which is not limited herein. As an example, the first switching instruction can be protocol-encapsulated and information-enhanced through the first processing unit to obtain the second switching instruction, and the second switching instruction can include at least one of the following: target configuration information, precise timestamp, and digital signature.

[0053] Step 102: sending the second switching instruction to the second device; the second device is used to analyze the second switching instruction to obtain the target configuration information for configuration switching.

[0054] In this embodiment, the second device can be determined according to actual conditions, which is not limited herein. As an example, the second device can be a slave device for receiving audio information, for example, the slave device can be a U segment receiver. The process of sending the second switching instruction to the second device can be determined according to actual conditions, which is not limited herein. As an example, the second switching instruction can be sent to the second device in a preset super high frequency band. The preset super high frequency band can be a super high frequency band in which the first device sends the second switching instruction. It should be noted that the preset super high frequency band in which the first device sends the second switching instruction is the same frequency band as the preset super high frequency band in which the second device receives the second switching instruction, so that the second switching instruction sent by the first device can be received by the second device.

[0055] Step 103: determining a first target stream file according to the first mapping relationship and the target configuration information; the first target stream file is any configuration stream file in the plurality of first configuration stream files.

[0056] In this embodiment, the first target stream file can be determined according to actual conditions, which is not limited herein. As an example, the first target stream file can be a configuration stream file corresponding to the target configuration information. The process of determining the first target stream file according to the first mapping relationship and the target configuration information can be determined according to actual conditions, which is not limited herein. As an example, a first target region corresponding to the target configuration information can be determined, and a first target stream file corresponding to the first target region can be determined according to the correspondence between the first storage region and the preset first configuration stream file in the first mapping relationship.

[0057] In some embodiments, the first storage region and the preset first configuration information have a second mapping relationship, and the target configuration information is any configuration information in the plurality of first configuration information; determining the first target stream file according to the first mapping relationship and the target configuration information comprises:

[0058] determining a first target region corresponding to the target configuration information according to the second mapping relationship; the first target region is any storage region in the plurality of first storage regions;

[0059] determining a first target stream file corresponding to the first target region according to the first mapping relationship.

[0060] In this embodiment, the first configuration information can be determined according to actual conditions, which is not limited herein. As an example, the first configuration information can be information of a preset configuration that can be used for communication between the first device and the second device. The first configuration stream file can be determined according to actual conditions, which is not limited herein. As an example, the first configuration stream file can be a configuration stream file corresponding to the first configuration information, for example, the first configuration stream file can be bit stream configuration information.

[0061] In this embodiment, the second mapping relationship can be determined according to actual conditions, which is not limited herein. As an example, the second mapping relationship can be a corresponding index relationship between the first configuration information and the first storage area. The process of determining the first target area corresponding to the target configuration information according to the second mapping relationship can be determined according to actual conditions, which is not limited herein. As an example, the target configuration information can be searched in the second mapping relationship based on the target configuration information, and the first target area corresponding to the target configuration information is obtained.

[0062] In this embodiment, the process of determining the first target stream file corresponding to the first target area according to the first mapping relationship can be determined according to actual conditions, which is not limited herein. As an example, the first target stream file corresponding to the first target area can be searched in the first mapping relationship based on the first target area.

[0063] Here, by establishing the first mapping relationship between the first storage area and the first configuration stream file, and establishing the second mapping relationship between the first storage area and the first configuration information, the first target area can be determined in the plurality of first storage areas according to the target configuration information, and then the first target stream file can be determined in the plurality of first configuration stream files. The tedious operation of re-burning the new configuration information to the FLASH when the configuration information needs to be changed in the related art is avoided, the loading process of the first target stream file of the target configuration information is effectively simplified, and the configuration update time is significantly saved.

[0064] Step 104: performing configuration switching on the configuration of the communication of the first device based on the first target stream file.

[0065] In this embodiment, the process of performing configuration switching on the configuration of the communication of the first device based on the first target stream file can be determined according to actual conditions, which is not limited herein. As an example, the FPGA unit can load the first target stream file through an internal configuration access port (ICAP) to reconfigure the hardware logic, so as to perform configuration switching on the configuration of the communication of the first device.

[0066] In some embodiments, the method further comprises:

[0067] obtaining a first capacity occupied by the first configuration stream file, and a first number of the first configuration stream file;

[0068] determining a second capacity occupying the first storage unit based on the first capacity and the first number;

[0069] performing partition processing on the first storage unit according to the second capacity, and the first capacity and / or the first number, to obtain a plurality of first storage areas.

[0070] In this embodiment, the first capacity can be the size of the storage space occupied by a single first configuration stream file. The first capacity can be determined according to actual conditions, and is not limited herein. As an example, the first capacity can be 2 megabytes (MB) or 4 MB. The first quantity can be the quantity of preset first configuration information. The first quantity can be determined according to actual conditions, and is not limited herein. As an example, the first quantity can be 5 or 10.

[0071] In this embodiment, the second capacity can be the size of the storage space occupied by the first quantity of first configuration stream files. The process of determining the second capacity of the first storage unit based on the first capacity and the first quantity can be determined according to actual conditions, and is not limited herein. As an example, the maximum value of the first capacity in the first quantity can be determined, and the maximum value is multiplied by the first quantity to obtain the second capacity of the first quantity of first configuration stream files.

[0072] In this embodiment, the process of partitioning the first storage unit according to the second capacity, and the first capacity and / or the first quantity to obtain a plurality of first storage areas can be determined according to actual conditions, and is not limited herein. As an example, in the case that the first capacity of the first quantity is the same, the first storage unit of the second capacity is partitioned according to the first quantity to obtain the first quantity of first storage areas. As another example, in the case that the first capacity of the first quantity is not the same, the maximum value of the capacity is taken as the capacity of a single first storage area, and the first storage unit of the second capacity is partitioned to obtain the first quantity of first storage areas.

[0073] Here, the first capacity occupied by a single first configuration stream file can be used to automatically calculate the second capacity of the first quantity of first configuration stream files occupying the first storage unit. The first storage unit is partitioned according to the demand of the first capacity occupied by a single first configuration stream file to obtain the first quantity of first storage areas, thereby avoiding the cumbersome operation of re-burning the entire FLASH storage unit when the configuration information needs to be changed in the related art, and realizing accurate division and efficient utilization of the storage space of the FLASH storage unit.

[0074] In some embodiments, the method further includes:

[0075] determining first address information corresponding to the first storage area;

[0076] mapping the first address information and the first configuration stream file to obtain a first mapping relationship.

[0077] In this embodiment, the first address information can be used to accurately locate the specific position of the first storage region in the FLASH storage unit. The first address information can be determined according to actual conditions, which is not limited herein. As an example, the first address information can be the physical starting address of the first storage region in the FLASH storage unit.

[0078] In this embodiment, the process of determining the first address information corresponding to the first storage region can be determined according to actual conditions, which is not limited herein. As an example, address resolution can be performed on the FLASH storage unit that has completed partition processing to determine the first address information corresponding to each first storage region.

[0079] In this embodiment, the process of mapping the first address information with the first configuration stream file to obtain the first mapping relationship can be determined according to actual conditions, which is not limited herein. As an example, the first address information of each first storage region is associated and mapped with the first configuration stream file stored in the first storage region to form the first mapping relationship.

[0080] Here, by determining the first address information corresponding to each first storage region and establishing the first mapping relationship between the first address information and the stored first configuration stream file, the quick positioning and efficient retrieval of the configuration stream file can be realized, so that the first device can directly index through the first address information in the configuration switching process, quickly lock the first target stream file, and avoid the cumbersome operation of re-burning the new configuration information to the FLASH storage unit when the configuration information needs to be changed in the related art. The loading process of the first target stream file of the target configuration information is effectively simplified, and the configuration update time is significantly saved.

[0081] In some embodiments, the first storage unit further includes a second storage region, the second storage region being different from the first storage region, and the second storage region including a preset second configuration stream file; after determining the first target stream file according to the first mapping relationship and the target configuration information, the method further includes:

[0082] verifying the first target stream file to obtain a first verification result;

[0083] If the first verification result indicates that the first target stream file is abnormal, the second configuration stream file is obtained;

[0084] performing configuration switching on the configuration of the communication of the first device based on the second configuration stream file to obtain first prompt information corresponding to the second configuration stream file, the first prompt information being used to instruct the first device to load the configuration information corresponding to the second configuration stream file.

[0085] In this embodiment, the second storage area can be a storage partition in the first storage unit that is independent of the first storage area. The second configuration file is used to provide a reliable configuration fallback mechanism when the first target file loaded by the first device has a configuration exception. The second configuration file can be determined according to actual conditions, which is not limited herein. As an example, the second configuration file can be a backup configuration file (for example, a factory default configuration, a security recovery configuration, or a bit stream configuration information of a basic function configuration) pre-stored in the second storage area.

[0086] In this embodiment, the process of checking the first target file to obtain the first check result can be determined according to actual conditions, which is not limited herein. As an example, the cyclic redundancy check (CRC) code of the first target file is compared with a preset CRC code. If the CRC code of the first target file is inconsistent with the preset CRC code, the first check result indicates that the first target file has an exception.

[0087] In this embodiment, the configuration switching process based on the second configuration file to configure the communication of the first device can refer to the description of the configuration switching process based on the first target file to configure the communication of the first device, which is not repeated herein. The first prompt information can be determined according to actual conditions, which is not limited herein. As an example, the first prompt information can be a first color flashing of a light emitting diode (LED) indicator light of the first device.

[0088] It should be noted that the target prompt information can be generated after the configuration switching based on the first target file to configure the communication of the first device. The target prompt information can be a second color flashing of the LED indicator light of the first device, and the first color is different from the second color, so that the user can distinguish the communication configuration of the first device through the first prompt information and the target prompt information.

[0089] Here, by independently setting the second storage area containing the second configuration file in the first storage unit, and automatically switching to the backup second configuration file and generating the first prompt information when the first target file corresponding to the target configuration information has a check exception, the redundancy protection and the fast fault recovery of the configuration data can be realized, thereby improving the technical problems of the related art that the first device communication is interrupted and lacks an abnormal feedback mechanism due to damage of the first target file corresponding to the target configuration information.

[0090] Figure 2 Another flowchart of the configuration switching method provided by the embodiments of the present application is shown in FIG. 6. Figure 2As shown, the embodiment provides a configuration switching method, applied to a second device including a second storage unit, the second storage unit including a plurality of third storage areas, the third storage areas having a third mapping relationship with preset third configuration stream files; the method includes:

[0091] Step 201: receiving a second switching instruction sent by the first device.

[0092] In the embodiment, the second storage unit can be a FLASH storage unit. The second switching instruction sent by the first device can be received at a preset ultra-high frequency band. The preset ultra-high frequency band can be determined according to actual conditions, which is not limited herein. As an example, the preset ultra-high frequency band can be an ultra-high frequency band at which the second device receives the second switching instruction.

[0093] In some embodiments, the second device can include a second human-computer interaction interface and a second processing unit, which can be a micro control unit; the second device can receive a selection operation of the target configuration information of a user through the second human-computer interaction interface, and analyze the selection operation of the user through the second processing unit to obtain the second switching instruction.

[0094] Step 202: analyzing the second switching instruction to obtain the target configuration information of the communication.

[0095] In the embodiment, the second switching instruction can be analyzed based on a preset analysis protocol to obtain the target configuration information of the communication. The preset analysis protocol can be determined according to actual conditions, which is not limited herein.

[0096] Step 203: determining a second target stream file according to the third mapping relationship and the target configuration information; the second target stream file is any configuration stream file in the plurality of third configuration stream files.

[0097] In the embodiment, the second target stream file can be determined according to actual conditions, which is not limited herein. As an example, the second target stream file can be a configuration stream file corresponding to the target configuration information. The process of determining the second target stream file according to the third mapping relationship and the target configuration information can be determined according to actual conditions, which is not limited herein. As an example, a second target area corresponding to the target configuration information can be determined, and a second target stream file corresponding to the second target area can be determined according to the correspondence between the third storage areas and the preset third configuration stream files in the third mapping relationship.

[0098] Step 204: performing configuration switching on the configuration of the communication of the second device based on the second target stream file.

[0099] In the embodiment, the process of performing configuration switching on the configuration of the communication of the second device based on the second target stream file can refer to the description of the process of performing configuration switching on the configuration of the communication of the first device based on the first target stream file, which is not repeated herein.

[0100] It should be noted that the target prompt information can be generated after the configuration switching is performed on the configuration of the communication of the second device based on the second target stream file, and the target prompt information can be that the second color is flashed by the LED indicator light of the second device. The same color is flashed by the LED indicator light of the first device and the LED indicator light of the second device, so that the user can observe the light of the first device and the second device to know that the configurations of the communication of the two devices are consistent.

[0101] In some embodiments, the third storage area and the preset second configuration information have a fourth mapping relationship, and the target configuration information is any configuration information in the plurality of second configuration information; the second target stream file is determined according to the third mapping relationship and the target configuration information, comprising:

[0102] The second target area corresponding to the target configuration information is determined according to the fourth mapping relationship; and the second target area is any storage area in the plurality of third storage areas;

[0103] The second target stream file corresponding to the second target area is determined according to the third mapping relationship.

[0104] In this embodiment, the second configuration information can be determined according to actual conditions, which is not limited here. As an example, the second configuration information can be information of a preset configuration that can be used for the communication between the first device and the second device. In some embodiments, the first configuration information and the second configuration information can be the same configuration information. The third configuration stream file can be determined according to actual conditions, which is not limited here. As an example, the third configuration stream file can be a preset configuration stream file corresponding to the second configuration information, for example, the third configuration stream file can be bit stream configuration information. In some embodiments, the first configuration stream file and the third configuration stream file can be the same configuration stream file.

[0105] In this embodiment, the fourth mapping relationship can be determined according to actual conditions, which is not limited here. As an example, the fourth mapping relationship can be a corresponding index relationship between the second configuration information and the third storage area. The process of determining the second target area corresponding to the target configuration information according to the fourth mapping relationship can be determined according to actual conditions, which is not limited here. As an example, the target configuration information can be searched in the fourth mapping relationship based on the target configuration information, and the second target area corresponding to the target configuration information is obtained.

[0106] In this embodiment, the process of determining the second target stream file corresponding to the second target area according to the third mapping relationship can be determined according to actual conditions, which is not limited here. As an example, the second target stream file corresponding to the second target area can be searched in the third mapping relationship based on the second target area.

[0107] In some embodiments, the method further includes: obtaining a third capacity occupied by a third configuration stream file and a second number of third configuration stream files; determining a fourth capacity occupied by a second storage unit based on the third capacity and the second number; and partitioning the second storage unit according to the fourth capacity, the third capacity, and / or the second number to obtain multiple third storage regions. It should be noted that the process of this method can be referred to the description on the first device side, and is not limited thereto.

[0108] In some embodiments, the method further includes: determining second address information corresponding to the third storage area; and mapping the second address information to a third configuration stream file to obtain a third mapping relationship. It should be noted that the process of this method can be referred to the description on the first device side, and is not limited thereto.

[0109] In some embodiments, the second storage unit further includes a fourth storage region, which differs from the third storage region. The fourth storage region includes a preset fourth configuration stream file. After determining the second target stream file based on the third mapping relationship and target configuration information, the method further includes: verifying the second target stream file to obtain a second verification result; if the second verification result indicates that the second target stream file is abnormal, then obtaining the fourth configuration stream file; and performing a configuration switch on the communication configuration of the second device based on the fourth configuration stream file to obtain a second prompt message corresponding to the fourth configuration stream file. The second prompt message is used to instruct the second device to load the configuration information corresponding to the fourth configuration stream file. It should be noted that the process of this method can refer to the description on the first device side, and is not limited here.

[0110] The following describes the configuration switching method provided in the embodiments of this application.

[0111] Figure 3 This is a schematic diagram of a configuration switching system provided in an embodiment of this application, such as... Figure 3 As shown, the configuration switching system includes a host device 310 and a slave device 320. The host device 310 includes a transmitting unit 311 and a first FLASH unit 312 connected to each other. The transmitting unit 311 includes a first human-machine interface 3111, a first MCU unit 3112 and a first FPGA unit 3113. The first MCU unit 3112 is connected to the first human-machine interface 3111 and the first FPGA unit 3113 respectively. The slave device 320 includes a receiving unit 321 and a second FLASH unit 322 connected to each other. The receiving unit 321 includes a second human-machine interface 3211, a second MCU unit 3212 and a second FPGA unit 3213. The second MCU unit 3212 is connected to the second human-machine interface 3211 and the second FPGA unit 3213 respectively.

[0112] The multiple storage areas are divided in the FLASH unit with different starting addresses, and each storage area stores bit stream configuration information with different bandwidth. When the bit stream configuration information with target bandwidth is needed, the MCU unit connected with the human-computer interaction interface transmits the control information with bandwidth information input by the user based on the human-computer interaction interface to the FPGA unit.

[0113] The configuration switching method provided by the embodiment of the application includes the following steps. In the first step, the transmitting unit 311 and the receiving unit 321 work in a default bandwidth preset in advance after being powered on, and the transmitting unit 311 and the receiving unit 321 can normally work. In the second step, when the user sets the bandwidth information to be used on the first human-computer interaction interface 3111 of the transmitting unit 311, the first MCU unit 3112 transmits control information carrying the bandwidth information to the first FPGA unit 3113. In the third step, the first FPGA unit 3113 determines the FLASH storage area corresponding to the bandwidth information from the first FLASH unit 312, and normally works after reloading the corresponding bit stream configuration information.

[0114] In the fourth step, when the bandwidth information to be used is set on the second human-computer interaction interface 3211 of the receiving unit 321, the second MCU unit 3212 transmits control information carrying the bandwidth information to the second FPGA unit 3213. In the fifth step, the second FPGA unit 3213 determines the FLASH storage area corresponding to the bandwidth information from the second FLASH unit 322, and normally works after reloading the corresponding bit stream configuration information. In the sixth step, the transmitting unit 311 and the receiving unit 321 work with the new bandwidth information. In the seventh step, when the transmitting unit 311 and the receiving unit 321 work with new bandwidth information, the above steps are repeated.

[0115] By pre-burning the bit stream configuration information with different bandwidths into different address areas of the FLASH, the FPGA of the U-section transmitter and receiver loads the corresponding bit stream configuration information from the FLASH storage area through the control information transmitted by the MCU, thereby avoiding the tedious re-burning of the FLASH of the transmitter and receiver through OTA or U disk, saving the burning time, solving the complex operation of re-burning the FLASH in the related art, and reducing the labor cost. Moreover, loading the new bit stream configuration information from different FLASH storage areas can save the time required for burning the FLASH, speed up the switching of the working bandwidth of the product, and facilitate use.

[0116] Figure 4 A structural diagram of the configuration switching device provided by the embodiment of the application is shown in FIG. 1. Figure 4As shown, the present application provides a first configuration switching device 400, applied to a first device including a first storage unit, the first storage unit including a plurality of first storage areas, the first storage areas having a first mapping relationship with preset first configuration stream files; the first configuration switching device 400 includes:

[0117] a generating module 401, configured to generate a second switching instruction in response to a preset first switching instruction; the first switching instruction carrying target configuration information for communication;

[0118] a sending module 402, configured to send the second switching instruction to a second device; the second device being configured to analyze the second switching instruction to obtain the target configuration information, so as to perform configuration switching;

[0119] a first determining module 403, configured to determine a first target stream file according to the first mapping relationship and the target configuration information; the first target stream file being any configuration stream file in the plurality of first configuration stream files;

[0120] a first switching module 404, configured to perform configuration switching on the configuration of the communication of the first device based on the first target stream file.

[0121] In some embodiments, the first storage areas have a second mapping relationship with preset first configuration information, and the target configuration information is any configuration information in the plurality of first configuration information; the first determining module 403 is further configured to determine a first target area corresponding to the target configuration information according to the second mapping relationship; the first target area being any storage area in the plurality of first storage areas; and the first determining module 403 is further configured to determine a first target stream file corresponding to the first target area according to the first mapping relationship.

[0122] In some embodiments, the first configuration switching device 400 further includes:

[0123] a first obtaining module, configured to obtain a first capacity occupied by the first configuration stream files, and a first number of the first configuration stream files;

[0124] a second determining module, configured to determine a second capacity occupied by the first storage unit based on the first capacity and the first number;

[0125] a partitioning module, configured to perform partitioning processing on the first storage unit according to the second capacity, and the first capacity and / or the first number, to obtain the plurality of first storage areas.

[0126] In some embodiments, the first configuration switching device 400 further includes:

[0127] a third determining module, configured to determine first address information corresponding to the first storage areas;

[0128] The mapping module is configured to map the first address information and the first configuration stream file to obtain a first mapping relationship.

[0129] In some embodiments, the first storage unit further includes a second storage area, the second storage area being different from the first storage area, and the second storage area including a preset second configuration stream file; and the first configuration switching device 400 further includes:

[0130] The checking module is configured to check the first target stream file to obtain a first checking result.

[0131] The second obtaining module is configured to obtain a second configuration stream file if the first checking result indicates that the first target stream file is abnormal.

[0132] The second switching module is configured to perform configuration switching on the configuration of the communication of the first device based on the second configuration stream file to obtain first prompt information corresponding to the second configuration stream file, the first prompt information being used to instruct the first device to load configuration information corresponding to the second configuration stream file.

[0133] Figure 5 Another structural schematic diagram of a configuration switching device provided by an embodiment of the present application is shown in FIG. 5, which is similar to the configuration switching device shown in FIG. 4, and thus the description of the configuration switching device shown in FIG. 4 is applicable to the configuration switching device shown in FIG. 5. Figure 5 As shown in FIG. 5, the present application provides a second configuration switching device 500 applied to a second device including a second storage unit, the second storage unit including a plurality of third storage areas, the third storage areas having a third mapping relationship with preset third configuration stream files; the second configuration switching device 500 including:

[0134] The receiving module 501 is configured to receive a second switching instruction sent by the first device.

[0135] The analysis module 502 is configured to analyze the second switching instruction to obtain target configuration information of the communication.

[0136] The fourth determination module 503 is configured to determine a second target stream file according to the third mapping relationship and the target configuration information; the second target stream file being any configuration stream file in the plurality of third configuration stream files.

[0137] The third switching module 504 is configured to perform configuration switching on the configuration of the communication of the second device based on the second target stream file.

[0138] In some embodiments, the third storage areas have a fourth mapping relationship with preset second configuration information, the target configuration information being any configuration information in the plurality of second configuration information; the fourth determination module 503 is further configured to determine a second target area corresponding to the target configuration information according to the fourth mapping relationship; the second target area being any storage area in the plurality of third storage areas; and the second target stream file corresponding to the second target area is determined according to the third mapping relationship.

[0139] Figure 6 A structural diagram of a first device provided in an embodiment of the present application is shown in FIG. 1. The present application provides a first device including a first processor 601 having one or more processing cores, a first memory 602 having one or more computer readable storage media, a first power supply 603, and a first input unit 604, etc. Those skilled in the art can understand that the structure of the first device shown in FIG. 1 does not limit the first device, and the first device can include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements. Among them: Figure 6 Figure 6 The first processor 601 is the control center of the first device, and connects various parts of the first device through various interfaces and lines, and performs various functions of the first device and processes data by running or executing software programs and / or modules stored in the first memory 602 and calling data stored in the first memory 602, thereby overall monitoring the first device. Optionally, the first processor 601 can include one or more processing cores; preferably, the first processor 601 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application program, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the first processor 601.

[0140] The first memory 602 can be used to store software programs and modules, and the first processor 601 executes various functions and data processing by running the software programs and modules stored in the first memory 602. The first memory 602 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), etc.; the data storage area can store data created according to the use of the first device, etc. In addition, the first memory 602 can include a high-speed random access memory, and can also include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the first memory 602 can also include a memory controller to provide access of the first processor 601 to the first memory 602.

[0141] The first power supply 603 is configured to supply power to the first device. The first input unit 604 is configured to receive input from a user. The first input unit 604 can include, for example, a microphone, a camera, a keyboard, or a mouse.

[0142] ​The first device also includes a first power supply 603 that supplies power to the various components. Preferably, the first power supply 603 can be logically connected to the first processor 601 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The first power supply 603 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0143] The first device may further include a first input unit 604, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0144] Figure 7 This is a schematic diagram of the structure of the second device provided in the embodiments of this application, such as... Figure 7 As shown. This application provides a second device, which includes: a second processor 701 with one or more processing cores, a second memory 702 with one or more computer-readable storage media, a second power supply 703, and a second input unit 704, etc. Those skilled in the art will understand that... Figure 7 The second device structure shown does not constitute a limitation on the second device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:

[0145] The second processor 701 is the control center of the second device. It connects various parts of the second device via various interfaces and lines. By running or executing software programs and / or modules stored in the second memory 702, and by calling data stored in the second memory 702, it performs various functions and processes data of the second device, thereby providing overall monitoring of the second device. Optionally, the second processor 701 may include one or more processing cores; preferably, the second processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the second processor 701.

[0146] The second memory 702 can be used to store software programs and modules, and the second processor 701 executes various function applications and data processing by running the software programs and modules stored in the second memory 702. The second memory 702 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; and the data storage area can store data created according to the use of the second device, etc. In addition, the second memory 702 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the second memory 702 can also include a memory controller to provide access for the second processor 701 to the second memory 702.

[0147] The second device further includes a second power supply 703 for supplying power to various components. Preferably, the second power supply 703 can be logically connected to the second processor 701 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The second power supply 703 can also include one or more than one direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power state indicator, and the like.

[0148] The second device can also include a second input unit 704, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0149] The embodiment also provides a computer readable storage medium, which stores a computer program, and the computer program is loaded by a processor to execute the arrangement in the configuration switching control method of any one of the above embodiments.

[0150] In the embodiments of the present application, the storage medium can be a magnetic disk, an optical disk, a Read Only Memory (ROM), or a Random Access Memory (RAM), etc.

[0151] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the detailed description of other embodiments above, which will not be described here again.

[0152] In the implementation, each of the above units or structures can be implemented as an independent entity, or can be combined as the same or several entities for implementation, and the specific implementation of each of the above units or structures can be referred to the method embodiments above, which will not be described here again.

[0153] The specific implementation of each operation can refer to the foregoing embodiments, which will not be described here again.

[0154] The foregoing describes in detail a configuration switching method, an electronic device, and a storage medium provided by an embodiment of the present application. The principle and implementation manner of the present application are described by applying specific examples in this paper. The foregoing embodiment description is only used to help understand the method of the present application and its core idea. Meanwhile, for those skilled in the art, the specific implementation manner and application range will be changed according to the idea of the present application. In summary, the content of the specification should not be understood as a limitation on the present application.

Claims

1. A configuration switching method characterized by, The method is applied to a first device comprising a first storage unit, the first storage unit comprising a plurality of first storage areas, the first storage areas having a first mapping relationship with preset first configuration stream files; the method comprises: generating a second switching instruction in response to a preset first switching instruction; the first switching instruction carries target configuration information for communication; sending the second switching instruction to a second device; the second device is configured to analyze the second switching instruction to obtain the target configuration information for configuration switching; determining a first target stream file according to the first mapping relationship and the target configuration information; the first target stream file is any configuration stream file in the plurality of first configuration stream files; performing configuration switching on the configuration of the communication of the first device based on the first target stream file; wherein the first storage unit further comprises a second storage area, the second storage area being different from the first storage area, and the second storage area comprising preset second configuration stream files; after determining the first target stream file according to the first mapping relationship and the target configuration information, the method further comprises: verifying the first target stream file to obtain a first verification result; if the first verification result indicates that the first target stream file is abnormal, obtaining the second configuration stream file; performing configuration switching on the configuration of the communication of the first device based on the second configuration stream file, obtaining first prompt information corresponding to the second configuration stream file, and the first prompt information being used to instruct the first device to load configuration information corresponding to the second configuration stream file.

2. The configuration switching method according to claim 1, wherein the first storage area has a second mapping relationship with preset first configuration information, and the target configuration information is any configuration information in the plurality of first configuration information; determining the first target stream file according to the first mapping relationship and the target configuration information comprises: determining a first target area corresponding to the target configuration information according to the second mapping relationship; the first target area is any storage area in the plurality of first storage areas; determining a first target stream file corresponding to the first target area according to the first mapping relationship.

3. The configuration switching method according to claim 1, wherein The method further comprises: obtaining a first capacity occupied by the first configuration stream file and a first number of the first configuration stream file; determining a second capacity occupying the first storage unit based on the first capacity and the first number; performing partition processing on the first storage unit according to the second capacity, the first capacity and / or the first number, to obtain the plurality of first storage areas.

4. The configuration switching method according to claim 1, wherein The method further comprises: determining first address information corresponding to the first storage area; mapping the first address information with the first configuration stream file to obtain the first mapping relationship.

5. A configuration switching method characterized by comprising: The method is applied to a second device comprising a second storage unit, the second storage unit comprising a plurality of third storage areas, the third storage areas having a third mapping relationship with preset third configuration stream files; the method comprises: receiving a second switching instruction sent by a first device; analyzing the second switching instruction to obtain target configuration information for communication; determine a second target stream file according to the third mapping relationship and the target configuration information; the second target stream file is any configuration stream file in the plurality of third configuration stream files; perform configuration switching on the configuration of the communication of the second device based on the second target stream file; wherein the second storage unit further comprises a fourth storage area, the fourth storage area being different from the third storage area, and the fourth storage area comprising a preset fourth configuration stream file; after determining the second target stream file according to the third mapping relationship and the target configuration information, the method further comprises: performing verification on the second target stream file to obtain a second verification result; if the second verification result indicates that the second target stream file is abnormal, obtaining the fourth configuration stream file; performing configuration switching on the configuration of the communication of the second device based on the fourth configuration stream file, and obtaining second prompt information corresponding to the fourth configuration stream file, the second prompt information being used to instruct the second device to load the configuration information corresponding to the fourth configuration stream file.

6. The configuration switching method according to claim 5, wherein the third storage area and preset second configuration information have a fourth mapping relationship, and the target configuration information is any configuration information in a plurality of second configuration information; determining a second target area corresponding to the target configuration information according to the fourth mapping relationship; the second target area is any storage area in the plurality of third storage areas; determining a second target stream file corresponding to the second target area according to the third mapping relationship. a first memory and a first processor, the first memory storing a computer program, the computer program being executed by the first processor to implement the configuration switching method according to any one of claims 1-4.

7. A first device, comprising: a second memory and a second processor, the second memory storing a computer program, the computer program being executed by the second processor to implement the configuration switching method according to any one of claims 5-6.

8. A second device, comprising: a computer program is stored thereon, the computer program being loaded by a processor to execute the steps in the configuration switching method of the first device according to any one of claims 1-4, or to execute the steps in the configuration switching method of the second device according to any one of claims 5-6.

9. A computer-readable storage medium, characterized in that, ​

Citation Information

Patent Citations

  • FPGA signal modulation and demodulation dynamic reconstruction method, device and system and storage medium

    CN114385077A

  • Configuration switching method, electronic equipment and storage medium

    CN120547254A