Network switching method, device, equipment and medium based on adaptive data model

Through the network cutting method of the adaptive data model, RSRP and ping monitoring are used to switch off the network, and adaptive network cutting is carried out according to the network cutting strategy, which solves the problems of poor timeliness and high labor cost of IoT terminal network switching, and realizes business stable operation and cost savings.

CN118612807BActive Publication Date: 2024-12-13E SURFING IOT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411082971.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-12-13
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

Existing IoT terminals have poor timeliness and require high labor costs when switching networks. The existing technology is difficult to predict the availability of cellular networks, resulting in network recovery requiring manual on-site replacement of SIM cards.

Method used

Adopting the network cutting method based on the adaptive data model, the network cutting operation is performed through RSRP monitoring and ping monitoring, and the network cutting operation is carried out according to the network cutting strategy issued by the Internet of Things platform, including the first dimension equipment information and the second dimension Net-cut information.

Benefits of technology

It improves the timeliness of network switching, reduces manual intervention, ensures the uninterrupted normal operation of IoT terminal services, and saves labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612807B_ABST
    Figure CN118612807B_ABST
Patent Text Reader

Abstract

The present invention discloses a network switching method, device, equipment and medium based on an adaptive data model. The method belongs to the field of Internet of Things technology, and includes: starting RSRP monitoring to obtain the RSRP value of the working environment of the Internet of Things terminal; judging whether to start ping monitoring according to the RSRP value; if ping monitoring is started, performing network disconnection switching operation and RSRP monitoring according to the monitoring result of ping monitoring; if a network switching strategy issued by the Internet of Things platform based on an adaptive data model is received, performing network switching operation according to the network switching strategy. The present application can perform network disconnection switching operation through RSRP monitoring and ping monitoring. When receiving the network switching strategy issued by the Internet of Things platform based on the adaptive data model, an adaptive network switching operation can be performed according to the network switching strategy, without the need for staff to debug and replace SIM cards on site, which is not only time-effective, but also time-saving and labor-saving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things, and in particular to a network switching method, device, equipment and medium based on an adaptive data model. Background Art

[0002] At present, there are many IoT devices and IoT terminals using communication modules, which are widely distributed. The uninterruptedness of cellular networks directly affects the service quality and stability. In the existing technology, it is difficult to predict which cellular communication operator's network is good during operation when the IoT terminal is produced. If the preset single-network SIM card is found to be unavailable at the location during operation, the staff needs to go to the IoT terminal deployment site to replace the single-network SIM card with a single-network SIM card of another operator to complete the network recovery of the IoT terminal and ensure the uninterrupted normal operation of the IoT terminal service. That is, the switching network in the existing technology is not only time-effective, but also requires high labor costs. Summary of the invention

[0003] The present invention provides a network switching method, device, equipment and medium based on an adaptive data model, aiming to solve the problems of poor timeliness and time-consuming and labor-intensive network switching of existing Internet of Things terminals.

[0004] In a first aspect, the present invention provides a network switching method based on an adaptive data model, comprising:

[0005] Start RSRP monitoring to obtain the RSRP value of the working environment of the Internet of Things terminal;

[0006] Determine whether to start ping monitoring according to the RSRP value;

[0007] If the ping monitoring is started, the network disconnection switching operation and the RSRP monitoring are performed according to the monitoring result of the ping monitoring;

[0008] If a network switching strategy is received from the Internet of Things platform based on the adaptive data model, the network switching operation is performed according to the network switching strategy, wherein the network switching strategy includes first-dimensional device information and second-dimensional network switching information, the first-dimensional device information includes the first-dimensional field defined in the adaptive data model and the configured field value corresponding to the first-dimensional field, and the second-dimensional network switching information includes the second-dimensional field defined in the adaptive data model and the configured field value corresponding to the second-dimensional field.

[0009] In a second aspect, the present invention further provides a network switching device based on an adaptive data model, comprising:

[0010] A start acquisition unit is used to start RSRP monitoring and obtain the RSRP value of the working environment of the Internet of Things terminal;

[0011] A judging unit, configured to judge whether to start ping monitoring according to the RSRP value;

[0012] A switching unit is started, which is used to perform a network disconnection switching operation and the RSRP monitoring according to a monitoring result of the ping monitoring if the ping monitoring is started;

[0013] A network switching receiving unit is used for performing a network switching operation according to a network switching strategy issued by an Internet of Things platform based on an adaptive data model if the network switching strategy is received, wherein the network switching strategy includes first-dimensional device information and second-dimensional network switching information, the first-dimensional device information includes a first-dimensional field defined in the adaptive data model and a configured field value corresponding to the first-dimensional field, and the second-dimensional network switching information includes a second-dimensional field defined in the adaptive data model and a configured field value corresponding to the second-dimensional field.

[0014] In a third aspect, the present invention further provides an Internet of Things terminal device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.

[0015] In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.

[0016] The present invention provides a network switching method, device, equipment and medium based on an adaptive data model. The method includes: starting RSRP monitoring to obtain the RSRP value of the working environment of the Internet of Things terminal; judging whether to start ping monitoring according to the RSRP value; if the ping monitoring is started, performing a network disconnection switching operation and the RSRP monitoring according to the monitoring result of the ping monitoring; if a network switching strategy issued by the Internet of Things platform based on an adaptive data model is received, performing a network switching operation according to the network switching strategy, wherein the network switching strategy includes first-dimensional device information and second-dimensional network switching information, the first-dimensional device information includes the first-dimensional field defined in the adaptive data model and the configured field value corresponding to the first-dimensional field, and the second-dimensional network switching information includes the second-dimensional field defined in the adaptive data model and the configured field value corresponding to the second-dimensional field. The technical solution of the present invention can perform network disconnection switching operations through RSRP monitoring and ping monitoring. When a network switching strategy issued by the Internet of Things platform based on an adaptive data model is received, an adaptive network switching operation can be performed according to the network switching strategy. There is no need for staff to debug and replace SIM cards on site. This is not only highly timely, but also time-saving and labor-saving, thereby ensuring the uninterrupted and normal operation of the Internet of Things terminal business. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0018] Figure 1 A schematic diagram of a flow chart of a network switching method based on an adaptive data model provided by an embodiment of the present invention;

[0019] Figure 2 A schematic diagram of a sub-process of a network switching method based on an adaptive data model provided by an embodiment of the present invention;

[0020] Figure 3 A schematic diagram of ping monitoring provided by an embodiment of the present invention;

[0021] Figure 4 A schematic diagram of a sub-process of a network switching method based on an adaptive data model provided by an embodiment of the present invention;

[0022] Figure 5 A schematic diagram of an adaptive data model provided by an embodiment of the present invention;

[0023] Figure 6A timing diagram of an Internet of Things platform, an application in an Internet of Things terminal, and a communication module in the Internet of Things terminal provided in an embodiment of the present invention;

[0024] Figure 7 A timing diagram of the Internet of Things platform and the Internet of Things terminal provided by an embodiment of the present invention;

[0025] Figure 8 A schematic block diagram of a network switching device based on an adaptive data model provided by an embodiment of the present invention;

[0026] Fig. 9 A schematic block diagram of an Internet of Things terminal device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0029] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0030] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0031] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0032] See also Figure 1 , Figure 1 The figure is a flowchart of a network switching method based on an adaptive data model provided by an embodiment of the present invention. The network switching method based on an adaptive data model in the embodiment of the present invention can be applied to an Internet of Things terminal. For example, the network switching method based on an adaptive data model can be implemented by a software program configured on the Internet of Things terminal, without the need for staff to debug and replace the SIM card on site. It is not only more timely, but also saves time and effort, thereby ensuring the uninterrupted and normal operation of the Internet of Things terminal service. Figure 1 As shown, the method includes the following steps S100-S130.

[0033] S100: Start RSRP monitoring to obtain the RSRP value of the working environment of the IoT terminal.

[0034] S110: Determine whether to start ping monitoring according to the RSRP value.

[0035] In the embodiment of the present invention, the IoT terminal starts RSRP monitoring, obtains the RSRP value of the working environment of the IoT terminal, and determines whether to start ping monitoring according to the RSRP value, wherein RSRP (Reference Signal Received Power) represents a key parameter of the received signal strength. Specifically, Figure 2 As shown, step S100 specifically includes steps S111-S113: S111, determine whether the RSRP value is lower than the preset threshold value, if the RSRP value is not lower than the preset threshold value, execute step S112, otherwise execute step S113; S112, determine not to start the ping monitoring, and return to execute the step of obtaining the RSRP value of the working environment of the IoT terminal after the preset sleep time; S113, determine to start the ping monitoring. It should be noted that in this embodiment, the preset threshold value is set according to the actual application scenario and is not specifically limited here; the preset sleep time is 30 minutes; it is understandable that in other embodiments, the preset sleep time can also be set to other times, such as 35 minutes, according to actual conditions.

[0036] S120: If the ping monitoring is started, the network disconnection switching operation and the RSRP monitoring are performed according to the monitoring result of the ping monitoring.

[0037] In an embodiment of the present invention, if the ping monitoring is started, the network disconnection switching operation and the RSRP monitoring are performed according to the monitoring result of the ping monitoring. Specifically, the preset public domain network name is pinged once every preset connection time to obtain a ping result; if the ping results for the preset number of consecutive times are all ping connection failures, the network disconnection switching operation is performed, and the ping connection times are set to 0, and after the preset sleep time, the step of obtaining the RSRP value of the working environment of the Internet of Things terminal is returned to execute; if the ping connection times are not greater than the preset times, there is one ping result that the ping connection is successful, then the step of setting the ping connection times to 0 is executed; if the ping connection times are not greater than the preset times, then the step of determining whether to perform the network disconnection switching operation is based on the recorded start time of each ping connection and the end time of receiving the ping response. More specifically, the step of determining whether to perform the network disconnection switching operation based on the recorded start time of each ping connection and the end time of receiving the ping response includes: calculating multiple interval times based on the recorded start time of each ping connection and the end time of receiving the ping response; if at least a preset number of the interval times among the multiple interval times are greater than a preset interval time threshold, determining to perform the network disconnection switching operation. It should be noted that in this embodiment, if Figure 3 As shown, the preset connection time is 30s, the preset number of times is 5 times, the ping connection number is num, the multiple time intervals are time1, time2, time3, time4 and time5, the preset number is 2, and ping monitoring is performed. There are the following three situations: Situation 1: Ping the preset public network domain name every 30s. If the ping connection fails for 5 consecutive times, perform the network disconnection switching operation, set num to 0, and re-perform RSRP monitoring after sleeping for 30 minutes; Situation 2: When num<=5, if a ping connection is successful, set num to 0, and re-perform RSRP monitoring after sleeping for 30s; Situation 3: When num<=5, each time a ping is executed, the start time of the ping connection is recorded. When a ping response is received, the end time is recorded, and then the time interval is calculated to obtain time1, time2, time3, time4 and time5. If the time interval exceeds the preset interval time threshold for more than 2 times, perform the network disconnection switching operation, set num to 0, and re-perform RSRP monitoring after sleeping for 30s.

[0038] S130. If a network switching strategy issued by the Internet of Things platform based on the adaptive data model is received, a network switching operation is performed according to the network switching strategy, wherein the network switching strategy includes first-dimensional device information and second-dimensional network switching information, the first-dimensional device information includes a first-dimensional field defined in the adaptive data model and a configured field value corresponding to the first-dimensional field, and the second-dimensional network switching information includes a second-dimensional field defined in the adaptive data model and a configured field value corresponding to the second-dimensional field.

[0039] In the embodiment of the present invention, if the IoT terminal receives a network switching strategy issued by the IoT platform based on an adaptive data model, the IoT terminal performs a network switching operation according to the network switching strategy. Figure 4 As shown, step S130 may specifically include steps S131-S133: S131, parsing the network switching strategy to obtain the first dimension device information and the second dimension network switching information; S132, performing a legitimacy check based on the first dimension device information to obtain a check result; S133, if the check result is that the check passes, performing a network switching operation based on the second dimension network switching information. It should be noted that, in this embodiment, the adaptive data model defines a first dimension field and a field value corresponding to the first dimension field, and a second dimension field and a field value corresponding to the second dimension field, wherein the first dimension field includes a device communication protocol version number, a device name, a device model, and a device IMEI, and the verification result is obtained by performing a legitimacy check based on the first dimension device information, including: parsing the first dimension device information to obtain the first dimension field; if the field value of the device communication protocol version number is consistent with the preset device communication protocol version number, the field value of the device name is consistent with the preset device name, the field value of the device model is consistent with the preset device model, and the field value of the device IMEI is consistent with the preset device IMEI, then the verification result is set to the verification pass. Understandably, if at least one of the field value of the device communication protocol version number is inconsistent with the preset device communication protocol version number, the field value of the device name is consistent with the preset device name, the field value of the device model is consistent with the preset device model, and the field value of the device IMEI is inconsistent with the preset device IMEI, then the verification result is set to the verification fail, and the network switching strategy is discarded. It is understandable that the pre-set device communication protocol version number, the pre-set device name, the pre-set device model and the pre-set device IMEI are pre-configured device basic information. Figure 5As shown, the first dimension field includes msg_version, vendor_name, model_name, and imei_data, wherein msg_version is the device communication protocol version number, vendor_name is the device name, model_name is the device model, and imei_data is the device IMEI.

[0040] Furthermore, the second dimension field includes an immediate switching policy field, a priority policy field, a weak signal switching policy field, and a last network priority policy field, and the network switching operation is performed according to the second dimension network switching information, including: parsing the second dimension network switching information to obtain the second dimension field; determining the target switching policy according to the field value of the immediate switching policy field, the field value of the priority policy field, the field value of the weak signal switching policy field, and the field value of the last network priority policy field; if the target switching policy is a real-time network switching policy, the network switching operation is performed according to the field value of the immediate switching policy field and the field value of the weak signal switching policy field; if the target switching policy is a three-network priority network switching policy, the network switching operation is performed according to the field value of the priority policy field; if the target switching policy is the last network priority network switching policy, the network switching operation is performed according to the field value of the last network priority policy field. It should be noted that in this embodiment, if Figure 5 As shown, the second dimension includes sim_switch_to, policy_operator_first, policy_signal_weak, and policy_last_operator_first, wherein sim_switch_to is the immediate switching policy field, i.e., immediately switching to the corresponding operator policy, policy_operator_first is the priority policy field, i.e., the operator priority policy, policy_signal_weak is the weak signal switching policy field, i.e., the weak signal switching operator policy, and policy_last_operator_first is the last network priority policy field, i.e., the last network operator priority policy. Understandably, the operator priority policies include "UNKNOWN", "CHINA UNICOM", "CHINA MOBILE", and "CHINA TELECOM", "CHINA UNICOM" is China Unicom, "CHINA MOBILE" is China Mobile, and "CHINA TELECOM" is China Telecom. It should also be noted that in this embodiment, if Figure 6As shown, the IoT terminal is configured with an application and a communication module. The IoT platform sends the network switching strategy to the application. The application parses the network switching strategy to obtain the first dimension device information and the second dimension device information. After that, the first dimension device information is parsed to obtain the first dimension field. The legitimacy of the field value of the first dimension field is checked. The second dimension field is obtained by parsing the second dimension network switching information. That is, according to the value of sim_switch_to or policy_operator_first or policy_last_operator_first or policy_signal_weak, different network switching execution strategies are enabled to determine the target switching strategy. Specifically, if the target switching strategy is the real-time network switching strategy, the application sends a real-time network switching instruction to the communication module according to the field value of sim_switch_to, and after receiving the response message sent back by the communication module, saves the network with weaker signal in the field value of policy_signal_weak; if the target switching strategy is the three-network priority network switching strategy, the application sets the three-network priority network operator according to the field value of policy_operator_first, and sends a restart module instruction to the communication module. After receiving the response message sent back by the communication module, the three-network priority network operator is obtained, and the application sends a network switching instruction according to the obtained network operator; if the target switching strategy is the last network priority network switching strategy, the application saves the current successful network operator according to the field value of policy_last_operator_first, sets the last network status, sends a restart module instruction to the communication module, obtains the last network status after receiving the response message sent back by the communication module, obtains the operator used for the last network, and sends a network switching instruction according to the obtained network operator.

[0041] like Figure 7 As shown, in this embodiment, the user customizes an adaptive data model in the Internet of Things platform. Based on the adaptive data model, the Internet of Things platform sends a network switching strategy to the Internet of Things terminal. After receiving the network switching strategy, the Internet of Things terminal sends a response message back to the Internet of Things platform and sets the network switching strategy flag. The Internet of Things terminal device restarts, reads the network switching strategy flag, and executes the network switching operation; and the Internet of Things terminal is pre-set with a device that powers on to start the network disconnection switching operation, which is achieved by periodically monitoring the network status of the Internet of Things terminal and executing the network disconnection switching operation when the network is unavailable.

[0042] In summary, based on the network switching strategy issued by the customized adaptive data model of the IoT platform and the network monitoring and disconnection switching operations preset by the IoT terminal, when the IoT terminal network is unavailable, the normal switching of the IoT terminal cellular network can be completed by restarting the device. It has strong timeliness and saves labor costs. It greatly ensures the uninterrupted and normal operation of the IoT terminal equipment business without changing the original business processing.

[0043] Figure 8 FIG. 2 is a schematic block diagram of a network switching device 200 based on an adaptive data model provided by an embodiment of the present invention. Figure 8 As shown, corresponding to the above network switching method based on the adaptive data model, the present invention also provides a network switching device 200 based on the adaptive data model. The network switching device 200 based on the adaptive data model includes a unit for executing the above network switching method based on the adaptive data model. Figure 8 The network switching device 200 based on the adaptive data model includes a startup acquisition unit 201, a judgment unit 202, a startup switching unit 203 and a network switching receiving unit 204.

[0044] Among them, the start acquisition unit 201 is used to start RSRP monitoring and obtain the RSRP value of the working environment of the Internet of Things terminal; the judgment unit 202 is used to judge whether to start ping monitoring according to the RSRP value; the start switching unit 203 is used to, if the ping monitoring is started, perform a network disconnection switching operation and the RSRP monitoring according to the monitoring result of the ping monitoring; the receiving network switching unit 204 is used to, if a network switching strategy issued by the Internet of Things platform based on the adaptive data model is received, perform a network switching operation according to the network switching strategy, wherein the network switching strategy includes first-dimensional device information and second-dimensional network switching information, the first-dimensional device information includes a first-dimensional field defined in the adaptive data model and a configured field value corresponding to the first-dimensional field, and the second-dimensional network switching information includes a second-dimensional field defined in the adaptive data model and a configured field value corresponding to the second-dimensional field.

[0045] In some embodiments, such as this embodiment, the determination unit 202 includes a first determination subunit, a first determination unit, and a second determination unit.

[0046] Among them, the first judgment subunit is used to judge whether the RSRP value is lower than a preset threshold; the first judgment unit is used to determine not to start the ping monitoring if the RSRP value is not lower than the preset threshold, and return to execute the step of obtaining the RSRP value of the working environment of the Internet of Things terminal after a preset sleep time; the second judgment unit is used to determine to start the ping monitoring if the RSRP value is lower than the preset threshold.

[0047] In some embodiments, such as this embodiment, the startup switching unit 203 includes a connecting unit, a first executing unit, a second executing unit, and a second determining subunit.

[0048] The connection unit is used to ping a preset public domain network name once every preset connection time to obtain a ping result; the first execution unit is used to execute the network disconnection switching operation if the ping results for consecutive preset times are all ping connection failures, and set the ping connection times to 0, and return to execute the step of obtaining the RSRP value of the working environment of the Internet of Things terminal after a preset sleep time; the second execution unit is used to execute the step of setting the ping connection times to 0 if there is one ping result of a successful ping connection when the ping connection times are not greater than the preset times;

[0049] The second judgment subunit is used to judge whether to perform the network disconnection switching operation according to the recorded start time of each ping connection and the end time of receiving the ping response if the number of ping connections is not greater than the preset number.

[0050] In some embodiments, such as this embodiment, the second determination subunit includes a calculation unit and a third determination unit.

[0051] Among them, the calculation unit is used to calculate multiple interval times based on the recorded start time of each ping connection and the end time of receiving the ping response; the third determination unit is used to determine the step of executing the network disconnection switching operation if at least a preset number of the interval times among the multiple interval times are greater than a preset interval time threshold.

[0052] In some embodiments, such as this embodiment, the receiving network switching unit 204 includes a first parsing unit, a checking unit, and a network switching unit.

[0053] Among them, the first parsing unit is used to parse the network switching strategy to obtain the first dimension device information and the second dimension network switching information; the verification unit is used to perform a legitimacy check based on the first dimension device information to obtain a verification result; the network switching unit is used to perform a network switching operation based on the second dimension network switching information if the verification result is that the verification passes.

[0054] In some embodiments, such as this embodiment, the verification unit includes a second parsing unit and a verification subunit.

[0055] Among them, the second parsing unit is used to parse the first dimension device information to obtain the first dimension field; the verification subunit is used to set the verification result as the verification passed if the field value of the device communication protocol version number is consistent with the preset device communication protocol version number, the field value of the device name is consistent with the preset device name, the field value of the device model is consistent with the preset device model, and the field value of the device IMEI is consistent with the preset device IMEI.

[0056] In some embodiments, such as the present embodiment, the network switching unit includes a third parsing unit, a determining unit, a first network switching sub-unit, a second network switching sub-unit, and a third network switching sub-unit.

[0057] Among them, the third parsing unit is used to parse the second-dimensional network switching information to obtain the second-dimensional field; the determination unit is used to determine the target switching strategy according to the field value of the immediate switching strategy field, the field value of the priority strategy field, the field value of the weak signal switching strategy field and the field value of the last network priority strategy field; the first network switching subunit is used to perform the network switching operation according to the field value of the immediate switching strategy field and the field value of the weak signal switching strategy field if the target switching strategy is a real-time network switching strategy; the second network switching subunit is used to perform the network switching operation according to the field value of the priority strategy field if the target switching strategy is a three-network priority network switching strategy; the third network switching subunit is used to perform the network switching operation according to the field value of the last network priority strategy field if the target switching strategy is the last network priority network switching strategy.

[0058] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the above-mentioned adaptive data model-based network switching device 200 and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.

[0059] The above-mentioned network switching device based on the adaptive data model can be implemented in the form of a computer program. The computer program can be used in Fig. 9 The system runs on the IoT terminal device shown in the figure.

[0060] See also Fig. 9 , Fig. 9 900 is a schematic block diagram of an Internet of Things terminal device provided in an embodiment of the present application. The Internet of Things terminal device 900 is a terminal.

[0061] See also Fig. 9 The Internet of Things terminal device 900 includes a processor 902, a memory and an interface 905 connected through a system bus 901, wherein the memory may include a storage medium 903 and an internal memory 904.

[0062] The storage medium 903 may store an operating system 9031 and a computer program 9032. When the computer program 9032 is executed, the processor 902 may execute a network switching method based on an adaptive data model.

[0063] The processor 902 is used to provide computing and control capabilities to support the operation of the entire IoT terminal device 900.

[0064] The internal memory 904 provides an environment for the operation of the computer program 9032 in the storage medium 903. When the computer program 9032 is executed by the processor 902, the processor 902 can execute a network switching method based on an adaptive data model.

[0065] The interface 905 is used to communicate with other devices. Those skilled in the art will appreciate that Fig. 9 The structure shown in the figure is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the Internet of Things terminal device 900 to which the solution of the present application is applied. The specific Internet of Things terminal device 900 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0066] The processor 902 is used to run a computer program 9032 stored in the memory to implement any embodiment of the above-mentioned network switching method based on the adaptive data model.

[0067] It should be understood that in the embodiment of the present application, the processor 902 may be a central processing unit (CPU), and the processor 902 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0068] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing related hardware through a computer program. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the wireless communication system to implement the process steps of the embodiment of the above method.

[0069] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. When the computer program is executed by a processor, the processor executes any embodiment of the above-mentioned network switching method based on the adaptive data model.

[0070] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0071] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0072] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0073] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The wireless communication software product is stored in a storage medium and includes several instructions for enabling an Internet of Things terminal device (which can be a personal wireless communication, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.

[0074] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0075] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

[0076] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A network switching method based on an adaptive data model, applied to an Internet of Things terminal, characterized in that: include: Start RSRP monitoring to obtain the RSRP value of the working environment of the Internet of Things terminal; Determine whether to start ping monitoring according to the RSRP value; If the ping monitoring is started, the network disconnection switching operation and the RSRP monitoring are performed according to the monitoring result of the ping monitoring; If a network switching strategy issued by the Internet of Things platform based on the adaptive data model is received, a network switching operation is performed according to the network switching strategy, wherein the network switching strategy includes first-dimensional device information and second-dimensional network switching information, the first-dimensional device information includes a first-dimensional field defined in the adaptive data model and a configured field value corresponding to the first-dimensional field, and the second-dimensional network switching information includes a second-dimensional field defined in the adaptive data model and a configured field value corresponding to the second-dimensional field; Wherein, judging whether to start ping monitoring according to the RSRP value includes: Determine whether the RSRP value is lower than a preset threshold; If the RSRP value is not lower than the preset threshold value, it is determined not to start the ping monitoring, and after a preset sleep time, the step of obtaining the RSRP value of the working environment of the Internet of Things terminal is returned to execute; If the RSRP value is lower than the preset threshold, determining to start the ping monitoring; The performing the network disconnection switching operation and the RSRP monitoring according to the monitoring result of the ping monitoring includes: Ping the preset public domain network name every preset connection time to get the ping result; If the ping results for the preset number of consecutive times are all ping connection failures, the network disconnection switching operation is performed, and the number of ping connections is set to 0, and after the preset sleep time, the step of obtaining the RSRP value of the working environment of the Internet of Things terminal is returned to execute; If the ping connection number is not greater than the preset number, and there is one ping result that the ping connection is successful, then executing the step of setting the ping connection number to 0; If the number of ping connections is not greater than the preset number, determining whether to perform the network disconnection switching operation according to the recorded start time of each ping connection and the end time of receiving the ping response.

2. The network switching method based on the adaptive data model according to claim 1 is characterized in that: The step of judging whether to perform the network disconnection switching operation according to the recorded start time of each ping connection and the end time of receiving the ping response includes: Calculate multiple interval times based on the start time of each recorded ping connection and the end time of receiving the ping response; If at least a preset number of the interval times among the plurality of the interval times are greater than a preset interval time threshold, it is determined to execute the step of the network disconnection switching operation.

3. The network switching method based on the adaptive data model according to claim 1, characterized in that: The performing the network switching operation according to the network switching strategy includes: Parsing the network switching strategy to obtain the first-dimensional device information and the second-dimensional network switching information; Performing a validity check according to the first dimension device information to obtain a check result; If the verification result is that the verification is passed, the network switching operation is performed according to the second dimension network switching information.

4. The network switching method based on the adaptive data model according to claim 3 is characterized in that: The first dimension field includes a device communication protocol version number, a device name, a device model, and a device IMEI. The verification result obtained by performing a legitimacy verification based on the first dimension device information includes: Parsing the first-dimensional device information to obtain the first-dimensional field; If the field value of the device communication protocol version number is consistent with the preset device communication protocol version number, the field value of the device name is consistent with the preset device name, the field value of the device model is consistent with the preset device model, and the field value of the device IMEI is consistent with the preset device IMEI, the verification result is set to the verification passed.

5. The network switching method based on the adaptive data model according to claim 3 is characterized in that: The second dimension field includes an immediate switching strategy field, a priority strategy field, a weak signal switching strategy field, and a last network priority strategy field. The network switching operation according to the second dimension network switching information includes: Parsing the second-dimensional network switching information to obtain the second-dimensional field; Determine the target switching strategy according to the field value of the immediate switching strategy field, the field value of the priority strategy field, the field value of the weak signal switching strategy field, and the field value of the last on-site priority strategy field; If the target switching strategy is a real-time network switching strategy, a network switching operation is performed according to the field value of the immediate switching strategy field and the field value of the weak signal switching strategy field; If the target switching strategy is a three-network priority switching strategy, performing the network switching operation according to the field value of the priority strategy field; If the target switching strategy is the last time on-line priority network switching strategy, the network switching operation is performed according to the field value of the last time on-line priority strategy field.

6. A network switching device based on an adaptive data model, applied to an Internet of Things terminal, characterized in that: include: A start acquisition unit is used to start RSRP monitoring and obtain the RSRP value of the working environment of the Internet of Things terminal; A judging unit, configured to judge whether to start ping monitoring according to the RSRP value; A switching unit is started, which is used to perform a network disconnection switching operation and the RSRP monitoring according to a monitoring result of the ping monitoring if the ping monitoring is started; A network switching receiving unit, configured to perform a network switching operation according to a network switching strategy issued by the Internet of Things platform based on an adaptive data model if the network switching strategy is received, wherein the network switching strategy includes first-dimensional device information and second-dimensional network switching information, the first-dimensional device information includes a first-dimensional field defined in the adaptive data model and a configured field value corresponding to the first-dimensional field, and the second-dimensional network switching information includes a second-dimensional field defined in the adaptive data model and a configured field value corresponding to the second-dimensional field; Wherein, the judging unit comprises: A first judging subunit, configured to judge whether the RSRP value is lower than a preset threshold; A first determination unit, configured to determine not to start the ping monitoring if the RSRP value is not lower than the preset threshold value, and return to execute the step of obtaining the RSRP value of the working environment of the Internet of Things terminal after a preset sleep time; A second determination unit, configured to determine to start the ping monitoring if the RSRP value is lower than the preset threshold; The startup switching unit comprises: A connection unit, used for pinging a preset public domain network name once every preset connection time to obtain a ping result; A first execution unit is configured to execute the network disconnection switching operation if the ping results for a preset number of consecutive times are all ping connection failures, and set the number of ping connections to 0, and return to execute the step of obtaining the RSRP value of the working environment of the Internet of Things terminal after a preset sleep time; A second execution unit is configured to execute the step of setting the number of ping connections to 0 if there is one ping result that the ping connection is successful when the number of ping connections is not greater than the preset number of times; The second judgment subunit is used to judge whether to perform the network disconnection switching operation according to the recorded start time of each ping connection and the end time of receiving the ping response if the number of ping connections is not greater than the preset number.

7. An Internet of Things terminal device, characterized in that: The Internet of Things terminal device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 can be implemented.

Citation Information

Patent Citations

  • Network switching method and device

    CN106470170A

  • Network detection method and device and related equipment

    CN111884879A