A 4G three-card single standby method and system applied to a monitoring camera
By constructing a 4G triple-SIM single-standby system for surveillance cameras, the problem of unstable signal from surveillance cameras in complex environments was solved, achieving stable transmission of high-resolution video, reducing hardware costs and improving communication stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-18
- Publication Date
- 2026-03-27
AI Technical Summary
Existing surveillance cameras have poor signal stability in remote transmission scenarios, especially in complex deployment environments where signal attenuation or short-term failures are common. Traditional link switching logic cannot meet the stability requirements of high-resolution video backhaul, and multi-card multi-standby solutions increase hardware complexity and cost.
The 4G triple-SIM single-standby method is adopted. By logically separating the authentication, positioning and network registration requests of the SIM card, a multi-SIM virtual bearer layer is constructed. Combining historical signal trajectories, environmental disturbance trends and base station congestion predictions, the link stability score is calculated in real time, and when the link stability decreases, the system dynamically switches to the backup SIM card with the highest score for output.
Maintaining the continuity of video transmission under complex electromagnetic environments and base station congestion changes reduces the probability of monitoring screen interruption, improves communication robustness and resource utilization, and enables low-cost and high-efficiency communication for lightweight cameras.
Smart Images

Figure CN121357525B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of SIM card communication, and particularly relates to a 4G three-card single standby method and system applied to a monitoring camera. BACKGROUND
[0002] The existing monitoring camera adopts a single-card 4G communication mode in a remote transmission scene, and the link stability thereof is jointly influenced by operator coverage difference, wireless environment fluctuation and base station congestion. In a complex deployment environment, the single-card link often has problems of signal attenuation or short-time failure. In order to improve stability, some devices introduce a double-card or multi-card multi-standby structure, but such a scheme generally depends on multi-baseband or multi-radio frequency hardware, and the hardware complexity and cost obviously increase, and cannot be generally applied to light-weight cameras.
[0003] On the other hand, with the increasing demand for intelligent monitoring, video transmission gradually evolves from low-code rate images to high-resolution videos, real-time back transmission and delay control, which makes the instability of the communication link more likely to cause key picture loss. The traditional link switching logic usually depends on a single signal strength judgment, lacks comprehensive evaluation of signal trajectory analysis in the time dimension, environment disturbance prediction and base station congestion trend, and causes switching action lag or even mis-triggering, which cannot meet the requirement for continuous video back transmission stability. SUMMARY
[0004] In view of the deficiencies of the prior art, the application provides a 4G three-card single standby method and system applied to a monitoring camera, which can maintain the continuity of video back transmission in a complex channel, and simultaneously considers energy consumption, stability and system scalability, and provides a new multi-card communication strategy for light-weight monitoring devices.
[0005] To achieve the above object, the application provides the following technical scheme.
[0006] A 4G three-card single standby method applied to a monitoring camera, comprising:
[0007] The authentication, positioning and network registration request of three 4G SIM cards are logically separated, and are uniformly managed by a virtual session identifier, and a multi-card virtual bearing layer is constructed;
[0008] The multi-card virtual bearing layer calculates a link stability score of each SIM card in real time based on historical signal trajectories of the three SIM cards, environmental electromagnetic disturbance trends and base station congestion prediction results of a target area, and automatically determines a target SIM card to be currently preferentially used according to the score;
[0009] The video stream collected by the monitoring camera is divided into continuous segments, each segment is attached with error correction coding and segment binding identification, when it is detected that the target SIM card link stability score drops below the threshold, the next video segment is switched to the standby SIM card with the highest score for output.
[0010] Specifically, the authentication, positioning and network registration requests of the three 4G SIM cards are logically separated and uniformly managed by a virtual session identifier, and a multi-card virtual bearing layer is constructed, including:
[0011] Obtain the authentication request, positioning request and network registration request for each SIM card, and preliminarily classify the various requests according to the preset categories;
[0012] Create an isolated authentication channel, positioning channel and registration channel for each SIM card, so that the three types of requests flow in different logical channels;
[0013] Assign a unique virtual session identifier to each group of logical channels, and manage the three SIM cards in the form of a virtual session;
[0014] Establish a dispatch table for the virtual sessions corresponding to the three SIM cards in chronological order, channel attributes and internal numbers;
[0015] Based on the dispatch table, the logical channels of the three SIM cards are combined and sorted to form a multi-card virtual bearing layer.
[0016] Specifically, the logical channels of the three SIM cards are combined and sorted based on the dispatch table to form a multi-card virtual bearing layer, including:
[0017] Item-by-item analysis of the attribute items of the authentication channel, positioning channel and registration channel recorded in the dispatch table, and establishing a temporary index relationship between each type of attribute item and the corresponding SIM card number;
[0018] According to the same type of attribute item, the logical channels from different SIM cards are combined into multiple channel groups, and the execution order identifier consistent with the dispatch table is retained in each channel group according to the temporary index relationship;
[0019] Based on the execution order identifier of each channel group, the channel groups from the three SIM cards are cross-card sorted;
[0020] Using the sorted cross-card call sequence, a virtual bearing structure is generated, and this structure is defined as a multi-card virtual bearing layer.
[0021] Specifically, the multi-card virtual bearing layer is based on the historical signal trajectory of the three SIM cards, the environmental electromagnetic disturbance trend and the base station congestion prediction result of the target area, and the link stability score of each SIM card is calculated in real time, and the currently preferred target SIM card is automatically determined according to the score, including:
[0022] Collecting signal change trajectory data of three SIM cards in a preset time period, and synchronously arranging the data with environmental disturbance information of the area where the camera is located and base station congestion data into a multidimensional dataset;
[0023] sequentially rearranging the multidimensional dataset according to its corresponding time identifier to obtain a sorted multidimensional dataset;
[0024] Based on the sorted multidimensional dataset, the signal trajectory change trend is associated with the disturbance data and the base station congestion situation according to the time slice to generate intermediate relationship data of the SIM card;
[0025] Based on the intermediate relationship data of each SIM card, a link score index is established according to a preset judgment order, and a corresponding score is generated for the link performance of each SIM card in the current time period;
[0026] The link scores of the three SIM cards are compared according to internal rules, and the target SIM card currently used for video transmission processing is selected according to the comparison result.
[0027] Specifically, based on the sorted multidimensional dataset, the signal trajectory change trend is associated with the disturbance data and the base station congestion situation according to the time slice to generate intermediate relationship data of the SIM card, including:
[0028] According to the preset time slice, the signal trajectory change data, environmental disturbance information and base station congestion data in each time slice are respectively classified into corresponding time slice aggregation groups;
[0029] In each time slice aggregation group, the disturbance events and congestion records are sequentially matched according to the signal trajectory change nodes to form a matching sequence;
[0030] According to the arrangement order of the time slice, the matching sequences are analyzed in a chain manner, and the signal change nodes in adjacent time slices are cross-correlated with the corresponding disturbance records and congestion records;
[0031] After completing the cross-correlation, the matching relationships of the same SIM card in all time slices are arranged into a continuous structure according to internal rules, and recorded as the intermediate relationship data of the SIM card.
[0032] Specifically, after completing the cross-correlation, the matching relationships of the same SIM card in all time slices are arranged into a continuous structure according to internal rules, and recorded as the intermediate relationship data of the SIM card, including:
[0033] For the same SIM card, its corresponding matching relationship records are obtained in each time slice, and a uniform format time sequence identifier and slice identifier are added to each matching relationship;
[0034] According to the time sequence identifier, the matching relationship records of the SIM card in all time slices are rearranged, and matching relationships from different time slices but belonging to the same card are arranged in an initial continuous sequence in time sequence;
[0035] According to preset internal rules, matching relationships in adjacent time slices in the initial continuous sequence that meet merging conditions are sequentially merged, and new continuous slice numbers are generated for the merged matching relationships in the merging process;
[0036] The merged continuous sequence is registered as a continuous structure corresponding to the SIM card, and the continuous structure is written into the intermediate relationship data record set during registration, forming intermediate relationship data.
[0037] Specifically, based on the intermediate relationship data of each SIM card, link score indicators are established according to a preset judgment order, and a corresponding score is generated for the link performance of each SIM card in the current period, including:
[0038] According to a preset extraction rule, multiple associated items related to the link state are extracted from the intermediate relationship data of each SIM card, and a primary association sequence is formed according to their appearance order;
[0039] The primary association sequence is rearranged according to the internal judgment order to obtain the sorted associated items;
[0040] According to the sorted associated items, multiple link score indicators are established in turn, and each link score indicator is assigned an internal identification mark consistent with its corresponding position in the judgment order;
[0041] The associated items of the three SIM cards are processed item by item according to the link score indicators, and the processing results are summarized as the link score value of the corresponding SIM card in the current period.
[0042] Specifically, the associated items of the three SIM cards are processed item by item according to the link score indicators, and the processing results are summarized as the link score value of the corresponding SIM card in the current period, including:
[0043] Based on the arrangement order of the link score indicators, the associated items corresponding to each indicator are extracted from the associated item sequence of each SIM card in turn, and the extracted associated items are added to the processing set in order;
[0044] Each associated item in the processing set is processed item by item according to the internal processing rules of the link score indicators, and a corresponding processing record is generated for each associated item during processing;
[0045] After the processing of all the associated items is completed, the processing records of the same SIM card are merged according to their arrangement order in the index system, and a uniform format score fragment set is generated for the merged records;
[0046] According to the arrangement order of the score fragment set, the numerical content of each score fragment is combined according to internal aggregation rules to form a link score value of the corresponding SIM card in the current period.
[0047] Specifically, the video stream collected by the monitoring camera is divided into continuous segments, each segment is attached with an erasure coding and card segment binding identifier, when it is detected that the target SIM card link stability score drops below the threshold, the next video segment is switched to the standby SIM card with the highest score for output, including:
[0048] The original video stream collected by the monitoring camera is divided according to the preset segmentation rule, each segmented video is assigned an intra-segment number, and a continuous arrangement of video segment sequence is formed;
[0049] For each video segment in the sequence, generate erasure coding data corresponding to the video segment, and associate the erasure coding data with the video segment one by one;
[0050] After the association between the video segment and the erasure coding data is completed, the target SIM card identifier currently used for transmission is combined with the intra-segment number of the corresponding video segment to generate a card segment binding identifier, and the corresponding card segment binding identifier is recorded for each video segment;
[0051] During the sequential transmission of the video segment, based on the link stability score, the link stability score of the target SIM card in the current period is periodically compared with the preset threshold, and the transmission path of the next to-be-sent video segment is kept in a pending state during the comparison process;
[0052] When the comparison result shows that the link stability score of the target SIM card is lower than the preset threshold, the standby SIM card with the highest score is selected from the link stability scores of the remaining SIM cards, the card segment binding identifier of the next video segment in the pending state is updated to the corresponding identifier of the standby SIM card, and the video segment and its erasure coding data are handed over to the selected standby SIM card for transmission processing.
[0053] A 4G three-card single standby system applied to a monitoring camera, for implementing the 4G three-card single standby method applied to the monitoring camera, comprising: a virtual management module, a scoring module and a card selection module;
[0054] The virtual management module is used to logically separate the authentication, positioning and network registration requests of the three 4G SIM cards, and uniformly manage them with a virtual session identifier to build a multi-card virtual bearing layer;
[0055] The scoring module, through a multi-card virtual bearing layer, based on the historical signal trajectory of three SIM cards, the environmental electromagnetic disturbance trend and the base station congestion prediction result of the target area, calculates the link stability score of each SIM card in real time, and automatically determines the target SIM card currently used according to the score;
[0056] The card selection module is used for dividing the video stream collected by the monitoring camera into continuous small segments, each segment being attached to an error correction coding and card segment binding identification, and when it is detected that the link stability score of the target SIM card decreases to below a threshold value, the next video segment is switched to the standby SIM card with the highest score for output.
[0057] Compared with the prior art, the beneficial effects of the present application are:
[0058] The present application provides a 4G three-card single standby method and system applied to a monitoring camera, a multi-card virtual bearing layer is constructed in a single baseband architecture, and a link scoring system, cross-card segment switching mechanism and multi-dimensional data correlation scheduling logic are combined, so that the monitoring camera can realize intelligent selection and dynamic switching of three SIM cards without increasing additional radio frequency or baseband hardware; the method can maintain the continuity of video backhaul under complex electromagnetic environment, cross-region mobile scene and base station congestion change, and complete pre-switching before link attenuation occurs, thereby reducing the probability of interruption of the monitoring picture; at the same time, different operator network states are comprehensively scheduled through a multi-card cooperation strategy, the overall communication robustness and resource utilization are improved, so that the lightweight camera device can obtain a communication performance close to multi-baseband under low-cost conditions. BRIEF DESCRIPTION OF DRAWINGS
[0059] Figure 1 A flowchart of a 4G three-card single standby method applied to a monitoring camera is provided for the present application;
[0060] Figure 2 A structure diagram of a multi-card virtual bearing layer is provided for the present application;
[0061] Figure 3 An architecture diagram of a 4G three-card single standby system applied to a monitoring camera is provided for the present application. DETAILED DESCRIPTION
[0062] The present application will be described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present application, but do not limit the present application in any form. It should be noted that, for those skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made. These all belong to the protection scope of the present application.
[0063] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.
[0064] It should be noted that the various features in the embodiments of the present application can be combined with each other if there is no conflict, and all are within the protection scope of the present application. In addition, although the functional modules are divided in the device schematic diagram, and the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from the module division in the device or the order in the flowchart. In addition, the "first", "second", "third" and the like used in the present application do not limit the data and execution order, but only distinguish the same items or similar items with basically the same function and effect.
[0065] Unless otherwise defined, all technical and scientific terms used in the present application have the same meaning as understood by a person skilled in the art to which the present application belongs. The terms used in the present application are only for the purpose of describing the specific embodiments of the present application and are not used to limit the present application. The term "and / or" used in the present application includes any and all combinations of one or more related listed items.
[0066] Embodiment 1
[0067] Please refer to Figures 1-2 The present application provides an embodiment: a 4G three-card single standby method applied to a monitoring camera, comprising the following specific steps:
[0068] Step S1: logically separate the authentication, positioning and network registration request of the three 4G SIM cards, and uniformly manage them with a virtual session identifier, and construct a multi-card virtual bearing layer.
[0069] The specific steps of step S1 are:
[0070] Step S101: obtain the authentication request, positioning request and network registration request for each SIM card, and preliminarily classify various requests according to the preset categories.
[0071] In the embodiment, the differences of the multiple types of access requests in the time dimension and the attribute dimension are extracted, specifically, when the monitoring camera initializes the communication link, the request information respectively belonging to the authentication, positioning and network registration processes is received from the baseband drive layer. These requests have different trigger sequences, field structures and network pointing attributes when triggered. By analyzing the trigger time identifier, the request header field and the corresponding process identifier of the request, the originally mixed input request stream is disassembled into several fragmented request units, and each request unit is mapped to the authentication class, the positioning class or the registration class and other primary classes according to the preset category mapping rule. The mapping process is classified by comparing the field identifier and the process characteristics, thereby laying a foundation for subsequent establishment of logical channels and virtual session relationships, and realizing controllable separation of the request streams of the three SIM cards.
[0072] Step S102: Create mutually isolated authentication channels, positioning channels and registration channels for each SIM card, so that the three types of requests are respectively forwarded in different logical channels.
[0073] In the embodiment, the requests that have completed the primary classification are split into independent logical paths according to the process attributes, specifically, during the communication initialization process of each SIM card, three types of requests with different properties, i.e., authentication class, positioning class and network registration class, are continuously generated. If these requests continue to be mixed and forwarded in the same data path, not only the process state will be crossed, but also the subsequent virtual session management will lose distinguishability. Therefore, by comparing the process identifier, trigger sequence and necessary fields of each type of request, three independent logical channels with mutually shared processing stacks are established for the same card number. When the channel is established, the authentication request is only mapped to the authentication channel, the positioning request is only mapped to the positioning channel, and the registration request is only mapped to the registration channel. Independent state record tables are maintained for the three channels respectively. Through the channel division operation, the three types of requests of the same card are independently promoted in the mutually isolated logical paths after entering the processing flow.
[0074] Step S103: Assign a unique virtual session identifier to each group of logical channels to manage the three SIM cards in the form of virtual sessions.
[0075] In the embodiment, a unified scheduling identification system is constructed for the split logical channels. It should be noted that after the processing of step S102, the authentication channel, the positioning channel and the registration channel corresponding to the same card number have formed independent logical paths from each other, but if the channel is continuously taken as the minimum scheduling unit, it will lead to the fact that the subsequent network access process cannot be uniformly managed in the card level granularity. Therefore, the necessity of constructing a virtual session with the card as the center is deduced by analyzing the subordinate relationship of the three types of channels in the access process, and a unique virtual session identification is generated for the three logical channels under the same card number. The identification is bound with the card number, the local channel number and the initialization timestamp when it is generated, so that the three channels are referenced as a single virtual session unit when entering the scheduling stage. Through the identification binding process, the channels originally in a logically dispersed state are integrated into the uniformly called virtual session structure.
[0076] Step S104: A scheduling table is established for the virtual sessions corresponding to the three SIM cards in the time sequence, the channel attribute and the internal number.
[0077] In the embodiment, the execution order of the virtual sessions of the three SIM cards is structured and arranged. Specifically, after the processing of the previous steps, each SIM card has a unique virtual session identification, and the virtual session internally includes three types of logical channels with different attributes, i.e., authentication, positioning and registration. Since the trigger timing, the dependency relationship and the priority of the three types of channels in the actual access process are not consistent, a unified scheduling table needs to be constructed according to the three parameters of the time sequence, the channel attribute and the internal number. For this purpose, the timestamps generated by the virtual sessions in the initial access stage are sorted to obtain the basic execution order of the three SIM cards in the current period. Then, a fixed execution level is established among the authentication, positioning and registration according to the channel attribute, and the same type of channel is finely distinguished in combination with the internal number of the virtual session. Finally, the three types of sorted information are combined according to the preset arrangement rule to form a scheduling table for the virtual bearer layer, so that each virtual session is promoted according to the explicit time sequence and attribute sequence in the scheduling stage.
[0078] Step S105: The logical channels of the three SIM cards are combined and sorted based on the scheduling table to form a multi-card virtual bearer layer.
[0079] The specific steps of step S105 are as follows:
[0080] Step S1051: The attribute items of the authentication channel, the positioning channel and the registration channel recorded in the scheduling table are analyzed item by item, and a temporary index relationship is established between each type of attribute item and the corresponding SIM card number.
[0081] In the embodiment, the attribute parameters of different types of channels in the scheduling table are extracted and a fast retrieval relationship is established. Specifically, in the construction process, the virtual sessions of the three SIM cards are arranged according to the time sequence and the internal attributes, but the arrangement is still stored in the form of a composite record. If the subsequent combined sorting is directly performed using the composite record, it will be difficult to realize the independent positioning of the same type of channels. Therefore, by analyzing the channel attribute items of each record in the scheduling table, the attributes such as authentication, positioning and registration are separated from the composite field in the form of text or identification. After the attribute extraction, a one-to-one temporary index relationship is established between the attribute items and the SIM card number corresponding to the record where the attribute items are located, so that any channel attribute can quickly find the corresponding card number and logical position in the scheduling stage through the index. Through the construction of the index structure, the conversion from the composite scheduling table record to the attribute-card number bidirectional retrievable structure is realized.
[0082] Step S1052: According to the same attribute item, the logical channels from different SIM cards are combined into a plurality of channel groups, and the execution order identifier consistent with the scheduling table is retained in each channel group according to the temporary index relationship.
[0083] In the embodiment, the same type of channels are aggregated in the cross-card dimension. Specifically, after the analysis in step S1051, each channel attribute item has established a temporary index relationship with the corresponding SIM card number. Thus, the channel entries with the same attributes in different positions in the scheduling table are identified. Since the three types of channels, i.e., authentication, positioning and registration, need to be arranged across cards in the subsequent combined sorting, the same type of channels under different SIM cards are extracted according to the attribute items and combined to form a plurality of channel groups. At the same time, by querying the execution order identifier recorded in the temporary index, the channel entries are rearranged according to the original order of the scheduling table within the channel group, so that each channel group not only reflects the cross-card aggregation relationship, but also maintains the time sequence from the scheduling table. Through such combination and sorting operations, a channel group structure with attribute consistency and sequential continuity is formed.
[0084] Step S1053: Based on the execution order identifier of each channel group, the channel groups from the three SIM cards are sorted across cards.
[0085] In the embodiment, the channel entries with the same attribute between different SIM cards are uniformly serialized; specifically, after the grouping operation in step S1052, the execution order identifier consistent with the scheduling table is reserved in each channel group, and the order identifier reflects the relative time sequence position of the channel in the entire access process. In order to form a single continuous execution sequence of the same type of channel in the cross-card dimension, the order of the channel entries in each channel group needs to be sorted according to the order identifier, and all the same type of channels from the three SIM cards are rearranged in the group to form a unified cross-card sequence; in the sorting process, the order identifier is used as the main arrangement basis, so that the channel entries of different SIM cards are repositioned according to their time sequence relationship in the original scheduling table, and the logical consistency under the same attribute is maintained; after sorting, the obtained cross-card sequence is used as the basic sequence structure for subsequent construction of the virtual bearer layer, so as to realize the unified scheduling entry and the logically continuous calling sequence of the channels of the three SIM cards in the attribute dimension.
[0086] Step S1054: using the sorted cross-card calling sequence, generating a virtual bearer structure, and defining the structure as a multi-card virtual bearer layer.
[0087] In the embodiment, based on the principle of converting the obtained cross-card calling sequence into a bearer structure directly referenced by the upper scheduling module, the derivation is carried out: specifically, after the cross-card sorting in step S1053, the authentication, positioning and registration channels form a continuous calling sequence in the attribute dimension, but if they are still stored in a dispersed sequence form, the subsequent unified scheduling of the three SIM cards cannot be met, therefore, by identifying the three types of key fields of channel attribute, card number identifier and order identifier in the calling sequence, the sequence entries are mapped to the preset bearer framework position one by one, so that the original cross-card sequence is arranged in the fixed order in the bearer framework; then, according to the internal organization rules of the bearer framework, the channel entries are connected into a logically continuous access structure, and the structure is defined as a multi-card virtual bearer layer, so that it is directly called by the scheduling module in the subsequent link prediction, switching decision and data transmission task. Through the construction of the bearer structure, the conversion of the cross-card sorting result to the executable logical structure is realized, and a unified virtual bearer entry is provided for the three-card single standby communication mode.
[0088] In Figure 2In the structure shown, the uppermost layer is the session layer, including session 1, session 2 and session 3, corresponding to the virtual session identifiers of the three SIM cards respectively. Each virtual session is only a logical management unit and does not involve physical radio frequency resources, and is mainly used for unified marking and scheduling reference of the request state under the same card number. Below the session layer is the channel layer, in which channel 1, channel 2 and channel 3 correspond to the logical request channels of the three SIM cards respectively. Each channel is used to carry all network access requests of the same card number, and plays a relay role between the session layer and the functional sub-channel layer, so that the authentication, positioning and registration processes of the same card maintain independent paths in the virtual structure. Further down is the functional sub-channel layer, which further splits three types of key processes, including authentication sub-channel, positioning sub-channel and registration sub-channel. The figure shows the authentication and positioning sub-channels of SIM1 and SIM2, and the registration sub-channel of SIM3. These sub-channels are used to carry the subdivided request flow, so that each type of process can advance in an independent logical path, avoiding cross-influence between processes.
[0089] Step S2: The multi-card virtual bearing layer calculates the link stability score of each SIM card in real time based on the historical signal trajectory of the three SIM cards, the environmental electromagnetic disturbance trend and the base station congestion prediction result of the target area, and automatically determines the target SIM card currently used in priority according to the score.
[0090] The specific steps of step S2 are:
[0091] Step S201: Collect the signal change trajectory data of the three SIM cards in a preset time period, and synchronize and organize the environmental disturbance information and base station congestion data of the area where the camera is located into a multidimensional data set.
[0092] In this embodiment, the dynamic channel data of different sources is time-aligned and feature-extracted. Specifically, the three SIM cards will generate trajectory data reflecting their signal strength, instantaneous jump and continuous fluctuation in a preset time period. The environmental disturbance information and base station congestion data of the camera deployment area usually come from different monitoring interfaces, and there are differences in sampling frequency, time identifier and data granularity. First, align the time slices of all types of data according to a unified time scale, and extract the change nodes of the signal trajectory, the event identifiers of the disturbance information and the load records of the base station congestion to disassemble the original data into feature units that can be processed side by side. Then, aggregate the feature units according to the time slices to form a multidimensional data set containing three types of fields: signal trajectory segments, disturbance events and congestion records, so that the channel-related data of different sources have correlatability in structure.
[0093] Step S202: The multidimensional data set is sequentially rearranged according to its corresponding time identifier to obtain a sorted multidimensional data set.
[0094] In the embodiment, the data of different sources is subjected to time axis normalization processing; it is to be noted that the multidimensional data set formed in step S201 already contains three types of features, i.e., signal track segment, disturbance event record and base station congestion data, but the collection periods of these features are not consistent, and the time identifiers thereof present offset, repetition or cross-slice misplacement, etc. The time identifier field of each data record is read, and all records are reordered according to a unified time scale in chronological order; in the reordering, the data with the same time identifier is reordered according to the built-in event sequence number, so that the records in the time slice are arranged stably; after the reordering, the data originally having fragmented features in the time dimension is arranged into a continuous sequence with strict chronological relationship, thereby obtaining the reordered multidimensional data set.
[0095] Step S203: based on the reordered multidimensional data set, the signal track change trend is associated with the disturbance data and the base station congestion situation according to the time slice, and the intermediate relationship data of the SIM card is generated.
[0096] The specific steps of step S203 are as follows:
[0097] Step S2031: the reordered multidimensional data set is divided into corresponding time slice aggregation groups according to the preset time slice, and the signal track change data, environmental disturbance information and base station congestion data in each time slice are respectively aggregated.
[0098] In the embodiment, the data subjected to time rearrangement is structured and aggregated according to the unified time slice; specifically, the reordered multidimensional data set is arranged in continuous order in time sequence, but the occurrence frequency and record density of different types of data in the same time period are still inconsistent, and cannot be directly used as the input of the association analysis; therefore, the continuous time axis is divided into multiple time slices according to the fixed time length or event triggering interval according to the preset time slice parameter; then, the time identifier of each data record is read, and it is judged to which time slice it belongs; the signal track change segments with the same time slice attribute are concentrated in the signal aggregation area of the slice, and the environmental disturbance information and base station congestion data recorded in the same period are respectively aggregated in the disturbance aggregation area and the congestion aggregation area; after the aggregation operation, each time slice forms an aggregation group containing three types of data, thereby forming a one-to-one corresponding structure of time slice and multi-source data.
[0099] Step S2032: in each time slice aggregation group, the disturbance event and the congestion record are sequentially matched according to the signal track change node, and a matching sequence is formed.
[0100] In the embodiment, the multi-source data matching relationship centered on the signal change node is established in the same time slice; specifically, the signal trajectory change node reflecting the SIM card link fluctuation and the environmental disturbance event and the base station congestion record collected in the same time period are contained in the time slice aggregation group, since the signal change node usually represents the key inflection point of the link state, it is taken as the main sequence anchor point in the time slice, and according to this reference, the disturbance event and the congestion record which are time adjacent or time overlapping with the node are retrieved in each time slice in turn according to the order of the node appearance, and these records are attached to the corresponding signal change node according to the original time identifier, so as to form the matching sequence which naturally advances according to time. Through this processing, the originally dispersed three types of data are arranged as the sequence structure with the signal change as the main line and the disturbance event and the congestion record as the subordinate information in the same time slice.
[0101] Step S2033: According to the arrangement order of the time slice, the matching sequences are analyzed in a chained manner, and the signal change nodes in the adjacent time slices and the corresponding disturbance records and congestion records are cross-slice associated.
[0102] In the embodiment, the matching sequences in the continuous time slices are cross-slice extended according to the time advancing relationship; specifically, after the processing in step S2032, the matching sequences with the signal change node as the main line and with the disturbance records and the congestion records attached are formed in each time slice, but these sequences are still independent of each other with the time slice as the boundary, and it is difficult to reflect the continuous change of the link state in a longer time span; therefore, according to the arrangement order of the time slice on the global time axis, the signal change node at the end of the previous time slice and the signal change node at the beginning of the next time slice are compared in time proximity, the corresponding disturbance events and congestion records are included in the comparison range by identifying the continuous characteristics of the two in the change trend, the triggering information or the record density, so as to judge the correlation between the two time slices in the link performance; after the nodes with the correlation relationship are identified, the tail of the matching sequence of the previous time slice and the head of the matching sequence of the next time slice are spliced in a chained manner, so that the data structure separated by the time slice boundary forms a cross-slice continuous correlation chain; through the cross-slice association operation, the multi-dimensional data is transformed from the fragmented distribution to the continuous relationship sequence in the time dimension.
[0103] Step S2034: After the cross-slice association is completed, the matching relationship of the same SIM card in all time slices is arranged as a continuous structure according to the internal rules, and is recorded as the intermediate relationship data of the SIM card.
[0104] The specific steps of step S2034 are:
[0105] Step S20341: For the same SIM card, the corresponding matching relationship records in each time slice are obtained, and a uniform format time sequence identifier and a segment identifier are attached to each matching relationship.
[0106] In the embodiment, the matching relationship formed by the same SIM card in different time slices is subjected to time dimension unification processing; specifically, after the cross-slice association in step S2033, the matching relationship records formed by the same SIM card in each time slice have internal order, but the time attribute is still stored in the original sampling identifier, which is not conducive to subsequent construction of continuous structure, therefore, the matching relationship records of the SIM card need to be extracted from each time slice, and a unified format time sequence identifier is generated for each record according to a preset time sequence format, so that the arrangement of the records on the time axis has comparability; at the same time, in order to avoid boundary conflicts in the structure of the data segment after cross-slice association, a segment identifier is also generated according to the time slice number and the arrangement position in the slice, and the segment identifier is attached to the metadata field of the matching relationship record, through the double labeling of the time sequence identifier and the segment identifier, the matching relationship records of the same SIM card in multiple time slices are converted into structured entries with unified time scale and segment attribution.
[0107] Step S20342: According to the time sequence identifier, the matching relationship records of the SIM card in all time slices are rearranged to form an initial continuous sequence in time sequence from the matching relationship records belonging to the same card from different time slices.
[0108] In the embodiment, the cross-time slice data is globally rearranged by using the unified time sequence identifier; specifically, after the processing in step S20341, the matching relationship records of the same SIM card in each time slice are assigned a consistent format time sequence identifier, so that they obtain a time dimension reference that can be compared across slices, in order to form a continuous and usable whole link structure from data in different time slices, all matching relationship records need to be globally sorted according to their time sequence identifiers, without distinguishing the time slices of the record sources in the sorting process, but using the time sequence identifier as the only arrangement basis, so that the records originally distributed in different time slices are repositioned on the same time axis; after the sorting is completed, the records form an initial continuous sequence in the order of time from front to back, and each record in the sequence is arranged according to the chronological relationship of the real signal changes, so that the link behavior presents continuity in the cross-slice dimension.
[0109] Step S20343: According to the preset internal rules, the matching relationship records in adjacent time slices in the initial continuous sequence that meet the merging conditions are sequentially merged, and a new continuous segment number is generated for the merged matching relationship records in the merging process.
[0110] In the embodiment, the initial continuous sequence formed by global rearrangement is subjected to segment-level reorganization; it should be noted that the initial continuous sequence has realized continuous arrangement in the time across segments, but the original time segment boundaries between records are still retained, and some adjacent records have continuous characteristics in terms of signal change trend, disturbance event correlation or congestion record continuity, and segment-level merging is performed according to preset internal rules; specifically, by comparing the time interval, change node attribute and associated disturbance and congestion characteristics of adjacent records in the initial continuous sequence, the record pairs meeting the merging conditions are screened out, and the corresponding data fields are recombined into a single record according to time continuity, and in the merging process, in order to avoid conflict between the new merged relationship and the original segment number, a new continuous segment number is assigned to the merged matching relationship according to the internal numbering generation rule, so that it has an independent and unambiguous structural identifier in the overall sequence; through the sequential merging and renumbering processing, the matching relationship originally limited by the time segment is integrated into a fragmented structure that more truly reflects the continuity of link behavior.
[0111] Step S20344: registering the merged continuous sequence as the continuous structure corresponding to the SIM card, and writing the continuous structure into the intermediate relationship data record set when registering, to form intermediate relationship data.
[0112] In the embodiment, the continuous sequence that has completed the cross-segment reorganization and merging processing is solidified into a data structure; specifically, after the sequential merging of step S20343, the matching relationship data of the same SIM card has been transformed into a continuous sequence reflecting the coherence of link behavior, but the sequence is still in a temporary processing state, and if no structure registration is performed, the subsequent steps will not be able to effectively call it, therefore, it is necessary to establish a formal structure registration entry for the continuous sequence, mark it as the continuous structure of the SIM card, and write it into the intermediate relationship data record set according to the predefined data set writing rule; during the registration process, the internal fields, segment numbers and time sequence labels of the continuous structure are reorganized into the set, so that each intermediate relationship data has a traceable time chain and segment structure; through this registration operation, the processing result originally in a temporary state is changed into stable intermediate relationship data, which is directly input to the link scoring system.
[0113] Step S204: based on the intermediate relationship data of each SIM card, establishing link scoring indicators according to the preset judgment order, and generating corresponding scores for the link performance of each SIM card in the current period.
[0114] The specific steps of step S204 are:
[0115] Step S2041: According to the preset extraction rule, the intermediate relationship data of each SIM card is extracted to obtain a plurality of correlation items related to the link state, and a primary correlation sequence is formed according to the order of occurrence.
[0116] In this embodiment, feature extraction and sequential arrangement are performed on the intermediate relationship data. Specifically, the intermediate relationship data generated in the foregoing step already contains a plurality of fields such as signal change fragments, disturbance event records, congestion correlation items, and cross-fragment continuous identifiers. However, these fields do not all directly contribute to the link state judgment in structure. In order to obtain core features that can be used for scoring, the internal fields of the intermediate relationship data are read in sequence according to the preset extraction rule, and correlation items representing the link fluctuation trend, the environmental influence degree, and the network load change are screened out. After the feature screening is completed, the extracted correlation items are arranged in the natural order of occurrence according to the time sequence label and the fragment number in the intermediate relationship data, and a structured primary correlation sequence is formed.
[0117] Step S2042: The primary correlation sequence is rearranged according to the internal judgment order to obtain the correlation items after the arrangement.
[0118] In this embodiment, the feature items in the primary correlation sequence are reordered according to the judgment logic. It should be noted that although the primary correlation sequence is arranged in time sequence, the judgment order for link scoring usually does not simply depend on time, but depends on the preset internal judgment system. For example, the correlation items reflecting signal mutation are processed first, then the correlation items related to environmental disturbance are processed, and finally the base station load correlation items are processed. Therefore, the primary correlation sequence needs to be sorted again according to the internal judgment order. In the sorting process, the feature category corresponding to each correlation item is searched, and the category serial number in the preset judgment order is compared. According to the comparison result, the correlation item is re-assigned a sorting position, so that the correlation items originally arranged in time sequence form a new arrangement structure according to the combination logic of judgment priority and time sequence. After this rearrangement processing, the correlation item sequence is obtained.
[0119] Step S2043: A plurality of link scoring indicators are established according to the arranged correlation items, and each link scoring indicator is assigned an internal identification mark consistent with the corresponding position in the judgment order.
[0120] In the embodiment, the ordered correlation items are converted into index units that can be independently cited in the scoring system; specifically, step S2042 has rearranged the correlation items according to the internal judgment order, and established link scoring indexes for each correlation item according to the sorting result; in the index establishment process, the category attribute, change characteristics and corresponding time label of the correlation item are read, and the index is assigned a position number consistent with its judgment order, so that the number becomes the internal identification of the index; through this process, the abstract correlation item is converted into a scoring index with a fixed identification, forming a structured link scoring index system.
[0121] Step S2044: Process the correlation items of the three SIM cards according to the link scoring indexes, and aggregate the processing results as the link scoring values of the corresponding SIM cards in the current period.
[0122] The specific steps of step S2044 are:
[0123] Step S20441: Based on the arrangement order of the link scoring indexes, extract the correlation items corresponding to each index from the correlation item sequence of each SIM card in turn, and add the extracted correlation items to the processing set in order.
[0124] In the embodiment, the correlation item sequence of the SIM card is extracted in the arrangement order of the link scoring indexes; specifically, the foregoing step has assigned a fixed internal identification to each link scoring index and determined the arrangement order of the index in the scoring system; at the same time, the correlation item sequence of each SIM card contains feature items corresponding to different indexes, but the original arrangement order of these feature items may not be consistent with the index order; according to the arrangement order of the index system, the feature item corresponding to the current index is located from the correlation item sequence, the matching relationship is determined by comparing the category attribute of the correlation item with the index identification, and the matched correlation item is added to the processing set in order according to the identification order; through this operation, the originally scattered correlation items in different positions can be rearranged into a linear set consistent with the structure of the scoring index, forming a processing sequence.
[0125] Step S20442: Process each correlation item in the processing set according to the internal processing rules of the link scoring index, and generate a corresponding processing record for each correlation item during the processing.
[0126] In the embodiment, the associated items in the to-be-processed set are converted into quantifiable processing records one by one according to the processing logic of the link scoring indicators; specifically, the to-be-processed set has been arranged in the order of the link scoring indicators, and each associated item corresponds to a preset processing rule, which is usually determined by the category attribute, change direction, event intensity identifier of the associated item and the corresponding time label. In order to make the associated item enter the scoring process, the associated item in the to-be-processed set needs to be read in sequence, matched with the processing rule of the corresponding indicator, and parsed item by item according to the judgment conditions, parameter interpretation order and field parsing mode defined in the processing rule, and a structured processing record is formed; when generating the processing record, the original fields of the associated item are rearranged into record units that can be referenced by the scoring algorithm according to the rule, and an internal processing number is added to ensure that the record has identifiable in the scoring merging stage; after the above item-by-item processing operation, the associated item originally only having time sequence significance is converted into a processing record with clear structural characteristics.
[0127] Step S20443: After completing the processing of all associated items, the processing records of the same SIM card are merged according to their arrangement order in the indicator system, and a uniform format scoring fragment set is generated for the merged records.
[0128] In the embodiment, based on the principle of structurally integrating the processed records that have been parsed according to the order of the link scoring indicator system, the derivation is carried out: specifically, step S20442 has generated a corresponding processing record for each associated item, but these records are still stored in the form of independent items. If the records are not merged according to the indicator system, the subsequent scoring stage will not be able to quantitatively integrate the records in a unified dimension. Therefore, the arrangement order of the link scoring indicator system needs to be taken as the main axis to traverse all the processing records of the same SIM card, sort the records according to their identification of the corresponding indicators, and recombine the records with consecutive indicator identifiers into structured fragmented data units according to the sorting results; after the merging is completed, the obtained fragmented units are assigned a uniform format scoring fragment set identifier, so that they form a group of set items with standardized field structure, clear indicator mapping relationship and direct participation in scoring summary; after the merging operation, the originally dispersed processing records are integrated into the scoring fragment set with uniform structure.
[0129] Step S20444: According to the arrangement order of the scoring fragment set, the numerical content of each scoring fragment is combined according to the internal summary rule to form the link scoring value of the corresponding SIM card in the current time period.
[0130] In the embodiment, the sorted score segment set is converted into a single link score value according to the internal aggregation logic of the scoring system; specifically, step S20443 has output a set of score segment sets arranged in order of link score indicators, each segment containing a quantitative field extracted from the corresponding processing record, but these segments still exist in the form of multiple records, which is not sufficient to directly represent the link performance of the SIM card in the current period, therefore, the score segment set needs to be combined according to the internal aggregation rules defined in the scoring system: first, read the numerical content of each segment in order according to its arrangement order in the set, then integrate the numerical content of each segment according to the weight interpretation method, sequential accumulation logic or field combination method defined in the internal aggregation rules, and merge the integration result into a single output field; after the integration is completed, the output field is registered as the link score value of the SIM card in the current period; through this aggregation process, the score segment set is converted into a quantitative indicator for link switching decision.
[0131] Step S205: Comparing the link scores of the three SIM cards according to the internal rules, and selecting the target SIM card currently used for video transmission processing according to the comparison result.
[0132] In the embodiment, the link score results of the three SIM cards in the same period are compared in multiple dimensions and the current preferred communication path is determined accordingly; specifically, the previous steps have generated an independent score value reflecting the link stability of each SIM card in the current period, and these score values can only form the basis for scheduling selection after being compared uniformly according to the comparison rules due to the different intermediate relationship data and feature extraction logic of the cards; according to the internal scoring comparison rules, the score values of the three SIM cards are compared one by one, which usually includes comprehensive judgment of factors such as score value size, time sequence validity of score generation sequence, and weight parameters of score source; after completing the multi-dimensional comparison, the SIM card with the best score value is selected according to the pre-set preferred conditions in the rules, and the SIM card is marked as the target SIM card in the current period as the dedicated transmission path for the next video segment or the next data unit; through this selection process, the three independent scores are converted into a decision result that can directly drive the switching of the communication link, providing a clear card-level selection basis for the monitoring camera to maintain stable data backhaul in a complex channel.
[0133] Step S3: dividing the video stream collected by the monitoring camera into continuous small segments, each segment being attached with an erasure coding and card segment binding identifier, and when it is detected that the target SIM card link stability score has dropped below the threshold, switching the next video segment to the standby SIM card with the highest score for output.
[0134] The specific steps of step S3 are:
[0135] Step S301: The original video stream collected by the monitoring camera is divided according to a preset segmentation rule in the time axis, each segmented video is assigned an intra-segment number, and a continuous video segment sequence is formed.
[0136] In this embodiment, the continuous video stream is converted into data that can be processed independently under uncertain link conditions. Specifically, the original video stream collected by the monitoring camera is generated in the form of a continuous frame sequence. If the entire continuous stream is directly transmitted, it is difficult to realize cross-card switching and local recovery when the link fluctuates periodically. Therefore, the video stream needs to be sliced along the time axis according to a preset segmentation rule. The segmentation rule is usually based on parameters such as time length, frame number threshold, or key frame period. By analyzing the time stamp and frame structure of the video stream, the continuous frame sequence is cut into multiple segmented video units according to the rule. After cutting, each video segment is assigned a unique intra-segment number so that it can maintain a fixed order in the subsequent transmission and indexing process. Through the above division and numbering process, the continuous video stream is converted into a video segment sequence composed of multiple segments with clear sequence attributes.
[0137] Step S302: For each video segment in the sequence, generate erasure coding data corresponding to the video segment, and record the association of the erasure coding data and the video segment in a one-to-one manner.
[0138] In this embodiment, redundant data is constructed for each independent video segment for link fluctuation scenarios. Specifically, step S301 has divided the original video stream into video segments arranged in chronological order. Each video segment is composed of a fixed number of frame segments. To make these segments still recoverable under link switching or transient transmission abnormal conditions, according to a preset redundancy generation rule, the key frame content, inter-frame difference information, or feature abstract field of each video segment is extracted to construct erasure coding data that can be used for error compensation. In the generation process, the intra-segment number and time label of the video segment are used as association indexes to form a binding relationship between the corresponding erasure coding data and the video segment in a one-to-one manner, and the binding relationship is written into an internal association record table.
[0139] Step S303: After the association between the video segment and the erasure coding data is completed, the target SIM card identifier currently used for transmission is combined with the intra-segment number of the corresponding video segment to generate a card-segment binding identifier, and the corresponding card-segment binding identifier is recorded for each video segment.
[0140] In the embodiment, a traceable binding relationship is established between the video segment and the currently selected transmission path, thereby providing a basis for subsequent link switching and segment-level scheduling; specifically, step S302 has generated corresponding erasure coding data for each video segment, so that it has an independent data structure; but in the actual transmission process, the sending path of the same segment depends on the target SIM card selected in the current scheduling stage, so an explicit mapping relationship needs to be established between the video segment and the SIM card used, for which the target SIM card identifier determined by the link scoring step is read, and the identifier is combined with the in-segment number of the video segment in a preset format to generate a unique card-segment binding identifier; then, the card-segment binding identifier is recorded and bound with the video segment, so that each segment carries path information representing its transmission source; through the binding process, the video segment establishes a clear and traceable correspondence with the specific SIM card in the transmission stage.
[0141] Step S304: During the in-sequence transmission of the video segment, the link stability score of the target SIM card in the current time period is periodically compared with the preset threshold, and the transmission path of the next to-be-sent video segment is kept in a pending state during the comparison.
[0142] In the embodiment, the link quality of the target SIM card is judged in real time during the continuous video segment-level transmission process, and an adjustable space is reserved for path decision of the next video segment; specifically, the target SIM card corresponding to the currently transmitted video segment has been determined in the previous step, but as the transmission environment changes, the link state will fluctuate at any time, so it is necessary to periodically determine the target SIM card based on the link stability score, for which the current link stability score of the target SIM card is read after each video segment is sent, and the score is compared with the preset threshold; if the score is in the unstable interval, it indicates that the next video segment cannot be reliably transmitted through the current path, so the path state of the next video segment is marked as pending, and the segment is not bound with a specific SIM card, so that the segment is dynamically allocated to a more stable card path in subsequent judgment; through the periodic comparison and path pending marking operation, the video segment-level transmission process has the ability to adapt to the real-time link state.
[0143] Step S305: When the comparison result shows that the link stability score of the target SIM card is lower than the preset threshold, the standby SIM card with the highest score is selected from the link stability scores of the remaining SIM cards, the card-segment binding identifier of the next video segment in the pending state is updated to the corresponding identifier of the standby SIM card, and the video segment and its erasure coding data are handed over to the selected standby SIM card for transmission processing.
[0144] In this embodiment, after the link score deviates from the stable interval, the standby path is quickly selected and the video segment level transmission path rebinding is completed; specifically, step S304 has marked the transmission path of the next video segment as pending, and in the periodic determination, it is identified that the link stability score of the current target SIM card has fallen below the preset threshold, at this time, the link scores of the non-target SIM cards need to be read, and the standby SIM card with the highest score is determined according to the internal score comparison rule, then, by replacing the original card segment binding identifier of the pending video segment, the card number identifier of the standby SIM card and the segment number of the video segment are combined to generate a new binding identifier, so that the video segment can be accurately mapped to the new link path in the transmission stage; after the binding identifier is updated, the video segment and the corresponding erasure coding data are submitted to the transmission queue corresponding to the standby SIM card, so that the video stream continues to be output on the new link without interrupting the overall timing; through the rebinding and path switching operation, the video segment in the unstable link environment is immediately migrated to the card path with a higher score.
[0145] Embodiment 2
[0146] Please refer to Figure 3 Another embodiment provided by the application is a 4G three-card single standby system applied to a monitoring camera, which comprises a virtual management module, a scoring module and a card selection module.
[0147] The virtual management module is used for logically separating the authentication, positioning and network registration requests of the three 4G SIM cards, and uniformly managing them with a virtual session identifier, thereby constructing a multi-card virtual bearing layer.
[0148] The scoring module calculates the link stability scores of the three SIM cards in real time based on the historical signal trajectories, environmental electromagnetic disturbance trends and base station congestion prediction results of the target area of the three SIM cards through the multi-card virtual bearing layer, and automatically determines the target SIM card to be used preferentially according to the scores.
[0149] The card selection module is used for dividing the video stream collected by the monitoring camera into continuous segments, each segment being attached with erasure coding and card segment binding identifier, and when it is detected that the link stability score of the target SIM card has fallen below the threshold, the next video segment is switched to the standby SIM card with the highest score for output.
[0150] In addition, the parts of the above technical solutions in the embodiments of the present application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive repetition.
[0151] The specific embodiments described above are further explained in connection with the purposes, technical solutions and beneficial effects of the present application. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A 4G three-card single standby method applied to a monitoring camera, characterized in that, include: The authentication, location and network registration requests of the three 4G SIM cards are logically separated and managed uniformly using virtual session identifiers to build a multi-card virtual bearer layer; The multi-SIM virtual bearer layer calculates the link stability score of each SIM card in real time based on the historical signal trajectory of the three SIM cards, the trend of environmental electromagnetic disturbance, and the base station congestion prediction results of the target area, and automatically determines the target SIM card to be used first based on the score. The video stream captured by the surveillance camera is divided into continuous small segments, each segment is accompanied by erasure coding and card segment binding identifier. When the target SIM card link stability score is detected to drop below the threshold, the next video segment is switched to the backup SIM card with the highest score for output. The process of logically separating the authentication, location, and network registration requests of the three 4G SIM cards and managing them uniformly using a virtual session identifier to construct a multi-SIM virtual bearer layer includes: Obtain authentication requests, location requests, and network registration requests for each SIM card, and perform preliminary classification of each type of request according to preset categories; Create mutually isolated authentication, location, and registration channels for each SIM card, so that the three types of requests flow through different logical channels respectively; Assign a unique virtual session identifier to each group of logical channels to manage the three SIM cards in the form of virtual sessions; Create a scheduling table for the virtual sessions corresponding to the three SIM cards according to time sequence, channel attributes, and internal numbers; The logical channels of the three SIM cards are combined and sorted based on the scheduling table to form a multi-card virtual bearer layer; The step of combining and sorting the logical channels of the three SIM cards based on the scheduling table to form a multi-SIM virtual bearer layer includes: The attribute items of the authentication channel, positioning channel and registration channel recorded in the scheduling table are parsed item by item, and a temporary index relationship is established between each type of attribute item and the corresponding SIM card number; Logical channels from different SIM cards are grouped into multiple channel groups according to the same attribute items, and execution order identifiers consistent with the scheduling table are retained in each channel group according to the temporary index relationship. Based on the execution order identifier of each channel group, the channel groups from the three SIM cards are sorted across the cards; Using the sorted cross-card call sequence, a virtual bearer structure is generated, and this structure is defined as a multi-card virtual bearer layer.
2. The 4G three-card single standby method applied to a monitoring camera of claim 1, wherein, The multi-SIM virtual bearer layer calculates the link stability score of each SIM card in real time based on the historical signal trajectories of the three SIM cards, the trend of environmental electromagnetic disturbances, and the base station congestion prediction results of the target area. It then automatically determines the target SIM card to be used first based on the score, including: Collect signal change trajectory data of three SIM cards within a preset time period, and synchronize and organize them with environmental disturbance information and base station congestion data in the area where the camera is located into a multidimensional dataset; The cube is rearranged according to its corresponding time identifier to obtain a sorted cube; Based on the sorted multidimensional dataset, the signal trajectory change trend is correlated with disturbance data and base station congestion by time segment to generate intermediate relationship data for SIM cards; Based on the intermediate relationship data of each SIM card, link score indicators are established according to a preset judgment order, and a corresponding score is generated for the link performance of each SIM card in the current time period; The link scores of the three SIM cards are compared according to internal rules, and the target SIM card currently used for video transmission processing is selected according to the comparison result.
3. The 4G three-card single standby method applied to a monitoring camera according to claim 2, characterized in that, Based on the sorted multi-dimensional data set, the signal trajectory change trend is associated with the disturbance data and the base station congestion situation according to the time slice, and the intermediate relationship data of the SIM card is generated, including: The sorted multi-dimensional data set is divided into corresponding time slice aggregation groups according to the preset time slice, and the signal trajectory change data, environmental disturbance information and base station congestion data in each time slice are respectively classified into the corresponding time slice aggregation groups; In each time slice aggregation group, the disturbance events and congestion records are sequentially matched according to the signal trajectory change nodes, forming a matching sequence; According to the arrangement order of the time slice, each matching sequence is analyzed in a chain manner, and the signal change nodes in adjacent time slices and the corresponding disturbance records and congestion records are cross-slice associated; After completing the cross-slice association, the matching relationship of the same SIM card in all time slices is arranged into a continuous structure according to internal rules, and recorded as the intermediate relationship data of the SIM card.
4. The 4G three-card single standby method applied to a monitoring camera of claim 3, wherein, After completing the cross-slice association, the matching relationship of the same SIM card in all time slices is arranged into a continuous structure according to internal rules, and recorded as the intermediate relationship data of the SIM card, including: For the same SIM card, its corresponding matching relationship records are obtained in each time slice, and a uniform format time sequence identifier and a segment identifier are added to each matching relationship; According to the time sequence identifier, the matching relationship records of the SIM card in all time slices are rearranged, and the matching relationships from different time slices but belonging to the same card are formed into an initial continuous sequence in time sequence; According to the preset internal rules, the matching relationships in adjacent time slices in the initial continuous sequence that meet the merging conditions are sequentially merged, and new continuous segment numbers are generated for the merged matching relationships during the merging process; The merged continuous sequence is registered as the corresponding continuous structure of the SIM card, and the continuous structure is written into the intermediate relationship data record set during registration, forming the intermediate relationship data.
5. The 4G three-card single standby method applied to a monitoring camera according to claim 4, characterized in that, Based on the intermediate relationship data of each SIM card, link score indicators are established according to a preset judgment order, and a corresponding score is generated for the link performance of each SIM card in the current time period, including: According to the preset extraction rule, the intermediate relationship data of each SIM card is extracted, and a plurality of associated items related to the link state are formed into a primary association sequence according to their appearance order; The primary association sequence is rearranged according to the internal set judgment order to obtain the sorted associated items; According to the sorted associated items, a plurality of link score indicators are established in turn, and each link score indicator is assigned an internal identification mark consistent with its corresponding position in the judgment order; The associated items of the three SIM cards are processed item by item according to the link score indicators, and the processing results are summarized as the link score value of the corresponding SIM card in the current period.
6. The 4G three-card single standby method applied to a surveillance camera of claim 5, wherein, The association items of the three SIM cards are processed according to the link score indicators item by item, and the processing results are summarized as the link score values of the corresponding SIM cards in the current period, including: Based on the arrangement order of the link score indicators, the association items corresponding to each indicator are extracted from the sequence of association items of each SIM card in turn, and the extracted association items are added to the processing set in order; Each association item in the processing set is processed item by item according to the internal processing rules of the link score indicators, and a corresponding processing record is generated for each association item during the processing; After completing the processing of all association items, the processing records of the same SIM card are merged according to their arrangement order in the indicator system, and a uniform format score fragment set is generated for the merged records; According to the arrangement order of the score fragment set, the numerical content of each score fragment is combined according to the internal summary rules to form the link score value of the corresponding SIM card in the current period.
7. The 4G three-card single standby method applied to a monitoring camera according to claim 6, characterized in that, The video stream collected by the monitoring camera is divided into continuous small segments, each segment is attached with an erasure coding and card segment binding identifier, when it is detected that the target SIM card link stability score drops below the threshold, the next video segment is switched to the standby SIM card with the highest score for output, including: The original video stream collected by the monitoring camera is divided into time axis according to the preset segmentation rule, each segmented video is assigned an intra-segment number, and a continuously arranged video segment sequence is formed; For each video segment in the sequence, generate the erasure coding data corresponding to the video segment, and associate the erasure coding data with the video segment one by one; After the association between the video segment and the erasure coding data is completed, the identifier of the target SIM card currently used for transmission is combined with the intra-segment number of the corresponding video segment to generate a card segment binding identifier, and the corresponding card segment binding identifier is recorded for each video segment; During the sequential transmission of the video segments, based on the link stability score, the link stability score of the target SIM card in the current period is periodically compared with the preset threshold, and the transmission path of the next to-be-sent video segment is kept in a pending state during the comparison; When the comparison result shows that the link stability score of the target SIM card is lower than the preset threshold, the standby SIM card with the highest score is selected from the link stability scores of the remaining SIM cards, the card segment binding identifier of the next video segment in the pending state is updated to the corresponding identifier of the standby SIM card, and the video segment and its erasure coding data are handed over to the selected standby SIM card for transmission processing.
8. A 4G three-card single standby system applied to a monitoring camera, used to implement the 4G three-card single standby method applied to the monitoring camera in any one of claims 1-7, characterized in that, It includes a virtual management module, a scoring module and a card selection module; The virtual management module is used for logically separating the authentication, positioning and network registration requests of the three 4G SIM cards, and uniformly managing them with a virtual session identifier to build a multi-card virtual bearing layer; The scoring module calculates the link stability score of each SIM card in real time based on the historical signal trajectory of the three SIM cards, the environmental electromagnetic disturbance trend and the base station congestion prediction result of the target area through the multi-card virtual bearing layer, and automatically determines the target SIM card currently used according to the score; The card selection module is configured to divide a video stream collected by the monitoring camera into continuous segments, each segment being attached with an erasure coding and a card segment binding identifier, and when detecting that the target SIM card link stability score falls below a threshold value, switch a next video segment to the standby SIM card with the highest score for output.
Citation Information
Patent Citations
Intelligent network adaptive three-card-in-one SIM card switching method and system
CN118019078A