Configuration file generation method and related device
By generating configuration files, the RF circuit is automatically configured using circuit files, device model files and working frequency band tables, which solves the problems of high configuration error rate and low efficiency in the existing technology, and achieves efficient and accurate RF circuit configuration.
Patent Information
- Application Number
- CN202310637414.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2024-12-03
AI Technical Summary
The existing configuration file generation method results in high configuration error rate and low efficiency of RF circuits, resulting in incorrect configuration when working in multi-bands, and requires an efficient and accurate configuration file generation method.
By obtaining the circuit file of the connection relationship between RF devices and the model information of the RF device to be configured, the configuration file is automatically generated in combination with the working frequency band table of the RF circuit, including the target RF path and configuration value.
It improves the accuracy and efficiency of configuration files, reduces manual configuration time, reduces configuration error rate, and improves the working ability of RF circuits in multi-band.
Smart Images

Figure CN119067020A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and more specifically, to a configuration file generation method and related devices. Background Art
[0002] The RF circuit is used for baseband processor signal transmission and reception and can usually operate in multiple operating frequency bands and standards. When the RF circuit is working, it is necessary to configure the corresponding RF path and RF parameters for different operating frequency bands according to its configuration file, so as to transmit the data of the corresponding frequency band through the configured RF path and parameters. The error rate of the configuration file generated by the existing configuration file generation method is high, which will lead to a high configuration error rate and low configuration efficiency. Summary of the invention
[0003] The present application provides a configuration file generation method and related devices. The following introduces various aspects involved in the embodiments of the present application.
[0004] In a first aspect, a method for generating a configuration file is provided, wherein the configuration file is used to configure a radio frequency circuit, wherein the radio frequency circuit includes a plurality of radio frequency devices connected to each other, and the method includes: respectively acquiring a circuit file and a device model file, wherein the circuit file is used to characterize a connection relationship between the plurality of radio frequency devices, and the device model file is used to characterize model information of a first radio frequency device to be configured, wherein the first radio frequency device to be configured is a radio frequency device to be configured among the plurality of radio frequency devices; and automatically generating a configuration file according to the circuit file, the device model file, and an operating frequency band table of the radio frequency circuit, wherein the configuration file includes a target radio frequency path corresponding to an operating frequency band in the operating frequency band table and a configuration value of a second radio frequency device to be configured, wherein the configuration value of the second radio frequency device to be configured is the radio frequency device to be configured in the target radio frequency path.
[0005] In a second aspect, a device for generating a configuration file is provided, wherein the configuration file is used to configure a radio frequency circuit, wherein the radio frequency circuit includes a plurality of radio frequency devices connected to each other, and the device includes: an acquisition module, used to respectively acquire a circuit file and a device model file, wherein the circuit file is used to characterize a connection relationship between the plurality of radio frequency devices, and the device model file is used to characterize model information of a first radio frequency device to be configured, wherein the first radio frequency device to be configured is a radio frequency device to be configured among the plurality of radio frequency devices; and a generation module, used to automatically generate a configuration file according to the circuit file, the device model file and an operating frequency band table of the radio frequency circuit, wherein the configuration file includes a target radio frequency path corresponding to an operating frequency band in the operating frequency band table and a configuration value of a second radio frequency device to be configured, wherein the configuration value of the second radio frequency device to be configured is the radio frequency device to be configured in the target radio frequency path.
[0006] In a third aspect, a communication device, a processor, a memory and a transceiver are provided, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to control the terminal device to execute the method described in the first aspect.
[0007] In a fourth aspect, a chip is provided, the chip comprising a processor for calling and running a computer program from a memory, so that a device equipped with the chip executes the method described in the first aspect.
[0008] According to a fifth aspect, a computer-readable storage medium is provided, on which executable code is stored, wherein the code is used to implement the method described in the first aspect.
[0009] The method for generating a configuration file provided in the embodiment of the present application is to automatically generate a configuration file according to the circuit file, the device model file and the working frequency band table of the RF circuit after respectively obtaining a circuit file for characterizing the connection relationship between multiple RF devices and a device model file for characterizing the model information of the RF device to be configured among the multiple RF devices. The configuration file generated in this way is efficient and has a high accuracy rate, so when configuring based on the configuration file, both the accuracy rate and the configuration efficiency will be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is a structural diagram of a communication system used by the radio frequency circuit provided in an embodiment of the present application.
[0011] Figure 2 It is a flowchart of a method for generating a configuration file provided in an embodiment of the present application.
[0012] Figure 3 It is a structural schematic diagram of the radio frequency circuit provided in the embodiment.
[0013] Figure 4 for Figure 3 A partial schematic diagram of the RF circuit in FIG.
[0014] Figure 5 It is a schematic diagram of the format of the circuit file provided in the embodiment of the present application.
[0015] Figure 6 It is a schematic diagram of a model of a first device to be configured provided in an embodiment of the present application.
[0016] Figure 7 It is a schematic diagram of the structure of the device module provided in the embodiment of the present application.
[0017] Figure 8 It is a schematic diagram of the hierarchical structure of the device model file provided in the embodiment of the present application.
[0018] Fig. 9 This is a flow chart of a method for generating a configuration file provided in another embodiment of the present application.
[0019] Fig.10 It is a structural diagram of a configuration file generation device provided in an embodiment of the present application.
[0020] Fig.11 It is a structural diagram of the communication device provided in an embodiment of the present application.
[0021] Fig.12 It is a schematic diagram of the structure of the chip provided in the embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to facilitate understanding of the present application, the present application is described in more detail below based on exemplary embodiments and in conjunction with the accompanying drawings. The same or similar reference numerals are used in the accompanying drawings to represent the same or similar modules. It should be understood that the accompanying drawings are only exemplary and the scope of protection of the present application is not limited thereto.
[0023] A radio frequency circuit is a hardware circuit used in a communication device to help the communication device receive and send wireless signals to achieve wireless communication. Generally speaking, a communication device may include an antenna and a baseband processor. The radio frequency circuit is configured with a radio frequency port for connecting to the baseband processor and an antenna port for connecting to the antenna, so as to connect the antenna and the baseband processor, process the received and sent signals, and transmit the received and sent signals according to the radio frequency path corresponding to the frequency band of the received and sent signals. The baseband processor may also be referred to as a baseband chip. In some embodiments, the baseband processor is a modem.
[0024] The wireless communications supported by the communication device in the embodiment of the present application include, but are not limited to, global system of mobile communication (GSM), code division multiple access (CDMA), wideband code division multiple access (WCDMA), general packet radio service (GPRS), long term evolution (LTE), advanced long term evolution (LTE-A), new radio (NR), NR evolution, LTE-based access to unlicensed spectrum (LTE-U), NR-based access to unlicensed spectrum (NR-U), universal mobile telecommunication (UMT), wireless local area networks (WLAN), wireless fidelity (WiFi), fifth generation communication (5th-generation, 5G) and future wireless communication forms. The future wireless communication form may be, for example, sixth generation (6th-generation, 6G) mobile communication or satellite communication.
[0025] In some embodiments, the wireless communication form may also include wireless communication forms in a carrier aggregation (CA) scenario, a dual connectivity (DC) scenario, or a standalone (SA) networking scenario.
[0026] The communication device in the embodiment of the present application may also be referred to as a terminal device, and the terminal device may also be referred to as user equipment (UE), access terminal, user unit, user station, mobile station, mobile station (MS), mobile terminal (MT), remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc.
[0027] In some embodiments, the communication device may be a station (STATION, ST) in a WLAN. In some embodiments, the communication device may also be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA) device, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a next-generation communication system (such as an NR system), or a terminal device in a future-evolved public land mobile network (PLMN) network or a data card supporting wireless communication function, etc.
[0028] In some embodiments, the communication device may refer to a device that provides voice and / or data connectivity to a user. For example, the communication device may be a handheld device, a vehicle-mounted device, etc. with a wireless connection function. As some specific examples, the communication device may be a mobile phone, a tablet computer (Pad), a laptop computer, a PDA, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc.
[0029] With the continuous upgrading of communication systems (for example, the existing communication system has been upgraded from 2G to 5G), communication equipment can work in multi-standard, multi-band, and multi-card scenarios. Correspondingly, the RF circuit also needs to work in multiple working bands under multiple standards. For example, the RF circuit can support any one or more combinations of 5G NR and backward compatible bands (such as LTE bands). LTE bands include TDD-LTE Band38, Band39, Band40 and Band41, FDD-LTE Band1, Band3 and Band7, etc., 3G bands include Time Division-Synchronous Code Division Multiple Access (TD-SCDMA) Band34 and Band39, WCDMA Band1, Band2, Band5 and Band8, etc. 2G bands include GSM Band 2, Band3, Band 5 and Band 8, etc. NR bands include N77, N78, N79 and other bands.
[0030] In order to enable the RF circuit to operate in multiple frequency bands, the RF circuit may include multiple RF devices. The configuration values and connections of the multiple RF devices can be configured through the configuration file to form one or more RF paths from the baseband processor to the correct antenna in real time, and transmit the wireless signal of the corresponding frequency band through the RF path.
[0031] However, with the upgrade of communication systems, the hardware structure of radio frequency circuits has become more complex. Figure 1 As shown, the RF circuit 100 is provided with the RF port 101 and the antenna port 102 mentioned above. In some embodiments, the RF port 101 includes a transmitting port 103 and a receiving port 104. The RF circuit 100 may include a transceiver circuit 110 and an antenna switch module (ASM) circuit 120. Among them, the transceiver circuit 110 may include a transmitting circuit 111 and a receiving circuit 112.
[0032] The transmitting circuit 111 is connected to the transmitting port 103 and the antenna switch circuit 120 respectively, and is used to transmit signals of different frequency bands received by the transmitting port 103. The transmitting circuit 111 may include a plurality of RF devices to form a plurality of first RF paths, so as to send the received signals to the antenna 300 via the antenna switch circuit 120 through the plurality of first RF paths.
[0033] The receiving circuit 112 is connected to the receiving port 104 and the antenna switch circuit 120 respectively, and is used to receive and transmit signals of different frequency bands received by the antenna 300. The receiving circuit 112 may also include multiple RF devices to form multiple second RF paths, and the multiple second RF paths are used to transmit the received signal transmitted via the antenna switch circuit 120 to the receiving port 104 connected to the baseband processor 200, so that the baseband processor 200 can receive the wireless signal received by the antenna 300.
[0034] The antenna switch circuit 130 is connected to the transceiver circuit 110 and the antenna port 102 respectively and is used to select a third radio frequency path between the transceiver circuit 110 and the antenna port 102. Specifically, when the antenna is used to receive a signal, the antenna switch circuit 130 is used to select the third radio frequency path between the antenna port 102 and the receiving circuit 112; when the antenna is used to transmit a signal, the antenna switch circuit 130 is used to select the third radio frequency path between the transmitting circuit 111 and the antenna port 102.
[0035] The first RF path and the third RF path can be combined to form a RF path for transmitting signals, and the second RF path and the third RF path can be combined to form a RF path for receiving signals. The RF path in the embodiment of the present application can be both a RF path for transmitting signals and a RF path for receiving signals.
[0036] The RF path is reflected by the connection status and configuration value of the RF device. As mentioned above, both the transmitting circuit 111 and the receiving circuit 112 may include multiple RF devices. The embodiment of the present application does not specifically limit the type and quantity of the RF devices included in the transmitting circuit 111 or the receiving circuit 112, as long as the multi-band signal that meets the requirements can be transmitted.
[0037] As an example, the RF devices included in the transmitting circuit 111 may be, for example, a power amplifier (PA), a switching device (such as a single-pole double-throw, a double-pole double-throw, a single-pole three-throw, a single-pole four-throw, etc.), a filter, a capacitor, and a resistor, or a combination of one or more thereof, and the number of any one of the devices may be multiple.
[0038] As another example, the RF device included in the receiving circuit 112 may be, for example, one or more of a low noise amplifier (LNA), a switch device, a filter, a capacitor, and a resistor, and the number of any one of the devices may be multiple. Since different standards and different frequency bands may require different RF devices, there may be more than one of the above RF devices.
[0039] Since the RF devices forming the RF circuit include many kinds and the number of each kind of RF devices can be many. In addition, some of the RF devices in all the RF devices have frequency band or path selection functions, and device path configuration is required (RF devices with multiple pins can be called RF devices to be configured, for example, the devices to be configured are ASM, PA or LNA, etc.), and the other part of the RF devices are passive devices (the part of the RF devices does not need to be configured, for example, the part of the RF devices can be resistors or capacitors, etc.). In an embodiment of the present application, the device to be configured included in the RF circuit is called the first device to be configured. By setting the connection of some of the RF devices in all the RF devices and even setting different pins of the connected RF devices to be configured for connection, different RF paths can be formed, and different RF paths can correspond to different working frequency bands. A configuration file is a file that indicates which RF devices are connected in the RF circuit and which pin of the device to be configured should be connected when connected to form multiple RF paths corresponding to multiple working frequency bands. In some embodiments, the configuration file can also be called RF software configuration.
[0040] As the structure of the RF circuit becomes more and more complex, the configuration files used to configure the RF circuit also become more and more complex. At the current stage, the configuration files are basically configured manually. Given the increasing complexity of the configuration files, it takes a long time to manually configure the configuration files (generally several days), and because it relies heavily on the carefulness of the configuration personnel, the configuration efficiency is low and the error rate of the configuration files is high. When configuring the RF circuit based on the configuration file, the configuration error rate is also correspondingly high. Due to the high error rate, incorrect configuration often requires re-detection and modification, so the configuration efficiency is extremely low.
[0041] In view of this, an embodiment of the present application proposes a method for generating a configuration file, which obtains a circuit file for characterizing the connection relationship between multiple RF devices and a device model file for characterizing the model information of the RF device to be configured among the multiple RF devices, and automatically generates a configuration file according to the circuit file, the device model file, and the working frequency band table of the RF circuit. The configuration file generated in this way is efficient and accurate, so when configuring based on the configuration file, the accuracy and configuration efficiency will be improved.
[0042] Combine the following Figure 2, a detailed description of the configuration file generation method in the embodiment of the present application is given. As mentioned above, the configuration file is used to configure the radio frequency circuit and the radio frequency circuit includes a plurality of radio frequency devices connected to each other. It should be noted that the configuration file generation method can be applied to an electronic device with a computing function, and the electronic device can be, for example, any of the communication devices described above. For example, relevant software can be installed on the electronic device to execute the configuration file generation method through the software. Figure 2 As shown, the method for generating the configuration file may include steps: S210 to S220.
[0043] In step S210: respectively obtain the circuit file and the device model file.
[0044] The circuit file is used to characterize the connection relationship between multiple RF devices. Multiple RF devices are the devices that constitute the above-mentioned RF circuit. The RF circuit can usually be a printed circuit board (PCB) or circuit board. The circuit file can be generated after the RF circuit is drawn.
[0045] In some embodiments, in order to reduce configuration time, the circuit file can reuse the netlist file (Netlist) generated when drawing the RF circuit using drawing software (for example, the software can be AD, PADS or allegro). Therefore, the circuit file can be referred to as a netlist file or a circuit board netlist file. The netlist file contains the connection relationship between the pins of each RF device in the RF circuit and the device value of each RF device. It should be noted that if the RF circuit is a non-stacked board design, there is only one corresponding netlist file. If the RF circuit is a stacked board design, there are multiple netlist files. The netlist files are stored in a fixed file directory for subsequent use.
[0046] The circuit file includes multiple connection points in the RF circuit and a collection of pins of RF devices connected to a single connection point in the multiple connection points. Each connection point represents a connection point in the PCB diagram corresponding to the RF circuit. Figure 3-Figure 5 Provide a detailed description of the circuit file.
[0047] like Figure 3 As shown, a radio frequency circuit may generally include multiple connection points (nets), each of which is connected to the pins (pins) of different radio frequency devices. Correspondingly, the connection relationship between multiple radio frequency devices in the radio frequency circuit is characterized by these connection points. Among them, each radio frequency device has one or more physical pins.
[0048] Specific to Figure 3The radio frequency circuit in the embodiment may include seven radio frequency devices 1-7, and the seven radio frequency devices are connected through four connection points. Figure 4 As shown, connection point 1 is connected to pin 1 of RF device 1, pin 2 of RF device 2, and pin 3 of RF device 3. Figure 3 , the RF device 2 has three pins, namely, pin 2, pin 2-1 and pin 2-2. Figure 3 The RF circuit in the circuit file 500 can be as follows Figure 5 shown.
[0049] The device model file is used to characterize the model information of the first RF device to be configured. The first RF device to be configured is a RF device to be configured among multiple RF devices forming an RF circuit. The number of first RF devices to be configured may include multiple, and the device model file may also include multiple, and the multiple device model files correspond one to one with the number of multiple first RF devices to be configured. At the same time, the device model file may be marked with a code name, and the code name is used to indicate the target device model file in the device model file corresponding to the target first RF device to be configured.
[0050] The model information of the first RF device to be configured is equivalent to the user manual of the first device to be configured, so the device model file may include information similar to the user manual of the first device to be configured. For example, the device model file may include information such as the name, components, control information, and pin connection form of the first device to be configured. The difference is that the device model file is established according to a predetermined modeling rule, so the device model file can be read by a device with a computing function to obtain information equivalent to the user manual of the first device to be configured.
[0051] It should be noted that the device model files corresponding to the same first device to be configured are the same. The difference is that two identical device model files may be marked with different code names to distinguish the same first device to be configured in the radio frequency circuit.
[0052] In some embodiments, the device model file can be established in advance. For example, the RF software personnel can write the device model file according to the modeling rules in the document writing software. In view of this, the same first device to be configured only needs to be modeled once to complete its corresponding device model file. In addition, as long as the device model file of the first device to be configured is established, if there are other RF circuits that will also use the first device to be configured, then the device model file of the first device to be configured that has been established can be directly reused without re-modeling. Therefore, the device model file is highly reusable, which greatly improves the configuration efficiency of the RF circuit.
[0053] In step S220: a configuration file is automatically generated according to the circuit file, the device model file and the working frequency band table of the radio frequency circuit.
[0054] The working frequency band table of the radio frequency circuit can be understood as a frequency band table of signals that can be transmitted by the radio frequency circuit during operation. As mentioned above, the radio frequency circuit can work in multiple standards, and each standard can include multiple working frequency bands. At the same time, since mobile communications can use communication methods such as carrier aggregation, multiple working frequency bands can also be arbitrarily combined. In view of this, the working frequency band table of the radio frequency circuit includes a frequency band combination table, and the frequency band combination table is a table formed by all single frequency bands supported by the radio frequency circuit and various single frequency band combination frequency bands. The frequency band combination table can list all standards supported by the radio frequency circuit and all frequency bands supported under each standard, as well as a combination of some frequency bands in all frequency bands. For example, the combined frequency band can be all LTE carrier aggregation (CA) combinations, NR NSA combinations, and carrier aggregation (CA) combinations. In some embodiments, the frequency band combination table of the radio frequency circuit can be obtained from the protocol or the hardware design of the radio frequency circuit.
[0055] In other embodiments, the working frequency band table may also include a constraint configuration table, which may be understood as the constraint information of the RF path designed by the designer when designing the RF circuit. As an example, the constraint configuration table includes a one-to-one list of multiple RF ports and multiple antennas. For each RF port in the list, there is a corresponding antenna. In other words, the constraint configuration table constrains the RF path to be connected to the RF port and the antenna corresponding to the RF port defined in the constraint table. As an example, the constraint configuration table may be expressed as [RF port-antenna].
[0056] As mentioned above, the configuration file is used to configure the RF circuit so that the RF circuit can meet the transmission of signals in different standards and frequency bands in real time. The configuration file may include a target RF path corresponding to the working frequency band in the working frequency band table and a configuration value of the second RF device to be configured, and the configuration value of the second RF device to be configured is the RF device to be configured in the target RF path.
[0057] The embodiment of the present application does not specifically limit the form of automatically generating a configuration file based on the circuit file, the device model file and the operating frequency band table of the RF circuit, as long as the electronic device with computing function can automatically generate a configuration file based on the circuit file, the device model file and the operating frequency band table of the RF circuit.
[0058] As an implementation method, automatically generating a configuration file based on a circuit file, a device model file, and an operating frequency band table of an RF circuit may include: determining a target RF path corresponding to the operating frequency band based on the circuit file and the operating frequency band table of the RF circuit; determining a configuration value of a second-configured RF device based on the device model file; and combining the target RF path and the configuration value of the second-configured RF device and storing them as a configuration file.
[0059] The number of target RF paths is consistent with the number of working frequency bands in the working frequency band table and corresponds one to one. The target RF path may also include multiple RF devices, some of which include multiple pins (for example, the RF device is ASM, PA, LNA, etc.), as mentioned above, these devices are called RF devices to be configured. In an embodiment of the present application, the device to be configured under the target RF path can be called a second device to be configured.
[0060] As mentioned above, both the device model file and the second configuration have corresponding device codes, therefore, determining the configuration value of the second configuration RF device according to the device model file may include: searching the device model file for a target device model file corresponding to the device code of the second RF device to be configured from the device model file according to the device code of the second RF device to be configured, and determining the configuration value of the second RF device to be configured according to the working frequency band and the target device model file. The configuration value may characterize how the pins inside the second device to be configured should be connected and what the working frequency band that the second device to be configured can transmit under the corresponding connection is.
[0061] Since the type of chip processor system to which the RF circuit is connected can be of various types, for example, the chip processor system can be a Qualcomm processor system or an MTK Gen98 processor system. Accordingly, the configuration file generated by the method according to the embodiment of the present application can have multiple formats, so that the RF circuit can be configured in different processor systems. In other words, the configuration file in the embodiment of the present application can be adapted to different chip processor systems.
[0062] As an implementation method, the configuration file in the embodiment of the present application can be a universal configuration file. The universal configuration file can be understood as a configuration file that can be read by different chip processor systems, and different chip processor systems can convert the configuration file into a target configuration file corresponding to their system when reading the configuration file. For example, when a Qualcomm processor system reads the configuration file, it can automatically convert it into an RFC file, and when an MTK Gen98 processor system reads the configuration file, it can automatically convert it into a CDF and ANT DB file.
[0063] As another implementation, when the configuration values of the target RF path and the second configured RF device are combined and stored as a configuration file, the configuration values of the target RF path and the second RF device to be configured can be combined and stored as a configuration file matching the chip processor according to the chip processor connected to the RF circuit. For example, an option to select a save format may appear on the interface of the electronic device, and after selecting the target format that matches the chip processor, a configuration file in the format is automatically generated according to the format. For example, the format options may be RFC XML files, CDF XML, or ANT DB EXCEL, etc.
[0064] By implementing the embodiments of the present application, software can be used to automatically generate a configuration file based on the circuit file, the device model file, and the operating frequency band table of the RF circuit. Compared with manual configuration, the configuration file generated by this method is efficient and accurate. Therefore, when configuring based on the configuration file, both the accuracy and configuration efficiency will be improved.
[0065] The embodiment of the present application does not specifically limit the method of determining the target radio frequency path corresponding to the working frequency band according to the circuit file and the working frequency band table of the radio frequency circuit.
[0066] As an implementation method, after searching multiple RF paths connecting the RF port and the antenna according to the circuit file and the constraint configuration table described above, the target RF path corresponding to the working frequency band can be determined from the multiple RF paths according to the frequency band combination table.
[0067] Specifically, searching for multiple RF paths connecting the RF port and the antenna according to the circuit file and the constraint configuration table may include: 1. parsing the circuit file to generate a first pairing array structure; 2. generating a second pairing array structure according to the first pairing array structure; 3. traversing the RF ports in the constraint configuration table and searching for multiple RF paths connecting the RF port and the antenna according to the first pairing array structure and the second pairing array structure.
[0068] As mentioned above, the circuit file can include the connection relationship between the connection points and the pins of the RF device. Figure 5 When the format shown is used, parsing the circuit file may include reading the circuit file one by one and merging the read data to generate a first pairing array structure. The first pairing array structure includes a connection point and a set of pins of the RF device connected to the connection point. Exemplarily, the first pairing array structure is [connection point-[pin]], where the connection point represents the current connection point, and [pin] represents a list of all pins connected to the current connection point. Among them, [] represents a data structure, [pin] represents a group of pins, [connection point-[pin]] represents a group of connection points, and each connection point in a group of connection points has a corresponding connected group of pins.
[0069] The second pairing array structure includes a first connection point in the connection points and a second connection point set in the connection points, and the second connection point is connected to the first connection point through a pin of the radio frequency device. Exemplarily, the first connection point is connection point 1, the second connection point is connection point 2, and the second pairing array structure can be expressed as [connection point 1-[connection point 2]].
[0070] Since the first pairing array structure defines which pins a connection point is connected to, and which connection points a pin is respectively connected to, generating the second pairing array structure according to the first pairing array structure can be understood as searching for a set of adjacent connection points for the first connection point within the first pairing array structure. An adjacent connection point is a connection point connected to the first connection point through a pin of a radio frequency device, and an adjacent connection point in the embodiment of the present application can be referred to as a second connection point.
[0071] Traversing the RF ports in the constraint configuration table and searching for multiple RF paths connecting the RF ports and antennas according to the first pairing array structure and the second pairing array structure can be understood as: for [RF port-antenna], starting from one RF port in sequence, searching for connection points and pins of RF devices in the first pairing array structure and the second pairing array structure to form multiple RF paths that can connect to the antenna corresponding to the RF port, and saving the multiple RF paths searched under the RF port-corresponding antenna. Then, search for multiple RF paths under the next RF port-corresponding antenna in sequence until all the pairs in [RF port-antenna] are traversed.
[0072] As mentioned above, the device model file may be established in advance according to the modeling rules. The embodiment of the present application does not specifically limit the modeling rules, as long as the device model file can represent the model information of the first radio frequency device to be configured.
[0073] As an implementation method, the first device to be configured may be modeled according to the following rules: the first device to be configured is divided into a plurality of device modules and each device module is further divided into a plurality of functional modules. That is, the first device to be configured may include a device module, and the device module includes a functional module. Correspondingly, the device model file may include the properties of the device module, the internal connection information of the device module, the properties of the functional module under the device module, the external connection information of the functional module, and the truth table of the functional module.
[0074] Among them, the attributes of the device module include the name of the device module, the number of functional modules included in the device module, and the control information of the device module. The attributes of the functional module include the name of the functional module and the type of the functional module. It should be noted that the functional module can also include a sub-functional module, and the relationship between the sub-functional module and the functional module and the content contained are generally consistent with the relationship between the device module and the functional module and the content contained, which will not be repeated here.
[0075] For ease of understanding, the following Figure 6-Figure 8 The device model file in the embodiment of the present application is schematically described.
[0076] like Figure 6 As shown, the model 600 of the first device to be configured may be composed of a three-layer architecture, wherein the first layer is a device module 610 (Device), the second layer is a function module 620 (Module), and the third layer is a sub-function module 630 (Block).
[0077] The device module 610 refers to a specific complete chip device, such as a switch device, a PA device, an LNA device, etc., which is characterized by having independent packaging and physical pins and independent chip functions.
[0078] Functional module 620 refers to a sub-functional module 630 belonging to device module 610. For example, when device module 610 is a transceiver module, its functional module 620 may be a transmitting module (TX Module) and a receiving module (RX Module). Functional module 620 may be divided according to the general mobile industry processor interface (MIPI) control bus or general purpose input / output GPIO (General Purpose Input / Output) control line to which the modules in device module 610 are connected. Specifically for TX Module and RX Module, TX Module generally uses an independent control bus or port, while RX Module uses a control bus or port different from that of TX Module, so the two modules are independent of each other in the control domain.
[0079] The sub-functional module 630 is a sub-functional unit under the functional module 620. For example, the sub-functional module 630 may be an ASM, a PA, an LNA, a coupler or a surface acoustic wave (SAW), etc. Each Block corresponds to one or more control registers.
[0080] The model information of the first device to be configured also includes at least the following information: Device external pins, sub-modules included in the Device, sub-blocks included in each module and virtual pins of the block, the connection relationship between the device and the block, the connection relationship between the blocks, the connection relationship within the block, etc.
[0081] For ease of understanding, the following Figure 7 The hierarchical relationship among the device module 610 , the functional module 620 , and the sub-functional module 630 is schematically described.
[0082] like Figure 7 As shown, the functional module 620 under the device module 610 includes a first functional module 621 and a second functional module 622. The sub-functional module 630 included in the first functional module 621 is a low noise amplifier LNA-0, and the sub-functional modules 630 included in the second functional module 622 are: a power amplifier PA-0, an antenna switch ASM-1 and a coupler COUPLER-2.
[0083] Corresponding to the above content, the device model file is as follows Figure 8 The hierarchical relationship in includes the following: the device module information includes attributes, connection relationships (UI), and corresponding functional module information. Among them, the attributes include the name of the device module, the number of corresponding functional modules, control information, etc. The connection relationship includes the device module and internal connection information.
[0084] The information of the corresponding functional module includes three parts: the attributes of the functional module, the connection relationship, and the information of the sub-functional modules corresponding to the functional module. Among them, the attributes of the functional module include the control information of the functional module, the name of the functional module and the number of the corresponding sub-functional modules. The connection relationship includes the connection information between the functional modules.
[0085] The information of the sub-function module corresponding to the function module includes attributes, connection relationships and truth tables. Among them, the attributes include the name of the sub-function module, the type of the sub-function module, etc. The connection relationship includes the connection information between the sub-function module and other sub-function modules. The truth table part contains the physical connection relationship corresponding to different configuration values. Among them, the modules are divided into ASM, PA, LNA, Embedded Transmission Module (Embedded Transmission Module, ETM), COUPLER or tuner (TUNER) and other types. It should be noted that the control type in the above control information can include MIPI, GPIO, SPI and other methods.
[0086] Combine the following Fig. 9The specific process of the method in the embodiment of the present application is described. It should be understood that the method in the embodiment of the present application is executed by software without manual configuration. Fig. 9 As shown, this method only requires inputting the circuit file, device model file and working frequency band table into the automatic configuration software, which can automatically generate the configuration file according to the following method. The specific process of the software is as follows:
[0087] Step 1: Model the RF device to be configured used in the RF circuit.
[0088] For example, the RF device to be configured may be modeled according to the above-described rules for device modeling to obtain a device model file corresponding to the RF device to be configured.
[0089] Step 2: Create a mapping table of device codes and device model files, indicating the device codes to be configured and their corresponding model files.
[0090] Step 3: Get the netlist file of the RF circuit.
[0091] For example, you can obtain the RF circuit netlist file from the RF hardware and store the netlist file in a fixed file directory for subsequent use.
[0092] Step 4: Obtain the RF circuit frequency band combination table and constraint configuration table.
[0093] For example, a frequency band combination table can be obtained from the protocol or hardware, which lists all standards supported by the RF circuit and all frequency bands supported under each standard, as well as all LTE carrier aggregation (CA) combinations, NR NSA combinations and carrier aggregation (CA) combinations.
[0094] Step 5: Parse the netlist file.
[0095] The netlist files are read one by one and the data is merged to obtain a [net-[pin]] structure, where net is the current net point and [pin] represents a list of all pins connected to the net.
[0096] Note: [] represents an array structure, and [net] represents a group of nets.
[0097] Step 6: Generate adjacency net table.
[0098] Then perform an adjacency table search on each net, and finally obtain an adjacency net table [net1-[net2]].
[0099] Step 7: According to the RF port-antenna (RFIC port-ant) table in the constraint configuration table, search for paths from RFIC port one by one until the end point ant is found.
[0100] Step 8: Save and record the path information.
[0101] Store all paths found under the rfic port-ant pair into a data structure
[0102] Step 9: Search for the next RFIC port-ant pair until all pairs are traversed.
[0103] After completing the search for one RFIC port-ant pair, proceed to the next group search until all pairs are searched.
[0104] Step 10: Adapt and convert the path information into an RFC file.
[0105] Based on the saved path information and the frequency band combination table, the result is an RFC file. The RFC file can be a RF configuration file for different platforms, such as the RFC XML of the Qualcomm platform, or a RF configuration result file for other platforms, and is not limited to one platform. However, the core of the RF configuration of different platforms is the configuration value of the RF path and the RF device to be configured under the RF path.
[0106] By executing the embodiments of the present application, when a new RF circuit is promoted, its RF configuration can be automatically executed by software to automatically generate a configuration file. The configuration time can be shortened by more than 80%, and at the same time, it can reduce configuration errors caused by human errors and speed up the promotion time. In addition, since the device model file is reusable, different RF circuits only need to model the different RF devices to be configured, and the rest of the operations can be completed by the software, and the model of the RF device to be configured after the modeling is completed can be used for different RF circuits, so the configuration efficiency can be effectively improved.
[0107] Combination of the above Figures 1 to 9 The method embodiment of the present application is described in detail. Figures 10 to 12 The device embodiment of the present application is described in detail. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so the parts not described in detail can refer to the previous method embodiment.
[0108] Fig.10 FIG. 1 is a schematic diagram of a configuration file generation device according to an embodiment of the present application. The configuration file generation device 1000 can be applied to a terminal device, and the configuration file generation device 1000 can include: an acquisition module 1010 and a generation module 1020.
[0109] The acquisition module 1010 is used to respectively acquire a circuit file and a device model file, wherein the circuit file is used to characterize the connection relationship between the multiple RF devices, and the device model file is used to characterize the model information of the first RF device to be configured, and the first RF device to be configured is the RF device to be configured among the multiple RF devices.
[0110] The generation module 1020 is used to automatically generate a configuration file based on the circuit file, the device model file and the working frequency band table of the RF circuit, wherein the configuration file includes a target RF path corresponding to the working frequency band in the working frequency band table and a configuration value of a second RF device to be configured, and the configuration value of the second RF device to be configured is the RF device to be configured in the target RF path.
[0111] Optionally, the generation module 1020 is used to determine the target RF path corresponding to the working frequency band according to the circuit file and the working frequency band table of the RF circuit; determine the configuration value of the second-configured RF device according to the device model file; and store the target RF path and the configuration value of the second-configured RF device in combination as the configuration file.
[0112] Optionally, the working frequency band table includes a frequency band combination table and a constraint configuration table, the constraint configuration table includes a RF port and an antenna corresponding to the RF port, and the generation module 1020 is used to search for multiple RF paths connecting the RF port and the antenna according to the circuit file and the constraint configuration table; determine the target RF path corresponding to the working frequency band from the multiple RF paths according to the frequency band combination table.
[0113] Optionally, the generating module 1020 is used to parse the circuit file to generate a first pairing array structure, the first pairing array structure including connection points and a set of pins of RF devices connected to the connection points; generate a second pairing array structure based on the first pairing array structure, the second pairing array structure including a first connection point among the connection points and a second connection point set among the connection points, the second connection point being connected to the first connection point through the pins of the RF device; traverse the RF ports in the constraint configuration table and search for multiple RF paths connecting the RF port and the antenna based on the first pairing array structure and the second pairing array structure.
[0114] Optionally, the device model file and the second RF device to be configured both have corresponding device codes, and the generation module 1020 is used to search the target device model file corresponding to the device code of the second RF device to be configured from the device model file according to the device code of the second RF device to be configured; and determine the configuration value of the second RF device to be configured according to the operating frequency band and the target device model file.
[0115] Optionally, the generating module 1020 is used to combine the target RF path and the configuration value of the second RF device to be configured and store them as a configuration file matching the chip processor according to the chip processor connected to the RF circuit.
[0116] Optionally, the first RF device to be configured includes a device module, the device module includes a functional module, and the device model file includes properties of the device module, internal connection information of the device module, properties of the functional module, external connection information of the functional module, and physical connection relationships of the functional module under different configuration values.
[0117] Optionally, the attributes of the device module include the name of the device module, the number of the functional modules and control information, and the attributes of the functional module include the name of the functional module and the type of the functional module.
[0118] Optionally, the frequency band combination table includes standards supported by the radio frequency circuit, frequency bands supported by the standards, and combinations of the frequency bands.
[0119] Optionally, the circuit file is a netlist file generated by software for drawing the radio frequency circuit.
[0120] Combine the following Fig.11 A communication device 1100 in an embodiment of the present application is introduced. The communication device 1100 can be used to implement the method described in the above method embodiment.
[0121] It should be understood that the communication device 1100 can be applied to any type of terminal device mentioned above.
[0122] The communication device 1100 may include one or more processors 1110. The processor 1110 may support the communication device 1100 to implement the method described in the foregoing method embodiment.
[0123] The processor 1110 may be a general-purpose processor or a special-purpose processor. For example, the processor may be a central processing unit (CPU). Alternatively, the processor may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0124] The communication device 1100 may further include one or more memories 1120. The memory 1120 stores a program, which can be executed by the processor 1110 to control the communication device 1100 to execute the method described in the above method embodiment. The memory 920 may be independent of the processor 1110 or integrated in the processor 1110.
[0125] The communication device 1100 may further include a transceiver 1130. The processor 1110 may communicate with other devices through the transceiver 1130. For example, the processor 1110 may perform data transmission and reception with other devices through the transceiver 1130.
[0126] like Fig.12 As shown, a chip 1200 is also provided in an embodiment of the present application, including a processor 1210, which can be used to call and run a computer program from a memory, so that a device equipped with the chip executes the method described in the above method embodiment. It can be understood that the processor can be any type of processor mentioned above. It can be understood that the memory can be independent of the chip or integrated in the chip.
[0127] The embodiment of the present application also provides a machine-readable storage medium for storing a program, and the program enables a computer to execute the method in each embodiment of the present application.
[0128] The embodiment of the present application also provides a computer program product. The computer program product includes a program. The program enables a computer to execute the method in each embodiment of the present application.
[0129] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a machine-readable storage medium, or transmitted from one machine-readable storage medium to another machine-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The machine-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0130] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments of the present disclosure can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present disclosure.
[0131] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0132] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0133] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0134] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for generating a configuration file, It is characterized in that The configuration file is used to configure a radio frequency circuit, the radio frequency circuit includes a plurality of radio frequency devices connected to each other, and the method includes: Respectively acquiring a circuit file and a device model file, wherein the circuit file is used to characterize the connection relationship between the plurality of RF devices, and the device model file is used to characterize the model information of a first RF device to be configured, wherein the first RF device to be configured is a RF device to be configured among the plurality of RF devices; A configuration file is automatically generated according to the circuit file, the device model file and the working frequency band table of the RF circuit, wherein the configuration file includes a target RF path corresponding to the working frequency band in the working frequency band table and a configuration value of a second RF device to be configured, and the configuration value of the second RF device to be configured is the RF device to be configured in the target RF path.
2. The method according to claim 1, It is characterized in that The automatically generating a configuration file according to the circuit file, the device model file and the working frequency band table of the radio frequency circuit comprises: Determine a target radio frequency path corresponding to the working frequency band according to the circuit file and the working frequency band table of the radio frequency circuit; Determine a configuration value of the second configuration radio frequency device according to the device model file; The target RF path and the configuration value of the second configuration RF device are combined and stored as the configuration file.
3. The method according to claim 2, It is characterized in that The working frequency band table includes a frequency band combination table and a constraint configuration table, the constraint configuration table includes a radio frequency port and an antenna corresponding to the radio frequency port, and determining a target radio frequency path corresponding to the working frequency band according to the circuit file and the working frequency band table of the radio frequency circuit includes: Searching for a plurality of radio frequency paths connecting the radio frequency port and the antenna according to the circuit file and the constraint configuration table; A target radio frequency path corresponding to the working frequency band is determined from the multiple radio frequency paths according to the frequency band combination table.
4. The method according to claim 3, wherein the circuit file and the constraint configuration table are used to search for multiple RF paths connecting the RF port and the antenna. include: Parsing the circuit file to generate a first pairing array structure, wherein the first pairing array structure includes a connection point and a pin set of a radio frequency device connected to the connection point; generating a second pairing array structure according to the first pairing array structure, wherein the second pairing array structure includes a first connection point among the connection points and a second connection point set among the connection points, and the second connection point is connected to the first connection point through a pin of the radio frequency device; The RF ports in the constraint configuration table are traversed and multiple RF paths connecting the RF ports and the antenna are searched according to the first pairing array structure and the second pairing array structure.
5. The method according to claim 2, It is characterized in that The device model file and the second radio frequency device to be configured both have corresponding device codes, and determining the configuration value of the second configured radio frequency device according to the device model file includes: According to the device code of the second radio frequency device to be configured, searching the device model file for a target device model file corresponding to the device code of the second radio frequency device to be configured; The configuration value of the second radio frequency device to be configured is determined according to the operating frequency band and the target device model file.
6. The method according to claim 2, It is characterized in that The step of combining the target radio frequency path and the configuration value of the second configuration radio frequency device and storing them as the configuration file comprises: According to the chip processor connected to the radio frequency circuit, the target radio frequency path and the configuration value of the second radio frequency device to be configured are combined and stored as a configuration file matching the chip processor.
7. The method according to claim 1, It is characterized in that The first RF device to be configured includes a device module, the device module includes a functional module, and the device model file includes properties of the device module, internal connection information of the device module, properties of the functional module, external connection information of the functional module, and physical connection relationships of the functional module under different configuration values.
8. The method according to claim 7, It is characterized in that The attributes of the device module include the name of the device module, the number of the functional modules and control information, and the attributes of the functional module include the name of the functional module and the type of the functional module.
9. The method according to claim 1, It is characterized in that The frequency band combination table includes the standards supported by the radio frequency circuit, the frequency bands supported by the standards, and the combination of the frequency bands.
10. The method according to claim 1, It is characterized in that The circuit file is a netlist file generated by software for drawing the radio frequency circuit.
11. A configuration file generating device, It is characterized in that The configuration file is used to configure a radio frequency circuit, the radio frequency circuit includes a plurality of radio frequency devices connected to each other, and the apparatus includes: an acquisition module, used to respectively acquire a circuit file and a device model file, wherein the circuit file is used to characterize the connection relationship between the plurality of RF devices, and the device model file is used to characterize the model information of a first RF device to be configured, wherein the first RF device to be configured is a RF device to be configured among the plurality of RF devices; A generation module is used to automatically generate a configuration file based on the circuit file, the device model file and the working frequency band table of the RF circuit, wherein the configuration file includes a target RF path corresponding to the working frequency band in the working frequency band table and a configuration value of a second RF device to be configured, and the configuration value of the second RF device to be configured is the RF device to be configured in the target RF path.
12. A communication device, It is characterized in that include: A processor, a memory and a transceiver, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to control the terminal device to execute the method as described in any one of claims 1 to 10.
13. A chip, It is characterized in that include: A processor, used to call and run a computer program from a memory, so that a device equipped with the chip executes the method according to any one of claims 1 to 10.
14. A computer-readable storage medium having executable code stored thereon, It is characterized in that The code is used to implement the method according to any one of claims 1-10.
