Multi-channel switching method, device and communication module for transmitting power data
By receiving pre-collected data information, determining the type and amount of power data to be collected, selecting the appropriate channel working mode, and switching channels, the problem of how to improve the efficiency of power data transmission is solved, and efficient switching of power data transmission is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TECHTOTOP MICROELECTRONICS
- Filing Date
- 2022-11-02
- Publication Date
- 2026-05-26
Smart Images

Figure CN115802503B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technology, and in particular relates to a multi-channel switching method, apparatus and communication module for transmitting power data. Background Technology
[0002] Different types of metering terminals can be used to collect different types of data. For example, an electricity metering terminal can collect power data such as current, voltage, and power data from various sensors in the power grid. By using communication modules such as 4G, the metering terminal can transmit power data to management platforms such as the metering master station.
[0003] In existing technologies, communication modules can support multiple data transmission methods and transmit power data to the management platform through various data transmission channels. Accurately determining which data transmission channel and method the communication module should use is crucial for improving the efficiency of power data transmission. Summary of the Invention
[0004] In view of this, embodiments of this application provide a multi-channel switching method, apparatus and communication module for transmitting power data, which can accurately switch to the appropriate channel working mode according to the actual data acquisition needs of the management platform.
[0005] The first aspect of this application provides a multi-channel switching method for transmitting power data, including:
[0006] Receive data pre-collection information sent by the communication front-end unit, wherein the data pre-collection information includes at least the power data to be collected within the collection period;
[0007] Based on the data pre-collection information, determine the channel operating mode for transmitting the power data;
[0008] When the start time of the data collection period arrives, multiple data transmission channels are switched according to the channel working mode. The multiple data transmission channels include at least a BeiDou satellite data transmission channel and a mobile data transmission channel.
[0009] Optionally, determining the channel operating mode for transmitting the power data based on the pre-collected data information includes:
[0010] Based on the data pre-collection information, determine the type of power data to be collected within the collection period;
[0011] Determine the amount of power data collected for each of the aforementioned types;
[0012] Based on the type and the amount of data collected, determine the channel operating mode for transmitting the power data.
[0013] Optionally, determining the channel operating mode for transmitting the power data based on the type and the acquisition quantity includes:
[0014] When the number of target types is greater than or equal to two, the channel working mode for transmitting the power data is determined to be multi-master station mode;
[0015] When there is only one type of target, the channel working mode for transmitting the power data is determined to be primary / backup mode.
[0016] When the target type does not exist, the channel for transmitting the power data is determined to operate in automatic mode; wherein, the target type is a type whose acquisition volume is greater than a preset data volume.
[0017] Optionally, determining the channel operating mode for transmitting the power data based on the pre-collected data information includes:
[0018] Based on the data pre-collection information, a channel working mode combination for transmitting the power data is determined, and the channel working mode combination consists of multiple channel working modes with different priorities.
[0019] Optionally, when the start time of the acquisition period arrives, switching between multiple data transmission channels according to the channel working mode includes:
[0020] When the start time of the collection period arrives, the multiple data transmission channels are switched to the first priority channel working mode;
[0021] After a preset time, multiple data transmission channels will be switched to a second-priority channel working mode, where the first priority is higher than the second priority.
[0022] Optionally, after switching multiple data transmission channels according to the channel operating mode, the method further includes:
[0023] When the end time of the collection period arrives, determine whether the power data to be collected in the data pre-collection information has been transmitted.
[0024] If the power data to be collected in the data pre-collection information has been transmitted, then the multiple data transmission channels will be switched to the default mode.
[0025] If the planned power data in the data pre-collection information has not been fully transmitted, the power data will continue to be transmitted in the current channel working mode.
[0026] Optionally, after switching multiple data transmission channels according to the channel operating mode, the method further includes:
[0027] The switching results of the multiple data transmission channels are fed back to the communication front-end unit.
[0028] A second aspect of this application provides a multi-channel switching device for transmitting power data, comprising:
[0029] The receiving module is used to receive data pre-collection information sent by the communication front-end, wherein the data pre-collection information includes at least the power data to be collected within the collection period.
[0030] The determining module is used to determine the channel operating mode for transmitting the power data based on the data pre-collection information;
[0031] The switching module is used to switch multiple data transmission channels according to the channel working mode when the start time of the acquisition period arrives. The multiple data transmission channels include at least a Beidou satellite data transmission channel and a mobile data transmission channel.
[0032] Optionally, the determining module includes:
[0033] The data type determination submodule is used to determine the type of the power data to be collected within the collection time period based on the data pre-collection information.
[0034] The data acquisition quantity determination submodule is used to determine the data acquisition quantity of each type of power data.
[0035] The channel operating mode determination submodule is used to determine the channel operating mode for transmitting the power data based on the type and the amount of data collected.
[0036] Optionally, the channel operating mode determination submodule includes:
[0037] The multi-master station mode determination unit is used to determine the channel working mode for transmitting the power data as multi-master station mode when the number of target types is greater than or equal to two.
[0038] The primary / backup mode determination unit is used to determine the primary / backup mode of the channel for transmitting the power data when there is only one type of target.
[0039] An automatic mode determination unit is used to determine that the channel for transmitting the power data is in automatic mode when the target type does not exist; wherein the target type is a type with a collection volume greater than a preset data volume.
[0040] Optionally, the determining module includes:
[0041] The channel working mode combination determination submodule is used to determine the channel working mode combination for transmitting the power data based on the data pre-collection information. The channel working mode combination consists of multiple channel working modes with different priorities.
[0042] Optionally, the switching module includes:
[0043] The first switching submodule is used to switch multiple data transmission channels to the first priority channel working mode when the start time of the acquisition period arrives.
[0044] The second switching submodule is used to switch multiple data transmission channels to a second priority channel working mode after a preset time, wherein the first priority is higher than the second priority.
[0045] Optionally, the device further includes:
[0046] The judgment module is used to determine whether the power data to be collected in the data pre-collection information has been completely transmitted when the end time of the collection period arrives.
[0047] The transmission module is used to continuously transmit the power data in the current channel working mode if the planned power data to be collected in the data pre-collection information has not been completely transmitted.
[0048] The switching module is also used to: if the power data to be collected in the data pre-collection information has been transmitted, then switch the multiple data transmission channels to the default mode.
[0049] Optionally, the device further includes:
[0050] The feedback module is used to feed back the switching results of the multiple data transmission channels to the communication front-end unit.
[0051] A third aspect of this application provides a communication module including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the multi-channel switching method for transmitting power data as described in the first aspect above.
[0052] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the multi-channel switching method for transmitting power data as described in the first aspect above.
[0053] A fifth aspect of this application provides a computer program product that, when run on a computer, causes the computer to execute the multi-channel switching method for transmitting power data described in the first aspect.
[0054] Compared with the prior art, the embodiments of this application have the following advantages:
[0055] In this embodiment, by receiving data pre-collection information sent by the communication front-end, the communication module can know in advance the power data that the management platform plans to collect during the collection period, thus enabling targeted preparation. Specifically, the communication module can determine the channel operating mode for transmitting power data based on the data pre-collection information. When the start time of the collection period arrives, the communication module can switch between multiple data transmission channels according to the determined channel operating mode. By applying the method provided in this embodiment, the power data that the management platform plans to collect can be known in advance, and the channel operating mode can be arranged accordingly, accurately switching to the appropriate channel operating mode based on the actual data collection needs of the management platform. Attached Figure Description
[0056] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0057] Figure 1 This is a schematic diagram of a multi-channel switching method for transmitting power data provided in an embodiment of this application;
[0058] Figure 2 This is a schematic diagram of one implementation of S102 in a multi-channel switching method for transmitting power data provided in an embodiment of this application;
[0059] Figure 3 This is a schematic diagram of an automatic mode provided in an embodiment of this application;
[0060] Figure 4 This is a schematic diagram of a primary / standby mode provided in an embodiment of this application;
[0061] Figure 5 This is a schematic diagram of a multi-master station mode provided in an embodiment of this application;
[0062] Figure 6 This is a schematic diagram of one implementation of S103 in a multi-channel switching method for transmitting power data provided in an embodiment of this application;
[0063] Figure 7 This is a schematic diagram of a multi-channel switching device for transmitting power data provided in an embodiment of this application;
[0064] Figure 8 This is a schematic diagram of a communication module provided in an embodiment of this application. Detailed Implementation
[0065] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0066] The technical solution of this application will be described below through specific embodiments.
[0067] Reference Figure 1 The diagram illustrates a multi-channel switching method for transmitting power data according to an embodiment of this application, which may specifically include the following steps:
[0068] S101. Receive data pre-collection information sent by the communication front-end unit, wherein the data pre-collection information includes at least the power data to be collected within the collection period.
[0069] It should be noted that this method can be applied to a communication module, that is, the execution subject of this application embodiment is a communication module, which can be a communication module that supports multiple data transmission methods.
[0070] For example, the communication module supports both BeiDou satellite data transmission and mobile data transmission. Each data transmission method communicates with the management platform through a corresponding data transmission channel. For instance, the communication module can receive instructions from the management platform via the BeiDou satellite data transmission channel and transmit various types of data to the management platform in response to these instructions. Alternatively, the communication module can also communicate with the management platform via mobile data transmission channels using mobile data transmission methods such as 4G public networks.
[0071] Typically, communication between the communication module and the management platform is achieved through direct interaction between the communication module and the communication front-end of the management platform. The communication front-end can forward instructions from the management platform to the communication module, and can also receive data transmitted by the communication module and forward the data to the management platform.
[0072] In this embodiment, the management platform can send pre-collection information to the communication module via a communication front-end unit before planning to collect power data. The pre-collection information may include power data planned to be collected within the specified collection period.
[0073] It should be understood that the data collection period can be a period of time after the current time, relative to the current time. For example, if the current time is 10:00 AM on March 3rd, then the data collection period should be later than the current time. For instance, the data collection time could start at 10:00 AM on March 5th.
[0074] Typically, a data collection period is a time segment with a start and end time. For example, the data collection period might be from 10:00 AM on March 5th to 10:00 AM on March 6th.
[0075] The management platform sends pre-collection information to the communication module via the communication front-end unit. This can be seen as the management platform notifying the communication module in advance of the time when a large amount of power data needs to be collected. The communication module can then prepare accordingly.
[0076] S102. Based on the data pre-collection information, determine the channel working mode for transmitting the power data.
[0077] In this embodiment, the communication module supports multiple data transmission methods and establishes multiple data transmission channels between itself and the management platform or communication front-end. The efficiency of data transmission from the communication module to the communication front-end varies depending on the channel operating mode.
[0078] Therefore, after receiving the pre-acquisition information from the communication front-end unit, the communication module can determine the channel operating mode for transmitting power data based on this pre-acquisition information. The channel operating mode determined by the communication module can be seen as the optimal operating mode predetermined in advance based on the pre-acquisition information.
[0079] In one possible implementation of the embodiments of this application, such as Figure 2 As shown, in step S102, determining the channel operating mode for transmitting power data based on the pre-acquisition information may specifically include the following steps S1021-S1023:
[0080] S1021. Based on the data pre-collection information, determine the type of power data to be collected within the collection time period.
[0081] In this embodiment, the data pre-collection information may include information about when and what type of power data the management platform will collect. Therefore, the communication module can directly determine the type of power data that the management platform plans to collect during the collection period from the data pre-collection information.
[0082] S1022. Determine the amount of power data collected for each of the aforementioned types.
[0083] After determining the type of power data to be collected, the communication module can also determine the amount of power data to be collected for each type.
[0084] In one possible implementation, the amount of each type of power data collected can be specified by the management platform in the data pre-collection information. This allows the communication module to intuitively and accurately determine the amount of power data to be collected for each type.
[0085] In another possible implementation, the amount of each type of power data collected can be determined by the communication module based on the amount of data stored in its real-time database. Typically, the amount of each type of power data collected will not exceed the amount of each type of power data already stored in the communication module's real-time database.
[0086] 1023. Determine the channel operating mode for transmitting the power data based on the type and the amount of data collected.
[0087] In this embodiment of the application, the type of power data to be collected in the data pre-collection information and the amount of power data to be collected for each type can be used to determine which channel working mode to select to transmit power data to the management platform.
[0088] For example, if the power data to be collected is easily lost, the communication module can use a primary / backup mode to transmit this type of power data. In this way, by designating at least two data transmission channels as one primary and one backup, the system can promptly switch to the backup data transmission channel if the primary data transmission channel fails.
[0089] For example, when the planned volume of power data is extremely large, a single data transmission channel may not be able to complete the transmission quickly. In such cases, the communication module can adopt a multi-master mode, using multiple data transmission channels simultaneously to transmit the power data.
[0090] In one possible implementation of this application, when the communication module determines the channel operating mode for transmitting power data based on the type and the amount of data collected, it can determine the quantity of target types. In this application embodiment, the target types can be types with a collection volume greater than a preset data volume, that is, types with a larger planned data volume.
[0091] In one possible implementation, when the number of target types is greater than or equal to two, the communication module can determine that the channel for transmitting power data is operating in a multi-master mode.
[0092] When there is only one type of target, the communication module can determine the main / standby mode of the channel for transmitting power data.
[0093] When there is no target type, that is, when the amount of power data collected for any type is less than the preset amount, the communication module can determine that the channel for transmitting power data is in automatic mode.
[0094] The three channel operating modes described above will be introduced below with reference to the accompanying drawings.
[0095] like Figure 3 The diagram shown is a schematic of an automatic mode provided in an embodiment of this application.
[0096] In automatic mode, after the communication module powers on, both the BeiDou satellite data transmission channel and the mobile data transmission channel will power on and enter a ready state. The communication module can automatically determine the optimal channel based on the dual-channel link status of the BeiDou satellite data transmission channel and the mobile data transmission channel, the SIM card insertion status, the BeiDou visible satellite beam, the BeiDou satellite signal strength, and the mobile signal strength. The communication module automatically switches to the optimal channel to transmit power data.
[0097] like Figure 4 The diagram shown is a schematic of a primary / standby mode provided in an embodiment of this application.
[0098] In primary / backup mode, the communication module and the communication front-end select either the BeiDou satellite data transmission channel or the mobile data transmission channel as the primary channel according to a preset method. The primary channel is active, while the backup channel is inactive by default. When the communication front-end manually or automatically determines that the communication reliability of the current primary channel is low, such as detecting low online rate or weak signal strength, it can issue a primary / backup channel switching command. This command is initiated by the communication front-end. After receiving the command to switch from the BeiDou satellite data transmission channel to the mobile data transmission channel, or vice versa, the communication module stops the primary channel's transmission and reception processing, disconnects the primary channel's communication link, releases primary channel resources, shuts down the primary channel device's power, and activates the backup channel device. After initialization, self-test, and online processing, the backup channel connects to the communication front-end, enters active mode, switches from the backup channel to the primary channel, and finally feeds back the switching result to the communication front-end. If the channel switching fails, primary channel communication is restored.
[0099] like Figure 5 The diagram shown is a schematic of a multi-master station mode provided in an embodiment of this application.
[0100] The communication module can be configured to operate in dual-master station mode. In dual-master station mode, both the BeiDou satellite data transmission channel and the mobile data transmission channel of the communication module are operational, connecting to different communication front-end units and accessing different management master stations. The two channels operate independently, responding independently to data requests from the master stations. For example... Figure 5 As shown, the two master stations can choose different power protocols and communication modules to communicate. For example, master station 1 uses power protocol 1 (e.g., DLT / 376.1 protocol) to request voltage data from the terminal, while master station 2 uses power protocol 2 (e.g., local communication protocol) to request energy data from the terminal. By selecting different channels, the two channels can operate independently without affecting each other.
[0101] In another possible implementation of this application embodiment, the channel operating mode determined by the communication module based on the data pre-acquisition information can be a combined mode, i.e., a channel operating mode combination. The communication module can determine the channel operating mode combination used for transmitting power data based on the data pre-acquisition information. The aforementioned channel operating mode combination can consist of multiple channel operating modes with different priorities. Different priorities indicate the order in which these multiple channel operating mode combinations are used preferentially during switching.
[0102] For example, a combination of channel operating modes includes automatic mode, primary / standby mode, and multi-master mode simultaneously. Multi-master mode has the highest priority (first priority); primary / standby mode has the next highest priority (second priority); and automatic mode has the lowest priority (third priority). Therefore, when switching modes, the channel operating mode can be switched to the first-priority multi-master mode first.
[0103] S103. When the start time of the acquisition period arrives, switch multiple data transmission channels according to the channel working mode.
[0104] In this embodiment of the application, the data collection period is a continuous period of time, which has a start time and an end time. For example, in the aforementioned example, the data collection period lasts from 10:00 AM on March 5th to 10:00 AM on March 6th. In this example, the start time of the data collection period is 10:00 AM on March 5th, and the end time is 8:00 AM on March 6th.
[0105] When the start time of the data collection period arrives, the management platform begins sending instructions to the communication module according to the pre-collected data information, instructing the communication module to collect the corresponding power data. At this time, the communication module can switch its own channel operating mode to a pre-determined mode. For example, switching to multi-master mode or master-slave mode.
[0106] It should be noted that if the communication module is currently in the same channel working mode as the determined channel working mode before the start time of the data collection period, there is no need to switch.
[0107] For example, if the communication module determines that it needs to switch the channel working mode to the primary / backup mode at the start of the data collection period based on the data pre-collection information, and the communication module is actually in the primary / backup mode before that, then there is no need to switch.
[0108] In one possible implementation of the embodiments of this application, such as Figure 6 As shown, in S103, when the start time of the acquisition period arrives, switching multiple data transmission channels according to the channel working mode can specifically include the following steps S1031-S1032:
[0109] S1031. When the start time of the acquisition period arrives, the multiple data transmission channels are switched to the first priority channel working mode.
[0110] S1032. After a preset time, the multiple data transmission channels are switched to the channel working mode of the second priority, where the first priority is higher than the second priority.
[0111] In this embodiment of the application, if the channel working mode determined by the communication module based on the data pre-collection information is a combination of channel working modes, the combination may include multiple channel working modes. In this case, the communication module can switch according to the priority of each channel working mode.
[0112] For example, in the aforementioned example, the channel operating mode combination includes automatic mode, primary / standby mode, and multi-master mode. Multi-master mode has the highest priority (first priority); primary / standby mode has the next highest priority (second priority); and automatic mode has the lowest priority (third priority). Therefore, when the start time of the data collection period arrives, the communication module can first switch multiple data transmission channels to the first priority channel operating mode, i.e., multi-master mode. In multi-master mode, multiple data transmission channels can operate independently, transmitting power data to different master stations respectively.
[0113] After the communication module completes the switching of the channel working mode, it can feed back the switching results of multiple data transmission channels to the communication front-end, so that the communication front-end can interact with the communication module according to the switched mode.
[0114] In this embodiment of the application, after multiple data transmission channels have been working in the first priority channel working mode for a period of time, the communication module can switch to the second priority channel working mode, that is, the primary and backup mode.
[0115] By switching between multiple channel operating modes, the advantages of each mode can be maximized, improving the efficiency of power data transmission. For example, at the start of data collection, the management platform may request power data of multiple types, each with potentially enormous amounts of data. In this case, a multi-master mode is suitable. As time progresses, the amount of power data to be collected decreases, and after a certain period, only a few types of power data may still require significant collection. At this point, a master-slave mode can be switched to reduce the power consumption of the communication module caused by the multi-master mode.
[0116] In another possible implementation of this application embodiment, after switching multiple data transmission channels according to the channel working mode, when the end time of the acquisition period arrives, the communication module can determine whether the planned power data in the data pre-acquisition information has been transmitted completely. If the planned power data in the data pre-acquisition information has been transmitted completely, the communication module can switch multiple data transmission channels to the default mode. For example, the default mode can be the aforementioned automatic mode. If the planned power data in the data pre-acquisition information has not been transmitted completely, it indicates that the communication module still needs to continue working. At this time, the communication module can continuously transmit power data to the communication front-end in the current channel working mode.
[0117] In this embodiment, by receiving data pre-collection information sent by the communication front-end, the communication module can know in advance the power data that the management platform plans to collect during the collection period, thus enabling targeted preparation. Specifically, the communication module can determine the channel operating mode for transmitting power data based on the data pre-collection information. When the start time of the collection period arrives, the communication module can switch between multiple data transmission channels according to the determined channel operating mode. By applying the method provided in this embodiment, the power data that the management platform plans to collect can be known in advance, and the channel operating mode can be arranged accordingly, accurately switching to the appropriate channel operating mode based on the actual data collection needs of the management platform.
[0118] It should be noted that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0119] Reference Figure 7 This illustration shows a schematic diagram of a multi-channel switching device for transmitting power data according to an embodiment of this application. Specifically, it may include a receiving module 701, a determining module 702, and a switching module 703, wherein:
[0120] The receiving module 701 is used to receive data pre-collection information sent by the communication front-end, wherein the data pre-collection information includes at least the power data to be collected within the collection period.
[0121] The determining module 702 is used to determine the channel working mode for transmitting the power data based on the data pre-collection information;
[0122] The switching module 703 is used to switch multiple data transmission channels according to the channel working mode when the start time of the acquisition period arrives. The multiple data transmission channels include at least a Beidou satellite data transmission channel and a mobile data transmission channel.
[0123] In one possible implementation of this application embodiment, the determining module 702 may specifically include a data type determining submodule, a sampling volume determining submodule, and a channel working mode determining submodule. Wherein:
[0124] The data type determination submodule is used to determine the type of the power data to be collected within the collection time period based on the data pre-collection information.
[0125] The data acquisition quantity determination submodule is used to determine the data acquisition quantity of each type of power data.
[0126] The channel operating mode determination submodule is used to determine the channel operating mode for transmitting the power data based on the type and the amount of data collected.
[0127] In this embodiment of the application, the channel operating mode determination submodule may specifically include a multi-master station mode determination unit, a master / standby mode determination unit, and an automatic mode determination unit. Wherein:
[0128] The multi-master station mode determination unit is used to determine the channel working mode for transmitting the power data as multi-master station mode when the number of target types is greater than or equal to two.
[0129] The primary / backup mode determination unit is used to determine the primary / backup mode of the channel for transmitting the power data when there is only one type of target.
[0130] An automatic mode determination unit is used to determine that the channel for transmitting the power data is in automatic mode when the target type does not exist; wherein the target type is a type with a collection volume greater than a preset data volume.
[0131] In another possible implementation of this application embodiment, the determining module 702 may further include a channel operating mode combination determining submodule. Wherein:
[0132] The channel working mode combination determination submodule is used to determine the channel working mode combination for transmitting the power data based on the data pre-collection information. The channel working mode combination consists of multiple channel working modes with different priorities.
[0133] In one possible implementation of this application embodiment, the switching module 703 may specifically include a first switching submodule and a second switching submodule. Wherein:
[0134] The first switching submodule is used to switch multiple data transmission channels to the first priority channel working mode when the start time of the acquisition period arrives.
[0135] The second switching submodule is used to switch multiple data transmission channels to a second priority channel working mode after a preset time, wherein the first priority is higher than the second priority.
[0136] In one possible implementation of this application embodiment, the device may further include a judgment module and a transmission module. Wherein:
[0137] The judgment module is used to determine whether the power data to be collected in the data pre-collection information has been completely transmitted when the end time of the collection period arrives.
[0138] The transmission module is used to continuously transmit the power data in the current channel working mode if the planned power data to be collected in the data pre-collection information has not been completely transmitted.
[0139] The switching module is also used to: if the power data to be collected in the data pre-collection information has been transmitted, then switch the multiple data transmission channels to the default mode.
[0140] In embodiments of this application, the device may further include a feedback module. Wherein:
[0141] The feedback module is used to feed back the switching results of the multiple data transmission channels to the communication front-end unit.
[0142] As the apparatus embodiments are basically similar to the method embodiments, they are described in a relatively simple manner. For relevant details, please refer to the description in the method embodiment section.
[0143] Reference Figure 8 The diagram illustrates a communication module provided in an embodiment of this application. Figure 8As shown, the communication module 800 in this embodiment includes: a processor 810, a memory 820, and a computer program 821 stored in the memory 820 and executable on the processor 810. When the processor 810 executes the computer program 821, it implements the steps in the various embodiments of the multi-channel switching method for transmitting power data described above, for example... Figure 1 The steps S101 to S103 are shown. Alternatively, when the processor 810 executes the computer program 821, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 7 The functions of modules 701 to 703 are shown.
[0144] For example, the computer program 821 can be divided into one or more modules / units, which are stored in the memory 820 and executed by the processor 810 to complete this application. The one or more modules / units can be a series of computer program instruction segments capable of performing specific functions, which can be used to describe the execution process of the computer program 821 in the communication module 800. For example, the computer program 821 can be divided into a receiving module, a determining module, and a switching module, with the specific functions of each module as follows:
[0145] The receiving module is used to receive data pre-collection information sent by the communication front-end, wherein the data pre-collection information includes at least the power data to be collected within the collection period.
[0146] The determining module is used to determine the channel operating mode for transmitting the power data based on the data pre-collection information;
[0147] The switching module is used to switch multiple data transmission channels according to the channel working mode when the start time of the acquisition period arrives. The multiple data transmission channels include at least a Beidou satellite data transmission channel and a mobile data transmission channel.
[0148] The communication module 800 may be a communication module that implements the steps in the foregoing method embodiments. The communication module 800 may include, but is not limited to, a processor 810 and a memory 820. Those skilled in the art will understand that... Figure 8 This is merely one example of the communication module 800 and does not constitute a limitation on the communication module 800. It may include more or fewer components than shown, or combine certain components, or different components. For example, the communication module 800 may also include input / output devices, network access devices, buses, etc.
[0149] The processor 810 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0150] The memory 820 can be an internal storage unit of the communication module 800, such as a hard disk or memory of the communication module 800. The memory 820 can also be an external storage device of the communication module 800, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, etc., equipped on the communication module 800. Furthermore, the memory 820 can include both internal storage units and external storage devices of the communication module 800. The memory 820 is used to store the computer program 821 and other programs and data required by the communication module 800. The memory 820 can also be used to temporarily store data that has been output or will be output.
[0151] This application also discloses a communication module, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the multi-channel switching method for transmitting power data as described in the foregoing embodiments.
[0152] This application also discloses a computer-readable storage medium storing a computer program that, when executed by a processor, implements the multi-channel switching method for transmitting power data as described in the foregoing embodiments.
[0153] This application also discloses a computer program product that, when run on a computer, causes the computer to execute the multi-channel switching method for transmitting power data described in the foregoing embodiments.
[0154] The embodiments described above are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A multi-channel switching method for transmitting power data, characterized in that, include: Before the planned collection of power data, the receiving management platform sends pre-collection information via a communication front-end device. The pre-collection information includes at least the power data to be collected within the collection period. Based on the data pre-collection information, determine the type of power data to be collected within the collection period, and determine the collection volume of each type of power data; Based on the type and the amount of data collected, a channel working mode for transmitting the power data is determined. The channel working mode is the optimal working mode determined in advance for the pre-collected information. The channel working mode includes multi-master station mode, master-standby mode, automatic mode, or combined mode. When the start time of the data collection period arrives, multiple data transmission channels are switched according to the channel working mode. The multiple data transmission channels include at least a BeiDou satellite data transmission channel and a mobile data transmission channel.
2. The method according to claim 1, characterized in that, The step of determining the channel operating mode for transmitting the power data based on the type and the acquisition volume includes: When the number of target types is greater than or equal to two, the channel working mode for transmitting the power data is determined to be multi-master station mode; When there is only one type of target, the channel working mode for transmitting the power data is determined to be primary / backup mode. When the target type does not exist, the channel for transmitting the power data is determined to operate in automatic mode; wherein, the target type is a type whose acquisition volume is greater than a preset data volume.
3. The method according to claim 1, characterized in that, The step of determining the channel operating mode for transmitting the power data based on the pre-collected data information includes: Based on the data pre-collection information, a channel working mode combination for transmitting the power data is determined, and the channel working mode combination consists of multiple channel working modes with different priorities.
4. The method according to claim 3, characterized in that, When the start time of the data acquisition period arrives, the multiple data transmission channels are switched according to the channel working mode, including: When the start time of the collection period arrives, the multiple data transmission channels are switched to the first priority channel working mode; After a preset time, multiple data transmission channels will be switched to a second-priority channel working mode, where the first priority is higher than the second priority.
5. The method according to any one of claims 1-4, characterized in that, After switching between multiple data transmission channels according to the channel operating mode, the method further includes: When the end time of the collection period arrives, determine whether the power data to be collected in the data pre-collection information has been transmitted. If the power data to be collected in the data pre-collection information has been transmitted, then the multiple data transmission channels will be switched to the default mode. If the planned power data in the data pre-collection information has not been fully transmitted, the power data will continue to be transmitted in the current channel working mode.
6. The method according to claim 1, characterized in that, After switching between multiple data transmission channels according to the channel operating mode, the method further includes: The switching results of the multiple data transmission channels are fed back to the communication front-end unit.
7. A multi-channel switching device for transmitting power data, characterized in that, include: The receiving module is used to receive data pre-collection information sent by the management platform through the communication front-end before the planned collection of power data. The data pre-collection information includes at least the power data to be collected within the collection period. The determining module is used to determine, based on the data pre-collection information, the type of power data to be collected within the collection time period, and the collection volume of each type of power data; and to determine the channel working mode for transmitting the power data based on the type and the collection volume, wherein the channel working mode is the optimal working mode determined in advance for the pre-collection information, and the channel working mode includes multi-master station mode, master-slave mode, automatic mode or combined mode; The switching module is used to switch multiple data transmission channels according to the channel working mode when the start time of the acquisition period arrives. The multiple data transmission channels include at least a Beidou satellite data transmission channel and a mobile data transmission channel.
8. A communication module, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the multi-channel switching method for transmitting power data as described in any one of claims 1-6.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the multi-channel switching method for transmitting power data as described in any one of claims 1-6.