A network sharing method and device, electronic equipment and storage medium

By integrating detection and control modules into the charging device, network sharing is automatically detected and prioritized according to network type, solving the problems of hardware complexity and power consumption when terminal devices access the network, and achieving stable and efficient network sharing.

CN112492618BActive Publication Date: 2025-12-12ZTE CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201910858411.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-11
Publication Date
2025-12-12
Estimated Expiration
2039-09-11

AI Technical Summary

Technical Problem

In existing technologies, terminal devices need to manually configure shared networks when accessing a network. They cannot automatically detect and share networks based on network type priority, resulting in complex hardware configurations and high power consumption.

Method used

By integrating a detection module and a control module into the charging device, the type of access network is automatically detected and the network sharing method is determined according to the sharing priority. Network sharing is achieved by utilizing the routing function of the terminal device, avoiding additional hardware configuration.

Benefits of technology

It enables automatic detection and sharing of the network while charging terminal devices, saving hardware configuration, reducing energy consumption, and ensuring the stability and quality of network sharing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112492618B_ABST
    Figure CN112492618B_ABST
Patent Text Reader

Abstract

The application relates to the communication field and discloses a network sharing method and device, electronic equipment and a storage medium. In the application, a network sharing method is applied to electronic equipment, the electronic equipment is used for charging terminal equipment, and the method comprises the following steps: detecting an access network to obtain the network type of the access network; different network types correspond to different sharing priorities; and the access network is shared; the shared access network is determined according to the sharing priority of the network type. The automatic detection and the shared network avoid manual setting, the access network for network sharing is selected according to the sharing priority, the stability of the shared network is ensured, a stable shared network is provided while charging the terminal equipment, and the conversion and sharing of different types of networks are realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The embodiment of the present application relates to the field of communication, in particular to a network sharing method and device, electronic equipment and storage medium. BACKGROUND

[0002] With the development of communication technology, the terminal access network mode is more and more rich, common such as mobile communication network, wifi, broadband networking mode has been popularized to thousands of households. On the other hand, with the development of terminal products, the terminal equipment which needs to access network is also more and more rich, such as mobile phone, ufi, pad and other portable multimedia. How to effectively link various access modes and various devices which need to access, form a kind of convenient, efficient, use of home or small enterprise LAN, meet the switching, control between various use scenarios, is the focus of many consumers and families. The commonly used method is to use the hotspot function of mobile phone or ufi (MBB) product, manually set the software by the user, provide shared network for the user, or use the router to share the broadband network, so as to share the mobile communication network for the surrounding devices which need to access. SUMMARY

[0003] The purpose of the embodiment of the present application is to provide a network sharing method, device, electronic equipment and storage medium, so that the same device can realize the charging of terminal equipment and network sharing, and the conversion and sharing of different forms of network can be realized, the hardware configuration is saved, and more functions are realized with smaller device size.

[0004] In order to solve the above technical problems, the embodiment of the present application provides a network sharing method applied to an electronic equipment, the electronic equipment is used for charging terminal equipment, and the method comprises the following steps: detecting an access network to obtain the network type of the access network; wherein different network types correspond to different sharing priorities; and sharing the access network; wherein the shared access network is determined according to the sharing priority of the network type.

[0005] The embodiment of the present application further provides a network sharing device applied to charging terminal equipment, comprising: a detection module, used for detecting an access network to obtain the network type of the access network; wherein different network types correspond to different sharing priorities; and a control module, used for sharing the access network; wherein the shared access network is determined according to the sharing priority of the network type.

[0006] The embodiment of the present application further provides an electronic device applied to charging a terminal device, comprising: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the network sharing method.

[0007] The embodiment of the present application further provides a computer readable storage medium storing a computer program, and the computer program is executed by a processor to implement the network sharing method.

[0008] The embodiment of the present application has the following main differences and effects compared with the prior art: while charging the terminal device, the network type of the accessed network is automatically detected, the accessed network for network sharing is determined according to the sharing priority corresponding to different network types, and the accessed network is shared. The network is automatically detected and shared while charging the terminal device, so that manual setting is avoided, and in the process of selecting the accessed network for sharing according to the priority, different types of networks can be shared according to the situation. Thus, the function of network sharing is realized while charging the terminal device, and when the network is shared, the conversion and sharing of different types of networks are realized, and the hardware configuration is saved.

[0009] In addition, after the accessed network is shared, the accessed network is further detected in real time, and when the accessed network changes, the accessed network for network sharing is re-determined. Since the change of the accessed network and the sharing priority of different types of networks are considered, the accessed network for network sharing is re-set according to the network change, so that the stability and network speed of the shared network can be ensured to the greatest extent.

[0010] In addition, the accessed network is shared, and when the accessed network for network sharing is a wired network, the wired network is shared through the accessed terminal device. Since the wired network is shared by adjusting the configuration of the terminal device and sharing the accessed wired network through the routing function of the accessed terminal device, no additional device for sharing the wired network is needed, so that the hardware cost and occupied volume are greatly saved.

[0011] In addition, the sharing priority of the wired network is higher than that of the wireless mobile network, or the sharing priority of each type of network is determined according to user settings. Since the wired network is more stable, the sharing priority of the wired network is set to be higher, or the sharing priority can be set by the user according to personal preferences, requirements and actual conditions of some users, so that the quality of the shared network is ensured.

[0012] In addition, the detection of the access network comprises: determining a target network to be detected preferentially according to a shared priority corresponding to the network type; detecting whether the target network has been accessed; if the target network has been accessed, stopping the detection of the access network; and if the target network has not been accessed, determining a next target network according to the shared priority corresponding to the network type, and detecting whether the target network has been accessed. Since the target network is determined according to the shared priority and the access detection of the target network is performed, the detection of the target network is stopped, the repeated work is avoided, the access network for network sharing is ensured to be the access network with the highest priority, i.e., the most stable access network, and the quality of the shared network is ensured.

[0013] In addition, the detection of whether the target network has been accessed comprises: performing information interaction between the access network and a device in the Internet, and if a response from the device in the Internet is received, it is determined that the target network has been accessed, and if the response is not received, it is determined that the target network has not been accessed. The networking verification is performed to accurately determine whether the network is normally accessed when the access network is detected.

[0014] In addition, after the detection of the access network and the network type of the access network is obtained, the method further comprises: detecting whether the terminal device is accessed, detecting a data state of the terminal device when the terminal device is detected to be accessed, and determining whether the data of the terminal device is backed up according to the detection result of the data state; wherein the data state comprises device information of the terminal device and a data backup permission of the terminal device. Since whether the data of the terminal device is backed up is determined according to the verification result of the data backup permission when the terminal device is detected to be accessed, the data of the terminal device is backed up only when the data of the terminal device is allowed to be backed up, the information security of the user is ensured, and the loss caused by the loss of the data of the terminal device is avoided through the data backup.

[0015] In addition, the device information of the terminal device comprises one or any combination of the following information: a memory data size, a last backup time, and marked information generated according to the backed up data after each backup is completed. Since the device information of the terminal device is verified before the data of the terminal device is backed up, and the data of the terminal device is backed up only when the marked information of the terminal device changes due to the change of the data of the terminal device, the repeated backup of the data of the terminal device is avoided. BRIEF DESCRIPTION OF DRAWINGS

[0016] One or more embodiments are illustrated by way of example in the figures that are part of this disclosure and which are included to further provide explanatory aspects of the embodiments.

[0017] Figure 1 is a flowchart of a network sharing method according to a first embodiment of the present application;

[0018] Figure 2is a sharing method schematic diagram according to the network sharing method in the first embodiment of the present application;

[0019] Figure 3 is a network sharing method flow chart according to the second embodiment of the present application;

[0020] Figure 4 is a network sharing method flow chart according to the third embodiment of the present application;

[0021] Figure 5 is an electronic device structure schematic diagram according to the network sharing method in the third embodiment of the present application;

[0022] Figure 6 is a network sharing device schematic diagram according to the fourth embodiment of the present application;

[0023] Figure 7 is an electronic device structure schematic diagram according to the fifth embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below with reference to the drawings. However, those skilled in the art can understand that, in the embodiments of the present application, many technical details are proposed in order to make the readers better understand the present application. However, the technical solutions claimed by the present application can be realized even without these technical details and based on various changes and modifications of the following embodiments. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific embodiments of the present application, and the embodiments can be combined and referenced with each other without contradiction.

[0025] The first embodiment of the present application relates to a network sharing method applied to an electronic device, the electronic device is used to charge a terminal device, the terminal device can be a mobile phone, a ufi product, a tablet computer, etc., which will not be described one by one here. In this embodiment, a charging device applied to a mobile phone is taken as an example for description, wherein the method of network sharing is to identify the network type of the access network automatically, and to determine the access network for network sharing according to the sharing priority corresponding to different types of access networks, and to perform network sharing on the access network.

[0026] The implementation details of the network sharing method of the present embodiment will be described in detail below, and the following content is only provided for the implementation details for easy understanding, and is not necessary for implementing the present solution.

[0027] The specific flow chart of the network sharing method of the present embodiment is shown in Figure 1 , and specifically includes the following steps:

[0028] Step 101, detecting the access network to determine the network type of the access network. In the embodiment, the network type is not limited, which can be a wired network or a wireless network. The wireless network can be a wireless mobile network of the terminal device or a wireless network card or other networkable device inserted, which is not listed here.

[0029] Specifically, the charging device detects the network that has been accessed. In the detection of whether the wired network is accessed, it is first detected whether a network cable is inserted. When the network cable is inserted, it is detected whether the wired network can be normally networked. When the wired network can be normally networked, it is determined that the wired network has been accessed. In the detection of whether the wireless network is accessed, it is first detected whether a terminal device or a wireless network card or other networkable device is inserted. When the networkable device is accessed, it is detected whether the wireless network of the networkable device can be normally networked. When the wireless network can be normally networked, it is determined that the wireless network has been accessed. Through the detection of whether the wired network and the wireless network are accessed, the number and the network type of the network accessed by the charging device are determined.

[0030] In an example, the networking verification method for the wired network is that the charging device first defines a size unit byte of a ping data packet, then sets the execution times of the ping command, and then pings any device in the local area network through the wired network. When a complete response is received, it is determined that the network cable connection of the wired network is normal. Then, a remote IP is pinged. When a complete response is received, it is determined that the accessed network can successfully access the Internet, that is, the accessed wired network can normally access the Internet. Then, a domain name is pinged to detect whether the DNS server can work normally. When all the detections receive complete responses, it is determined that the networking of the wired network is normal, that is, the wired network has been accessed. In any one response, if a complete response cannot be received, it is directly determined that the wired network cannot be normally networked, that is, the wired network has not been accessed. The detection method of whether the wireless network is accessed is similar to the detection method of whether the wired network is accessed, which is not described here. The charging device interacts with the devices in the Internet through the corresponding network, and determines whether each type of network is accessed according to the received response.

[0031] Step 102, determining the access network for network sharing according to the sharing priority of each type of access network.

[0032] Specifically, after the charging device determines whether each type of network is accessed, the sharing priority of each type of network corresponding to the different network types is determined, and the access network with the highest sharing priority is taken as the sharing network for network sharing. The order of the sharing priority of each type of network is generated by the user, that is, the user sets which network has a higher sharing priority.

[0033] Step 103, determine the access network to be shared for network sharing.

[0034] Specifically, after determining the access network to be shared for network sharing, the charging device determines the network sharing mode according to the type of the access network to be shared for network sharing, and shares the access network for network sharing.

[0035] In one example, when sharing a wired network, the charging device automatically selects the LAN mode, enables the phone as a device for sharing the network, adjusts the configuration information of the phone, takes the wired network as input, borrows the routing function of the phone, and shares the wired network with other devices that need to access through the phone. The specific network sharing schematic diagram is shown in Figure 2 When sharing a wireless network, taking the wireless network of the mobile network of the phone as an example, the charging device automatically selects the WAN mode, directly calls the mobile hotspot function of the phone, and shares the mobile data of the phone with other devices that need to access.

[0036] Therefore, the embodiment provides a network sharing method, which automatically identifies the specific network type of the access network, determines the access network to be shared for network sharing according to the different sharing priorities corresponding to the network types, and then shares the determined access network according to the specific network type in a corresponding manner, so that the conversion and sharing of different types of networks are realized. When sharing the network, the terminal device is called in different ways according to the sharing mode, the access network is shared through the terminal device as a network sharing device, no network sharing device needs to be added, the hardware cost is saved, and the terminal device is still charged while sharing the network, so that the terminal device is prevented from stopping network sharing due to insufficient power caused by large power consumption during network sharing, and the application of multiple devices is also avoided to cause the hardware to be too large.

[0037] The second embodiment of the application relates to a network sharing method applied to an electronic device, and the electronic device is used for charging a terminal device, which can be a mobile phone, a ufi product, a tablet computer, etc. Here, the description is not repeated. In the embodiment, the charging device applied to the mobile phone is taken as an example for description, wherein the method for sharing the network is to detect whether each type of network has been accessed according to the sharing priority of each type of access network, determine the access network to be shared for network sharing and share the network, then detect whether the access network is changed in real time, and when the type of the access network is changed, update the access network to be shared for network sharing and the network sharing mode according to the sharing priority.

[0038] The embodiment is an improvement based on the first embodiment, and specifically differs in that the sharing priority of each type of network can be directly determined according to the network stability, after detecting access to the target network, the detection of whether there are remaining access networks is no longer continued, and the network type is detected in real time when sharing the network, and the mode of network sharing is updated according to the change of the network type.

[0039] The specific flowchart of the network sharing method of the embodiment is shown in Figure 3 The specific flowchart of the network sharing method of the embodiment is shown in

[0040] Step 301, determine whether the terminal device is accessed, if the terminal device is accessed, go to step 303, if the terminal device is not accessed, go to step 302.

[0041] Specifically, before detecting the network access for network sharing, it is necessary to detect whether the terminal device as a network sharing device has been accessed, and the network access detection and judgment are performed when the terminal device is accessed, and the network access detection and judgment are not performed when the terminal device is not accessed, and the charging device directly enters the sleep mode.

[0042] Step 302, enter the sleep mode.

[0043] Specifically, when the terminal device is not accessed, the network sharing is not performed, and the terminal device does not need to be charged, and the charging device automatically enters the sleep mode to reduce energy consumption.

[0044] Step 303, determine whether the wired network is accessed, if the wired network is detected to be accessed, go to step 305, if the wired network is not detected to be accessed, go to step 304.

[0045] Specifically, the charging device pre-stores the sharing priority of each type of network, and when detecting the network access, the network access of each type of network is detected in order according to the order of the sharing priority of each type of network, the network with high sharing priority is first taken as the target network, and after detecting that the network with high sharing priority has been accessed, the network with low sharing priority is not detected for access, and the subsequent network sharing is directly performed. When the network with high sharing priority is not detected to be accessed, the network with low sharing priority is taken as the target network, and the network with low sharing priority is detected for access.

[0046] The sharing priority of each type of network is determined according to the stability of each type of network under normal circumstances, and the sharing priority of the wired network is higher than that of the wireless network by default.

[0047] In one example, the wired network has a higher sharing priority, and the charging device first takes the wired network as the target network, detects whether the wired network is connected, if the wired network is detected to be connected, the wireless network is not detected any more, and the next step of network sharing is directly performed, if the wired network is not detected to be connected, the wireless network with a lower sharing priority is taken as the target network, and whether the wireless network is connected is detected.

[0048] The detection method of whether the wired network is connected is similar to the detection method of whether the wired network is connected in step 101 in the first embodiment, and will not be repeated here. The charging device performs information interaction with the device in the Internet through the wired network, judges whether the wired network is normally connected according to the received response.

[0049] Step 304, whether the wireless network is connected is detected, if the wireless network is not detected to be connected, step 306 is entered, if the wireless network is detected to be connected, step 305 is entered.

[0050] Specifically, when the wired network is not detected to be connected, the wireless network with a lower sharing priority is taken as the target network, and whether the wireless network is connected is detected. In the detection of whether the wireless network is connected, if the wireless network is detected to be connected, the wireless network is shared, if the wireless network is not detected to be connected, the charging mode is entered.

[0051] In the embodiment, the detection method of whether the wireless network is connected is similar to the detection method of whether the wired network is connected in step 303 in the embodiment, and will not be repeated here. The charging device detects whether the wireless network of the terminal device or the wireless network of the wireless card is connected, performs information interaction with the device in the Internet through the wireless network, and judges whether the wireless network is normally connected according to the received response.

[0052] Step 305, the connected network is shared and the terminal device is charged.

[0053] Specifically, when the terminal device is detected to be connected, and the normally connected network is detected, according to the type of the connected network, the mode of network sharing is automatically selected, the connected network is shared, the connected terminal device is charged, and after the terminal device is fully charged, the charging mode is automatically exited.

[0054] In the embodiment, the method of determining the network sharing mode according to the type of the connected network and sharing the network is similar to the method in step 103 in the first embodiment, and will not be repeated here. According to the type of the connected network, the working mode is switched, and the connected network is shared.

[0055] Step 306, the charging mode is entered.

[0056] Specifically, when the terminal device accesses the network but the charging device does not detect any access to the network, the charging device automatically enters the charging mode, charges the terminal device, and automatically exits the charging mode after the terminal device is fully charged.

[0057] In step 307, it is detected in real time whether the access to the network is changed. If it is detected that the access to the network is changed, step 301 is entered. If it is not detected that the access to the network is changed, the real-time detection of the access to the network is maintained.

[0058] Specifically, after the network sharing of the access to the network and the entering of the charging mode and the sleep mode, the access to the network needs to be detected in real time. When it is detected that the access to the network is changed, the access to the network for the network sharing is reselected according to the type of the access to the network and the sharing priority corresponding to each type of the access to the network, and the network sharing is performed. When it is not detected that the access to the network is changed, the current network sharing is maintained, and the detection of the access to the network is maintained.

[0059] In an example, the access to the network for the current network sharing is a wireless network, the charging device works in the WAN mode, and the access to the wired network is detected at a certain moment. At this moment, the mode of the network sharing needs to be updated according to the change of the access to the network. The wired network is first checked for networking. When the networking of the wired network is normal, the wired network is selected as the access to the network for the network sharing according to the order of the sharing priority, the mode of the network sharing is automatically switched to the LAN mode, the terminal device is enabled as the network sharing device, the configuration information of the mobile phone is adjusted, the wired network is selected as the input, the wired network is shared by means of the routing function of the mobile phone, and the information of the access to the network is continuously detected when the networking of the wired network is not normal.

[0060] In an example, the access to the network for the current network sharing is a wired network, the charging device works in the LAN mode, and the network connection of the wired network is detected to be disconnected at a certain moment. At this moment, the mode of the network sharing needs to be updated. The wireless network is selected as the target network according to the network sharing priority, it is detected whether the wireless network is accessed, the mode of the network sharing is switched to the WAN mode when the wireless network is accessed, the wireless network is shared, and the information of the access to the network is continuously detected. When the wireless network is not accessed, the network sharing is ended, the mobile phone is charged when the mobile phone is accessed, and the sleep mode is entered when the mobile phone is not accessed.

[0061] In an example, the current mode is the sleep mode, and the access to the network is detected at a certain moment. At this moment, step 301 is entered, the access to the network is detected according to the sharing priority of each type of the network, and the access to the network is shared.

[0062] Therefore, the embodiment provides a network sharing method, after detecting that a terminal device is accessed, a network with a high sharing priority is firstly accessed and detected as a target network according to the sharing priorities of various types of networks, and after detecting that the network with the high sharing priority is accessed, whether a network with a low sharing priority is accessed is no longer detected, so that the working efficiency is improved, and meaningless work is avoided, after network sharing and entering a charging mode and a sleep mode, a network access condition is detected in real time, when the network access changes, an access network for network sharing is determined again according to the type of the access network and the sharing priority, and the network sharing mode is updated, so that the access network for network sharing is the most suitable access network, the network sharing quality is improved, when the network access is not detected, only the terminal device is charged or enters the sleep mode, the working mode is automatically switched, the high-quality network sharing is realized, and the energy consumption is reduced.

[0063] A third embodiment of the application relates to a network sharing method applied to an electronic device, and the electronic device is used for charging a terminal device, and the terminal device can be a mobile phone, a ufi product, a tablet computer and the like, which are not described here. In the embodiment, the charging device applied to the mobile phone is taken as an example for description, and the method for network sharing is that the access network is detected according to the priority of various types of access networks, the access network for network sharing is determined, and the network sharing is performed, and when the terminal device is detected to be accessed, the terminal device is backed up according to a data backup permission, then the type of the access network is detected in real time, and when the access network changes, the access network for network sharing and the network sharing mode are updated according to the sharing priority.

[0064] The embodiment is an improvement on the second embodiment, and the difference is that the terminal device accessed can be automatically backed up according to the data backup permission.

[0065] The network sharing method of the embodiment is specifically shown in a flowchart as Figure 4 The network sharing method of the embodiment is specifically shown in a flowchart as

[0066] In step 401, whether the terminal device is accessed is judged, if the terminal device is accessed, the process goes to step 403, and if the terminal device is not accessed, the process goes to step 402.

[0067] In step 402, the sleep mode is entered.

[0068] In step 403, whether the wired network is accessed is judged, if the wired network is detected to be accessed, the process goes to step 405, and if the wired network is not detected to be accessed, the process goes to step 404.

[0069] Step 404, detecting whether the wireless network is accessed, if the wireless network is not detected to be accessed, entering step 406, if the wireless network is detected to be accessed, entering step 405.

[0070] Step 405, sharing the network with the accessed network and charging the terminal device.

[0071] Step 406, entering the charging mode.

[0072] The steps 401 to 406 of the embodiment are similar to the steps 301 to 306 of the second embodiment, which will not be described here again, and the specific differences will be described below.

[0073] Step 407, judging whether there is data backup authority, if there is data backup authority, entering step 408, if there is no data backup authority, entering step 409.

[0074] Specifically, the charging device queries the information of the terminal device, detects whether the data in the accessed terminal device allows data backup, when the data in the terminal device allows data backup, backs up the data in the terminal device, and when the data in the terminal device does not allow data backup, does not backup the data in the terminal device.

[0075] Step 409, backing up the data in the terminal device.

[0076] Specifically, the charging device queries the data backup mark information in the terminal device, and determines whether to backup the data in the terminal device again according to whether the data backup mark information is completely matched.

[0077] In one example, when the data in the mobile phone allows data backup, querying whether the mobile phone contains data backup mark information, judging whether the mobile phone is backed up for the first time according to whether the mobile phone contains data backup mark information, when the data backup mark information is not detected, determining that the mobile phone is backed up for the first time, directly backing up the data in the mobile phone in the charging device, generating data backup mark information, storing the data backup mark information in a specific address together with the backed up data, and synchronizing the data backup mark information to the mobile phone; when the mobile phone is queried to contain data backup mark information, comparing the data backup mark information in the mobile phone with the data backup mark information stored in the charging device, when the two cannot be completely matched, backing up the data information in the mobile phone again, generating new data backup mark information, and then synchronizing the new data backup mark information to the mobile phone. The structure schematic diagram of an electronic device to which the network sharing method of the embodiment is applied is shown in Figure 5 .

[0078] The data backup mark information in the mobile phone changes according to the change of the data information in the mobile phone, and the mark information decreases when the data decreases and increases when the data increases, so that the change of the data causes the data mark information in the mobile phone to be inconsistent with the data mark information stored in the charging device, and the stored backup data is increased or decreased according to the mark information in the mobile phone when the inconsistency is detected.

[0079] In step 409 of the embodiment, whether the access network changes is detected in real time, which is similar to step 307 in the second embodiment and will not be described here again.

[0080] Therefore, the embodiment provides a network sharing method, detects the access network after the terminal device accesses, detects the access network according to the sharing priority of each type of network, detects whether each type of network accesses, determines the access network for network sharing and performs network sharing, queries the data state of the terminal device, and performs data backup on the terminal device when the data of the terminal device allows data backup, ensures the data security of the terminal device, avoids the loss caused by data loss, and determines whether to perform data backup according to the backup permission, and also protects the privacy of the user.

[0081] Those skilled in the art can understand that the step division of the above various methods is only for clear description, and can be combined into one step or some steps can be split and decomposed into multiple steps, as long as the same logical relationship is included, and all are within the protection scope of the patent; adding irrelevant modifications or introducing irrelevant designs in the algorithm or process, but not changing the core design of the algorithm and process are within the protection scope of the patent.

[0082] The fourth embodiment of the application relates to a network sharing device, as shown in the formula: Figure 6 As shown in the formula, comprising:

[0083] The detection module 601 is used for detecting the access network and determining the network type of the access network. In the embodiment, the network type is not limited, and can be a wired network or a wireless network. The wireless network can be a wireless mobile network of the terminal device or a wireless network card or the like networkable device inserted, which will not be listed one by one.

[0084] Specifically, the detection module detects the network that has been accessed. In the detection of whether the wired network has been accessed, it is first detected whether a network cable has been inserted. When the network cable has been inserted, it is detected whether the wired network can be normally connected. When the wired network can be normally connected, it is determined that the wired network has been accessed. In the detection of whether the wireless network has been accessed, it is first detected whether a terminal device or a wireless network card or other networkable device has been inserted. When the networkable device has been inserted, it is detected whether the wireless network of the networkable device can be normally connected. When the wireless network can be normally connected, it is determined that the wireless network has been accessed. Through the detection of whether the wired network and the wireless network have been accessed, the number and the type of the network that has been accessed to the charging device are determined.

[0085] The control module 602 is configured to determine the sharing priority of the accessed network according to the type of the accessed network, determine the accessed network that performs network sharing according to the sharing priority, and perform network sharing on the accessed network that performs network sharing.

[0086] Specifically, after the accessed network is detected, the control module determines the type of the accessed network, confirms which type of network has been accessed, determines the sharing priority of each accessed network according to the type of the network, determines the accessed network that performs network sharing according to the order of the sharing priority, and performs network sharing on the accessed network that performs network sharing.

[0087] In one example, after the accessed network is shared, the detection module 601 further performs real-time detection on the accessed network. When the accessed network is changed, the detection result is transmitted to the control module 602, and the control module re-determines the accessed network that performs network sharing.

[0088] In one example, when the control module 602 performs sharing on the accessed wired network, the configuration information of the terminal device is adjusted by enabling the accessed terminal device, the wired network is taken as an input, the routing function of the terminal device is borrowed, and the wired network is shared to other devices that need to be accessed through the terminal device.

[0089] In one example, the sharing priority stored in the control module 602 is that the wired network is higher than the wireless mobile network or the sharing priority of each type of network is determined according to the user's setting.

[0090] In one example, the detection module 601 determines the target network of the wired detection according to the sharing priority of each type of network, detects whether the target network has been accessed, stops the detection of the accessed network after it is detected that the target network has been accessed, and determines a new target network according to the sharing priority of each type of network if the target network has not been accessed.

[0091] In one example, the control module 602 determines the access network for network sharing, and before that, the terminal device exchanges information with the device in the Internet, and judges whether the network is normally accessed according to the received response, if the response of the device in the Internet is received, it is determined that the target network is accessed, if the response is not received, it is determined that the target network is not accessed.

[0092] In one example, the detection module 601 detects the access network, and after obtaining the network type of the access network, further comprises: detecting whether the terminal device is accessed, and when the terminal device is detected to be accessed, detecting the data state of the terminal device, and the control module 602 judges whether to backup the data of the terminal device according to the detection result of the data state; wherein the data state includes device information of the terminal device and data backup permission of the terminal device.

[0093] In one example, the control module 602 controls the device to backup the data of the terminal device, and queries the device information of the terminal device, the device information of the terminal device includes one or any combination of the following information: memory data size, last backup time, and tag information generated according to the backup data after each backup is completed.

[0094] It can be found that the present embodiment is a device embodiment corresponding to the first embodiment, and the present embodiment can be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in the present embodiment. In order to reduce repetition, they will not be described here. Correspondingly, the related technical details mentioned in the present embodiment can also be applied in the first embodiment.

[0095] It is worth mentioning that each module involved in the present embodiment is a logical module. In actual application, a logical unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of the present application, units not closely related to solving the technical problems proposed in the present application are not introduced in the present embodiment, but this does not mean that there are no other units in the present embodiment.

[0096] The fifth embodiment of the present application relates to an electronic device for charging a terminal device, as shown in Figure 7 The fifth embodiment of the present application relates to an electronic device for charging a terminal device, as shown in

[0097] The memory and the processor are connected by a bus, which can include any number of interconnecting buses and bridges, and the bus connects the various circuits of the one or more processors and the memory together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art, and therefore, will not be described any further. A bus interface provides an interface between the bus and a transceiver. The transceiver, which can be one component or a plurality of components, such as a plurality of receivers and transmitters, provides a communication path for communicating with various other devices over a transmission medium. Processed data is transmitted over a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor.

[0098] The processor is responsible for managing the bus and general processing, and can also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The memory can be used for storing data used by the processor while executing operations.

[0099] The sixth embodiment of the present application relates to a computer readable storage medium storing a computer program. The computer program is executed by a processor to implement the method embodiments described above.

[0100] That is, those skilled in the art can understand that all or part of the steps of the methods in the above embodiments can be completed by a program instructing relevant hardware, and the program is stored in a storage medium, including a plurality of instructions for causing an apparatus (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of the present application. The aforementioned storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0101] Those skilled in the art can understand that the above embodiments are specific embodiments for implementing the present application, and in actual applications, various changes can be made in form and details without departing from the spirit and scope of the present application.

Claims

1. A network sharing method, characterized by, The application is applied to an electronic device for charging a terminal device, and the method comprises: detecting an access network to obtain a network type of the access network; wherein the network type comprises a wired network and a wireless mobile network of the terminal device, and different network types correspond to different sharing priorities; sharing the access network for use by other devices requiring access; wherein the shared access network is determined according to the sharing priority of the network type; real-time detecting the access network, and re-determining the access network for network sharing when the access network changes.

2. The network sharing method of claim 1, wherein, The method further comprises: when the access network for network sharing is the wired network, sharing the wired network through the terminal device accessing the wired network.

3. The network sharing method of claim 1, wherein, The method further comprises: the sharing priority of the wired network is higher than the sharing priority of the wireless mobile network; or, determining the sharing priority of each type of network according to user settings.

4. The network sharing method of claim 1, wherein, The method further comprises: determining a target network for priority detection according to the sharing priority of the network type; detecting whether the target network has been accessed; if the target network has been accessed, stopping the detection of the access network; if the target network has not been accessed, determining a next target network according to the sharing priority of the network type, and detecting whether the next target network has been accessed.

5. The network sharing method of claim 4, wherein, The method further comprises: interacting with a device in the Internet through the access network to receive a response from the device in the Internet, and determining that the target network has been accessed if the response is received, or determining that the target network has not been accessed if the response is not received.

6. The network sharing method of claim 1, wherein, After the detection of the access network to obtain the network type of the access network, the method further comprises: detecting whether the terminal device has been accessed, detecting a data state of the terminal device when the terminal device has been accessed, and determining whether to back up data of the terminal device according to the detection result of the data state; wherein the data state comprises device information of the terminal device and a data backup permission of the terminal device.

7. The network sharing method of claim 6, wherein, The device information of the terminal device comprises one or any combination of the following information: memory data size, last backup time, and tag information generated according to the backed up data after each backup is completed.

8. A network sharing apparatus, applied to charging a terminal device, characterized in that, The method further comprises: a detection module for detecting an access network to obtain a network type of the access network; wherein the network type comprises a wired network and a wireless mobile network of the terminal device, and different network types correspond to different sharing priorities; a control module for sharing the access network for use by other devices requiring access; wherein the shared access network is determined according to the sharing priority of the network type; real-time detecting the access network, and re-determining the access network for network sharing when the access network changes.

9. An electronic device for charging a terminal device, characterized by The electronic device further comprises: at least one processor; and a memory in communication connection with the at least one processor; wherein the memory stores instructions executable by the at least one processor. The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the network sharing method of any one of claims 1 to 7.

10. A computer readable storage medium storing a computer program, characterized in that, The computer program, when executed by a processor, implements the network sharing method of any one of claims 1 to 7.

Citation Information

Patent Citations

  • Network sharing storage device

    CN203324964U