A method for resuming data transmission after disconnection of ship data based on 4G network
By obtaining transmission quality coefficients in marine 4G networks, switching backup links and deciding the continuous transmission method based on transmission progress, the problem of disconnection and continuous transmission efficiency of marine 4G networks in complex environments is solved, and more efficient data transmission is achieved.
Patent Information
- Application Number
- CN202510195095.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-21
- Publication Date
- 2025-04-04
AI Technical Summary
Under complex weather conditions or when the ship is traveling to the edge of the signal coverage, the marine 4G network is poorly stable, prone to disconnection, and the continuous transmission efficiency of data after the network is restored.
A marine data disconnection network transmission method based on 4G network is provided. By obtaining the transmission quality coefficient of the target 4G network, switching to the backup link when the network is disconnected, and determining the transmission method according to the data transmission progress and the transmission quality coefficient difference when the network is restored.
The efficiency of data transmission is improved, ensuring that data transmission can be quickly restored when the network is disconnected, and efficiently retransmitted after the network is restored, avoiding the problem of improper data transmission progress caused by waiting for network recovery in the prior art.
Smart Images

Figure CN119767334A_ABST
Abstract
Description
Background Art
[0002] With the development and popularization of 4G networks, more and more technologies for transmitting data through 4G networks are being used in various industries. However, for marine 4G networks, under complex weather conditions or when ships are sailing to the edge of signal coverage, they are easily affected by the environment, resulting in poor stability of the 4G network, frequent disconnections, and low efficiency in retransmission of data after the network is restored. Summary of the invention
[0003] In response to the above technical problems, the present application provides a method for resuming ship data transmission after network disconnection based on a 4G network, which at least partially solves the problems existing in the prior art.
[0004] In a first aspect of the present application, a method for resuming data transmission after disconnection of a ship based on a 4G network is provided, the method comprising the following steps:
[0005] S100, transmitting the data to be transmitted according to the target 4G network; wherein the target 4G network has a corresponding transmission quality coefficient GQ; wherein GQ is determined according to the bandwidth K of the target 4G network, the network delay W of the target 4G network, and the packet loss rate L of the target 4G network;
[0006] S200, in response to detecting that the target 4G network is disconnected, switching to the backup link to transmit the data to be transmitted; wherein BQ<GQ, BQ is the transmission quality coefficient of the backup link;
[0007] S300, in response to detecting that the target 4G network is restored to connect, obtaining a list of factors affecting the continued transmission X=(XJ, XK, XG); wherein XJ is the overall progress of the current transmission of the data to be transmitted; XK is the transmission progress of the current transmission data block; and XG is the transmission quality coefficient difference between the target 4G network and the backup link;
[0008] S400, according to X, the data to be transmitted is resumed; wherein the resume mode includes using the target 4G network for resume transmission or using the backup network for resume transmission.
[0009] This application has at least the following beneficial effects:
[0010] The present application provides a method for resuming data transmission after network disconnection based on a 4G network. First, the transmission quality coefficient of the target 4G network is obtained to comprehensively judge the transmission efficiency of the target 4G network. When the target 4G network is disconnected, the backup network is switched to first to ensure that data transmission can be quickly restored without waiting for the abnormal target 4G network to return to normal. Then, after the target 4G network returns to normal, how to resume transmission is determined according to the progress of data transmission and the transmission quality coefficients of the two transmission links, so as to ensure that the current data transmission efficiency is the highest. Compared with the related technology, the network will not be switched before the network is disconnected, and the data transmission needs to wait for the target 4G network to be restored, and the target 4G network will be directly resumed after the recovery, without any specific processing of the data transmission progress, so the present application can improve the efficiency of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0012] Figure 1 A flowchart of a method for resuming ship data transmission after disconnection based on a 4G network provided in an embodiment of the present application. DETAILED DESCRIPTION
[0013] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only 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 those skilled in the art without creative work are within the scope of protection of this application.
[0014] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0015] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present application, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.
[0016] Please refer to Figure 1 As shown, an embodiment of the present application provides a method for resuming data transmission after disconnection of a ship based on a 4G network, the method comprising the following steps:
[0017] S100, transmitting the data to be transmitted according to the target 4G network; wherein the target 4G network has a corresponding transmission quality coefficient GQ; wherein GQ is determined according to the bandwidth K of the target 4G network, the network delay W of the target 4G network and the packet loss rate L of the target 4G network.
[0018] Specifically, the transmission quality coefficient is a comprehensive evaluation of the data transmission efficiency of the network; bandwidth refers to the size of data that can be transmitted per unit time; network delay refers to the time it takes for a data to travel from the sender to the destination and then back from the destination to the sender; packet loss rate refers to the ratio of the number of data packets sent with abnormal data transmission to the total number of data packets sent. As an example: the bandwidth can be 100 bit / s, which means that the size of data that can be transmitted in 1 second is 100 bits; the network delay can be 5ms, which means that the time it takes for a data packet to travel from the sender to the destination and then back from the destination to the sender is 5 milliseconds; a total of 100 data packets are sent in one data transmission, of which 5 failed to be sent, so the packet loss rate is 5%.
[0019] S200, in response to detecting that the target 4G network is disconnected, switching to the backup link to transmit the data to be transmitted; wherein, BQ<GQ, BQ is the transmission quality coefficient of the backup link.
[0020] Specifically, the backup link may be another 4G network or a 3G network. In one embodiment, the transmission quality coefficient of the backup link is less than the transmission quality coefficient of the target 4G network.
[0021] S300, in response to detecting that the target 4G network has restored connection, obtain a list of factors affecting transmission resumption X = (XJ, XK, XG); wherein XJ is the overall progress of the current transmission of the data to be transmitted; XK is the transmission progress of the current transmission data block; and XG is the transmission quality coefficient difference between the target 4G network and the backup link.
[0022] Specifically, after the 4G network returns to normal, the progress of the entire data transmission and the transmission progress of the current data block are obtained, and the transmission quality coefficients between the two networks are compared.
[0023] S400, according to X, the data to be transmitted is resumed; wherein the resume mode includes using the target 4G network for resume transmission or using the backup network for resume transmission.
[0024] Specifically, whether to use the target 4G network or continue to use the backup network is determined based on the progress of the entire data transmission, the transmission progress of the current data block, and the difference in transmission quality coefficients between the two networks.
[0025] In summary, the method for resuming marine data transmission based on 4G network after network disconnection provided by this embodiment first obtains the transmission quality coefficient of the 4G network to comprehensively judge the transmission efficiency of the 4G network; when the 4G network is disconnected, it first switches to the backup network to ensure that data transmission can be quickly restored without waiting for the abnormal network to return to normal; then when the 4G network returns to normal, it determines whether to switch networks based on the progress of data transmission and the transmission quality coefficients of the two networks, thereby ensuring that the current data transmission efficiency is the highest; compared with the current prior art, the network will not be switched before the network is disconnected, and data transmission needs to wait for the 4G network to be restored, and the 4G network will be directly resumed after the recovery, and there will be no specific processing on the data transmission progress, so this embodiment can improve the efficiency of data transmission.
[0026] In an exemplary embodiment of the present application, step S100 includes:
[0027] S110, obtaining the comprehensive complexity C of the data to be transmitted; wherein C is determined according to the data type and data characteristics of the data to be transmitted.
[0028] Specifically, the comprehensive complexity of the data to be transmitted is the degree of difficulty of the data transmission calculated according to its data type and data characteristics; the data type of the data to be transmitted can be text data, image data or audio data; different data types of data to be transmitted have different data characteristics, that is, the factors affecting the comprehensive complexity of the data are also different. As an example: when the data type is text data, the proportion of various encoding formats of the text data and the average number of bytes per character corresponding to each encoding format are selected as data characteristics.
[0029] S120, according to C and GQ, obtain a list of sizes of data blocks to be transmitted S = (S1, S2, ..., S i , …, S n ); i = 1, 2, ..., n; wherein n is the number of data blocks contained in the data to be transmitted; S i is the data block size of the i-th data block contained in the data to be transmitted; where S i =C / n×(1+1 / GQ); wherein the data block to be transmitted is used to split the data to be transmitted and then perform data transmission.
[0030] Specifically, the size of the data block to be transmitted is determined by the number of data blocks that need to be transmitted according to the average comprehensive complexity of a data block and the transmission quality coefficient of the current network. Among them, C / n represents the basic size of each data block, and then the basic size of each data block is adjusted according to the transmission quality coefficient of the current transmission link. In one embodiment, the larger the transmission quality coefficient of the current transmission link, the higher the transmission efficiency of the current transmission link. At this time, the data block size is adjusted to a smaller size because high-quality links can transmit data more stably and quickly, and smaller data blocks can be transmitted faster, reducing the risk of a single data block transmission process (such as data loss or error caused by network fluctuations), and can be more flexibly scheduled and managed. On the contrary, if the transmission quality coefficient of the current transmission link is smaller, it means that the transmission efficiency of the current transmission link is lower. At this time, the data block size is adjusted to a larger size because the low-quality link itself has a low transmission efficiency. If the data block is too small, it will lead to frequent transmission start and stop, increase overhead, and it may be difficult to ensure that each small data block can be successfully transmitted due to the instability of the link. By allocating relatively large data blocks, this overhead can be reduced to a certain extent, while utilizing the link bandwidth to transmit as much data as possible under the link status. For example, if the data to be transmitted is divided into 10 data blocks, the comprehensive complexity is 100, and the transmission quality coefficient of the 4G network is 0.5, then the size of the data block transmitted each time is 30.
[0031] In an exemplary implementation of the present application, step S110 includes:
[0032] S111, when the data type of the data to be transmitted is a text type, obtain a coding format ratio list P of the data to be transmitted = (P1, P2, ..., P j ,…,P m );j=1,2,…,m;wherein, m is the number of encoding formats corresponding to the data to be transmitted; P j is the encoding format ratio of the jth encoding format corresponding to the text data to be transmitted.
[0033] Specifically, when the data type is text data, since there may be multiple encoding formats in a text, it is necessary to count the usage ratios of different encoding formats in a text and calculate the comprehensive complexity of the text data based on the ratios. For example: a text has two encoding formats, the usage ratio of the first encoding format is 30%, and the usage ratio of the second encoding format is 70%.
[0034] S112, according to P, obtain the character average byte number list B = (B1, B2, ..., B j , …, B m ), where B j P j The average number of bytes corresponding to each character.
[0035] Specifically, since text data may have multiple encoding formats, and the average number of bytes of characters corresponding to different encoding formats is also different, it is also necessary to count the average number of bytes of characters corresponding to different encoding formats to calculate the comprehensive complexity of the text data. As an example: two different encoding formats are used in a text data, the average number of bytes of characters corresponding to the first encoding format is 1 byte, and the average number of bytes of characters corresponding to the second encoding format is 2 bytes.
[0036] S113, according to P and B, obtain C, where C meets the following conditions:
[0037] C=N c ×∑ m j=1 (P j ×B j );
[0038] Among them, N c The number of characters contained in the data to be transmitted.
[0039] Specifically, the comprehensive complexity of text data is mainly determined by the encoding format of the text, and the average number of bytes of characters corresponding to different encoding formats is different; the more encoding formats are used in a text data, the higher the complexity, and relatively speaking, the more average number of bytes of characters corresponding to each encoding format, the larger the character size of the encoding format, and thus the higher the comprehensive complexity; by counting the proportion of different encoding formats used in a text data and the average number of bytes of characters corresponding to each encoding format, the average number of bytes of a character of the text data can be obtained, and then multiplied by the number of characters in the entire text, the comprehensive complexity of the entire text data can be obtained.
[0040] The embodiment of the present application provides a method for resuming data transmission after disconnection of a ship based on a 4G network, wherein step S110 comprises:
[0041] S114, when the data type of the data to be transmitted is an image type, C meets the following conditions:
[0042] C = α × D + β × E;
[0043] Among them, D is the resolution corresponding to the data to be transmitted; α is the resolution weight corresponding to the data to be transmitted; E is the color depth corresponding to the data to be transmitted; β is the color depth weight corresponding to the data to be transmitted.
[0044] Specifically, the comprehensive complexity of image data is mainly determined by the resolution and color depth of the image; the higher the image resolution, the higher the comprehensive complexity; the deeper the color depth of the image, the higher the comprehensive complexity; α represents the importance of the resolution corresponding to the data to be transmitted in determining the comprehensive complexity; β represents the importance of the color depth corresponding to the data to be transmitted in determining the comprehensive complexity.
[0045] The embodiment of the present application provides a method for resuming data transmission after disconnection of a ship based on a 4G network, wherein step S110 comprises:
[0046] S115, when the data type of the data to be transmitted is an audio type, C meets the following conditions:
[0047] C = S × H × T;
[0048] Among them, S is the sampling rate of the data to be transmitted; H is the bit depth of the data to be transmitted; T is the duration of the data to be transmitted.
[0049] Specifically, the comprehensive complexity of audio data is mainly determined by sampling rate, bit depth and duration; sampling rate and bit depth are the key factors that determine the amount and complexity of audio data. The sampling rate indicates the number of times the audio signal is sampled per second, and the bit depth indicates the number of bits used for each sampling point. Complexity is positively correlated with the amount of data to a certain extent. A higher sampling rate means more sample points per unit time, and the higher the bit depth of each sample point, the richer the audio details it can represent, and the corresponding amount of data is larger, so the complexity is also higher. Multiplying it by the audio duration, we get the amount of information of the entire audio data, which can be used as a measure of the complexity of audio data based on sampling rate and bit depth factors. It indicates the amount of information contained in the audio data under a given sampling rate, bit depth and duration, thereby reflecting the complexity of the audio data.
[0050] The embodiment of the present application provides a method for resuming data transmission after disconnection of a ship based on a 4G network, wherein the GQ meets the following conditions: GQ=K / (W×(1+L));
[0051] Among them, K is the bandwidth of the target 4G network; W is the network delay of the target 4G network; L is the packet loss rate of the target 4G network.
[0052] Specifically, the transmission quality coefficient of the 4G network is determined by the bandwidth, network delay and packet loss rate. The larger the bandwidth, the faster the network transmission speed and the higher the transmission efficiency, and the higher the transmission quality coefficient. The delay indicates the delay time of each data transmission. The longer the delay time, the lower the transmission efficiency, and the lower the transmission quality coefficient. The packet loss rate indicates the error degree of each data transmission. The higher the error degree, the lower the transmission efficiency, and the lower the transmission quality coefficient.
[0053] The embodiment of the present application provides a method for resuming data transmission after disconnection of a ship based on a 4G network, wherein step S400 comprises:
[0054] S410: When XJ is greater than the overall progress threshold, no network switching is performed.
[0055] Specifically, when the overall progress of data transmission is greater than the set threshold, it means that most of the data to be transmitted has been transmitted; if the target 4G network is switched back, the network fluctuation caused by link switching will affect the data line transmission efficiency. Therefore, in order to ensure high efficiency and stable transmission, the network switching is not performed. As an example: the overall progress of the current data is 99%, and the threshold of the overall progress is set to 95%. At this time, the overall progress is greater than the set threshold. Switching the network to continue the transmission is inefficient, so the network is not switched.
[0056] S420: When XJ is less than or equal to the overall progress threshold, and XK is less than the first data block progress threshold, switch to the target 4G network.
[0057] Specifically, when the overall progress is less than or equal to the overall progress threshold, the transmission progress of the current data block is more important; if the transmission progress of the current data block is less than the first data block progress threshold, it means that not much of the data block has been transmitted. Since the transmission quality coefficient of the target 4G network is greater than the transmission quality coefficient of the backup link, it is more efficient to switch to the target 4G network to transmit data. As an example: when the overall progress of the current data transmission is 30%, which is less than the overall progress threshold of 95%, and the transmission progress of the current data block is 10%, which is less than the first data block progress threshold of 60%, it is more efficient to use the target 4G network.
[0058] S430, when XJ is less than or equal to the overall progress threshold, and XK is greater than the second data block progress threshold, no network switching is performed; wherein the second data block progress threshold is greater than the first data block progress threshold;
[0059] Specifically, if the transmission progress of the current data block is greater than the second data block progress threshold, it means that the data block transmission may be almost completed. At this time, switching to the 4G network to transmit data is inefficient, so the network is not switched. As an example: when the overall progress of the current data transmission is 30% less than the overall progress threshold of 95%, and the transmission progress of the current data block is 90% greater than the second data block progress threshold of 80%, it is even less efficient to use the 4G network.
[0060] In one embodiment, the target 4G network may be switched after it is detected that the current data block has been transmitted.
[0061] S440: When XJ is less than or equal to the overall progress threshold, XK is greater than the first data block progress threshold and less than the second data block progress threshold, and XG is less than the transmission quality coefficient difference threshold, network switching is not performed.
[0062] Specifically, the transmission progress of the current data block is greater than the first data block progress threshold and less than the second data block progress threshold. Whether to switch the network within this interval also requires judging the transmission quality coefficient difference between the two networks. If the difference is less than the transmission quality coefficient difference threshold, it means that the transmission efficiency of the two networks is relatively small. Switching to the target 4G network will also cause network fluctuations and unstable data transmission, affecting the overall data transmission efficiency. Therefore, network switching is not performed at this time. As an example: the overall progress of the current data transmission is 30, which is less than the overall progress threshold of 95%. The transmission progress of the current data block is 70%, which is greater than the first data block progress threshold of 60% and less than the second data block progress threshold of 80%. At this time, the transmission quality coefficient difference between the two networks is 0.1, which is less than the transmission quality coefficient difference threshold of 0.5.
[0063] S450, when XJ is less than or equal to the overall progress threshold, XK is greater than the first data block progress threshold and less than the second data block progress threshold, and XG is greater than or equal to the transmission quality coefficient difference threshold, switch to the target 4G network.
[0064] Specifically, if the transmission progress of the current data block is greater than the first data block progress threshold and less than the second data block progress threshold, whether to switch the network within this interval also requires judging the transmission quality coefficient difference between the two networks. If the difference is greater than the transmission quality coefficient difference threshold, it means that the transmission efficiency of the two networks is quite different, and switching the network is more efficient. As an example: the overall progress of the current data transmission is 30, which is less than the overall progress threshold of 95%, and the transmission progress of the current data block is 70%, which is greater than the first data block progress threshold of 60% and less than the second data block progress threshold of 80%. At this time, the transmission quality coefficient difference between the two networks is 0.9, which is greater than the transmission quality coefficient difference threshold of 0.5, and switching to the 4G network is more efficient.
[0065] In an exemplary embodiment of the present application, after step S100, the method further includes:
[0066] S500, at each target time interval, obtain the signal strength list YC corresponding to the target 4G network in the key time period = (YC1, YC2, ..., YC x , …, YC y ); x = 1, 2, ..., y; where y is the number of acquired signal strengths; YC x The xth signal strength obtained within the key time period; the end time of the key time period is the current time; the acquisition time interval between any two adjacent signal strengths is the same.
[0067] Specifically, in this embodiment, as an example: the target time interval may be 5 minutes; the key time period may be 10 minutes; and the collection time interval may be 3 seconds.
[0068] S600, according to YC, obtain the corresponding signal intensity mean QD; wherein QD meets the following conditions: QD = (1 / y) Σ y x=1 YC x .
[0069] Specifically, the signal strength mean reflects the overall signal strength level. A low signal strength mean means that the signal received by the device is generally weak during the observation period. Weak signals may be caused by the device being far away from the base station, interference from obstacles, or poor network coverage in the area.
[0070] The signal strength mean is obtained in this embodiment because if the signal strength mean is low, the possibility of disconnection may increase. The communication of the 4G network is based on radio frequency signals. When the signal strength mean is low, the signal quality will also decrease. Lower signal quality will lead to an increase in the bit error rate during data transmission. A high bit error rate means that data is more prone to errors during transmission. For example, a byte of data may be misinterpreted after transmission. When the errors accumulate to a certain extent, the network connection may not be maintained, resulting in disconnection.
[0071] And signals with lower mean values are usually more unstable. In a relatively stable network environment, the signal strength will fluctuate within a reasonable range, while signals with lower mean values may frequently fluctuate in a weak signal state, and may even be further weakened due to some minor interference factors (such as the movement of objects in the surrounding environment, interference from other electronic devices, etc.). This unstable signal is more likely to experience a sudden and significant drop, thus interrupting the network connection.
[0072] S700, according to YC, obtain the signal change rate list BH = (BH1, BH2, ..., BHx , …, BH y ), among which, BH x Meet the following conditions: BH x =(YC x+1 -YC x ) / CJ; CJ is YC x+1 and YC x The time interval between collections.
[0073] S800, according to YC and QD, obtain a fluctuation degree list BD; wherein BD x For YC x The corresponding volatility; BD meets the following conditions: BD = (1 / (y-1)) Σ y x=1 (YC x -QD) 2 .
[0074] In this embodiment, variance is used to represent the fluctuation degree of the signal strength list.
[0075] S900, QD, BH and BD are input into the logistic regression model HG (r = 1) to obtain the predicted disconnection probability; wherein HG (r = 1) meets the following conditions: HG (r = 1) = 1 / (1 + e -z ); z = γ0 + γ1 × QD + γ2 × BD + γ3 × max (BH); max() is a preset maximum value determination function; γ0, γ1, γ2 and γ3 are regression coefficients; r = 1 indicates disconnection.
[0076] Specifically, max(BH) is the maximum value of the corresponding signal strength change rate, which reflects the maximum drop in signal strength in a short period of time. If this value is large and negative, it means that the signal strength drops sharply and the risk of disconnection is high. BD indicates the degree of fluctuation of signal strength. Large fluctuations may indicate network instability and increase the probability of disconnection.
[0077] It should be noted that the logistic regression model is trained by collecting a large amount of historical signal strength data. Specifically: obtain a list of signal strengths corresponding to each disconnection in several disconnections of the target 4G network during the historical time; the signal strength list is the signal strength within a period of time collected a period of time before the disconnection occurs; as an example: the signal strength list is the signal strength from one minute before the disconnection to eleven minutes before the disconnection occurs. And obtain several signal strength lists corresponding to the target 4G network when it is not disconnected during the historical time, and train the logistic regression model based on the above historical signal strength data. The maximum likelihood estimation method can be used to determine the corresponding values of γ0, γ1, γ2 and γ3. During the training process, the historical data is divided into a training set and a validation set. Use the training set to train the model, and adjust the parameters so that the model has the highest prediction accuracy on the training set. Then use the validation set to verify the generalization ability of the model to avoid overfitting.
[0078] S1000: If the predicted disconnection probability is less than a preset disconnection probability threshold, switching to a standby link to transmit the data to be transmitted.
[0079] S1100: If it is detected that the target 4G network is disconnected, jump to step S300.
[0080] In this embodiment, the target 4G network is disconnected according to the logistic regression model, and when the probability of the target 4G network disconnection is predicted to be high, the backup link is switched to transmit the data to be transmitted. This avoids the long-term suspension of data transmission, and if the target 4G network is detected to be disconnected during the second critical time period, that is, when the prediction result is accurate, jump to step S300 to continue processing. This embodiment switches the transmission link in advance by predicting the probability of the target 4G network disconnection, avoiding the passive switching of the transmission link due to the disconnection of the target 4G network, thereby improving the stability and efficiency of data transmission.
[0081] An embodiment of the present application further provides a computer program product, which includes program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the method according to various exemplary embodiments of the present application described above in this specification.
[0082] In addition, although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0083] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0084] In an exemplary embodiment of the present application, an electronic device capable of implementing the above method is also provided.
[0085] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.
[0086] The electronic device according to this embodiment of the present application is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0087] The electronic device is presented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: the at least one processor mentioned above, the at least one storage device mentioned above, and a bus connecting different system components (including storage devices and processors).
[0088] The storage stores program codes, which can be executed by the processor, so that the processor executes the steps described in the above “Exemplary Method” section of this specification according to various exemplary embodiments of the present application.
[0089] The memory may include readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory, and may further include read only memory (ROM).
[0090] The storage may also include a program / utility having a set (at least one) of program modules, such program modules including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0091] The bus may represent one or more of several types of bus structures including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
[0092] The electronic device can also communicate with one or more external devices (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable users to interact with the electronic device, and / or communicate with any device (such as routers, modems, etc.) that enables the electronic device to communicate with one or more other computing devices. This communication can be carried out through an input / output (I / O) interface. In addition, the electronic device can also communicate with one or more networks (such as local area networks (LANs), wide area networks (WANs) and / or public networks, such as the Internet) through a network adapter. As shown in the figure, the network adapter communicates with other modules of the electronic device through a bus. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0093] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0094] In an exemplary embodiment of the present application, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present application can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present application described in the above "Exemplary Method" section of the present specification.
[0095] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0096] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0097] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0098] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0099] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present application, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0100] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0101] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for resuming data transmission after disconnection of ship data based on 4G network, characterized in that: The method comprises: S100, transmitting the data to be transmitted according to the target 4G network; wherein the target 4G network has a corresponding transmission quality coefficient GQ; wherein GQ is determined according to the bandwidth K of the target 4G network, the network delay W of the target 4G network, and the packet loss rate L of the target 4G network; S200, in response to detecting that the target 4G network is disconnected, switching to the backup link to transmit the data to be transmitted; wherein BQ<GQ, BQ is the transmission quality coefficient of the backup link; S300, in response to detecting that the target 4G network is restored to connect, obtaining a list of factors affecting the continued transmission X=(XJ, XK, XG); wherein XJ is the overall progress of the current transmission of the data to be transmitted; XK is the transmission progress of the current transmission data block; and XG is the transmission quality coefficient difference between the target 4G network and the backup link; S400, according to X, the data to be transmitted is resumed; wherein the resume mode includes using the target 4G network for resume transmission or using the backup network for resume transmission.
2. The method for resuming data transmission after disconnection based on 4G network according to claim 1 is characterized in that: The step S100 includes: S110, obtaining a comprehensive complexity C of the data to be transmitted; wherein C is determined according to the data type and data characteristics of the data to be transmitted; S120, according to C and GQ, obtain a list of sizes of data blocks to be transmitted S = (S1, S2, ..., S i , …, S n ); i = 1, 2, ..., n; wherein n is the number of data blocks contained in the data to be transmitted; S i is the data block size of the i-th data block contained in the data to be transmitted; where S i =C / n×(1+1 / GQ); wherein the data block to be transmitted is used to split the data to be transmitted and then perform data transmission.
3. The method for continuing data transmission after disconnection based on 4G network according to claim 2 is characterized in that: Step S110 includes: S111, when the data type of the data to be transmitted is a text type, obtain a coding format ratio list P of the data to be transmitted = (P1, P2, ..., P j ,…,P m );j=1,2,…,m;wherein, m is the number of encoding formats corresponding to the data to be transmitted; P j is the encoding format ratio of the jth encoding format corresponding to the text data to be transmitted; S112, according to P, obtain the character average byte number list B = (B1, B2, ..., B j , …, B m ), where B j P j The average number of bytes corresponding to the characters; S113, according to P and B, obtain C, where C meets the following conditions: C=N c ×∑ m j=1 (P j ×B j ); Among them, N c The number of characters contained in the data to be transmitted.
4. The method for continuing data transmission after disconnection based on 4G network according to claim 2 is characterized in that: Step S110 includes: S114, when the data type of the data to be transmitted is an image type, C meets the following conditions: C = α × D + β × E; Among them, D is the resolution corresponding to the data to be transmitted; α is the resolution weight corresponding to the data to be transmitted; E is the color depth corresponding to the data to be transmitted; β is the color depth weight corresponding to the data to be transmitted.
5. The method for continuing to transmit marine data after disconnection based on 4G network according to claim 2 is characterized in that: Step S110 includes: S115, when the data type of the data to be transmitted is an audio type, C meets the following conditions: C = S × H × T; Among them, S is the sampling rate of the data to be transmitted; H is the bit depth of the data to be transmitted; T is the duration of the data to be transmitted.
6. The method for continuing data transmission after disconnection based on 4G network according to claim 1 is characterized in that: GQ meets the following conditions: GQ = K / (W×(1+L)).
7. The method for resuming data transmission after disconnection based on 4G network according to claim 1 is characterized in that: Step S400 includes: S410, when XJ is greater than the overall progress threshold, no network switching is performed; S420, when XJ is less than or equal to the overall progress threshold, and XK is less than the first data block progress threshold, switching to the target 4G network; S430, when XJ is less than or equal to the overall progress threshold, and XK is greater than the second data block progress threshold, no network switching is performed; S440, when XJ is less than or equal to the overall progress threshold, XK is greater than the first data block progress threshold and less than the second data block progress threshold, and XG is less than the transmission quality coefficient difference threshold, no network switching is performed; S450, when XJ is less than or equal to the overall progress threshold, XK is greater than the first data block progress threshold and less than the second data block progress threshold, and XG is greater than or equal to the transmission quality coefficient difference threshold, switch to the target 4G network.
8. The method for resuming data transmission after disconnection based on 4G network according to claim 1 is characterized in that: After step S100, the method further includes: S500, at each target time interval, obtain the signal strength list YC corresponding to the target 4G network in the key time period = (YC1, YC2, ..., YC x , …, YC y ); x = 1, 2, ..., y; where y is the number of acquired signal strengths; YC x The xth signal strength obtained within the key time period; the end time of the key time period is the current time; the acquisition time interval between any two adjacent signal strengths is the same; S600, according to YC, obtain the corresponding signal intensity mean QD; wherein QD meets the following conditions: QD = (1 / y) Σ y x= 1YC x ; S700, according to YC, obtain the signal change rate list BH = (BH1, BH2, ..., BH x , …, BH y ), among which, BH x Meet the following conditions: BH x =(YC x+1 -YC x ) / CJ; CJ is YC x+1 and YC x The time interval between collections; S800, according to YC and QD, obtain a fluctuation degree list BD; wherein BD x For YC x The corresponding volatility; BD meets the following conditions: BD = (1 / (y-1)) Σ y x=1 (YC x -QD) 2 ; S900, QD, BH and BD are input into the logistic regression model HG (r = 1) to obtain the predicted disconnection probability; wherein HG (r = 1) meets the following conditions: HG (r = 1) = 1 / (1 + e -z ); z = γ0 + γ1 × QD + γ2 × BD + γ3 × max (BH); max() is a preset maximum value determination function; γ0, γ1, γ2 and γ3 are regression coefficients; r = 1 indicates disconnection; S1000, if the predicted disconnection probability is less than a preset disconnection probability threshold, switching to a standby link to transmit the data to be transmitted; S1100: If it is detected that the target 4G network is disconnected, jump to step S300.