Concurrency control method for uplink application of short message, short message terminal and related device
By configuring the short message terminal of the Beidou-3 satellite navigation system, concurrent sending of different types of uplink application instructions is achieved, solving the problem of inefficient uplink application in the existing technology and improving the efficiency of the terminal in concurrent scenarios.
Patent Information
- Application Number
- CN202510183109.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-19
- Publication Date
- 2025-05-13
AI Technical Summary
When short message terminals adapted to the Beidou-3 satellite navigation system process users and generate RSMC and GSMC uplink applications, they only support serial execution at the RSMC service frequency, resulting in inefficient uplink applications.
By configuring the status determination of the regional service frequency controller, the global service frequency controller, the transmitting amplifier controller and the instruction cache queue, when the preset conditions are met, the sending control operations are performed in sequence according to the order of the enqueue time to realize concurrent sending of different types of uplink application instructions.
The uplink application efficiency of short message terminals adapted to the Beidou-3 satellite navigation system in concurrent uplink application scenarios is improved, and the problem of excessive uplink application intervals due to the long frequency of a single service is avoided.
Smart Images

Figure CN119996953A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of satellite communication technology, and in particular to a concurrent control method for short message uplink applications, a short message terminal and related devices. Background Art
[0002] With the development of satellite navigation technology, the BeiDou-3 satellite navigation system provides two types of short message communication services: Regional Short Message Communication (RSMC) and Global Short Message Communication (GSMC), realizing reliable short message communication under different communication ranges.
[0003] However, this also puts forward new technical requirements for the short message terminal of the satellite navigation system adapted to the BeiDou-3. Specifically, since the BeiDou-2 satellite navigation system only provides RSMC services, the short message terminal adapted to the BeiDou-2 satellite navigation system is configured to execute RSMC uplink applications at the RSMC service frequency obtained. The existing short message terminal adapted to the BeiDou-3 satellite navigation system is improved on the basis of the BeiDou-2 satellite navigation system. This makes the short message terminal of the BeiDou-3 satellite navigation system only support the serial execution of RSMC uplink applications and GSMC uplink applications at the RSMC service frequency when processing RSMC uplink applications and GSMC uplink applications concurrently generated by users, that is, executing RSMC uplink applications and GSMC uplink applications respectively in two uplink application cycles, and the interval between the two uplink application cycles is not less than the minimum time interval specified by the RSMC service frequency. When the minimum time interval limited by the RSMC service frequency obtained by the satellite navigation system for the short message terminal is too long, the execution interval of the RSMC uplink application and the GSMC uplink application generated concurrently by the user will be too long, reducing the uplink application efficiency. Therefore, how to improve the uplink application efficiency of the short message terminal adapted to the BeiDou-3 satellite navigation system in the concurrent uplink application scenario has become an urgent problem to be solved. Summary of the invention
[0004] In view of the above problems, the present application provides a method for concurrent control of short message uplink applications, a short message terminal and related devices, so as to improve the uplink application efficiency of short message terminals adapted to the BeiDou-3 satellite navigation system in concurrent uplink application scenarios. The specific scheme is as follows:
[0005] The first aspect of the present application provides a concurrency control method for short message uplink application, which is applied to a short message terminal, comprising:
[0006] When the monitoring time is reached, the regional service frequency controller, the global service frequency controller, the transmitting power amplifier controller and the instruction cache queue are subjected to status determination, and when the result of the status determination meets the preset condition, two different types of uplink application instructions in the instruction cache queue are sequentially subjected to sending control operations in accordance with the order of the time of entering the queue, the types including the global short message type and the regional short message type, and the sending control operations include:
[0007] Determine the uplink application instruction with the earliest queue entry time as the current uplink application instruction, and when the state configuration of the first target service frequency controller is completed based on the first service frequency, call the transmitting power amplifier controller to send the current uplink application instruction based on the transmission parameters provided by the first target service frequency controller, wherein the first service frequency is a service frequency corresponding to the type of the current uplink application instruction, the first target service frequency controller has a corresponding relationship with the current uplink application instruction, and the first target service frequency controller is the regional service frequency controller or the global service frequency controller;
[0008] When it is monitored that the transmitting controller completes the sending operation and when the state configuration of the second target service frequency controller is completed based on the second service frequency, the transmitting power amplifier controller is called to perform a sending operation on the uplink application instruction in the instruction cache queue except the current uplink application instruction based on the transmission parameters provided by the second target service frequency controller, the second target service frequency controller has a corresponding relationship with the uplink application instruction, the second target service frequency controller is the regional service frequency controller or the global service frequency controller, and the second service frequency is a service frequency corresponding to the type of the uplink application instruction.
[0009] In a possible implementation, the process of adding the uplink application instruction to the instruction cache queue includes:
[0010] In the case of monitoring the queue entry request of the uplink application instruction, determining the type of the uplink application instruction according to the frequency point flag of the uplink application instruction;
[0011] Determine whether the target service frequency controller corresponding to the type is in an idle state. If so, add the uplink application instruction to the instruction cache queue; if not, discard the uplink application instruction, wherein the target service frequency controller is the regional service frequency controller or the global service frequency controller.
[0012] In a possible implementation, the completing state configuration of the first target service frequency controller based on the first service frequency includes:
[0013] A quotient value obtained by dividing the first service frequency by a preset minimum duration counting unit is obtained, and a value of a built-in counter of the first target service frequency controller is updated to the quotient value.
[0014] In a possible implementation, the preset condition includes:
[0015] The status flags of the regional service frequency controller, the global service frequency controller and the transmitting power amplifier controller all represent an idle state, and the queue depth value of the instruction cache queue is 2.
[0016] A second aspect of the present application provides a short message terminal, including:
[0017] The operation unit is used to perform status determination on the regional service frequency controller, the global service frequency controller, the transmitting power amplifier controller and the instruction cache queue when the monitoring time is reached, and when the result of the status determination meets the preset condition, perform sending control operations on two different types of uplink application instructions in the instruction cache queue in sequence according to the order of entry time, the types including the global short message type and the regional short message type, and the sending control operations include:
[0018] Determine the uplink application instruction with the earliest queue entry time as the current uplink application instruction, and when the state configuration of the first target service frequency controller is completed based on the first service frequency, call the transmitting power amplifier controller to send the current uplink application instruction based on the transmission parameters provided by the first target service frequency controller, wherein the first service frequency is a service frequency corresponding to the type of the current uplink application instruction, the first target service frequency controller has a corresponding relationship with the current uplink application instruction, and the first target service frequency controller is the regional service frequency controller or the global service frequency controller;
[0019] When it is monitored that the transmitting controller completes the sending operation and when the state configuration of the second target service frequency controller is completed based on the second service frequency, the transmitting power amplifier controller is called to perform a sending operation on the uplink application instruction in the instruction cache queue except the current uplink application instruction based on the transmission parameters provided by the second target service frequency controller, the second target service frequency controller has a corresponding relationship with the uplink application instruction, the second target service frequency controller is the regional service frequency controller or the global service frequency controller, and the second service frequency is a service frequency corresponding to the type of the uplink application instruction.
[0020] In a possible implementation, the instruction cache queue is set to:
[0021] In the case of monitoring the queue entry request of the uplink application instruction, determining the type of the uplink application instruction according to the frequency point flag of the uplink application instruction;
[0022] Determine whether the target service frequency controller corresponding to the type is in an idle state. If so, add the uplink application instruction to the instruction cache queue; if not, discard the uplink application instruction, wherein the target service frequency controller is the regional service frequency controller or the global service frequency controller.
[0023] In a possible implementation, when the operation unit completes state configuration of the first target service frequency controller based on the first service frequency, the operation unit is configured to:
[0024] A quotient value obtained by dividing the first service frequency by a preset minimum duration counting unit is obtained, and a value of a built-in counter of the first target service frequency controller is updated to the quotient value.
[0025] In a possible implementation, the preset condition in the operation unit includes:
[0026] The status flags of the regional service frequency controller, the global service frequency controller and the transmitting power amplifier controller all represent an idle state, and the queue depth value of the instruction cache queue is 2.
[0027] A third aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:
[0028] The memory is used to store computer programs;
[0029] The processor is used to execute the computer program so that the electronic device can implement the concurrency control method for short message uplink application of the above-mentioned first aspect or any implementation method of the first aspect.
[0030] The fourth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the concurrency control method for short message uplink applications of the above-mentioned first aspect or any implementation method of the first aspect.
[0031] By means of the above technical scheme, the concurrent control method, short message terminal and related devices of the short message uplink application provided by the present application are configured to perform state determination on the regional service frequency controller, the global service frequency controller, the transmitting power amplifier controller and the instruction cache queue, and configured to determine the uplink application instruction with the earliest queue entry time in the instruction cache queue as the current uplink application instruction when the result of the state determination meets the preset conditions, and to call the transmitting power amplifier controller based on the transmission parameters provided by the first target service frequency controller corresponding to the current uplink application instruction to send the current uplink application instruction when the state configuration of the first target service frequency controller is completed based on the target service frequency. Subsequently, the configuration updates the current uplink application instruction to an uplink application instruction other than the current uplink application instruction that has not been updated when the transmitting controller is monitored to complete the sending operation, and calls the transmitting power amplifier controller based on the transmission parameters provided by the second target service frequency controller to send the updated current uplink application instruction. Compared with the prior art, the present application does not need to support the sending operation of two types of uplink applications with a single service frequency, thus avoiding the problem of reduced uplink application efficiency caused by a long interval between two uplink applications due to a single service frequency being too long in the scenario of two types of uplink applications being concurrent. It can be seen that the present application improves the uplink application efficiency of short message terminals adapted to the BeiDou-3 satellite navigation system in the scenario of concurrent uplink applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0033] Figure 1 A schematic diagram of a system architecture provided for this application;
[0034] Figure 2 A schematic diagram of the hardware structure of a terminal provided in this application;
[0035] Figure 3 An operation flow chart of an initialization thread provided by this application;
[0036] Figure 4 A flowchart of a concurrency control method for short message uplink application provided by this application;
[0037] Figure 5 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION
[0038] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
[0039] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0040] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0041] See also Figure 1 , Figure 1 A schematic diagram of a system architecture is shown. The system may include: a terminal 100 (sender), a terminal 101 (sender), and a navigation satellite 200. The navigation satellite 200 may provide a short message service for one or more terminals.
[0042] Among them, the terminal 100 can be installed with an application for executing the first aspect of the present application and any possible implementation method provided. The above application can provide an interface. The terminal 100 (sender) can receive the uplink application instruction input by the user on the interface, and process the above uplink application instruction and send it to the navigation satellite 200. The navigation satellite 200 can complete the corresponding short message service based on the received uplink application instruction, and send the processing result to the terminal 101 (receiver).
[0043] Next describe Figure 1 The product form of the mid-terminal 100;
[0044] The terminal 100 in the embodiment of the present application may be a receiver or a terminal device that can perform the function of a receiver.
[0045] Figure 2 An optional hardware structure diagram of the terminal 100 is shown.
[0046] refer to Figure 2As shown, the terminal 100 may include a radio frequency unit 110, a memory 120, an input unit 130, a display unit 140, a camera 150 (optional), an audio circuit 160 (optional), a speaker 161 (optional), a microphone 162 (optional), an earphone jack 163 (optional), a processor 170, an external interface 180, a power supply 190 and other components. Those skilled in the art will appreciate that Figure 2 These are merely examples of terminals or multi-function devices and do not constitute limitations on the terminals or multi-function devices, which may include more or fewer components than those shown in the figures, or combinations of certain components, or different components.
[0047] The input unit 130 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the portable multifunctional device. Specifically, the input unit 130 may include a touch screen 131 (optional) and / or other input devices 132. The touch screen 131 can collect the user's touch operations on or near it (such as the user's operation on or near the touch screen using any suitable object such as fingers, joints, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch screen can detect the user's touch action on the touch screen, convert the touch action into a touch signal and send it to the processor 170, and can receive and execute the command sent by the processor 170; the touch signal at least includes the touch point coordinate information. The touch screen 131 can provide an input interface and an output interface between the terminal 100 and the user. In addition, the touch screen can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch screen 131, the input unit 130 can also include other input devices. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0048] Among them, the input device 132 can receive input data and the like.
[0049] The display unit 140 may be used to display information input by the user or provided to the user, various menus of the terminal 100, interactive interfaces, file display and / or playback of any multimedia file. In the embodiment of the present application, the display unit 140 may be used to display interfaces, processing results, etc.
[0050] The memory 120 can be used to store instructions and data. The memory 120 can mainly include an instruction storage area and a data storage area. The data storage area can store various data, such as multimedia files, texts, etc.; the instruction storage area can store software units such as operating systems, applications, instructions required for at least one function, or their subsets and extensions. It can also include a non-volatile random access memory; provide the processor 170 with hardware, software and data resources including management of computing and processing equipment, and support control software and applications. It is also used for the storage of multimedia files, and the storage of running programs and applications.
[0051] The processor 170 is the control center of the terminal 100. It uses various interfaces and lines to connect various parts of the entire terminal 100. By running or executing instructions stored in the memory 120 and calling data stored in the memory 120, it executes various functions of the terminal 100 and processes data, thereby controlling the terminal device as a whole. Optionally, the processor 170 may include one or more processing units; preferably, the processor 170 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 170. In some embodiments, the processor and the memory may be implemented on a single chip, and in some embodiments, they may also be implemented separately on separate chips. The processor 170 may also be used to generate corresponding operation control signals, send them to corresponding components of the computing and processing device, read and process data in the software, especially read and process data and programs in the memory 120, so that each functional module therein performs corresponding functions, thereby controlling the corresponding components to act according to the requirements of the instructions.
[0052] Among them, the memory 120 can be used to store software codes related to any possible implementation method of the concurrency control method of the short message uplink application provided in the present application, the processor 170 can execute the steps of any possible implementation method of the short message uplink application provided in the present application, and can also schedule other units (such as the above-mentioned input unit 130 and the display unit 140) to implement corresponding functions.
[0053] The radio frequency unit 110 (optional) can be used for receiving and sending information or receiving and sending signals during a call, for example, after receiving the downlink information of the base station, it is sent to the processor 170 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the radio frequency unit 110 can also communicate with network devices and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.
[0054] In this embodiment of the present application, the RF unit 110 can send data to the server 200 and receive processing results sent by the server 200.
[0055] It should be understood that the radio frequency unit 110 is optional and can be replaced by other communication interfaces, such as a network port.
[0056] The terminal 100 also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 170 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
[0057] The terminal 100 further includes an external interface 180 , which may be a standard Micro USB interface or a multi-pin connector, and may be used to connect the terminal 100 to communicate with other devices, or to connect a charger to charge the terminal 100 .
[0058] Although not shown, the terminal 100 may also include a flashlight, a wireless fidelity (WiFi) module, a Bluetooth module, sensors with different functions, etc., which are not described in detail here. Some or all of the methods described below may be applied in the following embodiments. Figure 2 In the terminal 100 shown.
[0059] It should be understood that the above-mentioned terminal 100 and navigation satellite 200 can be centralized or distributed devices, and the processors in the above-mentioned terminal 100 and navigation satellite 200 (such as processor 170 and processor 202) can be hardware circuits (such as application specific integrated circuit (ASIC), field-programmable gate array (FPGA), general-purpose processor, digital signal processor (digital signal processing, DSP), microprocessor or microcontroller, etc.), or a combination of these hardware circuits. For example, the processor can be a hardware system with the function of executing instructions, such as CPU, DSP, etc., or a hardware system without the function of executing instructions, such as ASIC, FPGA, etc., or a combination of the above-mentioned hardware systems without the function of executing instructions and hardware systems with the function of executing instructions.
[0060] It should be noted that in actual application scenarios, the new generation satellite navigation system that can provide both RSMC and GSMC types of short message communication services may be the Beidou-3 satellite navigation system, and the satellite navigation system that only provides RSMC services may be the Beidou-2 satellite navigation system.
[0061] The first aspect of the present application provides a concurrency control method for short message uplink applications, which is applied to a short message terminal. The concurrency control method for short message uplink applications includes:
[0062] When the monitoring time is reached, the regional service frequency controller, the global service frequency controller, the transmitting power amplifier controller and the instruction cache queue are subjected to status determination, and when the result of the status determination meets the preset conditions, the two different types of uplink application instructions in the instruction cache queue are sequentially subjected to sending control operations in the order of the time of entering the queue, and the types include the global short message type and the regional short message type, and the sending control operations include:
[0063] An uplink application instruction with the earliest enqueue time is determined as the current uplink application instruction, and when the state configuration of the first target service frequency controller is completed based on the first service frequency, the transmitting power amplifier controller is called to send the current uplink application instruction based on the transmission parameters provided by the first target service frequency controller, wherein the first service frequency is a service frequency corresponding to the type of the current uplink application instruction, the first target service frequency controller has a corresponding relationship with the current uplink application instruction, and the first target service frequency controller is a regional service frequency controller or a global service frequency controller.
[0064] It should be noted that, in actual application scenarios, the trigger condition for the above monitoring time can be an interrupt signal output by a pulse per second (PPS) interrupt trigger in the short message terminal. Specifically: the interrupt trigger starts counting the second pulse after power-on, and when the number of second pulses received reaches the preset number, it prompts the short message terminal to reach the monitoring time. In order to ensure the time synchronization between the terminal and the satellite navigation system, the above preset number can be the launch time of the satellite navigation system. For example, the launch time of the Beidou-3 satellite navigation system is 32PPS, that is, 32 divided by the second pulse, and the duration of one pulse is 31.25 milliseconds.
[0065] It should be noted that, in actual application scenarios, the regional service frequency controller and the global service frequency controller may be deployed in a short message terminal, and are program scripts for controlling the transmission frequency of corresponding types of uplink application instructions based on the service frequency of the corresponding type. The present application deploys the regional service frequency controller and the global service frequency controller in a short message terminal, thereby realizing corresponding uplink application transmission frequency control based on two types of service frequencies in a short message terminal without making hardware changes to the short message terminal.
[0066] It should be noted that, in actual application scenarios, the above-mentioned transmit power amplifier controller is a hardware device deployed in a short message terminal and used to adjust the transmit power.
[0067] It should be noted that, in an actual application scenario, the above-mentioned instruction cache queue is a data queue for storing uplink application instructions input by a user to a short message terminal.
[0068] It should be noted that, in actual application scenarios, the regional service frequency controller, the global service frequency controller and the transmitting power amplifier controller include an idle state and an occupied state, which can be identified by the state flag of the controller. The state of the instruction cache queue includes satisfying the preset conditions and not satisfying the preset conditions, which can be realized by identifying the queue parameters. When the state flag of the controller is in an occupied state, it indicates that the controller is performing the sending control operation of the uplink application instruction at the previous moment, and the uplink application instruction in the instruction cache queue after this monitoring moment cannot be performed. And when the instruction cache queue is in a state that does not meet the preset conditions (for example: two uplink application instructions of the same instruction type, only one uplink application instruction, no uplink application instruction, etc.), the sending control operation provided by the first aspect of the present application cannot be performed. Therefore, the present application is configured to perform sending control operations on two different types of uplink application instructions in the instruction cache queue in sequence according to the order of the time of entering the queue when the result of the state determination meets the preset conditions, thereby avoiding interference with the sending control operation being executed and improving the sending reliability of the uplink application instruction.
[0069] It should be noted that, in actual application scenarios, since there is a corresponding relationship between the service frequency and the type of the uplink application instruction, and the service frequency limits the minimum time interval for sending two uplink application instructions of the same type. Therefore, in the case where only a plurality of uplink application instructions of the same type are stored in the above-mentioned instruction cache queue, the sending operation of each uplink application instruction in the above-mentioned instruction cache queue can be a sequential sending operation in the prior art, and the sequential sending operation specifically includes: after completing the sending of the current uplink application instruction in the instruction cache queue, and starting to perform the sequential sending operation from the current uplink application instruction to the time length of the service frequency, executing the sending operation of an uplink application instruction after the current uplink application instruction.
[0070] It should be noted that, in an actual application scenario, the transmission parameter provided by the first target service frequency controller is a control parameter used to control the frequency of sending instructions in the process of sending uplink application instructions.
[0071] When it is monitored that the transmitting controller completes the sending operation and the status configuration of the second target service frequency controller is completed based on the second service frequency, the transmitting power amplifier controller is called to perform a sending operation on the uplink application instructions other than the current uplink application instruction in the instruction cache queue based on the transmission parameters provided by the second target service frequency controller. The second target service frequency controller has a corresponding relationship with the uplink application instruction. The second target service frequency controller is a regional service frequency controller or a global service frequency controller. The second service frequency is a service frequency corresponding to the type of the uplink application instruction.
[0072] It should be noted that, in an actual application scenario, the implementation method of calling the transmitting power amplifier controller to send the uplink application instruction (or the current uplink application instruction) may include the following steps A1 to A4.
[0073] Step A1, set the state flag position of the transmitting power amplifier controller to the occupied state, call the transmitting power amplifier controller to parse the uplink application instruction, obtain the uplink transmission message, and trigger step A2.
[0074] Step A2, calling the transmitting power amplifier controller to add a frame structure to the uplink transmission message, and triggering step A3.
[0075] Step A3, calling the transmitting power amplifier controller to send the uplink transmission message according to the service frequency defined by the transmission parameters provided by the service frequency controller (the first target service frequency controller or the second target service frequency controller), and triggering step A4.
[0076] Step A4, when the sending operation in step A3 is completed, the state flag position of the transmitting power amplifier controller is set to an idle state.
[0077] The present application is configured to perform state determination on the regional service frequency controller, the global service frequency controller, the transmitting power amplifier controller and the instruction cache queue, and when the result of the state determination meets the preset conditions, the uplink application instruction with the earliest entry time in the instruction cache queue is determined as the current uplink application instruction, and when the state configuration of the first target service frequency controller is completed based on the target service frequency, the transmitting power amplifier controller is called based on the transmission parameters provided by the first target service frequency controller corresponding to the current uplink application instruction to perform a sending operation on the current uplink application instruction. Subsequently, when the configuration monitors that the transmitting controller completes the sending operation, the current uplink application instruction is updated to an uplink application instruction other than the current uplink application instruction that has not been updated, and the transmitting power amplifier controller is called based on the transmission parameters provided by the second target service frequency controller to perform a sending operation on the updated current uplink application instruction. Compared with the prior art, the present application does not need to support the sending operation of two types of uplink applications with a single service frequency, and avoids the problem of reduced uplink application efficiency caused by a long interval between two uplink applications due to a single service frequency being too long in the scenario of two types of uplink applications being concurrent. It can be seen that the present application improves the uplink application efficiency of short message terminals adapted to the BeiDou-3 satellite navigation system in concurrent uplink application scenarios.
[0078] In a possible implementation, the process of adding an upstream application instruction to an instruction cache queue includes:
[0079] In the case of monitoring an entry request of an uplink application instruction, determining the type of the uplink application instruction according to the frequency point mark of the uplink application instruction;
[0080] Determine whether the target service frequency controller corresponding to the type is in idle state. If so, add the uplink application instruction to the instruction cache queue. If not, discard the uplink application instruction. The target service frequency controller is a regional service frequency controller or a global service frequency controller.
[0081] It should be noted that, in actual application scenarios, the process of adding the uplink application instruction to the instruction cache queue and the sending control operation can be executed by two different threads, such as an initialization thread and a sending thread, wherein the initialization thread can perform not only the operation of adding the uplink application instruction to the instruction cache queue, but also the operation of initializing the short message terminal. The process of the initialization thread performing the above two operations may include the following: Figure 3 The steps shown are:
[0082] like Figure 3 As shown in the figure, it is the operation flow chart of initializing the thread. The specific operation steps are as follows:
[0083] Step S301, in response to a power-on signal, starts to perform an initialization operation on the short message terminal, and triggers step S302.
[0084] Step S302: The short message terminal authorization component reads the built-in RSMC service frequency and GSMC service frequency, and triggers step S303.
[0085] Step S303: perform the following initialization operations on the regional service frequency controller and the global service frequency controller respectively: set the built-in counter of the target service frequency controller to 0, and trigger step S304.
[0086] In a possible implementation, the target service frequency controller in step S303
[0087] Step S304, the state flag of the transmitting power amplifier controller is set to an idle state, and step S305 is triggered.
[0088] Step S305: reset the instruction cache queue and set the queue depth value of the instruction cache queue to 0. Step S306 is triggered.
[0089] It should be noted that in actual application scenarios, the above Figure 3 Steps S302, S303, S304 and S305 shown in FIG. Figure 3 The execution order shown is executed sequentially or concurrently. This application does not impose too many restrictions on the execution order of the above steps.
[0090] Step S306, completing the initialization operation of the short message terminal, and triggering step S307.
[0091] Step S307, determine whether an entry request of an uplink application instruction is monitored. If yes, step S308 is triggered, if no, step S307 is triggered.
[0092] In one possible implementation, the above Figure 3 The specific implementation of step S307 shown can be to dynamically monitor the short message communication instructions issued by the user in the short message terminal. When the short message communication instruction is detected, it indicates that there is an enqueue request for the uplink application instruction. The short message communication instruction includes the TCQ command identifier of the uplink communication application instruction / command defined in the satellite navigation system implementation standard (BD430077.2-2022).
[0093] Step S308, identifying the frequency mark of the uplink application instruction in step S307, confirming the type of the uplink application instruction, and triggering step S309.
[0094] In one possible implementation, the above Figure 3 The specific implementation of step S308 shown can be: taking RSMC type and GSMC type uplink application instructions as examples, the frequency point mark of the RSMC type uplink application instruction is usually Lf1 or Lf2, while the frequency point mark of the GSMC type uplink application instruction is usually Lf4. By performing character recognition on the frequency point mark, the type of the uplink application instruction can be determined.
[0095] Step S309: Determine the target service frequency controller according to the type of the uplink application instruction determined in step S308, and trigger step S310.
[0096] Step S310, determining whether the state of the target service frequency controller determined in step S309 is an idle state. If yes, step S311 is triggered. If no, step S312 is triggered.
[0097] Step S311, adding the upstream application instruction to the instruction cache queue, and increasing the queue depth by 1.
[0098] Step S312, discard the uplink application instruction, and feed back the feedback result of discarding the instruction to the front end.
[0099] It should be noted that, by configuring the above step S312, the present application avoids interference caused by the target service frequency controller in operation, thereby improving the reliability of sending the uplink application instruction.
[0100] In a possible implementation, completing state configuration of the first target service frequency controller based on the first service frequency includes:
[0101] A quotient value of the first service frequency divided by a preset minimum duration counting unit is obtained, and a value of a built-in counter of the first target service frequency controller is updated to the quotient value.
[0102] It should be noted that, in actual application scenarios, there are multiple ways to configure the state of the first target service frequency controller. Here, an exemplary method is provided, including the following steps B1 to B2:
[0103] Step B1: According to the first target service frequency X, the formula: servicetick=X / T unit , get the countdown initial value servicetick, where T unit It is the preset minimum duration counting unit. For the BeiDou-3 satellite navigation system, this value can be set to 31.25 milliseconds. And trigger step B2.
[0104] Step B2, using the countdown initial value servicetick obtained in step B1, assigns a value to the built-in counter of the first target service frequency controller, and completes the state configuration of the first target service frequency controller, so that the first target service frequency controller starts the countdown when providing the transmission parameters, thereby starting to calculate the sending interval between two uplink application instructions.
[0105] It should be noted that, in actual application scenarios, the implementation method of completing the state configuration of the second target service frequency controller based on the second service frequency is the same as the above-mentioned state configuration of the first target service frequency controller, and this application will not go into details.
[0106] In a possible implementation, the above-mentioned preset conditions include:
[0107] The status flags of the regional service frequency controller, the global service frequency controller and the transmitting power amplifier controller all represent an idle state, and the queue depth value of the instruction cache queue is 2.
[0108] In order to facilitate the understanding of a concurrency control method for a short message uplink application provided in the first aspect of the present application, a possible implementation of the present application is specifically described here:
[0109] like Figure 4 FIG. 1 is a flowchart of a method for concurrent control of short message uplink application, and the specific operation steps are as follows:
[0110] Step S401, the sending thread is started, and step S402 is triggered.
[0111] Step S402, determine whether the monitoring time has arrived. If yes, then trigger step S403, if no, then trigger step S402.
[0112] In a possible implementation, the specific implementation of the above step S402 may be: determining whether a 32PPS interrupt trigger signal is monitored.
[0113] Step S403, perform the following operations on the regional service frequency controller and the global service frequency controller in sequence: determine whether the target service frequency controller is in an idle state. If yes, trigger step S404, if no, trigger step S405.
[0114] The target service frequency controller in the above step S403 is the above regional service frequency controller and the global service frequency controller.
[0115] Step S404, determining whether the transmitting power amplifier controller is in an idle state, if so, triggering step S406, if not, triggering step S402.
[0116] Step S405: reduce the countdown value of the built-in counter of the target service frequency controller by 1, and trigger step S402.
[0117] Step S406, determining whether the queue depth value of the instruction cache queue is 2. If yes, triggering step S407. If no, executing step S408.
[0118] It should be noted that, in an actual application scenario, in addition to the operation of determining whether the queue depth value is 2, the above step S406 may also include the following operation steps: determining whether the queue depth value of the instruction cache queue is 0, and if so, triggering step S402. If not, determining whether the queue depth value of the instruction cache queue is 1, and if so, dequeuing the uplink application instruction in the current instruction cache queue, and calling the corresponding service frequency based on the type of the uplink application instruction, configuring the state of the target service frequency controller corresponding to the type of the uplink application instruction, and calling the transmitting power amplifier controller to perform a sending control operation on the uplink application instruction based on the target service frequency controller, and triggering step S402 after completion. If not, executing the operation step of determining whether the queue depth value of the instruction cache queue is 2 in the above step S406.
[0119] It should be noted that, in actual application scenarios, for the convenience of description, in the above step S406, only the operation step of determining whether the queue depth value of the instruction cache queue is 2 is configured. However, when the instruction cache queue depth value is 2, but the types of the two uplink application instructions are the same, it is necessary to execute the prior art to perform the sending operations of the two uplink application instructions in sequence according to the service frequency corresponding to the type. Therefore, the application premise of the above step S406 is: configure the initialization thread to only allow two different types of uplink application instructions to enter the queue during the process of executing the enqueuing of the uplink application instruction; or after the queue depth value of the instruction cache queue is determined to be 2, determine whether the types of the two uplink application instructions in the instruction cache queue are different. If so, trigger step S407. If not, perform the sending operation on the two uplink application instructions in sequence according to the prior art.
[0120] Step S407: determine the earliest uplink application instruction in the instruction cache queue as the current uplink application instruction, and when the state configuration of the first target service frequency controller is completed based on the first service frequency, call the transmitting power amplifier controller to send the current uplink application instruction based on the transmission parameters provided by the first target service frequency controller, and trigger step S409.
[0121] Step S408, according to the order of entering the queue, for each uplink application instruction of the same type in the instruction cache queue, the following steps are performed: based on the service frequency corresponding to the type, the state of the target service frequency controller corresponding to the type is configured, the uplink application instruction with the earliest time of entering the queue of the type is determined as the current uplink application instruction, the transmitting power amplifier controller is called based on the transmission parameters provided by the target service frequency controller of the type, the current uplink application instruction is sent, and when the sending is completed and the interval time defined by the service frequency corresponding to the type is reached, the current uplink application instruction is updated to the first uplink application instruction of the type with a time of entering the queue later than the current uplink instruction, and the above-mentioned operation step of calling the transmitting power amplifier controller based on the transmission parameters provided by the target service frequency controller of the type to send the current uplink application instruction is executed. Step S410 is triggered.
[0122] It should be noted that in actual application scenarios, for the convenience of description, the above Figure 4 The default queue depth value in step S408 is shown to be an integer greater than 2.
[0123] Step S409, when it is detected that the transmitting controller completes the sending operation and the state configuration of the second target service frequency controller is completed based on the second service frequency, the transmitting power amplifier controller is called to send the uplink application instructions in the instruction cache queue except the current uplink application instruction based on the transmission parameters provided by the second target service frequency controller, and step S402 is triggered.
[0124] Step S410, completing the sending operation of each uplink application instruction of the same type in the instruction cache queue, triggering step S402.
[0125] A second aspect of the present application provides a short message terminal, including:
[0126] The operation unit is used to determine the status of the regional service frequency controller, the global service frequency controller, the transmitting power amplifier controller and the instruction cache queue when the monitoring time is reached, and when the result of the status determination meets the preset conditions, perform sending control operations on two different types of uplink application instructions in the instruction cache queue in sequence according to the order of entry time, and the types include global short message type and regional short message type. The sending control operation includes:
[0127] Determine an uplink application instruction with the earliest queue entry time as the current uplink application instruction, and, when the state configuration of the first target service frequency controller is completed based on the first service frequency, call the transmitting power amplifier controller to send the current uplink application instruction based on the transmitting parameters provided by the first target service frequency controller, wherein the first service frequency is a service frequency corresponding to the type of the current uplink application instruction, the first target service frequency controller has a corresponding relationship with the current uplink application instruction, and the first target service frequency controller is a regional service frequency controller or a global service frequency controller;
[0128] When it is monitored that the transmitting controller completes the sending operation and the status configuration of the second target service frequency controller is completed based on the second service frequency, the transmitting power amplifier controller is called to perform a sending operation on the uplink application instructions other than the current uplink application instruction in the instruction cache queue based on the transmission parameters provided by the second target service frequency controller. The second target service frequency controller has a corresponding relationship with the uplink application instruction. The second target service frequency controller is a regional service frequency controller or a global service frequency controller. The second service frequency is a service frequency corresponding to the type of the uplink application instruction.
[0129] In a possible implementation, the instruction cache queue is set to:
[0130] In the case of monitoring an entry request of an uplink application instruction, determining the type of the uplink application instruction according to the frequency point mark of the uplink application instruction;
[0131] Determine whether the target service frequency controller corresponding to the type is in idle state. If so, add the uplink application instruction to the instruction cache queue. If not, discard the uplink application instruction. The target service frequency controller is a regional service frequency controller or a global service frequency controller.
[0132] In a possible implementation, when the operation unit completes the state configuration of the first target service frequency controller based on the first service frequency, the operation unit is configured to:
[0133] A quotient value of the first service frequency divided by a preset minimum duration counting unit is obtained, and a value of a built-in counter of the first target service frequency controller is updated to the quotient value.
[0134] In a possible implementation, the preset conditions in the operation unit include:
[0135] The status flags of the regional service frequency controller, the global service frequency controller and the transmitting power amplifier controller all represent an idle state, and the queue depth value of the instruction cache queue is 2.
[0136] A third aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:
[0137] The memory is used to store computer programs;
[0138] The processor is used to execute a computer program so that the electronic device can implement the concurrency control method for short message uplink application of the above-mentioned first aspect or any implementation method of the first aspect.
[0139] The fourth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the concurrency control method for the short message uplink application of the above-mentioned first aspect or any implementation method of the first aspect.
[0140] A structural schematic diagram of an electronic device provided in the third aspect of the present application is as follows Figure 5 The electronic device in the embodiment of the present application may include but is not limited to a fixed terminal such as a handheld terminal, a notebook computer, a PDA (personal digital assistant), a PAD (tablet computer), a desktop computer, etc. Figure 5 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0141] like Figure 5As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 to a random access memory (RAM) 503. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 503. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0142] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a memory card, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0143] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any concurrency control method for short message uplink applications provided in the embodiment of the present application.
[0144] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
[0145] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0146] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0147] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
Claims
1. A concurrency control method for short message uplink application, characterized in that: Applicable to short message terminals, including: When the monitoring time is reached, the regional service frequency controller, the global service frequency controller, the transmitting power amplifier controller and the instruction cache queue are subjected to status determination, and when the result of the status determination meets the preset condition, two different types of uplink application instructions in the instruction cache queue are sequentially subjected to sending control operations in accordance with the order of the time of entering the queue, the types including the global short message type and the regional short message type, and the sending control operations include: Determine the uplink application instruction with the earliest queue entry time as the current uplink application instruction, and when the state configuration of the first target service frequency controller is completed based on the first service frequency, call the transmitting power amplifier controller to send the current uplink application instruction based on the transmission parameters provided by the first target service frequency controller, wherein the first service frequency is a service frequency corresponding to the type of the current uplink application instruction, the first target service frequency controller has a corresponding relationship with the current uplink application instruction, and the first target service frequency controller is the regional service frequency controller or the global service frequency controller; When it is monitored that the transmitting controller completes the sending operation and when the state configuration of the second target service frequency controller is completed based on the second service frequency, the transmitting power amplifier controller is called to perform a sending operation on the uplink application instruction in the instruction cache queue except the current uplink application instruction based on the transmission parameters provided by the second target service frequency controller, the second target service frequency controller has a corresponding relationship with the uplink application instruction, the second target service frequency controller is the regional service frequency controller or the global service frequency controller, and the second service frequency is a service frequency corresponding to the type of the uplink application instruction.
2. The concurrency control method for uplink short message application according to claim 1, characterized in that: The process of adding the uplink application instruction to the instruction cache queue includes: In the case of monitoring the queue entry request of the uplink application instruction, determining the type of the uplink application instruction according to the frequency point flag of the uplink application instruction; Determine whether the target service frequency controller corresponding to the type is in an idle state. If so, add the uplink application instruction to the instruction cache queue; if not, discard the uplink application instruction, wherein the target service frequency controller is the regional service frequency controller or the global service frequency controller.
3. The concurrency control method for uplink short message application according to claim 1, characterized in that: The completing state configuration of the first target service frequency controller based on the first service frequency includes: A quotient value obtained by dividing the first service frequency by a preset minimum duration counting unit is obtained, and a value of a built-in counter of the first target service frequency controller is updated to the quotient value.
4. The concurrency control method for uplink short message application according to claim 1, characterized in that: The preset conditions include: The status flags of the regional service frequency controller, the global service frequency controller and the transmitting power amplifier controller all represent an idle state, and the queue depth value of the instruction cache queue is 2.
5. A short message terminal, characterized in that: include: The operation unit is used to perform status determination on the regional service frequency controller, the global service frequency controller, the transmitting power amplifier controller and the instruction cache queue when the monitoring time is reached, and when the result of the status determination meets the preset condition, perform sending control operations on two different types of uplink application instructions in the instruction cache queue in sequence according to the order of entry time, the types including the global short message type and the regional short message type, and the sending control operations include: Determine the uplink application instruction with the earliest queue entry time as the current uplink application instruction, and when the state configuration of the first target service frequency controller is completed based on the first service frequency, call the transmitting power amplifier controller to send the current uplink application instruction based on the transmission parameters provided by the first target service frequency controller, wherein the first service frequency is a service frequency corresponding to the type of the current uplink application instruction, the first target service frequency controller has a corresponding relationship with the current uplink application instruction, and the first target service frequency controller is the regional service frequency controller or the global service frequency controller; When it is monitored that the transmitting controller completes the sending operation and when the state configuration of the second target service frequency controller is completed based on the second service frequency, the transmitting power amplifier controller is called to perform a sending operation on the uplink application instruction in the instruction cache queue except the current uplink application instruction based on the transmission parameters provided by the second target service frequency controller, the second target service frequency controller has a corresponding relationship with the uplink application instruction, the second target service frequency controller is the regional service frequency controller or the global service frequency controller, and the second service frequency is a service frequency corresponding to the type of the uplink application instruction.
6. The short message terminal according to claim 5, characterized in that: The instruction cache queue is set to: In the case of monitoring the queue entry request of the uplink application instruction, determining the type of the uplink application instruction according to the frequency point flag of the uplink application instruction; Determine whether the target service frequency controller corresponding to the type is in an idle state. If so, add the uplink application instruction to the instruction cache queue; if not, discard the uplink application instruction, wherein the target service frequency controller is the regional service frequency controller or the global service frequency controller.
7. The short message terminal according to claim 5, characterized in that: When the operation unit completes the state configuration of the first target service frequency controller based on the first service frequency, the operation unit is configured to: A quotient value obtained by dividing the first service frequency by a preset minimum duration counting unit is obtained, and a value of a built-in counter of the first target service frequency controller is updated to the quotient value.
8. The short message terminal according to claim 5, characterized in that: The preset conditions in the operation unit include: The status flags of the regional service frequency controller, the global service frequency controller and the transmitting power amplifier controller all represent an idle state, and the queue depth value of the instruction cache queue is 2.
9. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the concurrency control method for short message uplink application as described in any one of claims 1 to 4.
10. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the concurrency control method for short message uplink application as described in any one of claims 1 to 4.