System for enabling mobile equipment to be compatible with various connection modes of network management equipment

By realizing automatic network status identification, dynamic connection switching and communication protocol adaptation on mobile devices, the problems of inflexible network switching, complex operation, poor protocol adaptation and security risks in the prior art are solved, and efficient and stable connections between mobile devices and network management equipment and secure data transmission in complex network environments are realized.

CN120018232AInactive Publication Date: 2025-05-16SHENZHEN C-DATA TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510458579.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-14
Publication Date
2025-05-16
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art has inflexible network switching between mobile devices and network management devices in complex network environments, complex operations, poor protocol adaptability, and security risks are present during remote access.

Method used

The network status automatic identification module, dynamic connection switching module, communication protocol adaptation module, user interface and interaction module are adopted to realize that mobile devices automatically recognize network status in different network environments, dynamically switch connection methods, and support the adaptation of HTTP and HTTPS protocols to ensure the security and compatibility of data transmission.

Benefits of technology

It realizes efficient and stable connection between mobile devices and network management devices under different network environments, reduces user operation complexity, improves protocol adaptability and data security, and ensures smooth device management operations in any network environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120018232A_ABST
    Figure CN120018232A_ABST
Patent Text Reader

Abstract

The invention discloses a system for enabling mobile equipment to be compatible with various connection modes of network management equipment, and the system comprises a network state automatic recognition module which is used for detecting the current network state and judging whether the mobile equipment is in a local area network environment or a wide area network environment; the dynamic connection switching module is used for automatically selecting an optimal connection mode according to the network state, and storing the latest successful connection mode and connection parameters; the communication protocol adaptation module is used for providing adaptation support for an HTTP (Hyper Text Transfer Protocol) protocol and an HTTPS (Hyper Text Transfer Protocol Secure Socket) protocol; and the user interface and interaction module is used for displaying the current network state, the connection mode and the equipment information and carrying out information interaction with a user. According to the invention, efficient and stable connection of the network management equipment by the mobile equipment in different network environments can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of mobile communication and network management, and in particular to a system for a mobile device to be compatible with various connection modes of a network management device. Background Art

[0002] At present, the communication technologies between mobile devices and network management equipment mainly focus on the following aspects: 1) LAN communication Mobile devices and network management devices communicate directly through a local area network (LAN), using private IP addresses to achieve high-speed, low-latency data transmission. This method mainly relies on a fixed LAN environment and is suitable for home or corporate internal networks. Its typical technologies include private IP access based on the TCP / IP protocol, and some devices use static configuration to simplify operations.

[0003] 2) Remote Access When the mobile device and the network management device are not in the same local area network, they rely on public cloud domain names or dynamic domain name resolution (DDNS) for remote access. This method realizes communication through a wide area network (WAN) and supports mobile devices to interact with network management devices worldwide. Its typical technologies include secure communication based on the HTTPS protocol and address resolution using dynamic domain name mapping.

[0004] 3) Hybrid solution Some technical solutions attempt to combine LAN and remote access, using network status to determine whether to use private IP in the LAN and domain name in the WAN. This method can improve the flexibility and reliability of device connections.

[0005] Although existing technologies have met the connection requirements between devices to a certain extent, the following problems still exist in complex network environments: 1) Inflexible network switching: When the network status of a mobile device changes, such as switching from Wi-Fi to mobile data, existing solutions are usually unable to switch the connection mode in real time, resulting in communication interruption.

[0006] 2) High operational complexity: Some solutions require users to manually configure domain names, network addresses, or switch connection methods. The operational threshold is high for ordinary users, making it difficult to achieve intelligent management.

[0007] 3) Poor protocol adaptability: Different network management devices may use different communication protocols (such as HTTP, HTTPS, etc.), and some mobile device solutions are not compatible with all protocols, resulting in limited stability of device connections.

[0008] 4) Security risks: Dynamic domain name resolution during remote access may face the risk of DNS hijacking or data leakage, and cannot fully protect user data security. Summary of the invention

[0009] The purpose of the present invention is to provide a system for making mobile equipment compatible with various connection modes of network management equipment, so as to realize efficient and stable connection of mobile equipment to network management equipment in different network environments.

[0010] In order to achieve the above purpose, the following technical solutions are adopted: A system for making mobile devices compatible with various connection modes of network management devices, including A network status automatic identification module, which is used to detect the current network status and determine whether the mobile device is in a local area network environment or a wide area network environment; A dynamic connection switching module, which is used to automatically select the best connection mode according to the network status and store the most recent successful connection mode and connection parameters, wherein the connection parameters include IP address, port number, and domain name; A communication protocol adaptation module, which is used to provide adaptation support for HTTP and HTTPS protocols to ensure compatibility with network management equipment and security of data transmission; The user interface and interaction module are used to display the current network status, connection mode and device information and to interact with the user.

[0011] Furthermore, for the Android end, the network status automatic identification module detects and obtains the current network status through the ConnectivityManager class, specifically including the following steps: Get the ConnectivityManager instance through Context.getSystemService; Call getActiveNetwork() to obtain the currently active network information; Determine the network type through getNetworkCapabilities(), where network types include Wi-Fi and cellular networks; By registering NetworkCallback to monitor network status changes, you can handle the increase or loss of network connections in the onAvailable() and onLost() methods.

[0012] Furthermore, for Wi-Fi networks, the network status automatic identification module obtains the currently connected SSID and gateway IP address through WifiManager, and determines whether the gateway belongs to the LAN range through DhcpInfo; if the gateway IP belongs to the LAN, it further confirms whether the network management device is online through UDP broadcast or ARP detection; if it is a cellular network or non-LAN Wi-Fi, it is marked as WAN status.

[0013] Furthermore, for the iOS end, the network status automatic identification module detects and obtains the current network status through the NWPathMonitor class, specifically including the following steps: Create an NWPathMonitor instance, call start(queue:) to start monitoring, and use the status property of NWPath to determine whether the network is available. If you do not need to continue monitoring, stop monitoring by calling cancel(). Use usesInterfaceType(.wifi) or usesInterfaceType(.cellular) to determine the current network type. If it is Wi-Fi and the gateway IP is in the LAN range, use UDP broadcast to confirm whether the network management device is online. If it is a cellular network or non-LAN Wi-Fi, mark it as a WAN state.

[0014] Furthermore, the network status automatic identification module also stores the most recently detected network status information, and when the network status changes, the cache is automatically invalidated and the network status is re-detected.

[0015] Furthermore, the dynamic connection switching module initializes the LAN connection parameters and WAN access parameters when the mobile device is started, and selects a connection method according to the detected network status, including: If the detected state is a LAN, the data request is sent directly to the network management device through the private IP address; If the WAN status is detected, an access request is initiated to the public cloud domain name through the HTTPS protocol.

[0016] Furthermore, the dynamic connection switching module uses a key-value pair data structure to store the most recent successful connection method and connection parameters, and the dynamic connection switching module is also provided with a cache invalidation strategy. When the preset cache invalidation condition is met, the cache automatically takes effect and reselects the connection method.

[0017] Furthermore, the cache expiration conditions include: a change in network status, a connection failure, or cache data exceeding a preset validity period.

[0018] Furthermore, the communication protocol adaptation module is configured to: in a local area network environment, give priority to using the HTTP protocol to reduce latency; in a wide area network environment, give priority to using the HTTPS protocol to ensure data transmission security.

[0019] Furthermore, the communication protocol adaptation module is also configured to dynamically select a protocol through a protocol parsing engine, including: When switching from a LAN to a WAN, the communication protocol adapter module automatically converts HTTP requests into HTTPS requests; When switching from a wide area network to a local area network, the communication protocol adaptation module automatically converts HTTPS requests into HTTP requests.

[0020] By adopting the above scheme, the beneficial effects of the present invention are: 1) The present invention uses intelligent network status detection and automatic switching connection mode to enable mobile devices and network management The communication of devices becomes more convenient. Specifically, in a local area network environment, the system can directly connect to the network management device through a private IP, avoiding unnecessary transfer and delay. In a wide area network environment, the system initiates an access request to the public cloud domain name through the HTTPS protocol, without the need for users to manually switch the connection mode. Compared with the traditional manual configuration and switching method, the present invention can significantly save time and energy, allowing users to quickly and seamlessly complete device management operations in different network environments. 2) The present invention supports two connection modes: direct connection via LAN and access via public cloud domain name via WAN. Mobile devices can automatically switch connection modes according to the current network status, ensuring smooth communication with network management devices in any network environment. Specifically, in LAN, HTTP protocol is used preferentially to reduce latency, and in WAN, HTTPS protocol is used preferentially to ensure the security of data transmission. At the same time, through dynamic protocol switching and adaptation, the system can automatically select the optimal protocol according to the network environment, greatly improving the compatibility and flexibility of communication. 3) By automatically switching the network connection mode and protocol selection, the present invention can optimize the data transmission path and improve the communication efficiency. Specifically, in the local area network, the data transmission speed is faster and the network delay is lower. In the wide area network, the system ensures the security and efficiency of data transmission through the HTTPS protocol and SSL / TLS encryption technology. Moreover, through the protocol adaptation and dynamic switching functions, the system can reasonably utilize the network bandwidth and further improve the communication performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a partial flow chart of the connection method of the present invention. DETAILED DESCRIPTION

[0022] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0023] Reference Figure 1 As shown, the present invention provides a system for mobile devices to be compatible with various connection modes of network management devices, including A network status automatic identification module, which is used to detect the current network status and determine whether the mobile device is in a local area network environment or a wide area network environment; A dynamic connection switching module, which is used to automatically select the best connection mode according to the network status and store the most recent successful connection mode and connection parameters, wherein the connection parameters include IP address, port number, and domain name; A communication protocol adaptation module, which is used to provide adaptation support for HTTP and HTTPS protocols to ensure compatibility with network management equipment and security of data transmission; The user interface and interaction module are used to display the current network status, connection mode and device information and to interact with the user.

[0024] The present invention aims to solve the problems of inflexible network status switching, single connection mode, complex user operation and insufficient security in the communication between mobile devices and network management devices in the prior art. The present invention comprises a network status automatic identification module, which determines whether it is in a local area network environment or a wide area network environment by detecting the current network status. The network status automatic identification module is configured with a network status detection function and a cache mechanism, wherein the network status detection function comprises: using the network interface provided by the mobile device operating system (such as Android's ConnectivityManager or iOS's NWPathMonitor) to obtain the current network type (such as Wi-Fi or cellular network) and the connected network information (such as SSID, IP address, etc.); detecting whether the gateway IP address belongs to the local area network address range where the network management device is located; if the network status is Wi-Fi, further confirming whether the network management device is online through UDP broadcast or ARP detection, and if the network status is a cellular network or a Wi-Fi non-local area network, it is marked as a wide area network status, specifically: For the Android end, the network status automatic identification module detects and obtains the current network status through the ConnectivityManager class, specifically including the following steps: Get the ConnectivityManager instance through Context.getSystemService(Context.CONNECTIVITY_SERVICE); Call getActiveNetwork() to obtain the currently active network information; Determine the network type through getNetworkCapabilities(), where network types include Wi-Fi and cellular networks; By registering NetworkCallback to monitor network status changes, you can handle the increase or loss of network connections in the onAvailable() and onLost() methods.

[0025] Among them, for Wi-Fi networks, the network status automatic identification module obtains the currently connected SSID, IP address and gateway IP address through WifiManager, and determines whether the gateway belongs to the local area network through DhcpInfo; if the gateway IP belongs to the local area network, it further confirms whether the network management device is online through UDP broadcast or ARP detection; if it is a cellular network or non-local area network Wi-Fi, it is marked as a wide area network status.

[0026] For the iOS end, the network status automatic identification module detects and obtains the current network status through the NWPathMonitor class, which specifically includes the following steps: Create an NWPathMonitor instance, call start(queue:) to start monitoring, and use the status property of NWPath to determine whether the network is available. If you do not need to continue monitoring, stop monitoring by calling cancel(). Use usesInterfaceType(.wifi) or usesInterfaceType(.cellular) to determine the current network type. If it is Wi-Fi and the gateway IP is in the LAN range, use UDP broadcast to confirm whether the network management device is online. If it is a cellular network or non-LAN Wi-Fi, mark it as a WAN state.

[0027] In addition, the network status automatic identification module also stores the most recently detected network status information, and when the network status changes, the cache is automatically invalidated and the network status is re-detected.

[0028] For the network status caching mechanism, a cache data structure (such as a key-value pair or a hash table) is used to store the most recently detected network status information (such as network type, gateway IP address, SSID, etc.). At the same time, a cache invalidation policy is set: when the network status changes, such as when the Wi-Fi is disconnected or switched, the cache is automatically invalidated and the network status is re-detected.

[0029] In one embodiment, the dynamic connection switching module automatically selects the best connection mode according to the network status and implements a connection mode caching mechanism. For connection mode selection, the dynamic connection switching module initializes the local area network connection parameters (such as the IP address and port number of the network management device) and the wide area network access parameters (such as the public cloud domain name and authentication information) when the mobile device is started, and selects the connection mode according to the detected network status, including: If the detected state is a LAN, the data request is sent directly to the network management device through the private IP address; If the WAN status is detected, an access request is initiated to the public cloud domain name through the HTTPS protocol.

[0030] As for the connection mode cache mechanism, the dynamic connection switching module uses a key-value pair data structure to store the most recent successful connection mode and connection parameters, and the dynamic connection switching module is also provided with a cache invalidation strategy. When the preset cache invalidation conditions are met, the cache automatically takes effect and reselects the connection mode. The cache invalidation conditions include: changes in network status (such as switching from Wi-Fi to cellular network), connection failure (such as detection request timeout or no response), and cache data exceeding the preset validity period (such as 5 minutes).

[0031] In this embodiment, the dynamic connection switching module uses a key-value pair data structure to save the most recent successful connection method and parameters, for example, using HashMap (Android) or Dictionary (iOS) to store information such as connection type (such as "Wi-Fi" or "cellular network"), gateway IP address, private IP address of network management device, public cloud domain name, port number, and protocol type (such as HTTP or HTTPS); the cached data structure can be designed as: {"connection_type": "Wi-Fi","gateway_ip": "192.168.1.1", "device_ip": "192.168.1.100", "domain": "example.com", "port": 8080, "protocol": "HTTP"}; after each successful connection is established, the system will update the cache content to ensure that the cached data always reflects the latest available connection method. Through this mechanism, the system can give priority to trying the last successful connection method, reduce switching delays and improve user experience.

[0032] In one embodiment, the communication protocol adaptation module is configured to: in a local area network environment, give priority to using the HTTP protocol to reduce latency; in a wide area network environment, give priority to using the HTTPS protocol to ensure data transmission security.

[0033] At the same time, the communication protocol adaptation module is also configured to dynamically select a protocol through a protocol parsing engine, including: When switching from a LAN to a WAN, the communication protocol adapter module automatically converts HTTP requests into HTTPS requests; When switching from a wide area network to a local area network, the communication protocol adaptation module automatically converts HTTPS requests into HTTP requests.

[0034] In addition, the data formats of HTTP / HTTPS requests and responses will be uniformly processed to ensure the compatibility of data between different protocols.

[0035] In one embodiment, a user interface and interaction module is also provided, which can provide an intuitive user interface, display the current network status, connection mode and device information (display the currently connected network management device information and access path), and allow users to manually select or switch connection modes and adjust network parameters.

[0036] Based on the above system, refer to Figure 1 As shown, a method for making a mobile device compatible with various connection modes of a network management device is also provided, comprising the following steps: Step 1: Initialize network status detection when the device starts.

[0037] 1) Start the network module: When the mobile device starts, the system will initialize the network status automatic identification module and turn on the network status monitoring function, using Android's ConnectivityManager or iOS's NWPathMonitor to monitor the network connection status in real time.

[0038] 2) Identify the current network type: The system identifies the connection status of the current network, including whether it is connected to Wi-Fi, mobile data, or other network types. At the same time, it obtains detailed information about the current network, such as SSID (Wi-Fi name), IP address, gateway address, etc.

[0039] 3) Mark the initial network status: The detection result will be recorded as the initial network status for subsequent dynamic switching and comparative analysis. At the same time, the network status information is cached locally. The cache data structure uses key-value pairs (such as {"connection_type": "Wi-Fi", "gateway_ip": "192.168.1.1", "device_ip": "192.168.1.100", "domain": "example.com", "port": 8080, "protocol": "HTTP"}).

[0040] Step 2: Confirm the connection status within the LAN.

[0041] 1) Confirm Wi-Fi network properties: If the device is detected to be connected to a Wi-Fi network, the system will further analyze the current Wi-Fi network properties to check whether it belongs to a local area network (i.e., whether it is in the same subnet as the network management device); at the same time, by comparing the gateway IP address with the private IP address range of the network management device, it can be determined whether it is in a local area network environment.

[0042] 2) LAN connection verification: The system verifies the availability of the LAN connection by sending a simple probe request (such as Ping or HTTP request) to the private IP address of the network management device. If the probe request is responded to successfully, the LAN connection is marked as available, otherwise, it is marked as unavailable.

[0043] Step 3: Confirm the public network connection status.

[0044] 1) Identify non-LAN connections: If the device is not connected to a LAN (such as connected to mobile data or other non-LAN environments), the system will enter the public network connection mode by default.

[0045] 2) DNS resolution of public cloud domain name: In public network mode, the system will perform DNS resolution on the public cloud domain name of the network management device, obtain the public IP address and confirm whether it is accessible. At the same time, it will select the best DNS server for resolution to improve the resolution speed and success rate.

[0046] 3) Public network connection verification: The system tests the connection status with the network management device by sending an HTTPS request to ensure the availability of public network communication. If the HTTPS request is responded successfully, it is marked as the public network connection is available, otherwise, it is marked as unavailable.

[0047] Step 4: Select the appropriate connection method based on the network type.

[0048] 1) Prioritize LAN: When the system detects that the LAN connection is available, it will prioritize establishing communication through the private IP. At the same time, it will use the HTTP protocol to communicate with the network management device, enjoying the advantages of low latency and high bandwidth.

[0049] 2) Switch to public network mode: If the LAN is unavailable, the system automatically switches to public network mode and uses the public IP address resolved by DNS to communicate with the network management device through the HTTPS protocol. In HTTPS communication, SSL / TLS encryption technology is used to ensure the security of data transmission.

[0050] Step 5: User-defined network type priority switching.

[0051] 1) Record user preferences: The system allows users to select and switch available network connection types in settings (such as prioritizing Wi-Fi or mobile data), and records the user's choice as a priority parameter.

[0052] 2) Dynamic application of custom priorities: When the network status changes, the system first selects the network type based on the user's priority settings. If the user's preferred network type is available, the system directly switches to that network type.

[0053] 3) Automatic selection when user preference is not matched: If the preferred network type set by the user is not available, the system falls back to the default network detection logic (step 2 or 3) to select the connection method.

[0054] Step 6: Dynamically switch the connection method.

[0055] 1) Real-time network status monitoring: The system continuously monitors changes in network status (such as switching from Wi-Fi to mobile data, or disconnection and reconnection of Wi-Fi networks).

[0056] 2) Priority check and automatic switching: When the system switches networks, it first checks whether there is a network priority type set by the user. If it exists and is available, the system switches directly. Otherwise, it reselects the connection method according to the network properties (LAN priority).

[0057] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A system for mobile devices to be compatible with various connection modes of network management devices, characterized in that: include A network status automatic identification module, which is used to detect the current network status and determine whether the mobile device is in a local area network environment or a wide area network environment; A dynamic connection switching module, which is used to automatically select the best connection mode according to the network status and store the most recent successful connection mode and connection parameters, wherein the connection parameters include IP address, port number, and domain name; A communication protocol adaptation module, which is used to provide adaptation support for HTTP and HTTPS protocols to ensure compatibility with network management equipment and security of data transmission; The user interface and interaction module are used to display the current network status, connection mode and device information and to interact with the user.

2. The system for mobile devices to be compatible with various connection modes of network management devices according to claim 1, characterized in that: For the Android end, the network status automatic identification module detects and obtains the current network status through the ConnectivityManager class, specifically including the following steps: Get the ConnectivityManager instance through Context.getSystemService; Call getActiveNetwork() to obtain the currently active network information; Determine the network type through getNetworkCapabilities(), where network types include Wi-Fi and cellular networks; By registering NetworkCallback to monitor network status changes, you can handle the increase or loss of network connections in the onAvailable() and onLost() methods.

3. The system for mobile devices to be compatible with various connection modes of network management devices according to claim 2, characterized in that: For Wi-Fi networks, the network status automatic identification module obtains the currently connected SSID and gateway IP address through WifiManager, and determines whether the gateway belongs to the local area network range through DhcpInfo; If the gateway IP belongs to the local area network, UDP broadcast or ARP detection is further used to confirm whether the network management device is online; if it is a cellular network or non-local area network Wi-Fi, it is marked as a wide area network status.

4. The system for mobile devices to be compatible with various connection modes of network management devices according to claim 1, characterized in that: For the iOS end, the network status automatic identification module detects and obtains the current network status through the NWPathMonitor class, which specifically includes the following steps: Create an NWPathMonitor instance, call start(queue:) to start monitoring, and use the status property of NWPath to determine whether the network is available. If you do not need to continue monitoring, stop monitoring by calling cancel(). Use usesInterfaceType(.wifi) or usesInterfaceType(.cellular) to determine the current network type. If it is Wi-Fi and the gateway IP is in the LAN range, use UDP broadcast to confirm whether the network management device is online. If it is a cellular network or non-LAN Wi-Fi, mark it as a WAN state.

5. The system for mobile devices to be compatible with various connection modes of network management devices according to claim 1, characterized in that: The network status automatic identification module also stores the most recently detected network status information, and when the network status changes, the cache is automatically invalidated and the network status is re-detected.

6. The system for mobile devices to be compatible with various connection modes of network management devices according to claim 1, characterized in that: The dynamic connection switching module initializes the local area network connection parameters and the wide area network access parameters when the mobile device is started, and selects a connection method according to the detected network status, including: If the detected state is a LAN, the data request is sent directly to the network management device through the private IP address; If the WAN status is detected, an access request is initiated to the public cloud domain name through the HTTPS protocol.

7. The system for mobile devices to be compatible with various connection modes of network management devices according to claim 6, characterized in that: The dynamic connection switching module uses a key-value pair data structure to store the most recent successful connection method and connection parameters, and the dynamic connection switching module is also provided with a cache invalidation strategy. When the preset cache invalidation condition is met, the cache automatically takes effect and reselects the connection method.

8. The system for mobile devices to be compatible with various connection modes of network management devices according to claim 7, characterized in that: The cache expiration conditions include: network status changes, connection failures, and cached data exceeding a preset validity period.

9. The system for mobile devices to be compatible with various connection modes of network management devices according to claim 1, characterized in that: The communication protocol adaptation module is configured to: in a local area network environment, give priority to using the HTTP protocol to reduce latency; in a wide area network environment, give priority to using the HTTPS protocol to ensure data transmission security.

10. The system for mobile equipment to be compatible with various connection modes of network management equipment according to claim 9, characterized in that: The communication protocol adaptation module is further configured to dynamically select a protocol through a protocol parsing engine, including: When switching from a LAN to a WAN, the communication protocol adapter module automatically converts HTTP requests into HTTPS requests; When switching from a wide area network to a local area network, the communication protocol adaptation module automatically converts HTTPS requests into HTTP requests.

Citation Information

Patent Citations

  • A network management system based on handheld mobile device

    CN101145949A

  • Method for remote network management on voice home gateway terminal and system

    CN101582798A

  • Local area network terminal rapid positioning method based on DHCP service

    CN110995469A

  • Network optimization method, device and system of mobile operation inspection terminal and storage medium

    CN118921679A

  • Communication terminal and network handover method therefor

    WO2013097411A1