Search

CN-122026979-A - Method and device for sending instruction at fixed time

CN122026979ACN 122026979 ACN122026979 ACN 122026979ACN-122026979-A

Abstract

The application provides a method and a device for sending instructions at fixed time. According to the method, the instructions are ordered in the process of issuing the control instructions by the broadband and narrowband satellite communication chip, so that the front-end FEM module can be configured based on the time stamp of the ordered control instructions and the instruction information, the ordering time is shortened, and the working efficiency of the chip is improved.

Inventors

  • FAN XIAOYANG
  • ZHONG ZHENJI
  • LI WEI

Assignees

  • 荣耀终端股份有限公司

Dates

Publication Date
20260512
Application Date
20241112

Claims (18)

  1. 1. The device is characterized by comprising a first communication chip, a sequencing control module and a front-end FEM module, wherein the first communication chip is connected with the front-end FEM module through the sequencing control module; the first communication chip is used for: Issuing a plurality of control instructions to be ordered, wherein each control instruction to be ordered comprises a first timestamp and instruction information; the sequencing control module is used for: in the process of receiving a plurality of control instructions to be ordered, ordering the plurality of control instructions to be ordered based on the first timestamp of each control instruction to be ordered to obtain a plurality of control instructions to be ordered, wherein each control instruction to be ordered comprises the first timestamp and the instruction information; the front end FEM module is configured to: And sequentially acquiring a plurality of ordered control instructions, and configuring based on the instruction information of each ordered control instruction.
  2. 2. The apparatus of claim 1, further comprising a transmit control module, the ordering control module being coupled to the front-end FEM module by the transmit control module; the sending control module is used for: And sequentially reading the order control module, and sending the ordered control instruction obtained by reading to the front-end FEM module according to the first timestamp corresponding to the ordered control instruction, so that the front-end FEM module is configured based on the ordered control instruction.
  3. 3. The apparatus of claim 1, wherein the ordering control module comprises an ordering unit comprising a first memory, a first comparator, and a first memory reader, the first memory being connected to the first comparator through the first memory reader; The first memory is configured to: receiving and storing a plurality of the control instructions to be ordered, and receiving and storing a plurality of the control instructions to be ordered; the first memory reader is configured to: reading a plurality of control instructions to be sequenced in the first memory, sending the control instructions to the first comparator, receiving comparison results returned by the first comparator, sequencing the control instructions to be sequenced based on the comparison results, and writing the sequenced instructions into the first memory; The first comparator is used for: comparing the first time stamps of the plurality of control instructions to be sequenced, which are read by the first memory reader, and returning the obtained comparison result to the first memory reader.
  4. 4. The apparatus of claim 3, wherein the device comprises a plurality of sensors, The first memory reader is further configured to: and after the first memory finishes storing the second to-be-sequenced control instruction in the plurality of to-be-sequenced control instructions, starting to read the instruction from the first memory.
  5. 5. The apparatus of claim 3, wherein the operational states of the sequencing unit comprise a reset state, a sequencing complete state, a sequencing state, a skip state, and a wait state; the sequencing unit is used for: the method comprises the steps of sending a control instruction to be sequenced to a first communication chip, entering a reset state before the control instruction to be sequenced is sent by the first communication chip, acquiring the instruction number of the written control instruction to be sequenced under the condition that the sequencing unit is in the reset state, and jumping to the sequencing completion state under the condition that the instruction number is more than or equal to 2; The sorting unit is further configured to: when the sorting unit enters the sorting completion state from the reset state, sorting the written two to-be-sorted instructions, setting the acquired next to-be-sorted control instruction as the current to-be-sorted control instruction after sorting is completed, and jumping to the sorting state; The sorting unit is further configured to: Under the condition that the sequencing unit enters the sequencing state, sequencing the current control instruction to be sequenced, and jumping to the sequencing completion state after sequencing is completed; The sorting unit is further configured to: when the sorting unit is in a sorting state and the current time stamp of the control instruction to be sorted is the same as the time stamp of the last control instruction to be sorted, jumping to the jumping state; The sorting unit is further configured to: When the sorting unit enters the jump state, inserting the current control instruction to be sorted into the next position of the last control instruction to be sorted, and jumping to the sorting completion state after the insertion is completed; The sorting unit is further configured to: Jumping to the sorting waiting state under the condition that the sorting unit finishes sorting all written control instructions to be sorted; The sorting unit is further configured to: acquiring the number of instructions of the control instructions to be sequenced issued by the first communication chip again when the sequencing unit is in the sequencing waiting state, and jumping to the sequencing completion state when the number of instructions is more than or equal to 2; The sorting unit is further configured to: And when the to-be-sequenced instruction is written into the first memory in the process that the sequencing unit jumps from other states to the sequencing completion state, the sequencing unit is kept in the current working state, and the other states comprise the sequencing completion state, the sequencing state and the jump state.
  6. 6. The apparatus of claim 3, wherein the transmission control module comprises a transmitting unit, and wherein the operating modes of the transmitting unit comprise a first operating mode and a second operating mode; the transmitting unit is used for: under the condition that the transmitting unit is in the first working mode, sequentially reading the order control module, and sending the read ordered control instruction to the front-end FEM module according to the first timestamp corresponding to the order control instruction; The transmitting unit is further configured to: And stopping instruction reading of the sequencing control module under the condition that the transmitting unit is in the second working mode.
  7. 7. The apparatus of claim 6, wherein the ordering control module further comprises a first feedback unit, and wherein the transmission control module further comprises a second feedback unit; The first feedback unit is used for: Under the condition that the transmitting unit is in the second working mode, sequentially acquiring a second time stamp of each control instruction to be sequenced, which is issued again by the first communication chip, calculating the second time stamp and the current system time, and under the condition that the difference value of the calculated first time stamps is smaller than a preset first mode switching threshold value, transmitting first mode switching information to the transmitting unit so as to enable the transmitting unit to be switched to the first working mode; the second feedback unit is used for: sequentially acquiring the first time stamp of the ordered control instruction currently read by the transmitting unit, calculating the first time stamp and the current system time, and controlling the transmitting unit to switch to the second working mode under the condition that the difference value of the calculated second time stamp is larger than or equal to a preset second mode switching threshold value, and sending second mode switching information to the first feedback unit so that the first feedback unit judges that the transmitting unit is in the second working mode based on the second mode switching information.
  8. 8. The apparatus of claim 7, wherein the apparatus further comprises an MCU microcontroller; The MCU microcontroller is used for: and sending the preset first mode switching threshold value to the first feedback unit, and sending the preset second mode switching threshold value to the second feedback unit.
  9. 9. The apparatus of claim 7, wherein the apparatus further comprises a system timer; the system timer is used for: And respectively sending the current system time to the first feedback unit and the second feedback unit.
  10. 10. The command timing transmitting method is characterized by being applied to a command timing transmitting device, wherein the device comprises a first communication chip, a sequencing control module and a front-end FEM module, the first communication chip is connected with the front-end FEM module through the sequencing control module, and the method comprises the following steps: the first communication chip issues a plurality of control instructions to be ordered, and each control instruction to be ordered comprises a first timestamp and instruction information; the ordering control module orders the plurality of control instructions to be ordered based on the first time stamp of each control instruction to be ordered in the process of receiving the plurality of control instructions to be ordered, so as to obtain a plurality of control instructions to be ordered, wherein each control instruction to be ordered comprises the first time stamp and the instruction information; the front-end FEM module sequentially acquires a plurality of ordered control instructions, and configures the control instructions based on the instruction information of each ordered control instruction.
  11. 11. The method of claim 10, wherein the apparatus further comprises a transmit control module, the order control module being coupled to the front-end FEM module through the transmit control module, the method further comprising: The sending control module sequentially reads the order control module, and sends the ordered control instruction obtained by reading to the front-end FEM module according to the first timestamp corresponding to the ordered control instruction, so that the front-end FEM module is configured based on the ordered control instruction.
  12. 12. The method of claim 10, wherein the ordering control module includes an ordering unit including a first memory, a first comparator, and a first memory reader, the first memory being connected to the first comparator by the first memory reader, the method further comprising: The first memory receives and stores a plurality of control instructions to be sequenced, and receives and stores a plurality of sequenced control instructions; The first memory reader reads a plurality of control instructions to be ordered in the first memory, sends the control instructions to the first comparator, receives comparison results returned by the first comparator, orders the control instructions to be ordered based on the comparison results, and writes the obtained ordered instructions into the first memory; the first comparator compares the first time stamps of the plurality of control instructions to be sequenced, which are read by the first memory reader, and returns the obtained comparison result to the first memory reader.
  13. 13. The method of claim 12, wherein the first memory reader/writer starts instruction reading from the first memory after the first memory has completed storing a second one of the plurality of control instructions to be ordered.
  14. 14. The method of claim 12, wherein the operating states of the sequencing unit include a reset state, a sequencing complete state, a sequencing state, a skip state, and a wait state, and wherein the method further comprises: The sequencing unit enters a reset state before the first communication chip issues the control instruction to be sequenced, acquires the number of the written control instruction to be sequenced under the condition that the sequencing unit is in the reset state, and jumps to the sequencing completion state under the condition that the number of the written control instruction to be sequenced is more than or equal to 2; the ordering unit orders the written two to-be-ordered instructions when the ordering unit enters the ordering completion state from the reset state, sets the acquired next to-be-ordered control instruction as the current to-be-ordered control instruction after ordering is completed, and jumps to the ordering state; The sorting unit sorts the current control instruction to be sorted under the condition that the sorting unit enters the sorting state, and jumps to the sorting completion state after sorting is completed; the sorting unit jumps to the jump state when the sorting unit is in a sorting state and the time stamp of the current control instruction to be sorted is the same as the time stamp of the last control instruction to be sorted; when the sorting unit enters the jump state, the sorting unit inserts the current control instruction to be sorted into the next position of the last control instruction to be sorted, and jumps to the sorting completion state after the insertion is completed; The sorting unit jumps to the sorting waiting state under the condition that the sorting unit finishes sorting all the written control instructions to be sorted; The ordering unit acquires the number of instructions of the control instructions to be ordered issued by the first communication chip again under the condition that the ordering unit is in the ordering waiting state, and jumps to the ordering completion state under the condition that the number of instructions is more than or equal to 2; And the sorting unit keeps in a current working state when the to-be-sorted instruction is written into the first memory in the process that the sorting unit jumps from other states to the sorting completion state, wherein the other states comprise the sorting completion state, the sorting state and the jump state.
  15. 15. The method of claim 12, wherein the transmission control module comprises a transmitting unit, and wherein the operating mode of the transmitting unit comprises a first operating mode and a second operating mode, and wherein the method further comprises: under the condition that the transmitting unit is in the first working mode, sequentially reading the order control module, and sending the read ordered control instruction to the front-end FEM module according to the first timestamp corresponding to the order control instruction; and under the condition that the transmitting unit is in the second working mode, the transmitting unit stops reading the instruction of the sequencing control module.
  16. 16. The method of claim 15, wherein the ordering control module further comprises a first feedback unit, wherein the transmission control module further comprises a second feedback unit, and wherein the method further comprises: The first feedback unit sequentially acquires a second timestamp of each control instruction to be sequenced issued again by the first communication chip under the condition that the transmitting unit is judged to be in the second working mode, calculates the second timestamp and the current system time, and sends first mode switching information to the transmitting unit under the condition that the difference value of the calculated first timestamp is smaller than a preset first mode switching threshold value so as to enable the transmitting unit to be switched to the first working mode; The second feedback unit sequentially acquires the first time stamp of the ordered control instruction read by the transmitting unit at present, calculates the first time stamp and the current system time, and controls the transmitting unit to switch to the second working mode and sends second mode switching information to the first feedback unit under the condition that the difference value of the calculated second time stamp is larger than or equal to a preset second mode switching threshold value, so that the first feedback unit judges that the transmitting unit is in the second working mode based on the second mode switching information.
  17. 17. The method of claim 16, wherein the device further comprises an MCU microcontroller, the method further comprising: The MCU microcontroller transmits the preset first mode switching threshold value to the first feedback unit, and transmits the preset second mode switching threshold value to the second feedback unit.
  18. 18. The method of claim 12, wherein the apparatus further comprises a system timer, the method further comprising: And the system timer respectively sends the current system time to the first feedback unit and the second feedback unit.

Description

Method and device for sending instruction at fixed time Technical Field The present application relates to the field of terminal devices, and in particular, to a method and apparatus for sending an instruction in a timing manner. Background When the wide-narrow band satellite communication chip works, a Front-end module (FEM) device at a later stage is controlled by issuing an instruction, so that related functions are realized. However, the wide-narrow band satellite communication chip may issue multiple instructions at the same time, such as voltage configuration, power Amplifier (PA) initialization, etc. The execution of these instructions requires a sequential order, which is sent to the FEM device for execution at different times. Therefore, after the instructions are reasonably ordered, the instructions are sent to the FEM device for execution, so that the working efficiency of the chip is improved. Disclosure of Invention The embodiment of the application provides a method and a device for sending instructions at regular time, which aim to order the instructions in the process of writing the instructions issued by a wide-narrow-band satellite communication chip into a memory, reduce ordering delay and improve the working efficiency of the chip. In a first aspect, an embodiment of the present application provides an instruction timing transmitting apparatus. The device comprises a first communication chip, a sequencing control module and a front-end FEM module, wherein the first communication chip is connected with the front-end FEM module through the sequencing control module, the first communication chip is used for issuing a plurality of to-be-sequenced control instructions, each to-be-sequenced control instruction comprises a first time stamp and instruction information, the sequencing control module is used for sequencing the plurality of to-be-sequenced control instructions based on the first time stamp of each to-be-sequenced control instruction in the process of receiving the plurality of to-be-sequenced control instructions to obtain a plurality of sequenced control instructions, each sequenced control instruction comprises the first time stamp and the instruction information, and the front-end FEM module is used for sequentially acquiring the plurality of sequenced control instructions and configuring the to-be-sequenced control instructions based on the instruction information of each sequenced control instruction. By way of example, the first communication chip may be a broadband and narrowband satellite communication chip, and the control instructions issued by the first communication chip include, but are not limited to, voltage configuration, PA initialization, and the like, and these instructions are used to configure FEM devices of a subsequent stage. The frequency and number of instructions issued by the controller are determined according to the current working state of the controller, and the embodiment of the application is not limited to the frequency and number of instructions issued by the controller. For example, the value corresponding to the first timestamp of each control instruction to be sequenced may be different or the value corresponding to the first timestamp may be the same, which is not limited in the embodiment of the present application. For example, after the control instruction to be sequenced is issued to the sequencing control instruction, the sequencing control module will buffer the control instruction first, then sequence the control instruction, and send the control instruction to the front-end FEM module temporarily at the time corresponding to the timestamp. It can be understood that the first time stamp and the instruction information of the control instruction to be sequenced are the same as those of the sequenced control instruction, and the sequencing operation of the sequencing control module is just to perform the operation of storing the address in the memory. For example, after the ordering control module finishes ordering the control instruction to be ordered, the front end FEM module sequentially acquires the ordered control instruction based on the ordering, and configures based on the instruction information of the ordered control instruction. Therefore, the control instructions issued by the wide-narrow band satellite communication chip are ordered, so that the control instructions can be executed by the front-end FEM module according to the time sequence, and the working efficiency of the chip is improved. According to the first aspect, the device further comprises a sending control module, the ordering control module is connected with the front-end FEM module through the sending control module, and the sending control module is used for sequentially reading instructions of the ordering control module and sending the ordered control instructions obtained through reading to the front-end FEM module according to the first time stamp correspon