Iridium equipment control method, equipment and system
By using interrupt modules in Iridium equipment to switch the operating mode and establish a session with Iridium, the problem of unreasonable switching of Iridium equipment to switch the operating mode is solved, and normal communication and data transmission between the terminal equipment and Iridium is achieved.
Patent Information
- Application Number
- CN202111679267.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2041-12-31
AI Technical Summary
It is difficult to achieve reasonable switching in existing Iridium devices when switching operation modes, affecting the normal communication between terminal devices and Iridium.
By introducing an interrupt module into the Iridium device, switching the operating mode to the standard mode according to the interrupt event in low-power mode, and establishing a conversation with Iridium in standard mode to ensure Bluetooth connection between the terminal device and Iridium.
Reasonable switching of Iridium equipment operation mode is achieved, normal data transmission between the terminal equipment and Iridium is ensured, and standby power consumption is reduced.
Smart Images

Figure CN114337788B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to an Iridium device control method, device, and system. Background Art
[0002] The Iridium system is a satellite system used for global communications. Terminal devices can use Iridium devices as relays to transmit data with Iridium.
[0003] In order to reduce the power consumption of Iridium devices, Iridium devices have set up another operating mode besides standard mode, namely low power mode. In low power mode, the Iridium device is disconnected from Iridium and only requires very little power to operate. Therefore, switching the operating mode of Iridium devices can reduce the power consumption of Iridium devices while ensuring normal communication between terminal devices and Iridium.
[0004] At present, there is a need to provide an operating mode switching solution to achieve reasonable switching of the operating mode of Iridium equipment and ensure normal communication between terminal equipment and Iridium. Summary of the invention
[0005] The embodiments of the present application provide an Iridium device control method, device and system to achieve reasonable switching of the operating mode of the Iridium device and ensure normal communication between the terminal device and the Iridium.
[0006] In a first aspect, an embodiment of the present application provides an Iridium device control method, which is applied to an Iridium device, and the method includes:
[0007] According to an interruption event when the Iridium device is in a low power consumption mode, switching the operation mode of the Iridium device from the low power consumption mode to the standard mode, and establishing a session with Iridium in the standard mode, wherein the Iridium device establishes a Bluetooth connection with the terminal device;
[0008] Perform data transmission between the terminal device and the Iridium satellite.
[0009] In a possible implementation, the Iridium device includes a main control chip and an interrupt module; and according to an interrupt event when the Iridium device is in a low power consumption mode, switching the operating mode of the Iridium device from the low power consumption mode to the standard mode includes:
[0010] The interrupt module triggers an interrupt according to the interrupt event;
[0011] The main control chip switches the operating mode from the low power consumption mode to the standard mode according to the triggered interrupt.
[0012] In a possible implementation, the interrupt module includes a timer; and the interrupt module triggers an interrupt according to the interrupt event, including:
[0013] In response to the running time of the timer reaching a preset time, the timer triggers a timer interrupt.
[0014] In a possible implementation, the interrupt module includes a low power universal asynchronous receiver / transmitter LPUART module; the interrupt module triggers an interrupt according to the interrupt event, including:
[0015] In response to receiving uplink data to be transmitted from the terminal device, the LPUART module triggers a receive interrupt.
[0016] In a possible implementation, the interrupt module includes an input / output (IO) module; and the interrupt module triggers an interrupt according to the interrupt event, including:
[0017] In response to a key command for the Iridium device, the IO module triggers an IO interrupt.
[0018] In a possible implementation, the Iridium device includes a sending buffer and a receiving buffer, the sending buffer is used to store uplink data to be transmitted, and the receiving buffer is used to store downlink data to be transmitted; the data transmission between the terminal device and the system includes:
[0019] When the sending buffer includes uplink data, sending the uplink data to the Iridium satellite; and / or,
[0020] When the receiving buffer includes downlink data, the downlink data is sent to the terminal device.
[0021] In a possible implementation, the Iridium device further includes a Bluetooth module, and the method further includes:
[0022] The uplink data to be transmitted is received from the terminal device through the Bluetooth module, and the uplink data is stored in the sending buffer.
[0023] In a possible implementation, the Iridium device further includes a transceiver module; and the method further includes:
[0024] The downlink data to be transmitted is obtained from the Iridium satellite through the transceiver module, and the downlink data is stored in the receiving buffer.
[0025] In a possible implementation, the method further includes:
[0026] The operating mode is switched from the standard mode to the low power consumption mode.
[0027] In a second aspect, an embodiment of the present application provides an Iridium device control device, including:
[0028] A switching module, configured to switch the operating mode of the Iridium device from the low power consumption mode to the standard mode according to an interruption event when the Iridium device is in the low power consumption mode, and establish a session with Iridium in the standard mode, wherein the Iridium device establishes a Bluetooth connection with the terminal device;
[0029] A processing module is used for performing data transmission between the terminal device and the Iridium satellite.
[0030] In a possible implementation, the device includes a main control chip and an interrupt module; the switching module is specifically used to:
[0031] The interrupt module triggers an interrupt according to the interrupt event;
[0032] The main control chip switches the operating mode from the low power consumption mode to the standard mode according to the triggered interrupt.
[0033] In a possible implementation manner, the device includes a timer; and the switching module is specifically configured to:
[0034] In response to the running time of the timer reaching a preset time, the timer triggers a timer interrupt.
[0035] In a possible implementation, the device includes an LPUART module; and the switching module is specifically used for:
[0036] In response to receiving uplink data to be transmitted from the terminal device, the LPUART module triggers a receive interrupt.
[0037] In a possible implementation, the device includes an input / output (IO) module; the switching module is specifically configured to:
[0038] In response to a key command for the Iridium device, the IO module triggers an IO interrupt.
[0039] In a possible implementation, the device includes a sending buffer and a receiving buffer, the sending buffer is used to store uplink data to be transmitted, and the receiving buffer is used to store downlink data to be transmitted; the processing module is specifically used to:
[0040] When the sending buffer includes uplink data, sending the uplink data to the Iridium satellite; and / or,
[0041] When the receiving buffer includes downlink data, the downlink data is sent to the terminal device.
[0042] In a possible implementation manner, the processing module is further configured to:
[0043] The uplink data to be transmitted is received from the terminal device through the Bluetooth module, and the uplink data is stored in the sending buffer.
[0044] In a possible implementation manner, the processing module is further configured to:
[0045] The downlink data to be transmitted is obtained from the Iridium satellite through the transceiver module, and the downlink data is stored in the receiving buffer.
[0046] In a possible implementation manner, the switching module is further configured to:
[0047] The operating mode is switched from the standard mode to the low power consumption mode.
[0048] In a third aspect, an embodiment of the present application provides an Iridium device, including:
[0049] Memory, used to store programs;
[0050] A processor is used to execute the program stored in the memory. When the program is executed, the processor is used to execute the Iridium device control method as described in any one of the first aspects.
[0051] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enables the computer to execute an Iridium device control method as described in any one of the first aspects.
[0052] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the Iridium device control method as described in any one of the first aspects.
[0053] The Iridium device control method, device and system provided in the embodiment of the present application, the Iridium device switches the operation mode of the Iridium device from the low power mode to the standard mode according to the interrupt event in the low power mode, and establishes a session with Iridium in the standard mode, and a Bluetooth connection is also established between the Iridium device and the terminal device, so when the Iridium device establishes a session with Iridium and the Iridium device detects that the Iridium signal is good, it can be used as a relay to perform data transmission between the terminal device and Iridium, which can include uplink data transmission and downlink data transmission. In the scheme of the embodiment of the present application, when data transmission is not required, the Iridium device is in a low power mode of timed wake-up to reduce standby power consumption, and when data transmission is required, the operation mode is switched according to the interrupt event, and the data transmission between the terminal device and Iridium is completed after the operation mode is switched, which can realize the reasonable switching of the operation mode of the Iridium device and ensure the normal communication between the terminal device and Iridium when the standby power consumption of the Iridium device is low. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0055] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;
[0056] Figure 2 A flowchart of an Iridium device control method provided in an embodiment of the present application;
[0057] Figure 3 A schematic diagram of the structure of the Iridium device provided in the embodiment of the present application;
[0058] Figure 4 A schematic diagram of triggering an interrupt provided in an embodiment of the present application;
[0059] Figure 5 A schematic diagram of operating mode switching provided in an embodiment of the present application;
[0060] Figure 6 A schematic diagram of data transmission provided in an embodiment of the present application;
[0061] Figure 7 A schematic diagram of a process for a Bluetooth module to receive uplink data provided in an embodiment of the present application;
[0062] Figure 8 A schematic diagram of a process for sending downlink data by a transceiver module provided in an embodiment of the present application;
[0063] Fig. 9 A schematic diagram of a process of sending and receiving data by a transceiver module provided in an embodiment of the present application;
[0064] Fig.10 A schematic diagram of the structure of an Iridium device control device provided in an embodiment of the present application;
[0065] Fig.11 A schematic diagram of the hardware structure of the Iridium device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0067] The purpose of low-power management in embedded systems is to reduce system energy consumption as much as possible to extend device standby time while meeting user performance requirements. The contradiction between high performance and limited power is most prominent in embedded systems, so the joint application of hardware low-power design and software low-power management has become an effective means to resolve the contradiction. Currently, low-power management mainly includes three implementation methods. The first implementation method is processor power management, which is the dynamic management of the CPU frequency and the adjustment of the working mode when the system is idle to reduce power consumption; the second implementation method is device power management, which is mainly to reduce power consumption by shutting down individual idle components; the third implementation method is system platform power management, which is mainly customized for uncommon devices on a specific system platform. The Iridium devices in the Iridium system use the third implementation method to reduce power consumption.
[0068] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application, such as Figure 1 As shown, it includes terminal equipment 11, Iridium equipment 12 and Iridium satellite 13.
[0069] The terminal device 11 may be, for example, a mobile phone or other device. The terminal device 11 may be connected to the Iridium device 12 via Bluetooth. The Iridium device 12 may be a handheld device. The Iridium 13 is a satellite. The terminal device 11 and the Iridium 13 may transmit data via the Iridium device 12, that is, the Iridium device 12 may serve as a relay device between the terminal device 11 and the Iridium 13.
[0070] The Iridium device 12 can adopt a system-level power management solution, and set two different operating modes, namely standard mode and low power mode, according to the communication needs of the Iridium device 12. The low power mode is relative to the standard mode. In the low power mode, the microcontroller unit (MCU) in the Iridium device 12 enters sleep mode, and the transceiver module and GPS module of the Iridium device 12 are powered off, thereby minimizing the power consumption of the Iridium device 12.
[0071] Low power consumption mode is the main technical means for Iridium device 12 to reduce power consumption. In low power consumption mode, since the operating system of Iridium device 12 stops working, communication between terminal device 11 and Iridium 13 is impossible. When communication is required between terminal device 11 and Iridium 13, the operating mode of Iridium device 12 needs to be switched to standard mode.
[0072] exist Figure 1 The application scenarios of this application are introduced in Figure 2 The solution of this application is introduced in detail.
[0073] Figure 2 The flowchart of the Iridium device control method provided in the embodiment of the present application is shown in FIG. Figure 2 As shown, the method may include:
[0074] S21, according to the interrupt event of the Iridium device in the low power mode, the operation mode of the Iridium device is switched from the low power mode to the standard mode, and a session is established with Iridium in the standard mode, wherein the Iridium device establishes a Bluetooth connection with the terminal device.
[0075] The operating modes of Iridium devices include standard mode and low power consumption mode. In standard mode, when the Iridium device detects that the Iridium signal is good, the Iridium device can act as a relay between the terminal device and Iridium to achieve data transmission between the terminal device and Iridium. In low power consumption mode, the Iridium device enters sleep mode, and the transceiver module and GPS module of the Iridium device are powered off. The MCU in the Iridium device can also enter sleep mode, and the MCU is turned off, thereby reducing the standby power consumption of the Iridium device.
[0076] The Iridium device is connected to the terminal device via Bluetooth. The distance between the Iridium device and the terminal device needs to be within a certain distance range to ensure good Bluetooth connection quality between the Iridium device and the terminal device.
[0077] After power-on initialization, the Iridium device will enter low-power mode by default to ensure that the standby power consumption of the Iridium device is reduced to extend the standby time of the Iridium device. When the Iridium device is in low-power mode and an interrupt event occurs, the Iridium device will be awakened, and then the Iridium device will switch the operating mode from low-power mode to standard mode according to the interrupt event.
[0078] In the process of switching from low-power mode to standard mode, each sleeping component in the Iridium device will also be awakened and enter the normal working mode. Then the Iridium device decides whether to establish a session with Iridium based on the needs. The interrupt event of the Iridium device in low-power mode can be triggered internally or externally by the Iridium device.
[0079] S22, data transmission between the terminal device and the Iridium satellite.
[0080] When the Iridium device switches from low power mode to standard mode and detects that the Iridium signal is good, the Iridium device can act as a relay between the terminal device and Iridium to perform data transmission between the terminal device and Iridium. Data transmission can include uplink data transmission, that is, the terminal device sends data to Iridium through the Iridium device; data transmission can also include downlink data transmission, that is, Iridium sends data to the terminal device through the Iridium device.
[0081] The Iridium device control method provided in the embodiment of the present application is that the Iridium device switches the operation mode of the Iridium device from the low power mode to the standard mode according to the interrupt event in the low power mode, and decides whether to establish a session with Iridium according to the business needs in the standard mode, and a Bluetooth connection is also established between the Iridium device and the terminal device, so when the Iridium device detects that the Iridium signal is good, it can be used as a relay to perform data transmission between the terminal device and Iridium, which can include uplink data transmission and downlink data transmission. In the scheme of the embodiment of the present application, when there is no need to perform data transmission, the Iridium device is in a low power mode of timed wake-up to reduce standby power consumption, and in the low power mode of timed wake-up, the Iridium device can be regularly awakened to update its own status information and detect whether there is uplink and downlink data, and perform corresponding processing; when data transmission is required, the operation mode is switched according to the interrupt event, and the data transmission between the terminal device and Iridium is completed after the operation mode is switched, which can realize the reasonable switching of the operation mode of the Iridium device and ensure the normal communication between the terminal device and Iridium when the standby power consumption of the Iridium device is small.
[0082] The solution of the present application will be described in detail below with reference to the accompanying drawings.
[0083] Figure 3 The structural diagram of the Iridium device provided in the embodiment of the present application is as follows: Figure 3As shown, the Iridium device consists of a main control chip, a positioning module (including a positioning antenna and GPS), a communication module (including an Iridium module and an Iridium antenna), a Bluetooth module, a power supply module, a power button, an LED indicator light, a battery, a flash memory, and the like. The battery may be, for example, a lithium battery. The main control chip is a chip that supports a low power universal asynchronous receiver / transmitter (LPUART). The Bluetooth module is responsible for data communication between the Iridium device and the terminal device. The four LED lights are used to indicate the status of the signal and the power level.
[0084] The Iridium device also includes an interrupt module, which can trigger an interrupt based on an interrupt event when the Iridium device is in low power mode. The main control chip then switches the operating mode from low power mode to standard mode based on the interrupt triggered by the interrupt module.
[0085] Figure 4 A schematic diagram of triggering an interrupt provided in an embodiment of the present application, such as Figure 4 As shown, the interrupt module may include a timer, an LPUART module and an input / output (IO) module, and different modules trigger different interrupts.
[0086] The timer can start timing after the Iridium device enters the low power mode, and the duration of the timer can be preset. When the timer's running time reaches the preset time, the timer triggers a timer interrupt, and the main control chip switches the running mode from the low power mode to the standard mode, and then updates the status information of the Iridium device. When there is uplink data to be sent in the sending buffer of the Iridium device, the Iridium device establishes a session with Iridium and sends the uplink data to Iridium. When there is no uplink data to be sent in the sending buffer of the Iridium device, the Iridium device will still establish a session with Iridium and determine whether there is downlink data to be sent by Iridium based on the response information sent by Iridium. If there is downlink data to be sent by Iridium, the Iridium device will receive the downlink data sent by Iridium after establishing a session with Iridium, until the Iridium device receives all the downlink data sent by Iridium and stores it in the receiving buffer, the Iridium device will send the downlink data in the receiving buffer to the terminal device.
[0087] The interrupt triggered by the LPUART module is an interrupt triggered according to the instruction of the terminal device. When the terminal device has an uplink data transmission demand, the terminal device can send the uplink data to be transmitted to the Iridium device via Bluetooth. The LPUART module triggers the receiving interrupt in response to receiving the uplink data to be transmitted from the terminal device. Then, the main control chip switches the operating mode from low-power mode to standard mode. When there is uplink data to be sent in the sending buffer, the Iridium device first detects the Iridium signal. When the signal is good, the Iridium device initiates a session and sends the uplink data to Iridium. When the signal is poor or the uplink data sent to Iridium fails for multiple consecutive times, the Iridium device enters sleep mode and waits to be awakened next time to try to send uplink data to Iridium again.
[0088] The interrupt triggered by the IO module is an interrupt triggered by the Iridium device itself. The IO module is a module for emergency processing. When the user operates the Iridium device through the buttons on the Iridium device, the IO module responds to the button instructions for the Iridium device and triggers the IO interrupt. Then, the main control chip switches the operating mode from low-power mode to standard mode, and automatically generates an emergency distress message based on the emergency contacts pre-stored in the Iridium device and the current GPS coordinates and other information. In this state, the Iridium device ignores the Iridium signal and the failure of the transmission. The Iridium device continues to send the emergency distress message until it is successfully sent or the user manually cancels the sending.
[0089] exist Figure 4 The embodiment introduces three ways to trigger interrupt. Figure 5 This section describes how to switch the operation mode. Figure 5 The operating mode switching diagram provided in the embodiment of the present application is as follows: Figure 5 As shown, including:
[0090] S51, RT_Thread PM component initialization.
[0091] The RT_Thread PM component is a component in the operating system of the Iridium device. When the Iridium device is started, the RT_Thread PM component is initialized.
[0092] S52, poll all tasks.
[0093] When the RT_Thread PM component is initialized, the Iridium device will poll the task, mainly to determine whether there is uplink data to be transmitted or downlink data to be transmitted, as well as to detect the current coordinates, Iridium device voltage, temperature and humidity data, and update the Iridium device status information.
[0094] S53, determine whether the system is idle, if so, execute S54, if not, execute S52.
[0095] When there is uplink data to be transmitted or downlink data to be transmitted, the Iridium device is not in an idle state, and S52 is executed; when there is no uplink data to be transmitted or downlink data to be transmitted, the Iridium device is in an idle state, and S54 is executed.
[0096] S54, enter low power consumption mode.
[0097] When the Iridium device is idle, it enters low power mode by default to save power.
[0098] S55, trigger interrupt and switch to standard mode.
[0099] When the Iridium device is in low power mode, if an interrupt event occurs, an interrupt is triggered. The interrupt triggering method can be: Figure 4 Any one of the three implementation methods of the embodiment.
[0100] After the interrupt mode is triggered, the Iridium device will switch to the standard mode and all tasks will run normally. When the Iridium device detects that the Iridium signal is good, data transmission between the terminal device and Iridium can be carried out.
[0101] Figure 6 A schematic diagram of data transmission provided in an embodiment of the present application, such as Figure 6 As shown, the Iridium device includes a sending buffer and a receiving buffer, the sending buffer is used to store uplink data to be transmitted, and the second flash memory is used to store downlink data to be transmitted.
[0102] When the terminal device needs to send uplink data to the Iridium satellite, the terminal device sends the uplink data to be transmitted to the Iridium satellite device. The Iridium satellite device receives the uplink data to be transmitted through the Bluetooth module and then stores the uplink data in the transmission buffer.
[0103] The Iridium device determines whether there is downlink data based on the response information fed back by Iridium during the session. When there is downlink data, the Iridium device initiates a session to receive the downlink data. The Iridium device obtains the downlink data to be transmitted from Iridium through the transceiver module and stores the downlink data in the receiving buffer.
[0104] Therefore, when the Iridium device switches from low-power mode to standard mode, each task runs normally. When there is uplink data, the Iridium device establishes a session to send the uplink data, otherwise the Iridium device will still establish a session so that the Iridium device can determine whether there is downlink data from Iridium based on the response information from Iridium. When there is downlink data from Iridium, the Iridium device establishes a session, receives the downlink data from Iridium, and then saves the downlink data in the receive buffer. When the terminal device is connected to the Iridium device, the Iridium device sends the downlink data in the receive buffer to the terminal device.
[0105] S56, exit the standard mode and execute S52.
[0106] After completing the data transmission task between the terminal device and Iridium, when the Iridium device becomes idle again, the Iridium device exits the standard mode to save power consumption.
[0107] The process will be described below with reference to specific drawings.
[0108] Figure 7 A schematic diagram of a process for receiving uplink data by a Bluetooth module provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, including:
[0109] S71, determine whether LPUART receives uplink data, if so, execute S72, if not, execute S74.
[0110] After the Iridium device is powered on and initialized, each subtask is created. The Bluetooth module is responsible for writing the received uplink data into the send buffer, waiting for the Iridium transceiver thread to read the uplink data in the send buffer and send it. The Bluetooth module is connected to the LPUART interface of the main control chip. Only LPUART can work normally when the main control chip is in low power mode.
[0111] S72, save the uplink data received by LPUART in the sending buffer.
[0112] S73, set the Bluetooth receiving flag position to 1.
[0113] When the Bluetooth receive flag is 1, it indicates that there is uplink data to be transmitted in the send buffer. At this time, the Iridium device needs to send uplink data to Iridium.
[0114] S74, delay, let the scheduler go, and execute S71.
[0115] When there is no uplink data to be transmitted, the scheduler can be released.
[0116] Figure 8 A schematic diagram of a process of sending downlink data by a transceiver module provided in an embodiment of the present application, such as Figure 8 As shown, including:
[0117] S81, determine whether a Bluetooth connection is established with the terminal device, if so, execute S82, if not, execute S84.
[0118] The Bluetooth status pin can be used to determine whether a Bluetooth connection is established between the Iridium device and the terminal device.
[0119] S82, determine whether the receiving buffer is empty, if not, execute S83, if so, execute S84.
[0120] When a Bluetooth connection is established between the Iridium device and the terminal device, it is determined whether the receiving buffer is empty.
[0121] S83, writing the downlink data in the receiving buffer into the Bluetooth module and sending it to the terminal device, and executing S81.
[0122] If there is downlink data to be transmitted in the receiving buffer, the Iridium device sends the downlink data to the terminal device via Bluetooth.
[0123] S84, set the Bluetooth idle flag to 1.
[0124] If there is no downlink data to be transmitted in the receive buffer, or no Bluetooth connection is established between the Iridium device and the terminal device, the Bluetooth idle flag is set to 1.
[0125] S85, delay, let the scheduler go, and execute S81.
[0126] When there is no downlink data to be transmitted, the scheduler can be released.
[0127] Fig. 9 A schematic diagram of a process of sending and receiving data by a transceiver module provided in an embodiment of the present application, such as Fig. 9 As shown, including:
[0128] S91, determine whether the sending buffer is empty, if not, execute S92, if so, execute S93.
[0129] The Iridium device first determines whether there is uplink data to be transmitted in the send buffer.
[0130] S92, sending the uplink data in the sending buffer to the Iridium satellite.
[0131] If there is uplink data in the send buffer, the uplink data is read and sent to Iridium. Since the Iridium device can trigger an interrupt through the timer scheme and switch the operating mode to the standard mode, when the Iridium device is awakened by the timer, even if the send buffer does not include uplink data, the Iridium device needs to establish a connection with Iridium to determine and receive the downlink data sent by Iridium.
[0132] S93, determine whether the downlink data is greater than or equal to 1, if so, execute S94, if not, execute S95.
[0133] When the Iridium device establishes a connection with the Iridium satellite, the transceiver module in the Iridium device can not only receive downlink data, but also obtain the status of the Iridium satellite, including the amount of downlink data to be transmitted.
[0134] S94, obtain downlink data.
[0135] When the amount of downlink data to be transmitted is greater than or equal to 1, repeat the above operation to receive downlink data from the Iridium satellite until all downlink data from the Iridium satellite is received, write the received downlink data into the receiving buffer, and then wait for the Bluetooth module to read the downlink data in the receiving buffer for sending.
[0136] S95, sending downlink data to the terminal device.
[0137] S96, delay, let the scheduler go.
[0138] When there is no downlink data to be transmitted, the scheduler can be released.
[0139] exist Figure 7-Figure 9 In the example, the Iridium device can switch the operating mode through several interrupt methods to wake up the Iridium device. After the Iridium device is woken up, it starts to execute tasks from the place where it last entered low-power mode. In the implementation of the timer interrupt, after the timer reaches the timing period, the timer flag will be reset while waking up the Iridium device, so that the Iridium thread will establish a connection with Iridium at least once to determine whether there is downlink data transmission and perform corresponding processing. In the implementation of the interrupt triggered by the LPUART module, after the Bluetooth module receives the uplink data sent by the terminal device, the LPUART receive interrupt is triggered. The interrupt wakes up the Iridium device and resets the Bluetooth idle flag. In the IO interrupt triggered by the IO module, the Bluetooth status pin level jump triggers the IO interrupt, which wakes up the Iridium device and resets the Bluetooth idle flag.
[0140] The Iridium device control method, device and system provided in the embodiment of the present application, the Iridium device switches the operation mode of the Iridium device from the low power mode to the standard mode according to the interrupt event in the low power mode, and establishes a session with Iridium in the standard mode, and a Bluetooth connection is also established between the Iridium device and the terminal device, so when the Iridium device detects that the Iridium signal is good, it can be used as a relay to transmit data between the terminal device and Iridium, which can include uplink data transmission and downlink data transmission. In the scheme of the embodiment of the present application, when data transmission is not required, the Iridium device is in the low power mode to reduce the standby power consumption, and when data transmission is required, the operation mode is switched according to the interrupt event, and the data transmission between the terminal device and Iridium is completed after the operation mode is switched, which can realize the reasonable switching of the operation mode of the Iridium device and ensure the normal communication between the terminal device and Iridium when the standby power consumption of the Iridium device is low.
[0141] Fig.10 The schematic diagram of the structure of the Iridium device control device provided in the embodiment of the present application is as follows: Fig.10 As shown, the device comprises:
[0142] A switching module 101 is used for switching the operation mode of the Iridium device from the low power consumption mode to the standard mode according to an interruption event when the Iridium device is in the low power consumption mode, and establishing a session with Iridium in the standard mode, wherein the Iridium device establishes a Bluetooth connection with the terminal device;
[0143] The processing module 102 is used to perform data transmission between the terminal device and the Iridium satellite.
[0144] In a possible implementation, the device includes a main control chip and an interrupt module; the switching module 101 is specifically used for:
[0145] The interrupt module triggers an interrupt according to the interrupt event;
[0146] The main control chip switches the operating mode from the low power consumption mode to the standard mode according to the triggered interrupt.
[0147] In a possible implementation manner, the device includes a timer; and the switching module 101 is specifically configured to:
[0148] In response to the running time of the timer reaching a preset time, the timer triggers a timer interrupt.
[0149] In a possible implementation, the device includes an LPUART module; the switching module 101 is specifically used for:
[0150] In response to receiving uplink data to be transmitted from the terminal device, the LPUART module triggers a receive interrupt.
[0151] In a possible implementation, the device includes an input / output IO module; the switching module 101 is specifically used for:
[0152] In response to a key command for the Iridium device, the IO module triggers an IO interrupt.
[0153] In a possible implementation, the device includes a sending buffer and a receiving buffer, the sending buffer is used to store uplink data to be transmitted, and the receiving buffer is used to store downlink data to be transmitted; the processing module 102 is specifically used to:
[0154] When the sending buffer includes uplink data, sending the uplink data to the Iridium satellite; and / or,
[0155] When the receiving buffer includes downlink data, the downlink data is sent to the terminal device.
[0156] In a possible implementation manner, the processing module 102 is further configured to:
[0157] The uplink data to be transmitted is received from the terminal device through the Bluetooth module, and the uplink data is stored in the sending buffer.
[0158] In a possible implementation manner, the processing module 102 is further configured to:
[0159] The downlink data to be transmitted is obtained from the Iridium satellite through the transceiver module, and the downlink data is stored in the receiving buffer.
[0160] In a possible implementation, the switching module 101 is further configured to:
[0161] The operating mode is switched from the standard mode to the low power consumption mode.
[0162] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0163] Fig.11 The hardware structure diagram of the Iridium device provided in the embodiment of the present application is as follows: Fig.11 As shown, the Iridium device of this embodiment includes: a processor 111 and a memory 112; wherein
[0164] Memory 112, for storing computer-executable instructions;
[0165] The processor 111 is used to execute the computer-executable instructions stored in the memory to implement the various steps performed by the Iridium device control method in the above embodiment. For details, please refer to the relevant description in the above method embodiment.
[0166] Optionally, the memory 112 may be independent or integrated with the processor 111 .
[0167] When the memory 112 is independently provided, the Iridium device further includes a bus 113 for connecting the memory 112 and the processor 111 .
[0168] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the Iridium device control method executed by the Iridium device as described above is implemented.
[0169] The embodiment of the present application may also provide a computer program product, which may be executed by a processor. When the computer program product is executed, any of the above-mentioned Iridium device control methods may be implemented.
[0170] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0171] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention.
[0172] It should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented by a hardware processor or implemented by a combination of hardware and software modules in the processor.
[0173] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.
[0174] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present invention is not limited to only one bus or one type of bus.
[0175] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0176] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0177] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for controlling an Iridium device, characterized in that: Applied to Iridium equipment, the method comprises: According to an interrupt event when the Iridium device is in a low-power mode, the operating mode of the Iridium device is switched from the low-power mode to the standard mode, and a session is established with Iridium in the standard mode, wherein the Iridium device establishes a Bluetooth connection with the terminal device; wherein the Iridium device includes a main control chip and an interrupt module, the interrupt module includes an LPUART module and an input-output module, and different modules trigger different interrupts; when the input-output module triggers an interrupt, an emergency distress message is automatically generated according to a pre-stored emergency contact and the current GPS coordinates, and the emergency distress message is continuously sent until the sending is successful or the user manually cancels the sending; Performing data transmission between the terminal device and the Iridium satellite; The interrupt module includes a low power universal asynchronous receiver / transmitter LPUART module; the interrupt module triggers an interrupt according to the interrupt event, including: In response to receiving uplink data to be transmitted from the terminal device, the LPUART module triggers a receive interrupt; The interrupt module includes an input / output IO module; the interrupt module triggers an interrupt according to the interrupt event, including: In response to a key command for the Iridium device, the IO module triggers an IO interrupt.
2. The Iridium device control method according to claim 1, characterized in that: The method of switching the operation mode of the Iridium device from the low power consumption mode to the standard mode according to an interrupt event when the Iridium device is in the low power consumption mode comprises: The interrupt module triggers an interrupt according to the interrupt event; The main control chip switches the operating mode from the low power consumption mode to the standard mode according to the triggered interrupt.
3. The Iridium device control method according to claim 2, characterized in that: The interrupt module further includes a timer; the interrupt module triggers an interrupt according to the interrupt event, including: In response to the running time of the timer reaching a preset time, the timer triggers a timer interrupt.
4. The Iridium device control method according to any one of claims 1 to 3, characterized in that: The Iridium device includes a sending buffer and a receiving buffer, the sending buffer is used to store uplink data to be transmitted, and the receiving buffer is used to store downlink data to be transmitted; The data transmission between the terminal device and the Iridium satellite includes: When the sending buffer includes uplink data, sending the uplink data to the Iridium satellite; and / or, When the receiving buffer includes downlink data, the downlink data is sent to the terminal device.
5. The Iridium device control method according to claim 4, characterized in that: The Iridium device also includes a Bluetooth module, and the method further includes: The uplink data to be transmitted is received from the terminal device through the Bluetooth module, and the uplink data is stored in the sending buffer.
6. The Iridium device control method according to claim 4, characterized in that: The Iridium device also includes a transceiver module; the method also includes: The downlink data to be transmitted is obtained from the Iridium satellite through the transceiver module, and the downlink data is stored in the receiving buffer.
7. The Iridium device control method according to claim 4, characterized in that: The method further comprises: The operating mode is switched from the standard mode to the low power consumption mode.
8. An Iridium equipment control device, characterized in that: include: A switching module, configured to switch the operating mode of the Iridium device from the low power consumption mode to the standard mode according to an interruption event when the Iridium device is in the low power consumption mode, and establish a session with Iridium in the standard mode, wherein the Iridium device establishes a Bluetooth connection with the terminal device; A processing module, used for transmitting data between the terminal device and the Iridium satellite; wherein the Iridium satellite device includes a main control chip and an interrupt module, the interrupt module includes a timer, an LPUART module and an input / output module, and different modules trigger different interrupts; when the input / output module triggers an interrupt, an emergency distress message is automatically generated according to the pre-stored emergency contact and the current GPS coordinates, and the emergency distress message is continuously sent until the sending is successful or the user manually cancels the sending; The device includes an LPUART module; the switching module is specifically used for: In response to receiving uplink data to be transmitted from the terminal device, the LPUART module triggers a receive interrupt; The device includes an input / output IO module; the switching module is specifically used for: In response to a key command for the Iridium device, the IO module triggers an IO interrupt.
9. An Iridium satellite device, characterized in that: include: Memory, used to store programs; A processor is used to execute the program stored in the memory. When the program is executed, the processor is used to execute the Iridium device control method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The method comprises instructions which, when executed on a computer, enable the computer to execute the Iridium device control method as described in any one of claims 1 to 7.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the Iridium device control method as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Beidou communication terminal with low power consumption
CN210327576U