Instruction timing sending method and device

By using a sorting control module with a memory and comparator in the broadband and narrowband satellite communication chip, instructions are dynamically sorted and sent according to timestamps, solving the problem of instruction sorting delay and improving the chip's working efficiency and memory utilization.

CN122026979APending Publication Date: 2026-05-12HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411613033.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

Broadband and narrowband satellite communication chips may issue multiple instructions at the same time, and these instructions have a specific execution order requirement, but existing technologies cannot effectively sort them, resulting in low chip efficiency.

Method used

A sorting control module with one memory block and one comparator is used to dynamically sort instructions by timestamps and send them to the front-end FEM module when the instruction time arrives, thereby reducing sorting latency and memory resource consumption.

Benefits of technology

This enables instructions to be executed sequentially, improving chip efficiency and logic complexity while reducing memory resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122026979A_ABST
    Figure CN122026979A_ABST
Patent Text Reader

Abstract

The invention provides an instruction timing sending method and device. According to the method, the instructions are sorted in the process of issuing the control instructions by the wide-narrow-band satellite communication chip, so that the front-end FEM module can be configured based on the timestamps and the instruction information of the sorted control instructions, the sorting time is shortened, and the working efficiency of the chip is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal equipment, and in particular to a method and apparatus for timing instruction transmission. Background Technology

[0002] When working, broadband and narrowband satellite communication chips control the downstream FEM (Front-end Modules) devices by issuing commands, thereby realizing the relevant functions.

[0003] However, broadband and narrowband satellite communication chips may issue multiple commands simultaneously, such as voltage configuration and power amplifier (PA) initialization. These commands have a specific execution order and need to be sent to the FEM device at different times for execution. Therefore, it is necessary to rationally sort these commands before sending them to the FEM device for execution, thereby improving the chip's operating efficiency. Summary of the Invention

[0004] This application provides a method and apparatus for timing instruction transmission, which aims to sort the instructions during the process of writing instructions issued by broadband and narrowband satellite communication chips into memory, thereby reducing sorting latency and improving the chip's working efficiency.

[0005] In a first aspect, embodiments of this application provide an instruction timing transmission device. The device includes a first communication chip, a sorting control module, and a front-end FEM module. The first communication chip is connected to the front-end FEM module through the sorting control module. The first communication chip is configured to: issue multiple control instructions to be sorted, each control instruction including a first timestamp and instruction information; the sorting control module is configured to: during the process of receiving the multiple control instructions to be sorted, sort the multiple control instructions based on the first timestamp of each control instruction to obtain multiple sorted control instructions, each sorted control instruction including the first timestamp and the instruction information; the front-end FEM module is configured to: sequentially acquire the multiple sorted control instructions and configure based on the instruction information of each sorted control instruction.

[0006] For example, the first communication chip mentioned above can be a broadband or narrowband satellite communication chip. The control commands it issues include, but are not limited to, voltage configuration and PA initialization. These commands are used to configure the subsequent FEM devices. The frequency and number of commands it issues are determined according to its current operating state, and this application embodiment does not limit this.

[0007] For example, the values ​​corresponding to the first timestamp of each of the above-mentioned control instructions to be sorted may be different or the same, and this application embodiment does not limit this.

[0008] For example, after the sorting control instruction is issued to the sorting control module, the sorting control module will first cache it, then sort it, and then send it to the front-end FEM module when the time corresponding to its timestamp arrives.

[0009] It is understandable that the first timestamp and instruction information of the above-mentioned control instructions to be sorted are the same as the first timestamp and instruction information of the above-mentioned sorted control instructions. The sorting operation of the sorting control module is merely an operation on storing the address in memory.

[0010] For example, after the sorting control module completes the sorting of the control instructions to be sorted, the front-end FEM module obtains the sorted control instructions in sequence based on the sorting, and performs configuration based on the instruction information of the obtained sorted control instructions.

[0011] Therefore, by sorting the control commands issued by the broadband and narrowband satellite communication chips, the control commands can be executed by the front-end FEM module in chronological order, thereby improving the chip's working efficiency.

[0012] According to the first aspect, the device further includes a transmission control module, and the sorting control module is connected to the front-end FEM module through the transmission control module; the transmission control module is configured to: sequentially read instructions from the sorting control module, and send the read sorted control instructions to the front-end FEM module according to their corresponding first timestamp, so that the front-end FEM module can be configured based on the sorted control instructions.

[0013] For example, the above-mentioned sending control module reads the instructions sequentially according to the order of each sorted control instruction in memory, and sends the instruction to the front-end FEM module when the timer of the first timestamp of the read instruction arrives.

[0014] Therefore, by moving the timestamp sorting action to the sending control module, which only sends the timestamp to the subsequent FEM module when it arrives, the logic complexity of the subsequent FEM module is reduced, which can effectively improve the chip's design frequency.

[0015] According to the first aspect, or any implementation of the first aspect above, the sorting control module includes a sorting unit, the sorting unit including a first memory, a first comparator, and a first memory reader / writer, the first memory being connected to the first comparator through the first memory reader / writer; the first memory is used to: receive and store a plurality of control instructions to be sorted, and to receive and store a plurality of sorted control instructions; the first memory reader / writer is used to: read the plurality of control instructions to be sorted from the first memory and send them to the first comparator, and to receive a comparison result returned by the first comparator, sort the plurality of control instructions to be sorted based on the comparison result, and write the resulting plurality of sorted instructions into the first memory; the first comparator is used to: compare the first timestamps of the plurality of control instructions to be sorted read by the first memory reader / writer, and return the resulting comparison result to the first memory reader / writer.

[0016] For example, the first memory setting described above has a storage queue and its corresponding read / write address.

[0017] Therefore, by sorting the instructions during the instruction issuance process, the effect of dynamic instruction sorting is achieved, reducing sorting time. In addition, this embodiment uses only one memory to store the control instructions to be sorted and the sorted instructions. Compared with the above embodiment which uses two memory blocks for storage, this embodiment reduces the consumption of memory resources.

[0018] According to the first aspect, or any implementation of the first aspect above, the first memory reader / writer is further configured to: after the first memory has completed storing the second of the plurality of sorting control instructions, start reading instructions from the first memory.

[0019] Understandably, when the first unordered control instruction is written into memory, its timestamp does not need to be compared; it can be directly written into the first storage space of memory. When the second unordered control instruction is written into memory, it needs to be compared with the first unordered control instruction. Therefore, the first memory reader needs to start reading instructions from memory after the second unordered control instruction is written.

[0020] According to the first aspect, or any implementation of the first aspect above, the working state of the sorting unit includes: a reset state, a sorting completion state, a sorting state, a jump state, and a waiting state; the sorting unit is configured to: enter a reset state before the first communication chip issues the control instruction to be sorted; when the sorting unit is in the reset state, obtain the number of written control instructions to be sorted, and when the number of instructions is greater than or equal to 2, jump to the sorting completion state; the sorting unit is further configured to: when the sorting unit enters the sorting completion state from the reset state, sort the two written instructions to be sorted, and after sorting, set the next control instruction to be sorted as the current control instruction to be sorted, and jump to the sorting state; the sorting unit is further configured to: when the sorting unit enters the sorting state, sort the current control instruction to be sorted, and after sorting, jump to the sorting completion state; the sorting unit is further configured to: when the sorting unit is in the sorting state, and the current... If the timestamp of the control instruction to be sorted is the same as the timestamp of the previous control instruction to be sorted, the sorting unit jumps to the jump state; the sorting unit is further configured to: insert the current control instruction to be sorted into the position after the previous control instruction to be sorted when the sorting unit enters the jump state, and jump to the sorting completed state after the insertion is completed; the sorting unit is further configured to: jump to the sorting waiting state when the sorting unit has completed sorting all the written control instructions to be sorted; the sorting unit is further configured to: obtain the number of instructions that the first communication chip will send the control instructions to be sorted again when the sorting unit is in the sorting waiting state, and jump to the sorting completed state when the number of instructions is greater than or equal to 2; the sorting unit is further configured to: when the sorting unit jumps from other states to the sorting completed state, if the instruction to be sorted is written to the first memory, the sorting unit remains in the current working state, and the other states include the sorting completed state, the sorting state, and the jump state.

[0021] For example, by incrementing the address of the current control instruction to be sorted by 1, the next control instruction to be sorted can be obtained.

[0022] For example, during the process of the sorting unit jumping from other states (sorting completed state, sorting state, and jump state) to the sorting completed state, the sorting unit needs to write back the sorting result, that is, write back the sorted instruction. If the first communication chip is issuing a sorting control instruction at this time, the sorting unit needs to write it into memory first. Therefore, the sorting unit is currently in the current working state for one clock cycle to support the completion of the instruction writing and continue to write back the sorted instruction.

[0023] Therefore, by switching between the states of the sorting units, the dynamic sorting of the control instructions to be sorted can be completed.

[0024] According to the first aspect, or any implementation of the first aspect above, the transmission control module includes a transmission unit, and the transmission unit has a first operating mode and a second operating mode; the transmission unit is configured to: when the transmission unit is in the first operating mode, sequentially read instructions from the sorting control module, and send the read sorted control instructions to the front-end FEM module according to their corresponding first timestamp; the transmission unit is further configured to: when the transmission unit is in the second operating mode, stop reading instructions from the sorting control module.

[0025] According to the first aspect, or any implementation of the first aspect above, the sorting control module further includes a first feedback unit, and the sending control module further includes a second feedback unit; the first feedback unit is configured to: when it is determined that the transmitting unit is in the second working mode, sequentially obtain the second timestamp of each control instruction to be sorted issued again by the first communication chip, calculate the second timestamp with the current system time, and when the difference between the calculated first timestamps is less than a preset first mode switching threshold, send first mode switching information to the transmitting unit so that the transmitting unit switches to the first working mode; the second feedback unit is configured to: sequentially obtain the first timestamp of the sorted control instruction currently read by the transmitting unit, calculate the first timestamp with the current system time, and when the difference between the calculated second timestamps is greater than or equal to a preset second mode switching threshold, control the transmitting unit to switch to the second working mode, and send second mode switching information to the first feedback unit so that the first feedback unit determines that the transmitting unit is in the second working mode based on the second mode switching information.

[0026] For example, the first mode switching information is the mode switching signal (seq_switch) in the following embodiments; the second mode switching information is the mode switching signal (seq_switch_clr) in the following embodiments.

[0027] For example, the preset first mode switching threshold can be the first waterline in the following embodiments; the preset second mode switching threshold can be the second waterline in the following embodiments.

[0028] Therefore, by switching the working mode of the sending unit, the sending unit can support sending instructions to multiple modules, enabling it to handle instruction sending tasks from multiple modules simultaneously, thereby improving its functional versatility and reducing production costs.

[0029] According to the first aspect, or any implementation of the first aspect above, the device further includes an MCU microcontroller; the MCU microcontroller is configured to: send the preset first mode switching threshold to the first feedback unit; and send the preset second mode switching threshold to the second feedback unit.

[0030] Therefore, by issuing switching thresholds through the MCU microcontroller, users can adjust the mode according to their actual needs, thereby improving the user experience.

[0031] According to the first aspect, or any implementation of the first aspect above, the device further includes a system timer; the system timer is used to send the current system time to the first feedback unit and the second feedback unit respectively.

[0032] Secondly, embodiments of this application provide a method for timed instruction transmission. Applied to an instruction timed transmission device, the device includes a first communication chip, a sorting control module, and a front-end FEM module. The first communication chip is connected to the front-end FEM module through the sorting control module. The method includes: the first communication chip issuing a plurality of control instructions to be sorted, each control instruction including a first timestamp and instruction information; the sorting control module, while receiving the plurality of control instructions to be sorted, sorting the plurality of control instructions based on the first timestamp of each control instruction to obtain a plurality of sorted control instructions, each sorted control instruction including the first timestamp and the instruction information; and the front-end FEM module sequentially acquiring the plurality of sorted control instructions and configuring itself based on the instruction information of each sorted control instruction.

[0033] According to the second aspect, the device further includes a transmission control module, and the sorting control module is connected to the front-end FEM module through the transmission control module; the method further includes: the transmission control module sequentially reads instructions from the sorting control module, and sends the read sorted control instructions to the front-end FEM module according to their corresponding first timestamp, so that the front-end FEM module is configured based on the sorted control instructions.

[0034] According to the second aspect, or any implementation of the second aspect above, the sorting control module includes a sorting unit, the sorting unit including a first memory, a first comparator, and a first memory reader / writer, the first memory being connected to the first comparator through the first memory reader / writer; the method further includes: the first memory receiving and storing a plurality of control instructions to be sorted, and receiving and storing a plurality of sorted control instructions; the first memory reader / writer reading the plurality of control instructions to be sorted from the first memory and sending them to the first comparator, and receiving a comparison result returned by the first comparator, sorting the plurality of control instructions to be sorted based on the comparison result, and writing the resulting plurality of sorted instructions into the first memory; the first comparator comparing the first timestamps of the plurality of control instructions to be sorted read by the first memory reader / writer, and returning the resulting comparison result to the first memory reader / writer.

[0035] According to the second aspect, or any implementation of the second aspect above, the method further includes: after the first memory reader / writer has completed storing the second of the plurality of sorting control instructions in the first memory, it begins to read instructions from the first memory.

[0036] According to the second aspect, or any implementation of the second aspect above, the working states of the sorting unit include: a reset state, a sorting completion state, a sorting state, a jump state, and a waiting state; the method further includes: the sorting unit enters a reset state before the first communication chip issues the control instruction to be sorted; when the sorting unit is in the reset state, it obtains the number of instructions of the control instruction to be sorted that has been written, and when the number of instructions is greater than or equal to 2, it jumps to the sorting completion state; when the sorting unit enters the sorting completion state from the reset state, the sorting unit sorts the two instructions to be sorted that have been written, and after sorting, it sets the next control instruction to be sorted that has been obtained as the current control instruction to be sorted, and jumps to the sorting state; when the sorting unit enters the sorting state, the sorting unit sorts the current control instruction to be sorted, and after sorting, it jumps to the sorting completion state; when the sorting unit is in the sorting state... If the timestamp of the current control instruction to be sorted is the same as the timestamp of the previous control instruction to be sorted, the sorting unit jumps to the jump state; when the sorting unit enters the jump state, it inserts the current control instruction to be sorted into the position after the previous control instruction to be sorted, and jumps to the sorting completed state after the insertion is completed; when the sorting unit completes sorting all the written control instructions to be sorted, the sorting unit jumps to the sorting waiting state; when the sorting unit is in the sorting waiting state, it obtains the number of instructions that the first communication chip will send the control instructions to be sorted again, and if the number of instructions is greater than or equal to 2, it jumps to the sorting completed state; when the sorting unit jumps from other states to the sorting completed state, if the instruction to be sorted is written to the first memory, the sorting unit remains in the current working state, and the other states include the sorting completed state, the sorting state, and the jump state.

[0037] According to the second aspect, or any implementation of the second aspect above, the transmission control module includes a transmission unit, and the transmission unit has a first operating mode and a second operating mode; the method further includes: when the transmission unit is in the first operating mode, sequentially reading instructions from the sorting control module, and sending the read sorted control instructions to the front-end FEM module according to their corresponding first timestamp; when the transmission unit is in the second operating mode, the transmission unit stops reading instructions from the sorting control module.

[0038] According to the second aspect, or any implementation of the second aspect above, the sorting control module further includes a first feedback unit, and the sending control module further includes a second feedback unit; the method further includes: when the first feedback unit determines that the transmitting unit is in the second working mode, it sequentially obtains the second timestamp of each control instruction to be sorted issued again by the first communication chip, calculates the second timestamp with the current system time, and sends first mode switching information to the transmitting unit when the calculated first timestamp difference is less than a preset first mode switching threshold, so that the transmitting unit switches to the first working mode; the second feedback unit sequentially obtains the first timestamp of the sorted control instruction currently read by the transmitting unit, calculates the first timestamp with the current system time, and controls the transmitting unit to switch to the second working mode when the calculated second timestamp difference is greater than or equal to a preset second mode switching threshold, and sends second mode switching information to the first feedback unit so that the first feedback unit determines that the transmitting unit is in the second working mode based on the second mode switching information.

[0039] According to the second aspect, or any implementation of the second aspect above, the device further includes an MCU microcontroller; the method further includes: the MCU microcontroller sending the preset first mode switching threshold to the first feedback unit; and sending the preset second mode switching threshold to the second feedback unit.

[0040] According to the second aspect, or any implementation of the second aspect above, the device further includes a system timer; the method further includes: the system timer sending the current system time to the first feedback unit and the second feedback unit respectively.

[0041] The second aspect and any implementation thereof correspond to the first aspect and any implementation thereof, respectively. The technical effects of the second aspect and any implementation thereof are similar to those of the first aspect and any implementation thereof, and will not be repeated here.

[0042] Thirdly, embodiments of this application provide a computer-readable medium for storing a computer program, the computer program including instructions for performing the methods in the second aspect or any possible implementation of the second aspect.

[0043] Fourthly, embodiments of this application provide a computer program including instructions for performing the method in the second aspect or any possible implementation thereof.

[0044] Fifthly, embodiments of this application provide a chip including a processing circuit and transceiver pins. The transceiver pins and the processing circuit communicate with each other via an internal connection path. The processing circuit executes the method in the second aspect or any possible implementation of the second aspect to control the receiving pin to receive signals and to control the transmitting pin to transmit signals. Attached Figure Description

[0045] Figure 1 This is an illustrative diagram of instruction writing and reading from memory;

[0046] Figure 2 This is a schematic diagram of the system architecture of an instruction sequencing device as an example.

[0047] Figure 3 This is a schematic diagram illustrating the sorting operation of an instruction sorting device as an example.

[0048] Figure 4 This is a schematic diagram of the architecture of an instruction timing transmission device, as exemplarily shown.

[0049] Figure 5 This is a schematic diagram illustrating the overall implementation of the instruction timing transmission device as an example.

[0050] Figure 6 This is a schematic diagram of the first sorting operation as an example;

[0051] Figure 7 This is a schematic diagram of the second sorting operation as an example;

[0052] Figure 8 This is a schematic diagram illustrating the third sorting operation as an example.

[0053] Figure 9 This is a schematic diagram illustrating the state reversal of the sorting control module as an example.

[0054] Figure 10 This is an example of a mode switching timing diagram;

[0055] Figure 11 This is a schematic diagram of the hardware structure of an electronic device as an example. Detailed Implementation

[0056] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0057] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0058] The terms "first" and "second," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order of objects. For example, "first target object" and "second target object," etc., are used to distinguish different target objects, not to describe a specific order of target objects.

[0059] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0060] In the description of the embodiments in this application, unless otherwise stated, "multiple" means two or more. For example, multiple processing units means two or more processing units; multiple systems means two or more systems.

[0061] To facilitate understanding, the relevant terms involved in the embodiments of this application will be introduced below.

[0062] Wideband and narrowband satellite communication chips

[0063] Broadband and narrowband satellite communication chips refer to chips used for satellite communication. Based on their application scenarios and transmission rates, they can be divided into broadband satellite communication chips and narrowband satellite communication chips. Broadband satellite communication chips are mainly used to provide high-speed data transmission services, such as television broadcasting and internet access; narrowband satellite communication chips are mainly used to provide low-speed communication services, such as telephone communication and SMS services.

[0064] In the enhanced mode of the broadband and narrowband satellite communication chip, control of the downstream FEM devices is required during operation, such as voltage configuration and PA initialization. This control is achieved by issuing control commands, which have a specific execution order and therefore need to be executed at different times. However, the broadband and narrowband satellite communication chip cannot perceive the order of each command when issuing them; therefore, it needs to sort the issued commands and send them to the downstream FEM devices only when necessary.

[0065] FEM devices

[0066] In hardware circuitry, FEM devices primarily handle the transmission and amplification of radio frequency (RF) signals, while also providing power detection, control, and switching functions. FEM devices are typically integrated into RF systems to process various stages of RF signals, including power amplifiers (PAs), low-noise amplifiers (LNAs), and switches (SWs).

[0067] Memory

[0068] Memory is an important component of a computer, used to store instructions and processing data from the CPU, as well as data exchanged with external storage devices such as hard drives.

[0069] Memory contains storage space, which refers to the physical address space within memory. Chips can write to or read instructions and data from the target physical address space using physical addresses.

[0070] instruction

[0071] In the embodiments of this application, the instruction (cmd) is a command that instructs the FEM device to perform a certain operation, such as voltage configuration, PA initialization, etc.

[0072] Bit selector

[0073] A bit selector is a digital circuit used to select a specific bit from multiple input signals for operation.

[0074] comparator

[0075] A comparator (comp) is a circuit used to compare the magnitudes of current or voltage at two input terminals and output a digital signal (high or low level) to indicate the high-low relationship between the two input terminals.

[0076] It should be understood that the above description is merely an example provided to better understand the technical solution of this embodiment, and is not intended as the only limitation on this embodiment.

[0077] The application of broadband and narrowband satellite communication chips in electronic devices is mainly reflected in satellite communication functions, including satellite calls, satellite SMS, and low-speed internet access. Broadband and narrowband satellite communication chips use different frequencies and bandwidths to transmit data. Broadband technology uses higher frequencies and larger bandwidths, suitable for transmitting large amounts of data, such as video and high-speed internet access; while narrowband technology uses lower frequencies and smaller bandwidths, suitable for transmitting smaller amounts of data, such as SMS and voice calls.

[0078] In the process of implementing satellite communication functions using broadband and narrowband satellite communication chips, commands are issued to control the subsequent FEM devices. Typically, the commands issued by broadband and narrowband satellite communication chips may be discontinuous; commands may be issued at any time, and commands may be reissued during the command reading process. Before the execution time of a command arrives, it needs to be stored in memory. The following section combines... Figure 1 The process of storing instructions in memory after they are issued is explained.

[0079] For example, see Figure 1 , Figure 1 The example illustrates the process of writing and reading commands issued by broadband and narrowband satellite communication chips.

[0080] When the broadband and narrowband satellite communication chip does not issue instructions, memory A does not contain any instructions that need to be stored. Therefore, Figure 1 Figure (1) shows a schematic of memory A at time t0 when no instruction has been written. The memory space in memory A is divided into multiple storage spaces by default, and each storage space corresponds to a memory address. The chip can read and write instructions through this memory address. In memory A, the memory address can be represented as 0, 1, 2, 3, ..., n, ..., m.

[0081] When the broadband and narrowband satellite communication chip issues its first instruction, the instruction is written into memory, occupying storage space A. For example, Figure 1 Figure (2) shows a schematic of memory A when the first instruction is issued. At this time, the broadband and narrowband satellite communication chip issued three instructions, namely cmd1, cmd2 and cmd3. These three instructions were written into memory space 0, memory space 1 and memory space 2 of memory A, respectively.

[0082] Understandably, after an instruction is written to memory space A, the instruction will occupy the memory space it occupies until the instruction is read out, at which point the memory space will be released.

[0083] When the execution time of the aforementioned instruction arrives, the instruction will be read into the FEM device. For example, Figure 1 Figure (3) shows a diagram of how the instructions cmd1, cmd2 and cmd3 are read out and the memory space they occupy is released.

[0084] In one possible application scenario, while instructions are being read, the broadband and narrowband satellite communication chips continue to issue instructions, which also need to be written into memory. For an example, see [link to example]. Figure 1In (3), the instruction cmd4 is written into memory A when the instructions cmd1, cmd2 and cmd3 are read. Since the memory space occupied by the instructions cmd1, cmd2 and cmd3 is not completely released during the process of writing the instruction cmd4 into memory A, it is written into the storage space 3.

[0085] Optionally, during the second write instruction cmd4, compared to the first write instruction process, only one instruction is written this time, meaning that the number of instructions written by the broadband and narrowband satellite communication chips each time is not fixed.

[0086] In another possible application scenario, after instructions cmd1, cmd2, and cmd3 have been read, and instruction cmd4 has been written, the broadband and narrowband satellite communication chip will continue to issue new instructions until instruction cmdm+1 is issued. For example, see [link to example]. Figure 1 In (4), the newly issued instruction cmdm+1 will be written into memory. Since the memory space occupied by instructions cmd1, cmd2 and cmd3 is released, it may be written into storage space 0.

[0087] Therefore, during operation, the number of instructions issued by the broadband and narrowband satellite communication chips differs each time. Furthermore, instruction fetching may occur during instruction issuance, and instructions may be issued again simultaneously with instruction fetching. Since the broadband and narrowband satellite communication chips cannot perceive the execution order of each instruction, they need to sort the issued instructions in memory and send them to the subsequent FEM device when the instruction is ready for execution.

[0088] In one possible implementation, the number of instructions can be fixed, and these fixed-number instructions can be sorted after they have been written. For example, an instruction sorting apparatus is provided in this application embodiment, which includes two memory blocks and a comparator.

[0089] For example, see Figure 2 , Figure 2 An exemplary system architecture of an instruction sequencing device is shown. The device includes a wideband and narrowband satellite communication chip 101, a first memory 102, a comparator 103, and a second memory 104.

[0090] The broadband and narrowband satellite communication chip 101 is used to issue commands that instruct the FEM device to perform relevant operations. The frequency and number of commands issued by the broadband and narrowband satellite communication chip 101 are determined according to the current operating status, and this embodiment does not impose any limitations on this.

[0091] Optionally, the instructions issued by the broadband and narrowband satellite communication chip 101 are not continuous; instructions may be issued at any time, and instructions may be reissued during the reading process.

[0092] Understandably, the instructions issued by the aforementioned wideband and narrowband satellite communication chip 101 include, but are not limited to, voltage configuration and PA initialization.

[0093] It should be understood that the data structure of the above instruction includes the instruction and a clock (also known as a timestamp), which can be represented as {hw_cn, cmd}. Here, hw_cnt represents the duration after which the instruction needs to be executed by the FEM device, and cmd represents the content of the instruction to be executed.

[0094] The first memory 102 is used to receive instructions issued by the aforementioned wide and narrow band satellite communication chip 101 and write them into the storage space of the first memory 102.

[0095] It should be understood that the first memory 102 described above is provided with a storage queue, the depth of which can be 64, 128, etc. To facilitate reading and writing instructions in this memory, the first memory 102 also has a set of read / write addresses, which are typically represented by N-bit binary numbers. In this embodiment, for ease of understanding, the read / write addresses are represented as 0, 1, 2, 3, ..., n, ..., m.

[0096] The comparator 103 is used to sort the instructions (control instructions to be sorted) in the first memory 102 according to a fixed number each time after the instruction is issued by the broadband and narrowband satellite communication chip 101. The sorting method is based on the clock of the instruction. After sorting, the sorted instructions are written to the second memory 104.

[0097] The second memory 104 also includes a storage queue and a set of readable and writable addresses. It is used to store the instructions sorted by the comparator 103 (sorting complete instructions) and to send them to the FEM device via the instruction sending device when the instruction time arrives.

[0098] In this embodiment, the broadband and narrowband satellite communication chip 101 sends instructions to the first memory 102. After the instruction is sent, the comparator 103 sorts the instructions in the first memory 102 based on the clock and writes the sorted instructions to the second memory 104. This allows the instruction sending module to send instructions to the FEM device based on clock order, thereby achieving instruction sorting. The instruction read / write process can be found in [reference needed]. Figure 3 .

[0099] For example, Figure 3 The diagram illustrates the instruction read / write process in the aforementioned instruction sorting system. Figure 3 Among them, the above instruction sorting system includes two pieces of memory, namely memory B and memory C. Among them, both memory B and memory C are provided with storage queues and read / write addresses.

[0100] When the wide and narrowband satellite communication chip 101 has not started to issue instructions, the storage spaces in memory B and memory C are both empty, as shown in Figure 3 (1) therein.

[0101] When the wide and narrowband satellite communication chip 101 starts to issue instructions, the instructions will be written into memory B first. Exemplarily, Figure 3 (2) therein shows the schematic diagram of the instructions being written into memory B. In Figure 3 (2) therein, the number of instructions issued by the wide and narrowband satellite communication chip 101 this time is 4, including {cnt1, cmd1}, {cnt2, cmd2}, {cnt3, cmd3} and {cnt4, cmd4}. These instructions are respectively written into storage space 0, storage space 1, storage space 2 and storage space 3 of memory B.

[0102] After the process of writing the above instructions into memory B is completed, the above comparator 103 sorts the instructions in memory B. Exemplarily, Figure 3 (3) therein shows the schematic diagram of the instruction sorting process. In Figure 3 (3) therein, since cnt1 < cnt4 < cnt3 < cnt2, therefore, when writing into memory C, the instruction {cnt1, cmd1} is written into the first memory space (storage space 0) of memory C, and the instruction {cnt2, cmd2} is written into the fourth memory space (storage space 3) of memory C. Thus, the instruction sending module can read the instructions in memory C in sequence and send them to the FEM device.

[0103] Thus, the embodiment of the present application realizes the sorting of the instructions issued by the wide and narrowband satellite communication chip through two pieces of memory and a comparator, and performs the sorting logic of the instructions during the process of instruction storage, avoiding all the combinational logic of the instructions being concentrated in the subsequent FEM device, and improving the instruction processing efficiency.

[0104] However, the instruction sorting system in the above embodiment requires two pieces of memory, needs to determine the number of instructions issued by the wide and narrowband satellite communication chip this time, and can sort the instructions to be sorted only after all the instructions are completely written into the first piece of memory (memory B). Therefore, the above instruction sorting system consumes more resources (two pieces of memory) and takes a long time (needs to wait for the instruction writing to complete), greatly reducing the instruction sorting efficiency.

[0105] In view of this, embodiments of this application provide a method and apparatus for timing instruction transmission. The apparatus includes a memory and a comparator. When the second instruction is written to the memory, the instructions in the memory are sorted, and the sorted instructions are sent to the subsequent FEM device based on the instruction clock through read / write control logic. This realizes dynamic instruction sorting, reduces the time for instruction writing and sorting, and improves the instruction sorting efficiency.

[0106] For example, see Figure 4 , Figure 4 This is a schematic diagram of the system architecture of the instruction timing transmission device in this application embodiment. The system includes a broadband and narrowband satellite communication chip 201 and a sequencing control module 202.

[0107] The broadband and narrowband satellite communication chip 101 is used to issue commands that instruct the FEM device to perform relevant operations. The frequency and number of commands issued by the broadband and narrowband satellite communication chip 101 are determined according to the current operating status, and this embodiment does not impose any limitations on this.

[0108] The sorting control module 202 is used to sort the instructions issued by the broadband and narrowband satellite communication chip 101, and to send the sorted instructions to the subsequent FEM device based on the instruction clock.

[0109] In one implementation, the sorting control module 202 includes a memory block, a memory reader / writer, and a comparator. The memory reader / writer is used to write the instructions (i.e., control instructions) issued by the broadband and narrowband satellite communication chip 101 into the memory for storage. The memory reader / writer is also used to dynamically read multiple instructions from the memory and send the read instructions to the comparator, so that the comparator compares the timestamps of the read instructions to obtain a comparison result. The memory reader / writer then sorts the read instructions based on the comparison result and rewrites the sorted instructions back into the memory.

[0110] Specifically, the broadband and narrowband satellite communication chip 101 sends instructions to the aforementioned memory reader / writer, which then writes the instructions into memory upon receiving them.

[0111] Optionally, the memory reader / writer described above is used to start reading instructions from the memory after the second instruction has been written to it, thereby sending the read instructions to a comparator for comparison, and sorting the instructions based on the comparison result. This sorting can be based on a clock (timestamp).

[0112] Therefore, in this embodiment, by sorting the instructions during the instruction issuance process, the effect of dynamic instruction sorting is achieved, reducing sorting time. At the same time, this embodiment uses only one memory to store the control instructions to be sorted and the sorted instructions. Compared with the above embodiment which uses two memory blocks for storage, this embodiment reduces the consumption of memory resources.

[0113] In one implementation, this application also provides an overall implementation scheme for the above-described instruction timing transmission device. For example, see... Figure 5 The instruction timing transmission device in this scheme specifically includes: a wide and narrow band satellite communication chip 201, a sorting control module 202, an MCU microcontroller 203, a transmission control module 204, and a system timer 205.

[0114] The sorting control module 202 is used to sort and store the instructions issued by the narrowband satellite communication chip. Specifically, the sorting control module 202 includes a sorting unit 2021 and a first feedback unit 2022.

[0115] The sorting unit 2021 includes memory, a memory reader, and a comparator.

[0116] For example, the sorting unit 2021 is used to sort and store the instructions issued by the narrowband satellite communication chip. Specifically, the memory reader in the sorting unit 2021 is used to write the instructions issued by the narrowband satellite communication chip into memory after receiving them; during the instruction comparison process, the memory reader reads the instructions cached in memory and sends the read instructions to the comparator. The comparator obtains the comparison result by comparing the timestamps of the instructions read by the memory reader, and sends the comparison result to the memory reader so that the memory reader can sort the instructions according to the comparison result and write the sorted instructions back to memory, thus completing the instruction sorting.

[0117] Optionally, when the second instruction issued by the narrowband satellite communication chip is cached in memory, the memory reader starts reading the two instructions in memory (that is, the current ordering control instruction and the current comparison instruction, where the current ordering control instruction is the second instruction written later and the current comparison instruction is the first instruction written earlier), and sends these two instructions to the comparator to compare their timestamps, so that the memory reader sorts and writes them back based on the comparison result.

[0118] Optionally, in the steps of sorting and writing back based on the comparison result, the memory reader may obtain the comparison result of the current control instruction to be sorted and the current instruction to be compared. If the timestamp of the current control instruction to be sorted is less than the timestamp of the current instruction to be compared, the positions (storage space) of the current control instruction to be sorted and the current instruction to be compared are swapped when writing back to memory. If the timestamp of the current control instruction to be sorted is greater than or equal to the timestamp of the current instruction to be compared, the positions of the two are not swapped, and the memory is directly written back to the original position.

[0119] Optionally, when the nth instruction is written to memory, the nth instruction is the current instruction to be sorted. The memory reader needs to read the instructions already written to memory sequentially and send all the read instructions to the comparator for timestamp comparison. If the timestamp of the read instruction is greater than that of the nth instruction, the memory reader swaps the positions of the two instructions during the write-back process. Until the timestamp of the read instruction is less than or equal to that of the nth instruction, the two instructions are not swapped and the write-back is performed directly to complete the sorting of the nth instruction, and the sorting of the next instruction continues.

[0120] The sending control module 204 is used to send instructions from the sorting control module. Specifically, the sending control module reads instructions according to the sorting order of the instructions by the sorting control module, and sends the read instructions to the FEM device according to their corresponding timestamps when the timestamps expire; at the same time, it reads instructions again in order until all sorted instructions in memory have been sent.

[0121] Specifically, the sending control module 204 first reads the instructions in the memory through the memory reader in the sorting control unit, and then sends the read instructions to the FEM device.

[0122] Specifically, the transmission control module 204 includes a transmission unit 2041 and a second feedback module 2042.

[0123] The transmitting unit 2041 can be used to send instructions from different sources (multiple modules and chips) to the subsequent FEM device. In this embodiment, when transmitting instructions from different sources, the transmitting unit sets each source's instruction to a mode. The transmitting unit needs to switch to the corresponding mode when transmitting instructions from different sources. In this embodiment, the mode corresponding to the broadband and narrowband satellite communication chips is the first operating mode (seq mode). The modes corresponding to other chips and modules are the second operating modes. This achieves functional diversity of the transmitting unit, improves its adaptability, and reduces the overall manufacturing cost of the chip.

[0124] In one implementation, the mode switching process of the above-mentioned transmitting unit can be implemented based on the above-mentioned MCU microcontroller 203, the first feedback unit 2022 and the second feedback unit 2042.

[0125] For example, the MCU microcontroller 203 can interact with a person through an electronic device to send a threshold (waterline) for mode switching, thereby realizing mode switching control of the transmitting unit in the transmitting control module 204.

[0126] Specifically, the MCU microcontroller 203 sends a first watermark to the first feedback unit 2022, so that when the first feedback unit 2022 learns that the sending unit of the sending control module is in the second working mode, it compares the timestamp of the instruction currently written to memory with the first watermark. If the timestamp is less than the first watermark, it sends mode switching information to the sending unit in the sending control module so that the sending unit switches to the first working mode.

[0127] Specifically, the MCU microcontroller 203 sends a second watermark to the second feedback unit 2042, so that when the sending unit 2041 reads the sorted instructions and sends them, the second feedback unit 2042 compares the timestamp of the current sending instruction with the size of the second watermark. When the timestamp is greater than the second watermark, the second feedback unit controls the sending unit to switch modes and sends mode switching information to the first feedback unit, informing the first feedback unit that the sending unit has switched to the second working mode.

[0128] The system timer 205 is used to generate a clock (or timestamp), which is used as a reference time for the time of transmission in the instruction.

[0129] Optionally, the system timer 205 is used to start generating a clock when the sorting control module 202 is reset.

[0130] Therefore, the instruction timing sending device in this embodiment can sort the instructions after the broadband and narrowband satellite communication chips issue the second instruction, thereby realizing dynamic sorting of instructions, reducing the delay of instruction sorting, and storing instructions in a memory block, thus reducing resource consumption.

[0131] To further illustrate the instruction timing transmission method in the embodiments of this application... Figure 1 The following section describes the application of the writing and reading instructions shown in the appendix. Figures 6 to 9 The sorting process in each scenario will be introduced.

[0132] from Figure 1 As can be seen, the commands issued by broadband and narrowband satellite communication chips may be discontinuous. For example, the broadband and narrowband satellite communication chips may... Figure 1Three instructions were issued at the time shown in (2). Figure 1 The instruction was issued at the time shown in (3), and at the time shown in (3) Figure 1 The instruction was issued at the time shown in (4). That is, the control instructions to be ordered issued by the broadband and narrowband satellite communication chips may be issued in multiple times; at the same time, in the process of configuring the FEM device with these instructions, some configurations are not sensitive to the order of execution, so there may be multiple instructions with the same timestamp in succession.

[0133] In other words, the following three scenarios exist during the instruction issuance and sorting process:

[0134] Scenario 1: During the instruction sorting process, the sending control module 204 did not initiate a read operation.

[0135] Scenario 2: During the instruction sorting process, the sending control module 204 initiates a read operation.

[0136] Scenario 3: During the instruction sequencing process, the broadband and narrowband satellite communication chips reissued the instructions.

[0137] Regarding scenario one, the embodiments of this application combine Figure 6 Explain it.

[0138] For example, Figure 6 This diagram illustrates the sorting of instructions in memory. When no instructions are issued by the broadband or narrowband satellite communication chip, the memory D included in the sorting unit 2021 is empty. Memory D contains a storage queue and read / write addresses, as illustrated in the diagram. Figure 6 Middle (1).

[0139] Optionally, the storage queue in memory D can be directional, with instructions written to memory first stored at the head of the queue, and subsequent instructions written in sequence to the storage space following the head of the queue.

[0140] At the first moment, the broadband and narrowband satellite communication chip issued four instructions, namely cmd1, cmd2, cmd3, and cmd4. In this embodiment, to ensure that the instructions are sent on time and executed sequentially, a clock (timestamp) is configured for each instruction via the system timer 205 when the instructions are issued. That is, the four instructions are {cnt1, cmd1}, {cnt2, cmd2}, {cnt3, cmd3}, and {cnt4, cmd4}. Among them, cnt1... <cnt4<cnt3<cnt2。

[0141] For example, see Figure 6 The instruction sorting diagram is shown in (2). Figure 6In (2), the first instruction {cnt1, cmd1} is written to storage space 0 of memory D. At this time, since there is only one instruction in the memory, the sorting unit does not need to sort this instruction. After the first instruction is written, the second instruction {cnt2, cmd2} is written to storage space 1 of memory D. After the writing is completed, there are two instructions in memory D at this time, and the sorting unit starts to sort the instructions in the memory.

[0142] Optionally, during the process of sorting the instructions in the memory, the sorting unit needs to first retrieve the control instruction to be sorted and the comparison instruction to be compared through the memory reader. Among them, the instruction retrieved for the control instruction to be sorted is the seq_sort_addr_now instruction; the instruction retrieved for the comparison instruction to be compared is the seq_comp_addr_now instruction.

[0143] Exemplarily, the sorting unit retrieves the control instruction to be sorted (the second instruction: {cnt2, cmd2}) through the seq_sort_addr_now instruction, and retrieves the comparison instruction to be compared (the first instruction: {cnt1, cmd1}) through the seq_comp_addr_now instruction.

[0144] Meanwhile, during the process of the sorting unit sorting the instructions in memory D, the third instruction {cnt3, cmd3} is issued by the narrow and wideband satellite communication chip. See Figure 6 the instruction sorting schematic diagram shown in (3). In Figure 6 in (3), the third instruction is cached to storage space 2 of memory D.

[0145] Since cnt1 < cnt2, the storage order of the first instruction and the second instruction does not need to be changed. The first instruction still remains stored in storage space 0 of memory D, and the second instruction still remains stored in storage space 1 of memory D. And at this time, the third instruction has been written to memory D, and the sorting unit still needs to sort it.

[0146] Exemplarily, see Figure 6 the instruction sorting schematic diagram shown in (4). The sorting unit retrieves the third instruction through the seq_sort_addr_now instruction, retrieves the second instruction through the seq_comp_addr_now instruction, and determines cnt3 < cnt2 by comparing the timestamps of the third instruction and the second instruction. Therefore, the first instruction is retrieved through the seq_comp_addr_now - 1 instruction, and the timestamps of the third instruction and the first instruction are compared to determine cnt1 < cnt3. Therefore, the third instruction is moved to storage space 1 of memory D, and the second instruction is moved to storage space 2 of memory D.

[0147] In one implementation, after determining that cnt3 < cnt2, the sorting unit can directly move the third instruction to storage space 1 of memory D and move the second instruction to storage space 2 of memory D. Then, it determines the timestamps of the third instruction and the first instruction.

[0148] Meanwhile, during the process of sorting the third instruction, the wide and narrowband satellite communication chip issues the fourth instruction {cnt4, cmd4}. Therefore, after completing the sorting of the third instruction, the sorting unit also needs to sort it.

[0149] Exemplarily, refer to Figure 6 the instruction sorting schematic diagram shown in (4) below. The sorting unit fetches the fourth instruction through the seq_sort_addr_now instruction, and successively fetches the second instruction, the third instruction, and the first instruction through the seq_comp_addr_now instruction and the seq_comp_addr_now - 1 instruction, and determines that cnt1 < cnt4 < cnt3 < cnt2. Therefore, it moves the fourth instruction to storage space 1 of memory D, moves the third instruction to storage space 2 of memory D, and moves the second instruction to storage space 3 of memory D to complete this sorting.

[0150] It should be noted that in the above sorting process, there may be scenarios where there are multiple instructions to be sorted and multiple instructions to be compared. When there are multiple instructions to be sorted, the sorting unit needs to record the memory address of the current instruction to be sorted. After its sorting is completed, it sorts the next instruction to be sorted by incrementing the memory address by 1. When there are multiple instructions to be compared, the sorting unit successively fetches the instructions to be compared through the seq_comp_addr_now instruction and the seq_comp_addr_now - 1 instruction until it finds an instruction with a timestamp (cnt) smaller than the current instruction to be sorted; or until the read - write address corresponding to the seq_comp_addr_now - 1 instruction is 0 (at this time, storage space 0 is the cut - off address for sorting, that is, the instruction to be sorted with the smallest timestamp), then this round of sorting ends, and the current sorted instruction is moved to storage space 0 of memory D.

[0151] Thus, the sorting unit in the embodiment of this application does not need to determine the number of instructions issued by the wide and narrowband satellite communication chip and the end time of the issued instructions. It starts sorting the instructions already written into the memory when the second instruction is issued by the wide and narrowband satellite communication chip, achieving dynamic real - time sorting. Since there is no need to wait for the end of instruction issuance, the sorting method in the embodiment of this application greatly reduces the sorting delay, improves the sorting efficiency, and after sorting is completed, the sending control module can timely send the instructions to be sent to the backend FEM device, which is beneficial to increasing the design main frequency of the chip.

[0152] For scenario two, the embodiments of this application will be described in conjunction with Figure 7 it.

[0153] Exemplarily, Figure 7 The figure shows a schematic diagram of the sorting unit sorting instructions in the memory when the send control module performs a read operation on the memory. In this scenario, before the send control module initiates the read operation, there are already multiple instructions that have been sorted in memory D, such as Figure 7 the first instruction {cnt1, cmd1}, the second instruction {cnt2, cmd2}, the third instruction {cnt3, cmd3}, and the fourth instruction {cnt4, cmd4} shown in (1) of

[0154] Exemplarily, referring to Figure 7 (2) of , the send control module initiates a read operation at the second moment, and sends the first instruction and the second instruction with the timestamp coming in memory D to the FEM device. After the first instruction and the second instruction are read, memory spaces 0 and 1 in memory D are released. At the same time, the sorting unit records the storage address 2 of the third instruction {cnt3, cmd3} as the cut-off address.

[0155] At the third moment, the wideband and narrowband satellite communication chip issues m + 1 instructions. Exemplarily, referring to Figure 7 (3) of , the instructions issued by the wideband and narrowband satellite communication chip are sequentially written into the storage space of memory D until the mth instruction {cntm, cmdm} is written into the storage space m of memory D, and the (m + 1)th instruction {cntm+1, cmdm+1} issued by the wideband and narrowband satellite communication chip is written into the released storage space 0. Among them, the timestamp corresponding to cnt2 is the largest, and cnt3 < cntn-1 < cnt2.

[0156] After the (n - 1)th instruction {cntn-1, cmdn-1} is written into memory D, the sorting unit sorts it. When it is determined that cnt3 < cntn-1 < cnt2, the (n - 1)th instruction is inserted into the storage space after the third instruction. And after the subsequent instructions are inserted, they are sorted in sequence, and the schematic is shown in Figure 7 (4) of

[0157] Thus, in the embodiments of this application, when the send control module initiates a read operation and memory D releases the storage space corresponding to the read instructions, the address of the corresponding storage space is incremented by 1 and recorded as the cut-off address, realizing the sorting of the to-be-sorted control instructions during the instruction read and write process. At the same time, the to-be-sorted control instructions and the instructions after sorting are stored in the same fast memory. Compared with the above two-memory solution where one is used to store the to-be-sorted control instructions and the other is used to store the sorted instructions, the consumption of memory resources is reduced.

[0158] For scenario three, the embodiments of the present application will be described in conjunction with Figure 8 to explain it.

[0159] Exemplarily, Figure 8 shows a scenario where an instruction with the same timestamp as the current sorting instruction is inserted during the instruction sorting process. In this scenario, the third instruction {cnt3, cmd3} and the second instruction {cnt2, cmd2} are instructions that have been sorted, the (n - 1)-th instruction {cntn - 1, cmdn - 1} is the current control instruction to be sorted, and the n-th instruction is a control instruction to be sorted with the same timestamp as the (n - 1)-th instruction.

[0160] The sorting unit sorts the (n - 1)-th instruction and gets cnt3 < cntn - 1 < cnt2, so it inserts it between the third instruction and the second instruction.

[0161] Meanwhile, after completing the sorting of the (n - 1)-th instruction, when obtaining the timestamp of the n-th instruction, the sorting unit compares it with the timestamp of the previous control instruction to be sorted (i.e., the (n - 1)-th instruction), and gets that the two timestamps are the same. So it can directly insert it into the next memory address of the (n - 1)-th instruction, that is, storage space 4 of memory D.

[0162] Thus, in the embodiments of the present application, by inserting the next control instruction to be sorted with the same timestamp as the current control instruction to be sorted into the next address after the memory address where the current control instruction to be sorted is sorted without comparing the next sorting instruction, the sorting speed is accelerated.

[0163] To further illustrate the working state of the instruction timing sending device in the embodiments of the present application, the following will be described in conjunction with Figure 9 to explain the change in its sorting working state.

[0164] Exemplarily, refer to Figure 9 , Figure 9 which shows the process of the change in the working state of the sorting unit 202 in the instruction timing sending device. Among them, the working state of the sorting unit 202 includes: reset state (IDLE), sorting completion state (BREAK_OVER), sorting state (SORT), jump state (JUMP), and waiting state (PENDING).

[0165] Among them, the reset state refers to the initial state when the sorting unit is reset, which is used to indicate that the sorting unit enters the working state, obtains the number of instructions written into the memory of the sorting unit, and when the number of written instructions is greater than or equal to 2, controls the sorting unit to enter the sorting completion state.

[0166] Understandably, the sorting unit needs to be reset before it can operate. The reset time can be when the broadband or narrowband satellite communication chip starts operating, or when the first instruction is written into the memory D. This application embodiment does not limit this.

[0167] For example, when the number of instructions written to memory is less than or equal to 1, the sorting unit remains in the reset state, and its state transition diagram can be found in [reference needed]. Figure 9 As shown in (1).

[0168] Specifically, the sorting unit enters a reset state when the broadband and narrowband satellite communication chips begin to issue instructions, and before the second instruction issued by the broadband and narrowband satellite communication chips is written into memory.

[0169] The sorting completion state refers to the state the sorting unit enters after completing the sorting of each instruction in memory. It indicates that the current instruction has been sorted, and the address of the instruction to be sorted is incremented by 1, allowing the sorting unit to fetch the next instruction.

[0170] For example, when the sorting unit enters the sorting completed state from the reset state, it means that the sorting unit has completed sorting the first control instruction to be sorted, increments the address of the control instruction to be sorted by 1, that is, retrieves the second control instruction to be sorted, and starts sorting the second control instruction to be sorted.

[0171] For example, when the number of instructions written to memory is greater than or equal to 2, the state of the sorting unit is adjusted from the reset state to the sorting completed state. See the diagram for the state transition. Figure 9 As shown in (2).

[0172] For example, when the number of instructions written to memory is equal to two, during the process of the sorting unit adjusting from the reset state to the sorting completed state, the sorting module sorts the two control instructions that have already been written. During the sorting process, if a new instruction to be sorted is sent to the sorting unit by the broadband and narrowband satellite communication chip and needs to be written to memory, the sorting unit remains in the sorting completed state until the instruction to be sorted is written to memory, and then continues to sort the two previous control instructions.

[0173] For example, when the currently pending sorting control instruction has completed sorting, or when all instructions currently written to memory have completed sorting, the sorting unit remains in the sorting completed state. See the diagram for a state transition illustration. Figure 9 As shown in (3).

[0174] For example, when the instructions in memory are read out, all the storage space in memory is released, and the sorting unit jumps from the sorting completed state to the waiting state. See the diagram for the state transition. Figure 9 As shown in (5).

[0175] The sorting state refers to the state in which the control instructions to be sorted are being sorted. When the number of instructions written to memory is greater than or equal to 3, the sorting unit jumps to this working state. In this state, the sorting unit compares the control instructions to be sorted with each instruction to be compared in each clock cycle until the control instructions to be sorted are sorted.

[0176] For example, when the instructions issued by the broadband and narrowband satellite communication chips are not fully sorted, the sorting unit jumps from the sorting completed state to the sorting state. See the diagram for the state transition. Figure 9 As shown in (4).

[0177] For example, when the current instruction to be sorted has not been sorted, or when a new instruction is written to memory, the sorting unit remains in the sorting state. See the diagram for its state transition. Figure 9 As shown in (6).

[0178] For example, when the current sorting instruction completes the sorting, the sorting unit jumps from the sorting state to the sorting completed state. See the diagram for a state transition. Figure 9 As shown in (8).

[0179] The jump state refers to the state the sorting unit enters when the timestamp of the current control instruction to be sorted is the same as the timestamp of the previous control instruction to be sorted. In this state, the sorting unit inserts the current control instruction to be sorted into the address adjacent to the previous control instruction to be sorted (the next memory address, or the previous memory address), and shifts all subsequent instructions one position to the right.

[0180] Specifically, in this embodiment, the sorting unit may insert the current control instruction to be sorted into the memory address following the previous control instruction to be sorted. The next memory address can be obtained by reading the memory address of the previous instruction to be sorted and writing it back to memory, and then incrementing that memory address by 1.

[0181] For example, when the timestamp of the current sorting control instruction is the same as that of the previous sorting instruction, the sorting unit jumps to a jump state. See the diagram for a state jump illustration. Figure 9 As shown in (7).

[0182] For example, when a sorting unit is already in a jump state and a new instruction is being written to memory, the sorting unit remains in the jump state. See the diagram illustrating the state jump. Figure 9 As shown in (9).

[0183] For example, when no new instructions are written to memory and the current sorting instruction has been inserted, the sorting unit jumps from the jump state to the sorting complete state. See the diagram for a state transition. Figure 9 As shown in (10).

[0184] The waiting state refers to the state that the sorting unit enters after the sending control module has read all the instructions in memory, or after all the instructions in memory have been sorted.

[0185] For example, when no new instructions are being written, or when only one instruction is being written, the sorting control state remains in a waiting state, waiting for new instructions to be written. See the diagram for a state transition illustration. Figure 9 As shown in (11).

[0186] For example, when the number of newly written instructions in memory is greater than or equal to 2, the sorting control state transitions from the waiting state to the sorting completed state. See the diagram for the state transition. Figure 9 As shown in (12).

[0187] Therefore, based on the above-mentioned state, the sorting unit in this embodiment can complete the sorting of the control instructions to be sorted in memory for the above-mentioned scenario.

[0188] However, when reading and writing instructions are performed simultaneously, if the sending control module reads an instruction with a relatively large timestamp, it may cause the sending control module to remain in seq mode for an extended period of time. In the event that a subsequent instruction with a timestamp smaller than the timestamp of that instruction is written, it will be unable to send the instruction when the timestamp arrives (i.e., timed sending).

[0189] Therefore, the feedback unit in this embodiment also provides a feedback mechanism, which is implemented by a first feedback unit and a second feedback unit. The first feedback unit consists of a bit selector, a decoder, and a comparator disposed in the sorting control module, and the second feedback unit consists of a bit selector, a decoder, and a comparator disposed in the transmission control module. The implementation process of the feedback mechanism is described in [reference needed]. Figure 10 Specifically, it includes:

[0190] Step S101: The microcontroller (MCU) sends the first waterline to the comparator of the transmission control module.

[0191] Understandably, the first waterline is used to control the transmission control module to switch to the second operating mode, stopping the issuance of the sorted instructions in this embodiment to the FEM device. Typically, the first waterline can be set to 20 seconds.

[0192] Step S102: The system timer sends the current time to the decoder of the transmission control module.

[0193] Specifically, in this embodiment, the current time is set to 0 seconds.

[0194] In step S103, after the instruction in memory is read by the sending control module, the broadband and narrowband satellite communication chip sends the first instruction to the sorting unit of the sorting control module again.

[0195] Understandably, before the broadband and narrowband satellite communication chip issues the first instruction mentioned above, all instructions in memory have been sorted, and the transmission control module reads multiple instructions that need to be sent but have not yet been sent.

[0196] It should be understood that the first instruction can be multiple instructions issued by the broadband and narrowband satellite communication chips in this operation. The sorting control module needs to sort them to obtain the sorted instructions to be sent. Among these instructions to be sent, the minimum timestamp can be 40 seconds.

[0197] In step S104, the sorting unit selects the second instruction with the smallest timestamp and sends it to the bit selector of the transmission control module.

[0198] Specifically, after sorting the first instruction, the sorting unit obtains the second instruction with the smallest timestamp. At this time, the timestamp of the second instruction is 40s.

[0199] In step S105, the bit selector selects the first timing parameter of the second instruction and sends it to the decoder of the transmission control module.

[0200] Specifically, the bit selector of the transmission control module selects the first time difference parameter of the second instruction, which is 40s.

[0201] In step S106, the decoder calculates the first time difference between the first time parameter and the current time, and sends the time difference to the comparator of the transmission control module.

[0202] Specifically, the decoder calculates the first time difference between the first time parameter (40s) and the current time (0s). Since the instruction issuance time is short, the first time difference is 40s.

[0203] In step S107, when the first time difference is greater than the first waterline, the comparator causes the sending control module to perform a mode switch and sends a mode switch signal (seq_switch) to the sorting control module, so that the sorting control module performs a mode switch judgment when a new instruction is written to memory.

[0204] Specifically, since the first time difference of 40s is greater than the first watermark of 20s, the sending control module detects that the timestamp of the current instruction is much greater than the first watermark, and performs a mode switch, ceasing to read instructions from the memory in the sorting unit, and simultaneously sending a mode switch signal (seq_switch) to the sorting control module. Upon receiving this mode switch signal (seq_switch), the sorting control module determines that the sending control module has entered the second working mode. When a new instruction is written to memory, a mode switch judgment is triggered.

[0205] The steps for determining the mode switch include:

[0206] Step S201: The microcontroller (MCU) sends the second waterline to the comparator of the sorting control module.

[0207] Understandably, the second waterline controls the sending unit of the sending control module to switch to the first operating mode (seq mode) in this embodiment of the application, continuing to read the sorted instructions in memory at time intervals and send them to the FEM device. Typically, the second waterline can be set to 10s.

[0208] In step S202, the wideband and narrowband satellite communication chip sends a third instruction to the bit selector of the sorting control module.

[0209] It should be understood that the aforementioned third instruction is a re-issued instruction by the broadband and narrowband satellite communication chip after issuing the first instruction. When the broadband and narrowband satellite communication chip issues multiple instructions, the following steps need to be performed on each instruction separately.

[0210] In step S203, the bit selector selects the time parameter in the third instruction and sends the time parameter to the decoder of the sorting control module.

[0211] Specifically, the aforementioned time parameter is the timestamp corresponding to the third instruction. In this embodiment, the timestamp is less than the timestamp of the second instruction, and here it can be 7s.

[0212] Step S204: The system timer sends the current time to the decoder of the sorting control module.

[0213] Specifically, in this embodiment, the current time is set to 2 seconds.

[0214] In step S205, the decoder calculates the second time difference between the above time parameter and the current time, and sends the second time difference to the comparator of the sorting control module.

[0215] Specifically, the time difference between the above time parameter 7s and the current time 2s is calculated, and the second time difference is obtained as 5s.

[0216] In step S206, when the comparator determines that the second time difference is less than the second waterline, it sends a mode switching signal (seq_switch_clr) to the transmission control module so that the transmission control module switches to seq mode and sends the currently sorted instruction to the back-end FEM device.

[0217] Specifically, comparing the second time difference of 5s with the second watermark of 10s, it is found that the second time difference is less than the second watermark. Therefore, the comparator of the sorting control module sends a mode switching signal (seq_switch_clr) to the transmission control module, causing the transmission control module to switch to seq mode and send the currently completed sorting instruction to the back-end FEM device.

[0218] Therefore, in this embodiment, when the difference between the timestamp of a new instruction issued by the broadband and narrowband satellite communication chip after the instruction in memory has been read empty and the current time is less than the first threshold, the transmission mode of the transmission control module is switched, allowing the transmission control module to be used by other modes simultaneously. Simultaneously, when the difference between the timestamp of an instruction written in memory and the current time is greater than the second threshold, the transmission mode of the transmission control module is switched to seq mode, allowing the transmission control module to continue sending instructions in this embodiment at the specified time. This avoids the situation where, in simultaneous instruction read / write scenarios, the current timestamp is too large, causing the transmission control module to wait for the clock to arrive and become stuck in seq mode for a long time. It also ensures that subsequent instructions with timestamps smaller than the larger timestamp can be sent. This improves the reliability of orderly instruction transmission during simultaneous instruction read / write processes.

[0219] To better understand the technical solutions provided in the embodiments of this application, the hardware structure of the terminal devices (e.g., mobile phones, tablets, touch-screen PCs, etc.) to which the embodiments of this application are applicable will be described here with reference to the accompanying drawings. For ease of explanation, Figure 11 Let's take a mobile phone as an example.

[0220] See Figure 11 The mobile phone 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0221] The processor 110 may include one or more processing units, such as an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU), etc., which will not be listed here and this application does not limit them.

[0222] The controller mentioned above, which serves as the processing unit, can be the central nervous system and command center of the mobile phone 100. In practical applications, the controller can generate operation control signals based on the instruction opcode and timing signals to control the fetching and execution of instructions.

[0223] The aforementioned modulation and demodulation processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal and transmits the demodulated low-frequency baseband signal to the baseband processor for processing.

[0224] The aforementioned baseband processor is used to process the low-frequency baseband signal transmitted by the regulator and then transmit the processed low-frequency baseband signal to the application processor.

[0225] It should be noted that in some implementations, the baseband processor can be integrated into the modem, meaning the modem can have the functionality of a baseband processor.

[0226] The aforementioned application processor is used to output sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.) or to display images or videos through display screen 194.

[0227] The aforementioned digital signal processor is used to process digital signals. Specifically, in addition to processing digital image signals, a digital signal processor can also process other digital signals. For example, when the mobile phone 100 is selecting a frequency, the digital signal processor can be used to perform Fourier transforms on the frequency energy, etc.

[0228] The aforementioned video codecs are used for compressing or decompressing digital video. For example, mobile phone 100 may support one or more video codecs. Thus, mobile phone 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.

[0229] The aforementioned ISP (Image Signal Processor) is used to output digital image signals to the DSP (Digital Signal Processor) for processing. Specifically, the ISP processes data fed back from the camera 193. For example, when taking a photo or recording video, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into a visible image. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some implementations, the ISP can be integrated into the camera 193.

[0230] The DSP mentioned above is used to convert digital image signals into standard RGB, YUV, and other image signal formats.

[0231] Furthermore, it should be noted that, regarding the processor 110 including the aforementioned processing units, in some implementations, the different processing units can be independent devices. That is, each processing unit can be considered as a processor. In other implementations, the different processing units can also be integrated into one or more processors. For example, in some implementations, the modem processor can be an independent device. In other implementations, the modem processor can be independent of the processor 110 and housed in the same device as the mobile communication module 150 or other functional modules.

[0232] It should be understood that the above description is merely an example provided to better understand the technical solution of this embodiment, and is not intended as the only limitation on this embodiment.

[0233] In addition, the processor 110 may also include one or more interfaces. These interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc., which will not be listed here, and this application does not impose any limitations on them.

[0234] In addition, processor 110 may also include memory for storing instructions and data. In some implementations, the memory in processor 110 is a cache memory. This memory can store instructions or data that processor 110 has just used or is recurring. If processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of processor 110, and thus improves system efficiency.

[0235] See also Figure 11 The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100. The external storage card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external storage card.

[0236] See also Figure 11The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the mobile phone 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, and stereo recording function as described in the embodiments of this application), etc. The data storage area may store data created during the use of the mobile phone 100 (such as stereo audio data recorded based on the technical solution provided in the embodiments of this application), etc. In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0237] See also Figure 11 The charging management module 140 receives charging input from the charger. The charger can be a wireless charger or a wired charger. In some wired charging implementations, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging implementations, the charging management module 140 receives wireless charging input via the wireless charging coil of the mobile phone 100. While charging the battery 142, the charging management module 140 can also supply power to the terminal device via the power management module 141.

[0238] See also Figure 11 The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some implementations, the power management module 141 may be located within the processor 110. In other implementations, the power management module 141 and the charging management module 140 may be located in the same device.

[0239] See also Figure 11 The wireless communication function of mobile phone 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.

[0240] It should be noted that antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in mobile phone 100 can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other implementations, the antennas can be used in conjunction with a tuning switch.

[0241] See also Figure 11 The mobile communication module 150 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G on the mobile phone 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some implementations, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some implementations, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0242] See also Figure 11 The wireless communication module 160 can provide solutions for wireless communication applications on the mobile phone 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0243] See also Figure 11The audio module 170 may include a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, etc. For example, the mobile phone 100 can implement audio functions through the application processor and the speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, etc. in the audio module 170. Examples include recording and video recording functions.

[0244] In the process of implementing audio functions through the application processor and audio module 170, the audio module 170 can be used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. The audio module 170 can also be used for encoding and decoding audio signals. In some implementations, the audio module 170 can be located in the processor 110, or some functional modules of the audio module 170 can be located in the processor 110.

[0245] See also Figure 11 The sensor module 180 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc., which will not be listed here, and this application does not limit them.

[0246] See also Figure 11 The buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons. The mobile phone 100 can receive button input and generate button signal inputs related to the user settings and function control of the mobile phone 100.

[0247] See also Figure 11 Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback.

[0248] See also Figure 11 The indicator 192 can be an indicator light, which can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0249] See also Figure 11The camera 193 is used to capture still images or videos. The mobile phone 100 can achieve its shooting function through an ISP, camera 193, video codec, GPU, display 194, and application processor. Specifically, an object generates an optical image through a lens and projects it onto a photosensitive element. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some implementations, the mobile phone 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0250] See also Figure 11 The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some implementations, the mobile phone 100 may include one or N displays 194, where N is a positive integer greater than 1. The mobile phone 100 can implement display functions through a GPU, the display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0251] That concludes the introduction to the hardware structure of the Mobile 100. It should be understood that... Figure 11 The mobile phone 100 shown is just an example. In a specific implementation, the mobile phone 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. Figure 11 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0252] Furthermore, it is understood that, in order to achieve the aforementioned functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. Based on the algorithmic steps of the various examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in a hardware-driven or software-driven manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.

[0253] Furthermore, it should be noted that, in practical application scenarios, the instruction timing transmission methods provided in the above embodiments, implemented by electronic devices, can also be executed by a chip system included in the electronic device. This chip system may include a processor. The chip system can be coupled to a memory, enabling it to call a computer program stored in the memory during runtime to implement the steps executed by the electronic device. The processor in this chip system can be an application processor or a non-application processor.

[0254] In addition, this application embodiment also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the above-mentioned related method steps to implement the instruction timing transmission method in the above embodiment.

[0255] In addition, this application also provides a computer program product that, when run on an electronic device, causes the electronic device to perform the above-mentioned related steps to implement the instruction timing transmission method in the above embodiments.

[0256] In addition, embodiments of this application also provide a chip (which may also be a component or module), which may include one or more processing circuits and one or more transceiver pins; wherein the transceiver pins and the processing circuits communicate with each other through internal connection paths, and the processing circuits execute the above-mentioned related method steps to implement the instruction timing transmission method in the above embodiments, so as to control the receiving pin to receive signals and control the transmitting pin to transmit signals.

[0257] Furthermore, as can be seen from the above description, the electronic devices, computer-readable storage media, computer program products, or chips provided in the embodiments of this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0258] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A command timing transmission device, characterized in that, The device includes a first communication chip, a sorting control module, and a front-end FEM module, wherein the first communication chip is connected to the front-end FEM module through the sorting control module. The first communication chip is used for: Multiple control instructions to be sorted are issued, each of which includes a first timestamp and instruction information; The sorting control module is used for: During the process of receiving multiple control instructions to be sorted, the multiple control instructions to be sorted are sorted based on the first timestamp of each control instruction to be sorted to obtain multiple sorted control instructions, each sorted control instruction including the first timestamp and the instruction information; The front-end FEM module is used for: Multiple sorted control instructions are sequentially acquired, and configuration is performed based on the instruction information of each sorted control instruction.

2. The apparatus according to claim 1, characterized in that, The device further includes a transmission control module, and the sorting control module is connected to the front-end FEM module through the transmission control module; The transmission control module is used for: The sorting control module is sequentially read from the instructions, and the read sorted control instructions are sent to the front-end FEM module according to their corresponding first timestamp, so that the front-end FEM module is configured based on the sorted control instructions.

3. The apparatus according to claim 1, characterized in that, The sorting control module includes a sorting unit, which includes a first memory, a first comparator, and a first memory reader / writer. The first memory is connected to the first comparator through the first memory reader / writer. The first memory is used for: Receive and store a plurality of the control instructions to be ordered, and receive and store a plurality of the control instructions already ordered; The first memory reader / writer is used for: Read multiple unordered control instructions from the first memory and send them to the first comparator, and receive the comparison result returned by the first comparator, sort the multiple unordered control instructions based on the comparison result, and write the resulting multiple sorted instructions into the first memory. The first comparator is used for: The first timestamps of the multiple unordered control instructions read by the first memory reader are compared, and the comparison result is returned to the first memory reader.

4. The apparatus according to claim 3, characterized in that, The first memory reader / writer is also used for: After the first memory completes the storage of the second of the plurality of sorting control instructions, the instruction reading from the first memory begins.

5. The apparatus according to claim 3, characterized in that, The working states of the sorting unit include: reset state, sorting completed state, sorting state, jump state, and waiting state; The sorting unit is used for: Before the first communication chip issues the sorting control instruction, it enters a reset state; when the sorting unit is in the reset state, it obtains the number of written sorting control instructions; when the number of instructions is greater than or equal to 2, it jumps to the sorting completion state. The sorting unit is further configured to: When the sorting unit enters the sorting completed state from the reset state, it sorts the two written instructions to be sorted. After the sorting is completed, the next instruction to be sorted is set as the current instruction to be sorted, and the process jumps to the sorting state. The sorting unit is further configured to: When the sorting unit enters the sorting state, it sorts the current control instructions to be sorted, and after the sorting is completed, it jumps to the sorting completed state. The sorting unit is further configured to: When the sorting unit is in the sorting state, and the timestamp of the current control instruction to be sorted is the same as the timestamp of the previous control instruction to be sorted, the process jumps to the jump state. The sorting unit is further configured to: When the sorting unit enters the jump state, the current control instruction to be sorted is inserted into the position after the previous control instruction to be sorted, and after the insertion is completed, it jumps to the sorting completed state; The sorting unit is further configured to: When the sorting unit has completed sorting all the written control instructions to be sorted, it jumps to the sorting waiting state; The sorting unit is further configured to: When the sorting unit is in the sorting waiting state, the number of instructions that the first communication chip will send again to the sorting control instruction is obtained. If the number of instructions is greater than or equal to 2, the process jumps to the sorting completed state. The sorting unit is further configured to: During the process of the sorting unit transitioning from other states to the sorting completed state, if the instruction to be sorted is written to the first memory, the sorting unit remains in its current working state. The other states include the sorting completed state, the sorting state, and the transition state.

6. The apparatus according to claim 3, characterized in that, The transmission control module includes a transmission unit, and the transmission unit has a first working mode and a second working mode. The transmitting unit is used for: When the transmitting unit is in the first working mode, the sorting control module is read in sequence, and the read sorted control instructions are sent to the front-end FEM module according to their corresponding first timestamp. The transmitting unit is also used for: When the transmitting unit is in the second operating mode, the reading of instructions from the sorting control module is stopped.

7. The apparatus according to claim 6, characterized in that, The sorting control module further includes a first feedback unit, and the sending control module further includes a second feedback unit; The first feedback unit is used for: When it is determined that the transmitting unit is in the second working mode, the second timestamp of each control instruction to be sorted issued by the first communication chip is obtained in sequence, the second timestamp is calculated with the current system time, and when the difference between the calculated first timestamp is less than the preset first mode switching threshold, the first mode switching information is sent to the transmitting unit so that the transmitting unit switches to the first working mode. The second feedback unit is used for: The first timestamp of the sorted control command currently read by the transmitting unit is obtained sequentially. The first timestamp is calculated with the current system time. If the difference between the calculated second timestamp and the second timestamp is greater than or equal to a preset second mode switching threshold, the transmitting unit is controlled to switch to the second working mode. The second mode switching information is sent to the first feedback unit so that the first feedback unit can determine that the transmitting unit is in the second working mode based on the second mode switching information.

8. The apparatus according to claim 7, characterized in that, The device also includes an MCU microcontroller; The MCU microcontroller is used for: The preset first mode switching threshold is sent to the first feedback unit; the preset second mode switching threshold is sent to the second feedback unit.

9. The apparatus according to claim 7, characterized in that, The device also includes a system timer; The system timer is used for: The current system time is sent to the first feedback unit and the second feedback unit respectively.

10. A method for sending instructions at regular intervals, characterized in that, An instruction timing transmission device is applied, the device comprising a first communication chip, a sequencing control module, and a front-end FEM module, wherein the first communication chip is connected to the front-end FEM module through the sequencing control module; the method includes: The first communication chip sends out multiple control instructions to be sorted, each of which includes a first timestamp and instruction information. In the process of receiving multiple control instructions to be sorted, the sorting control module sorts the multiple control instructions to be sorted based on the first timestamp of each control instruction to be sorted, and obtains multiple sorted control instructions. Each sorted control instruction includes the first timestamp and the instruction information. The front-end FEM module sequentially acquires multiple sorted control instructions and configures itself based on the instruction information of each sorted control instruction.

11. The method according to claim 10, characterized in that, The apparatus further includes a transmission control module, and the sequencing control module is connected to the front-end FEM module through the transmission control module; the method further includes: The sending control module sequentially reads instructions from the sorting control module and sends the read sorted control instructions to the front-end FEM module according to their corresponding first timestamp, so that the front-end FEM module can be configured based on the sorted control instructions.

12. The method according to claim 10, characterized in that, The sorting control module includes a sorting unit, which includes a first memory, a first comparator, and a first memory reader / writer. The first memory is connected to the first comparator through the first memory reader / writer. The method further includes: The first memory receives and stores a plurality of the control instructions to be sorted, and receives and stores a plurality of the sorted control instructions; The first memory reader reads a plurality of the control instructions to be sorted from the first memory and sends them to the first comparator, and receives the comparison result returned by the first comparator, sorts the plurality of control instructions to be sorted based on the comparison result, and writes the resulting plurality of sorted instructions into the first memory. The first comparator compares the first timestamps of the multiple unordered control instructions read by the first memory reader and returns the comparison result to the first memory reader.

13. The method according to claim 12, characterized in that, The method further includes: after the first memory reader / writer has completed storing the second of the plurality of sorting control instructions in the first memory, it begins to read instructions from the first memory.

14. The method according to claim 12, wherein the working state of the sorting unit includes: The method includes the following states: reset state, sorting complete state, sorting state, jump state, and waiting state; the method also includes: Before the first communication chip issues the sorting control instruction to be sorted, the sorting unit enters a reset state; when the sorting unit is in the reset state, it obtains the number of instructions of the written sorting control instruction, and if the number of instructions is greater than or equal to 2, it jumps to the sorting completed state. When the sorting unit enters the sorting completion state from the reset state, the sorting unit sorts the two written instructions to be sorted. After the sorting is completed, the next instruction to be sorted is set as the current instruction to be sorted, and the sorting unit jumps to the sorting state. When the sorting unit enters the sorting state, the sorting unit sorts the current control instructions to be sorted, and after the sorting is completed, it jumps to the sorting completed state. When the sorting unit is in the sorting state and the timestamp of the current control instruction to be sorted is the same as the timestamp of the previous control instruction to be sorted, the sorting unit jumps to the jump state. When the sorting unit enters the jump state, it inserts the current control instruction to be sorted into the position after the previous control instruction to be sorted, and jumps to the sorting completed state after the insertion is completed. When the sorting unit has completed sorting all the written control instructions to be sorted, the sorting unit jumps to the sorting waiting state. When the sorting unit is in the sorting waiting state, the sorting unit obtains the number of instructions that the first communication chip will send the sorting control instruction again. If the number of instructions is greater than or equal to 2, the sorting unit jumps to the sorting completed state. When the sorting unit jumps from other states to the sorting completed state, and the instruction to be sorted is written to the first memory, the sorting unit remains in the current working state. The other states include the sorting completed state, the sorting state, and the jump state.

15. The method according to claim 12, characterized in that, The transmission control module includes a transmission unit, and the transmission unit has a first operating mode and a second operating mode; the method further includes: When the transmitting unit is in the first working mode, the sorting control module is read in sequence, and the read sorted control instructions are sent to the front-end FEM module according to their corresponding first timestamp. When the transmitting unit is in the second working mode, the transmitting unit stops reading instructions from the sorting control module.

16. The method according to claim 15, characterized in that, The sorting control module further includes a first feedback unit, and the sending control module further includes a second feedback unit; the method further includes: When the first feedback unit determines that the transmitting unit is in the second working mode, it sequentially obtains the second timestamp of each control instruction to be sorted issued by the first communication chip, calculates the second timestamp with the current system time, and sends the first mode switching information to the transmitting unit when the difference between the calculated first timestamps is less than the preset first mode switching threshold, so that the transmitting unit switches to the first working mode. The second feedback unit sequentially obtains the first timestamp of the sorted control command currently read by the transmitting unit, calculates the first timestamp with the current system time, and controls the transmitting unit to switch to the second working mode when the difference between the calculated second timestamp is greater than or equal to the preset second mode switching threshold, and sends the second mode switching information to the first feedback unit so that the first feedback unit determines that the transmitting unit is in the second working mode based on the second mode switching information.

17. The method according to claim 16, characterized in that, The device further includes an MCU microcontroller; the method further includes: The MCU microcontroller sends the preset first mode switching threshold to the first feedback unit and sends the preset second mode switching threshold to the second feedback unit.

18. The method according to claim 12, characterized in that, The device further includes a system timer; the method further includes: The system timer sends the current system time to the first feedback unit and the second feedback unit respectively.