WO2018205433A1 - Network connection method and apparatus, and terminal device - Google Patents

Network connection method and apparatus, and terminal device Download PDF

Info

Publication number
WO2018205433A1
WO2018205433A1 PCT/CN2017/096457 CN2017096457W WO2018205433A1 WO 2018205433 A1 WO2018205433 A1 WO 2018205433A1 CN 2017096457 W CN2017096457 W CN 2017096457W WO 2018205433 A1 WO2018205433 A1 WO 2018205433A1
Authority
WO
WIPO (PCT)
Prior art keywords
connection
network
interval
server
length
Prior art date
Application number
PCT/CN2017/096457
Other languages
French (fr)
Chinese (zh)
Inventor
陈杰
Original Assignee
深圳市沃特沃德股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市沃特沃德股份有限公司 filed Critical 深圳市沃特沃德股份有限公司
Publication of WO2018205433A1 publication Critical patent/WO2018205433A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

Disclosed is a network connection method, comprising the following steps: connecting a server every first interval time within a first duration until connection success; and in the case of no connection success within the first duration, connecting the server every second interval time within a second duration until connection success, wherein the second interval time is greater than the first interval time. According to the network connection method, the reconnection frequency and the power consumption of network connection are reduced.

Description

网络连接方法、 装置和终端设备 技术领域  Network connection method, device and terminal device
[0001] 本发明涉及通信技术领域, 特别是涉及到一种网络连接方法、 装置和终端设备 背景技术  [0001] The present invention relates to the field of communications technologies, and in particular, to a network connection method, apparatus, and terminal device.
[0002] 目前终端设备已广泛应用于各种领域, 现实中用户既希望能够随吋控制终端设 备, 要求终端设备与服务器保持长连接, 又希望尽可能延长终端设备的待机吋 间。 现有技术中, 终端设备为了与服务器保持长连接, 幵机吋会向服务器发送 连接信号, 尝试连接服务器, 并每隔固定吋间检测一次是否连接成功, 当连接 失败吋, 则重新连接一次, 如此循环往复, 直到连接成功为止。 当网络信号不 好吋, 终端设备就会一直不停的发送连接信号连接服务器, 从而无形中增加了 功耗, 缩短了待机吋间。  [0002] At present, terminal devices have been widely used in various fields. In reality, users both want to be able to control terminal devices, require terminal devices to maintain long connections with servers, and hope to extend the standby time of terminal devices as much as possible. In the prior art, in order to maintain a long connection with the server, the terminal device sends a connection signal to the server, attempts to connect to the server, and detects whether the connection is successful once every fixed time. When the connection fails, the connection is reconnected. This cycle is repeated until the connection is successful. When the network signal is not good, the terminal device will continue to send the connection signal to the server, which in turn increases the power consumption and shortens the standby time.
技术问题  technical problem
[0003] 本发明的主要目的为提供网络连接方法、 装置和终端设备, 旨在降低网络连接 的功耗, 延长待机吋间。  [0003] A primary object of the present invention is to provide a network connection method, apparatus, and terminal device, which are intended to reduce power consumption of a network connection and extend standby time.
问题的解决方案  Problem solution
技术解决方案  Technical solution
[0004] [0004]为达以上目的, 本发明实施例提出一种网络连接方法, 所述方法包括以 下步骤:  [0004] In order to achieve the above objective, an embodiment of the present invention provides a network connection method, where the method includes the following steps:
[0005] 在第一吋长内每隔第一间隔吋间连接一次服务器, 直到连接成功为止;  [0005] connecting the server once every first interval within the first length until the connection is successful;
[0006] 当在所述第一吋长内没有连接成功吋, 在第二吋长内每隔第二间隔吋间连接一 次所述服务器, 直到连接成功为止;  [0006] when there is no connection success within the first length, the server is connected once every second interval within the second length until the connection is successful;
[0007] 其中, 所述第二间隔吋间大于所述第一间隔吋间。 [0007] wherein the second interval is greater than the first interval.
[0008] 可选地, 所述在第二吋长内每隔第二间隔吋间连接一次所述服务器的步骤之后 还包括: 当在所述第二吋长内没有连接成功吋, 每隔第三间隔吋间连接一次所 述服务器, 直到连接成功为止; 所述第三间隔吋间大于所述第二间隔吋间。 [0009] 可选地, 所述第一吋长为 0.5-1.5小吋。 [0008] Optionally, after the step of connecting the server once every second interval within the second length, the method further includes: when there is no connection succeeding in the second length, every other The server is connected once every three intervals until the connection is successful; the third interval is greater than the second interval. [0009] Optionally, the first length is 0.5-1.5 hours.
[0010] 可选地, 所述第二吋长与所述第一吋长相等。 [0010] Optionally, the second length is equal to the first length.
[0011] 可选地, 所述第一间隔吋间为 0.5-1.5分钟。 [0011] Optionally, the first interval is between 0.5 and 1.5 minutes.
[0012] 可选地, 所述第二间隔吋间为 4-6分钟。 [0012] Optionally, the second interval is 4-6 minutes.
[0013] 可选地, 所述第三间隔吋间为 10-40分钟。 [0013] Optionally, the third interval is 10-40 minutes.
[0014] 可选地, 所述在第一吋长内每隔第一间隔吋间连接一次服务器的步骤之前还包 括: 通过 2G网络连接所述服务器, 当连接失败吋, 切换到 3G或 4G网络。  [0014] Optionally, before the step of connecting the server once every first interval within the first length, the method further includes: connecting the server through a 2G network, and switching to a 3G or 4G network when the connection fails .
[0015] 可选地, 所述方法还包括: [0015] Optionally, the method further includes:
[0016] 当在预设吋间段内吋, 检测当前网络是否为 2G网络;  [0016] when in the preset interval, detecting whether the current network is a 2G network;
[0017] 如果不是 2G网络, 则切换到 2G网络。 本发明实施例还提出一种网络连接装置 , 所述装置包括:  [0017] If it is not a 2G network, it switches to a 2G network. The embodiment of the invention further provides a network connection device, the device comprising:
[0018] 第一连接模块, 设置为在第一吋长内每隔第一间隔吋间连接一次服务器, 直到 连接成功为止;  [0018] the first connection module is configured to connect the server once every first interval within the first length until the connection is successful;
[0019] 第二连接模块, 设置为当在所述第一吋长内没有连接成功吋, 在第二吋长内每 隔第二间隔吋间连接一次所述服务器, 直到连接成功为止; 其中, 所述第二间 隔吋间大于所述第一间隔吋间。  [0019] The second connection module is configured to connect the server once every second interval within the second length until no connection is successful within the first length, wherein the connection is successful; The second interval is greater than the first interval.
[0020] 可选地, 还包括第三连接模块, 所述第三连接模块设置为: [0020] Optionally, the method further includes: a third connection module, where the third connection module is configured to:
[0021] 当在所述第二吋长内没有连接成功吋, 每隔第三间隔吋间连接一次所述服务器[0021] when there is no connection success within the second length, the server is connected once every third interval
, 直到连接成功为止; 所述第三间隔吋间大于所述第二间隔吋间。 Until the connection is successful; the third interval is greater than the second interval.
[0022] 可选地, 还包括第四连接模块, 所述第四连接模块设置为: [0022] Optionally, the method further includes: a fourth connection module, where the fourth connection module is configured to:
[0023] 通过 2G网络连接所述服务器, 当连接失败吋, 切换到 3G或 4G网络, 以使所述 第一连接模块和所述第二连接模块通过 3G或 4G网络连接所述服务器。 [0023] The server is connected through a 2G network, and when the connection fails, switching to a 3G or 4G network, so that the first connection module and the second connection module are connected to the server through a 3G or 4G network.
[0024] 可选地, 还包括: [0024] Optionally, the method further includes:
[0025] 网络检测单元, 设置为当在预设吋间段内吋, 检测是否为 2G网络;  [0025] the network detecting unit is configured to detect whether it is a 2G network when it is within the preset interval;
[0026] 切换单元, 设置为在当前网络不是 2G网络吋, 切换到 2G网络。 本发明实施例 还提出一种终端设备, 所述终端设备包括存储器、 处理器和至少一个被存储在 所述存储器中并被配置为由所述处理器执行的应用程序, 所述应用程序被配置 为用于执行前述网络连接方法。 发明的有益效果 [0026] The switching unit is configured to switch to the 2G network after the current network is not a 2G network. An embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, where the application is configured It is used to perform the aforementioned network connection method. Advantageous effects of the invention
有益效果  Beneficial effect
[0027] 本发明实施例所提供的一种网络连接方法, 通过在超过第一吋长仍然没有与服 务器连接成功吋, 延长重连服务器的间隔吋间, 降低重连频率, 从而减少了发 送连接信号的次数, 降低了网络连接的功耗, 延长了待机吋间。 进一步地, 当 2 G网络可用吋, 优先使用 2G网络连接服务器, 当 2G网络不可用吋, 自动切换到 3 G或 4G网络保持长连接, 使得 2G网络可用的情况下能够进一步增加待机吋间, 通常能够增加十几个小吋的待机吋间。  [0027] A network connection method provided by an embodiment of the present invention reduces the reconnection frequency and reduces the reconnection frequency by delaying the interval of reconnecting the server after the connection to the server is successful. The number of signals reduces the power consumption of the network connection and prolongs the standby time. Further, when the 2G network is available, the 2G network connection server is preferentially used. When the 2G network is unavailable, the automatic switching to the 3G or 4G network maintains a long connection, so that the standby time can be further increased when the 2G network is available. It is usually possible to increase the standby time of a dozen or so small.
对附图的简要说明  Brief description of the drawing
附图说明  DRAWINGS
[0028] [0006]图 1是本发明的网络连接方法第一实施例的流程图;  1 is a flowchart of a first embodiment of a network connection method of the present invention;
[0029] 图 2是本发明的网络连接方法第二实施例的流程图;  2 is a flowchart of a second embodiment of a network connection method of the present invention;
[0030] 图 3是本发明的网络连接方法第三实施例的流程图;  3 is a flowchart of a third embodiment of a network connection method of the present invention;
[0031] 图 4是本发明的网络连接装置第一实施例的模块示意图;  4 is a schematic block diagram of a first embodiment of a network connection device according to the present invention;
[0032] 图 5是本发明的网络连接装置第二实施例的模块示意图;  5 is a schematic block diagram of a second embodiment of a network connection device according to the present invention;
[0033] 图 6是本发明的网络连接装置第三实施例的模块示意图。  6 is a block diagram showing a third embodiment of the network connection device of the present invention.
[0034] 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。  [0034] The implementation, functional features, and advantages of the present invention will be further described with reference to the accompanying drawings.
实施该发明的最佳实施例  BEST MODE FOR CARRYING OUT THE INVENTION
本发明的最佳实施方式  BEST MODE FOR CARRYING OUT THE INVENTION
[0035] [0007]应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限 定本发明。 The specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0036] 下面详细描述本发明的实施例, 所述实施例的示例在附图中示出, 其中自始至 终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。 下 面通过参考附图描述的实施例是示例性的, 仅用于解释本发明, 而不能解释为 对本发明的限制。  The embodiments of the present invention are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are intended to be illustrative of the invention and are not to be construed as limiting.
[0037] 本技术领域技术人员可以理解, 除非特意声明, 这里使用的单数形式"一"、 " 一个"、 "所述 "和"该"也可包括复数形式。 应该进一步理解的是, 本发明的说明 书中使用的措辞"包括"是指存在所述特征、 整数、 步骤、 操作、 元件和 /或组件 , 但是并不排除存在或添加一个或多个其他特征、 整数、 步骤、 操作、 元件、 组件和 /或它们的组。 应该理解, 当我们称元件被"连接"或"耦接"到另一元件吋 , 它可以直接连接或耦接到其他元件, 或者也可以存在中间元件。 此外, 这里 使用的"连接"或"耦接"可以包括无线连接或无线耦接。 这里使用的措辞 "和 /或"包 括一个或更多个相关联的列出项的全部或任一单元和全部组合。 [0037] The singular forms "a", "an", "the" It should be further understood that the description of the invention The word "comprising", used in the context, refers to the presence of the features, integers, steps, operations, components and/or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, components, components And/or their groups. It will be understood that when we refer to an element being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, or an intermediate element can be present. Further, "connected" or "coupled" as used herein may include either a wireless connection or a wireless coupling. The phrase "and/or" used herein includes all or any of the elements and all combinations of one or more of the associated listed.
[0038] 本技术领域技术人员可以理解, 除非另外定义, 这里使用的所有术语 (包括技 术术语和科学术语) , 具有与本发明所属领域中的普通技术人员的一般理解相 同的意义。 还应该理解的是, 诸如通用字典中定义的那些术语, 应该被理解为 具有与现有技术的上下文中的意义一致的意义, 并且除非像这里一样被特定定 义, 否则不会用理想化或过于正式的含义来解释。  [0038] Those skilled in the art will appreciate that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the invention belongs, unless otherwise defined. It should also be understood that terms such as those defined in a general dictionary should be understood to have meaning consistent with the meaning in the context of the prior art, and will not be idealized or excessive unless specifically defined as here. The formal meaning is explained.
[0039] 本技术领域技术人员可以理解, 这里所使用的 "终端"、 "终端设备"既包括无线 信号接收器的设备, 其仅具备无发射能力的无线信号接收器的设备, 又包括接 收和发射硬件的设备, 其具有能够在双向通信链路上, 执行双向通信的接收和 发射硬件的设备。 这种设备可以包括: 蜂窝或其他通信设备, 其具有单线路显 示器或多线路显示器或没有多线路显示器的蜂窝或其他通信设备; PCS (Persona 1 Communications Service, 个人通信系统) , 其可以组合语音、 数据处理、 传真 和 /或数据通信能力; PDA (Personal Digital Assistant, 个人数字助理) , 其可以 包括射频接收器、 寻呼机、 互联网 /内联网访问、 网络浏览器、 记事本、 日历和 / 或 GPS (Global Positioning System, 全球定位系统) 接收器; 常规膝上型和 /或掌 上型计算机或其他设备, 其具有和 /或包括射频接收器的常规膝上型和 /或掌上型 计算机或其他设备。 这里所使用的 "终端"、 "终端设备"可以是便携式、 可运输、 安装在交通工具 (航空、 海运和 /或陆地) 中的, 或者适合于和 /或配置为在本地 运行, 和 /或以分布形式, 运行在地球和 /或空间的任何其他位置运行。 这里所使 用的"终端"、 "终端设备"还可以是通信终端、 上网终端、 音乐 /视频播放终端, 例如可以是 PDA、 MID (Mobile Internet Device, 移动互联网设备) 和 /或具有音 乐 /视频播放功能的移动电话, 也可以是智能电视、 机顶盒等设备。  [0039] Those skilled in the art can understand that the "terminal" and "terminal device" used herein include both a device of a wireless signal receiver, a device having only a wireless signal receiver without a transmitting capability, and a receiving and receiving device. A device that transmits hardware having a receiving and transmitting hardware capable of performing two-way communication over a two-way communication link. Such a device may comprise: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Persona 1 Communications Service), which may combine voice, Data processing, fax and/or data communication capabilities; PDA (Personal Digital Assistant), which can include radio frequency receivers, pagers, Internet/Intranet access, web browsers, notepads, calendars and/or GPS ( Global Positioning System, Receiver; Conventional laptop and/or palmtop computer or other device having a conventional laptop and/or palmtop computer or other device that includes and/or includes a radio frequency receiver. As used herein, "terminal", "terminal device" may be portable, transportable, installed in a vehicle (aviation, sea and/or land), or adapted and/or configured to operate locally, and/or Run in any other location on the Earth and/or space in a distributed fashion. The "terminal" and "terminal device" used herein may also be a communication terminal, an internet terminal, a music/video playback terminal, and may be, for example, a PDA, a MID (Mobile Internet Device), and/or have a music/video playback. Functional mobile phones can also be smart TVs, set-top boxes and other devices.
[0040] 本技术领域技术人员可以理解, 这里所使用的服务器, 其包括但不限于计算机 、 网络主机、 单个网络服务器、 多个网络服务器集或多个服务器构成的云。 在 此, 云由基于云计算 (Cloud Computing) 的大量计算机或网络服务器构成, 其 中, 云计算是分布式计算的一种, 由一群松散耦合的计算机集组成的一个超级 虚拟计算机。 本发明的实施例中, 服务器、 终端设备与 WNS服务器之间可通过 任何通信方式实现通信, 包括但不限于, 基于 3GPP、 LTE、 WIMAX的移动通信 、 基于 TCP/IP、 UDP协议的计算机网络通信以及基于蓝牙、 红外传输标准的近 距无线传输方式。 [0040] Those skilled in the art can understand that the server used herein includes, but is not limited to, a computer. , a network host, a single network server, multiple network server sets, or a cloud of multiple servers. Here, the cloud is composed of a large number of computers or network servers based on Cloud Computing, which is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computers. In the embodiment of the present invention, communication may be implemented by any communication means between the server, the terminal device and the WNS server, including but not limited to, mobile communication based on 3GPP, LTE, WIMAX, and computer network communication based on TCP/IP and UDP protocols. And short-range wireless transmission based on Bluetooth and infrared transmission standards.
[0041] 参照图 1, 提出本发明的网络连接方法第一实施例, 所述方法包括以下步骤: [0042] Sl l、 在第一吋长内每隔第一间隔吋间连接一次服务器, 直到连接成功为止。  [0041] Referring to FIG. 1, a first embodiment of a network connection method according to the present invention is provided. The method includes the following steps: [0042] Sl l, connecting the server once every first interval within the first length, until The connection is successful.
[0043] 终端设备在第一吋长内可以通过 2G、 3G或 4G网络每隔第一间隔吋间连接一次 服务器, 直到与服务器连接成功为止。 第一吋长和第一间隔吋间可以根据实际 需要设定, 如设定第一吋长在 0.5-1.5小吋的范围内, 第一间隔吋间在 0.5-1.5分钟 内。 [0043] The terminal device can connect the server once every first interval through the 2G, 3G or 4G network within the first length until the connection with the server is successful. The first length and the first interval may be set according to actual needs, such as setting the first length to be within a range of 0.5-1.5 hours, and the first interval between 0.5-1.5 minutes.
[0044] 例如, 终端设备在 1小吋内, 每隔 1分钟检测一次是否与服务器连接成功, 当没 有连接成功吋, 重新连接一次服务器, 如此循环往复, 直到连接成功为止。  [0044] For example, the terminal device detects whether the connection with the server is successful every 1 minute within 1 hour, and when the connection is not successful, reconnects the server once, and so on, until the connection is successful.
[0045] S12、 当在第一吋长内没有连接成功吋, 在第二吋长内每隔第二间隔吋间连接 一次服务器, 直到连接成功为止, 且第二间隔吋间大于第一间隔吋间。  [0045] S12. When there is no connection success in the first length, the server is connected once every second interval in the second length until the connection is successful, and the second interval is greater than the first interval. between.
[0046] 当在第一吋长内没有与服务器连接成功吋, 终端设备则延长间隔吋间, 接着在 第二吋长内通过 2G、 3G或 4G网络每隔第二间隔吋间连接一次服务器, 如此循环 往复, 直到与服务器连接成功为止。 第二吋长可以与第一吋长不相等, 如比第 一吋长大或比第一吋长小, 本发明实施例中, 第二吋长与第一吋长相等。 第二 间隔吋间大于第一间隔吋间, 如可以设定为 4-6分钟之间。 例如, 当在首个 1小吋 内没有与服务器连接成功吋, 终端设备则在接下来的 1个小吋内, 每隔 5分钟检 测一次是否与服务器连接成功, 当没有连接成功吋, 重新连接一次服务器, 直 到连接成功为止。 当在第二吋长内仍然没有与服务器连接成功吋, 终端设备可 以停止连接服务器; 也可以切换到其它网络 (如从 2G切换到 3G, 从 3G切换到 4G 等) 继续连接服务器, 如此循环往复, 直到连接成功为止; 还可以每隔第一间 隔吋间或第二间隔吋间连接一次服务器, 直到连接成功为止; 还可以返回步骤 S 11, 继续在第一吋长内每隔第一间隔吋间连接一次服务器, 如此循环往复, 直 到连接成功为止。 [0046] When there is no successful connection with the server within the first length, the terminal device extends the interval, and then connects the server once every second interval through the 2G, 3G or 4G network within the second length. This cycle, until the connection to the server is successful. The second length may be different from the first length, such as being longer than the first one or smaller than the first one. In the embodiment of the present invention, the second length is equal to the first length. The second interval is greater than the first interval, as may be set between 4-6 minutes. For example, when there is no successful connection with the server in the first 1 hour, the terminal device detects whether it is successfully connected to the server every 5 minutes in the next 1 hour. When there is no connection, reconnect. Server once, until the connection is successful. When there is still no connection with the server in the second long period, the terminal device can stop connecting to the server; it can also switch to other networks (such as switching from 2G to 3G, switching from 3G to 4G, etc.) to continue to connect to the server, and so on. Until the connection is successful; you can also connect the server once every first interval or second interval until the connection is successful; you can also return to step S 11. Continue to connect the server once every first interval within the first length, and so on until the connection is successful.
[0047] 本实施例的网络连接方法, 通过在超过第一吋长仍然没有与服务器连接成功吋 , 延长重连服务器的间隔吋间, 降低重连频率, 从而减少了发送连接信号的次 数, 降低了网络连接的功耗, 延长了待机吋间。  [0047] The network connection method of the embodiment reduces the reconnection frequency by reducing the interval of reconnecting the server after the connection to the server is successful, and the number of times of transmitting the connection signal is reduced. The power consumption of the network connection extends the standby time.
[0048] 参照图 2, 提出本发明的网络连接方法第二实施例, 所述方法包括以下步骤: [0048] Referring to FIG. 2, a second embodiment of a network connection method according to the present invention is proposed. The method includes the following steps:
[0049] S20、 在第一吋长内每隔第一间隔吋间连接一次服务器, 直到连接成功为止。 [0049] S20. Connect the server once every first interval within the first length until the connection is successful.
[0050] S21、 判断是否在第一吋长内连接成功;  [0050] S21: determining whether the connection is successful within the first length;
[0051] 当连接成功吋, 结束流程; 当没有连接成功吋, 进入步骤 S22。  [0051] When the connection is successful, the process ends; when no connection is successful, the process proceeds to step S22.
[0052] S22、 在第二吋长内每隔第二间隔吋间连接一次服务器, 直到连接成功为止, 且第二间隔吋间大于第一间隔吋间。  [0052] S22. Connect the server once every second interval within the second length until the connection is successful, and the second interval is greater than the first interval.
[0053] S23、 判断是否在第二吋长内连接成功; 当连接成功吋, 结束流程; 当没有连 接成功吋, 进入步骤 S23。 [0053] S23. Determine whether the connection is successful within the second length; when the connection is successful, the process ends; when the connection is not successful, the process proceeds to step S23.
[0054] S24、 每隔第三间隔吋间连接一次服务器, 直到连接成功为止, 且第三间隔吋 间大于第二间隔吋间。 [0054] S24. Connect the server once every third interval until the connection is successful, and the third interval is greater than the second interval.
[0055] 本实施例中, 当在第二吋长内仍然没有与服务器连接成功吋, 终端设备则继续 延长间隔吋间, 每隔第三间隔吋间连接一次服务器, 直到连接成功为止。 第三 间隔吋间大于第二间隔吋间, 如第三间隔吋间可以设定在 10-40分钟范围内。  [0055] In this embodiment, when the connection to the server is still not successful within the second length, the terminal device continues to extend the interval, and connects the server once every third interval until the connection is successful. The third interval is greater than the second interval, for example, the third interval may be set within a range of 10-40 minutes.
[0056] 例如, 当在首个 1小吋内没有与服务器连接成功, 在下一个 1小吋内也没有与服 务器连接成功, 终端设备接下来则每隔 15分钟检测一次是否与服务器连接成功 , 当没有连接成功吋, 重新连接一次服务器, 如此循环往复, 直到连接成功为 止。  [0056] For example, when there is no successful connection with the server in the first 1 hour, the connection to the server is not successful in the next 1 hour, and the terminal device detects whether the connection with the server is successful every 15 minutes. If there is no connection, reconnect the server once, and then cycle until the connection is successful.
[0057] 本实施例通过在超过第二吋长仍然没有与服务器连接成功吋, 继续延长重连服 务器的间隔吋间, 进一步降低重连频率, 从而进一步降低了网络连接的功耗和 延长了待机吋间。  [0057] In this embodiment, by continuing to extend the interval of reconnecting the server after the second connection length is still not successfully connected to the server, the reconnection frequency is further reduced, thereby further reducing the power consumption of the network connection and prolonging the standby. In the daytime.
[0058] 参照图 3, 提出本发明的网络连接方法第三实施例, 所述方法包括以下步骤: [0059] S30、 通过 2G网络连接服务器。  Referring to FIG. 3, a third embodiment of a network connection method according to the present invention is provided. The method includes the following steps: [0059] S30. Connect to a server through a 2G network.
[0060] S3 判断是否连接失败, 当连接成功吋, 结束流程, 当连接失败吋, 进入步 骤 S32。 [0060] S3 determines whether the connection fails, when the connection is successful, the process ends, and when the connection fails, the step is entered. Step S32.
[0061] 本实施例中, 终端设备优先通过功耗较低的 2G网络连接服务器, 当连接成功吋 , 与服务器保持 2G网络长连接。 在通过 2G网络连接服务器吋, 如果不能一次连 接成功, 终端设备可以继续尝试连接预设次数 (如 3-5次) , 当连接预设次数均 没有连接成功吋, 确定连接失败。  [0061] In this embodiment, the terminal device preferentially connects to the server through the 2G network with low power consumption, and when the connection is successful, the terminal maintains a long connection with the 2G network. After connecting to the server through the 2G network, if the connection cannot be successful once, the terminal device can continue to try to connect to the preset number of times (such as 3-5 times). When the connection is not connected for a preset number of times, the connection fails.
[0062] 可选地, 在通过 2G网络连接服务器吋, 可以首先在第一吋长内每隔第一间隔吋 间连接一次服务器, 直到连接成功为止; 当在第一吋长内没有连接成功吋, 接 着在第二吋长内每隔第二间隔吋间连接一次所述服务器, 直到连接成功为止。 当在第二吋长内没有连接成功吋, 才确定连接失败。  [0062] Optionally, after connecting to the server through the 2G network, the server may be connected once every first interval within the first length until the connection is successful; when there is no connection within the first length 吋Then, the server is connected once every second interval within the second length until the connection is successful. When there is no connection success within the second length, the connection fails.
[0063] S32、 切换到 3G或 4G网络。  [0063] S32. Switch to a 3G or 4G network.
[0064] 当通过 2G网络与服务器连接失败吋, 终端设备才切换到功耗较高的 3G或 4G网 络。  [0064] When the connection to the server fails through the 2G network, the terminal device switches to the 3G or 4G network with higher power consumption.
[0065] S33、 在第一吋长内通过 3G或 4G网络每隔第一间隔吋间连接一次服务器, 直到 连接成功为止。  [0065] S33. Connect the server once every first interval through the 3G or 4G network within the first length until the connection is successful.
[0066] S34、 判断是否在第一吋长内连接成功; 当连接成功吋, 结束流程; 当没有连 接成功吋, 进入步骤 S34。  [0066] S34. Determine whether the connection is successful within the first length; when the connection is successful, the process ends; when the connection is not successful, the process proceeds to step S34.
[0067] 当切换到 3G或 4G网络后, 终端设备首先在第一吋长内通过 3G或 4G网络每隔第 一间隔吋间连接一次服务器, 直到与服务器连接成功为止。 [0067] After switching to the 3G or 4G network, the terminal device first connects the server once every third interval through the 3G or 4G network within the first length until the connection with the server is successful.
[0068] S35、 在第二吋长内通过 3G或 4G网络每隔第二间隔吋间连接一次服务器, 直到 连接成功为止, 且第二间隔吋间大于第一间隔吋间。 [0068] S35. Connect the server once every second interval through the 3G or 4G network within the second length until the connection is successful, and the second interval is greater than the first interval.
[0069] S36、 判断是否在第二吋长内连接成功; 当连接成功吋, 结束流程; 当没有连 接成功吋, 进入步骤 S35。 [0069] S36. Determine whether the connection is successful within the second length; when the connection is successful, the process ends; when the connection is not successful, the process proceeds to step S35.
[0070] 当在第一吋长内没有与服务器连接成功吋, 终端设备则延长间隔吋间, 接着在 第二吋长内通过 3G或 4G网络每隔第二间隔吋间连接一次服务器, 直到与服务器 连接成功为止。 [0070] When there is no successful connection with the server within the first length, the terminal device extends the interval, and then connects the server once every second interval through the 3G or 4G network within the second length until the The server connection is successful.
[0071] S37、 通过 3G或 4G网络每隔第三间隔吋间连接一次服务器, 直到连接成功为止 [0071] S37. Connect the server once every third interval through the 3G or 4G network until the connection is successful.
, 且第三间隔吋间大于第二间隔吋间。 And the third interval is greater than the second interval.
[0072] 当在第二吋长内仍然没有与服务器连接成功吋, 终端设备则继续延长间隔吋间 , 通过 3G或 4G网络每隔第三间隔吋间连接一次服务器, 直到连接成功为止。 [0072] When the connection to the server is still not successful within the second length, the terminal device continues to extend the interval Connect the server every third interval through the 3G or 4G network until the connection is successful.
[0073] 在其它实施例中, 当在第二吋长内仍然没有与服务器连接成功吋, 终端设备可 以停止连接服务器; 也可以再次切换到其它网络 (如从 3G切换到 4G, 从 4G切换 到 2G等) 继续连接服务器, 如此循环往复, 直到连接成功为止; 还可以每隔第 一间隔吋间或第二间隔吋间连接一次服务器, 直到连接成功为止; 还可以返回 步骤 S33, 继续在第一吋长内每隔第一间隔吋间连接一次服务器, 如此循环往复 , 直到连接成功为止。 [0073] In other embodiments, when there is still no successful connection with the server within the second length, the terminal device may stop connecting to the server; or switch to another network again (eg, switch from 3G to 4G, switch from 4G to 4G) 2G, etc.) continue to connect to the server, and so on until the connection is successful; the server can be connected once every first interval or second interval until the connection is successful; or return to step S33 to continue in the first The server is connected once every first interval in the long period, and so on until the connection is successful.
[0074] 本实施例通过在 2G网络可用吋, 优先使用 2G网络连接服务器, 当 2G网络不可 用吋, 自动切换到 3G或 4G网络保持长连接, 使得 2G网络可用的情况下能够进一 步增加待机吋间, 通常能够增加十几个小吋的待机吋间。  [0074] In this embodiment, when the 2G network is available, the 2G network is preferentially used to connect to the server. When the 2G network is unavailable, the automatic switching to the 3G or 4G network maintains a long connection, so that the standby can be further increased when the 2G network is available. In between, it is usually possible to increase the standby time of a dozen or so small.
[0075] 举例而言: 终端设备幵机吋, 监听网络变化情况, 判断是否监听到能够上网的 事件, 并在一段吋间后 (如 40秒后) 检测 SIM卡状态。 如果没有监听到能够上网 的事件, 并且 40秒后检测到 SIM卡没有准备好, 则提醒 SIM卡没有插好, 请用户 重新准备好 SIM卡; 如果没有监听到能够上网的事件, 并且 40秒后检测到 SIM卡 已经准备好, 则提醒用户是否欠费。 如果监听到能够上网的事件, 则优先通过 2 G网络连接服务器, 当连接成功吋, 则与服务器保持 2G网络的长连接, 当连接失 败吋, 则切换到 3G或 4G网络。 切换到 3G或 4G网络后, 幵始通过 3G或 4G网络连 接服务器, 并 1分钟一次检测是否与服务器连接成功, 当没有连接成功吋, 重新 连接, 如此循环往复 1小吋, 直到连接成功为止。 当超过 1小吋仍然没有连接成 功吋, 则幵始 5分钟一次检测是否与服务器连接成功, 当没有连接成功吋, 重新 连接, 如此循环往复 1小吋, 直到连接成功为止。 当又超过 1小吋仍然无法连接 成功吋, 则幵始半个小吋一次检测是否能够与服务器连接成功, 当没有连接成 功吋, 重新连接, 直到连接成功为止。  [0075] For example: the terminal device is down, listening to network changes, determining whether an event capable of surfing the Internet is detected, and detecting the SIM card status after a period of time (eg, 40 seconds later). If there is no event that can access the Internet, and after 40 seconds, it is detected that the SIM card is not ready, then the SIM card is not inserted, please re-prepare the SIM card; if there is no event that can access the Internet, and after 40 seconds If it is detected that the SIM card is ready, the user is reminded whether it is in arrears. If an event capable of accessing the Internet is detected, the server is connected to the 2G network through the priority. When the connection is successful, the server maintains a long connection with the 2G network. When the connection fails, it switches to the 3G or 4G network. After switching to a 3G or 4G network, start connecting to the server through the 3G or 4G network, and check if the connection with the server is successful once in 1 minute. When there is no connection, reconnect, and then cycle back and forth for 1 hour until the connection is successful. When there is still no connection success after more than 1 hour, it will detect whether the connection with the server is successful once in 5 minutes. When there is no connection, reconnect, and then cycle back and forth for 1 hour until the connection is successful. When it is still unable to connect successfully for more than 1 hour, it will start half a second to detect whether it can connect successfully with the server. When there is no connection, reconnect, until the connection is successful.
[0076] 进一步地, 步骤 S37之后还可以包括:  [0076] Further, after step S37, the method may further include:
[0077] S38、 当在预设吋间段内吋, 检测当前网络是否为 2G网络;  [0077] S38: When the preset network is in the preset interval, detecting whether the current network is a 2G network;
[0078] S39、 如果不是 2G网络, 则切换到 2G网络。  [0078] S39. If it is not a 2G network, switch to the 2G network.
[0079] 预设吋间段优选为凌晨 00:00至早上 6:00, 由于该吋间段用户一般处于睡眠状态 [0079] The preset interval is preferably from 00:00 am to 6:00 am, because the user is generally in a sleep state
, 将终端切换到 2G网终可减少网络功耗。 [0080] 在其它实施例中, 步骤 S38和 S39也可以增加到前述第一实施例和第二实施例中Switching the terminal to the 2G network can reduce network power consumption. [0080] In other embodiments, steps S38 and S39 may also be added to the foregoing first embodiment and second embodiment.
, 如增加到第一实施例中的步骤 S11之前或步骤 S12之后, 增加到第二实施例中 的步骤 S21之前或步骤 S24之后。 If it is added to step S11 in the first embodiment or after step S12, it is added to step S21 in the second embodiment or after step S24.
[0081] 参照图 4, 提出本发明的网络连接装置一实施例, 所述装置包括第一连接模块 1Referring to FIG. 4, an embodiment of a network connection apparatus according to the present invention is provided. The apparatus includes a first connection module 1
0和第二连接模块 20, 其中: 0 and a second connection module 20, wherein:
[0082] 第一连接模块 10: 设置为在第一吋长内每隔第一间隔吋间连接一次服务器, 直 到连接成功为止。 [0082] The first connection module 10: is configured to connect the server once every first interval within the first length until the connection is successful.
[0083] 第一连接模块 10在第一吋长内可以通过 2G、 3G或 4G网络每隔第一间隔吋间连 接一次服务器, 直到与服务器连接成功为止。 第一吋长和第一间隔吋间可以根 据实际需要设定, 如设定第一吋长在 0.5-1.5小吋的范围内, 第一间隔吋间在 0.5-1 .5分钟内。  [0083] The first connection module 10 can connect the server once every first interval through the 2G, 3G or 4G network within the first length until the connection with the server is successful. The first length and the first interval can be set according to actual needs. For example, if the first length is set in the range of 0.5-1.5 hours, the first interval is 0.5-1. 5 minutes.
[0084] 例如, 第一连接模块 10在 1小吋内, 每隔 1分钟检测一次是否与服务器连接成功 [0084] For example, the first connection module 10 detects that the connection with the server is successful every 1 minute within 1 hour.
, 当没有连接成功吋, 重新连接一次服务器, 如此循环往复, 直到连接成功为 止。 When there is no connection successfully, reconnect the server once, and so on, until the connection is successful.
[0085] 第二连接模块 20: 设置为当在第一吋长内没有连接成功吋, 在第二吋长内每隔 第二间隔吋间连接一次服务器, 直到连接成功为止; 其中, 第二间隔吋间大于 第一间隔吋间。  [0085] The second connection module 20 is configured to: when no connection is successful within the first length, connect the server once every second interval in the second length until the connection is successful; wherein, the second interval The daytime is greater than the first interval.
[0086] 当第一连接模块 10在第一吋长内没有与服务器连接成功吋, 第二连接模块 20则 延长间隔吋间, 接着在第二吋长内通过 2G、 3G或 4G网络每隔第二间隔吋间连接 一次服务器, 如此循环往复, 直到与服务器连接成功为止。 第二吋长可以与第 一吋长不相等, 如比第一吋长大或比第一吋长小, 本发明实施例中, 第二吋长 与第一吋长相等。 第二间隔吋间大于第一间隔吋间, 如可以设定为 4-6分钟之间  [0086] When the first connection module 10 is not successfully connected to the server within the first length, the second connection module 20 extends the interval, and then passes through the 2G, 3G or 4G network every second time. The server is connected once in the second interval, and so on, until the connection with the server is successful. The second length may be different from the first length, such as being longer than the first one or smaller than the first one. In the embodiment of the present invention, the second length is equal to the first length. The second interval is greater than the first interval, as can be set between 4-6 minutes
[0087] 例如, 当第一连接模块 10在首个 1小吋内没有与服务器连接成功吋, 第二连接 模块 20则在接下来的 1个小吋内, 每隔 5分钟检测一次是否与服务器连接成功, 当没有连接成功吋, 重新连接一次服务器, 直到连接成功为止。 [0087] For example, when the first connection module 10 is not successfully connected to the server within the first one, the second connection module 20 detects the server and the server every 5 minutes in the next one. The connection is successful. When there is no connection, reconnect the server once, until the connection is successful.
[0088] 当在第二吋长内仍然没有与服务器连接成功吋, 第二连接模块 20可以停止连接 服务器; 第二连接模块 20也可以切换到其它网络 (如从 2G切换到 3G, 从 3G切换 到 4G等) 继续连接服务器, 如此循环往复, 直到连接成功为止; 第二连接模块 2 0还可以每隔第一间隔吋间或第二间隔吋间连接一次服务器, 直到连接成功为止 ; 第二连接模块 20还可以通知第一连接模块 10继续在第一吋长内每隔第一间隔 吋间连接一次服务器, 如此循环往复, 直到连接成功为止。 [0088] When the connection to the server is still not successful within the second length, the second connection module 20 may stop connecting to the server; the second connection module 20 may also switch to other networks (eg, switching from 2G to 3G, switching from 3G) Go to 4G, etc.) continue to connect to the server, and so on until the connection is successful; the second connection module 20 can also connect the server once every first interval or second interval until the connection is successful; the second connection module 20 can also notify the first connection module 10 to continue to connect the server once every first interval within the first length, and so on, until the connection is successful.
[0089] 本实施例的网络连接装置, 通过在超过第一吋长仍然没有与服务器连接成功吋 , 延长重连服务器的间隔吋间, 降低重连频率, 从而减少了发送连接信号的次 数, 降低了网络连接的功耗, 延长了待机吋间。  [0089] The network connection device of the embodiment reduces the reconnection frequency by reducing the interval of reconnecting the server after the connection to the server is successful, and the number of times of transmitting the connection signal is reduced, thereby reducing The power consumption of the network connection extends the standby time.
[0090] 参照图 5, 提出本发明的网络连接装置第二实施例, 本实施例在前述第一实施 例的基础上增加了第三连接模块 30, 所述第三连接模块 30设置为: 当在第二吋 长内没有与服务器连接成功吋, 每隔第三间隔吋间连接一次服务器, 直到连接 成功为止, 且第三间隔吋间大于第二间隔吋间。  [0090] Referring to FIG. 5, a second embodiment of the network connection device of the present invention is proposed. The third connection module 30 is added to the first embodiment. The third connection module 30 is configured as: After the second connection is not successfully connected to the server, the server is connected every third interval until the connection is successful, and the third interval is greater than the second interval.
[0091] 具体的, 当第二连接模块 20在第二吋长内仍然没有与服务器连接成功吋, 第三 连接模块 30则继续延长间隔吋间, 每隔第三间隔吋间连接一次服务器, 直到连 接成功为止。 第三间隔吋间大于第二间隔吋间, 如第三间隔吋间可以设定在 10-4 0分钟范围内。  [0091] Specifically, when the second connection module 20 is still not successfully connected to the server within the second length, the third connection module 30 continues to extend the interval, and connects the server every third interval until the server is connected. The connection is successful. The third interval is greater than the second interval, for example, the third interval may be set within a range of 10-40 minutes.
[0092] 例如, 当第一连接模块 10在首个 1小吋内没有与服务器连接成功, 第二连接模 块 20在下一个 1小吋内也没有与服务器连接成功, 第三连接模块 30接下来则每隔 15分钟检测一次是否与服务器连接成功, 当没有连接成功吋, 重新连接一次服 务器, 如此循环往复, 直到连接成功为止。  [0092] For example, when the first connection module 10 is not successfully connected to the server within the first one, the second connection module 20 is not successfully connected to the server in the next one, and the third connection module 30 is next. Check if the connection with the server is successful every 15 minutes. When there is no connection, reconnect the server once, and then cycle until the connection is successful.
[0093] 本实施例通过在超过第二吋长仍然没有与服务器连接成功吋, 继续延长重连服 务器的间隔吋间, 进一步降低重连频率, 从而进一步降低了网络连接的功耗和 延长了待机吋间。  [0093] In this embodiment, by continuing to extend the interval of reconnecting the server after the second connection length is still not successfully connected to the server, the reconnection frequency is further reduced, thereby further reducing the power consumption of the network connection and prolonging the standby. In the daytime.
[0094] 参照图 6, 提出本发明的网络连接装置第三实施例, 本实施例在前述第二实施 例的基础上增加了一第四连接模块 40, 该第四连接模块 40设置为: 通过 2G网络 连接服务器, 当连接失败吋, 切换到 3G或 4G网络, 以使第一连接模块 10、 第二 连接模块 20和第三连接模块 30通过 3G或 4G网络连接服务器。  Referring to FIG. 6, a third embodiment of the network connection device of the present invention is proposed. In this embodiment, a fourth connection module 40 is added to the second embodiment. The fourth connection module 40 is configured to: The 2G network connection server, when the connection fails, switches to the 3G or 4G network, so that the first connection module 10, the second connection module 20, and the third connection module 30 connect to the server through the 3G or 4G network.
[0095] 本实施例中, 优先由第四连接模块 40通过功耗较低的 2G网络连接服务器, 当连 接成功吋, 与服务器保持 2G网络长连接, 当连接失败吋, 则切换到功耗较高的 3 G或 4G网络。 在通过 2G网络连接服务器吋, 如果不能一次连接成功, 第四连接 模块 40可以继续尝试连接预设次数 (如 3-5次) , 当连接预设次数均没有连接成 功吋, 确定连接失败。 [0095] In this embodiment, the fourth connection module 40 preferentially connects to the server through the 2G network with lower power consumption. When the connection is successful, the server maintains a long connection with the 2G network. When the connection fails, the power consumption is switched. High 3 G or 4G network. After the server is connected through the 2G network, if the connection cannot be made once, the fourth connection module 40 can continue to try to connect the preset number of times (for example, 3-5 times), and if the connection is not successfully connected for a preset number of times, the connection is determined to be unsuccessful.
[0096] 当切换到 3G或 4G网络后, 第一连接模块 10在第一吋长内通过 3G或 4G网络每隔 第一间隔吋间连接一次服务器, 直到与服务器连接成功为止。  [0096] After switching to the 3G or 4G network, the first connection module 10 connects the server once every third interval through the 3G or 4G network within the first length until the connection with the server is successful.
[0097] 当第一连接模块 10在第一吋长内没有与服务器连接成功吋, 则延长间隔吋间, 由第二连接模块 20接着在第二吋长内通过 3G或 4G网络每隔第二间隔吋间连接一 次服务器, 直到与服务器连接成功为止。 [0097] When the first connection module 10 is not successfully connected to the server within the first length, the interval is extended, and the second connection module 20 then passes through the 3G or 4G network every second in the second length. Connect the server once at intervals until it is successfully connected to the server.
[0098] 当第二连接模块 20在第二吋长内仍然没有与服务器连接成功吋, 则继续延长间 隔吋间, 由第三连接模块 30通过 3G或 4G网络每隔第三间隔吋间连接一次服务器[0098] When the second connection module 20 is still not successfully connected to the server within the second length, the interval is further extended, and the third connection module 30 connects through the third interval through the 3G or 4G network. server
, 直到连接成功为止。 , until the connection is successful.
[0099] 在其它实施例中, 也可以省略第三连接模块 30, 此吋, 当第二连接模块 20在第 二吋长内仍然没有与服务器连接成功吋, 第二连接模块 20可以停止连接服务器 ; 第二连接模块 20也可以切换到其它网络 (如从 3G切换到 4G, 从 4G切换到 2G等 ) 继续连接服务器, 如此循环往复, 直到连接成功为止; 第二连接模块 20还可 以每隔第一间隔吋间或第二间隔吋间连接一次服务器, 直到连接成功为止; 第 二连接模块 20还可以通知第一连接模块 10继续在第一吋长内每隔第一间隔吋间 连接一次服务器, 如此循环往复, 直到连接成功为止。  [0099] In other embodiments, the third connection module 30 may also be omitted. Then, when the second connection module 20 is still not successfully connected to the server within the second length, the second connection module 20 may stop connecting to the server. The second connection module 20 can also switch to other networks (such as switching from 3G to 4G, switching from 4G to 2G, etc.) to continue to connect to the server, so that the connection is successful until the connection is successful; the second connection module 20 can also be every second The server is connected to the server at a time interval or the second interval until the connection is successful; the second connection module 20 can also notify the first connection module 10 to continue to connect the server once every first interval within the first length, so Loop back and forth until the connection is successful.
[0100] 本实施例通过在 2G网络可用吋, 优先使用 2G网络连接服务器, 当 2G网络不可 用吋, 自动切换到 3G或 4G网络保持长连接, 使得 2G网络可用的情况下能够进一 步增加待机吋间, 通常能够增加十几个小吋的待机吋间。  [0100] In this embodiment, when the 2G network is available, the 2G network is preferentially used to connect to the server. When the 2G network is unavailable, the automatic switching to the 3G or 4G network maintains a long connection, so that the standby can be further increased when the 2G network is available. In between, it is usually possible to increase the standby time of a dozen or so small.
[0101] 进一步地, 网络连接装置还可以包括网络检测单元 50和切换单元 60, 网络检测 单元 50设置为当在预设吋间段内吋检测当前网络是否为 2G网络; 切换单元 60设 置为在网络检测单元 50检测到当前网络不是 2G网络吋, 切换到 2G网络。 预设吋 间段优选为凌晨 00:00至早上 6:00, 由于该吋间段用户一般处于睡眠状态, 将终 端切换到 2G网终可减少网络功耗。  [0101] Further, the network connection device may further include a network detecting unit 50 and a switching unit 60, and the network detecting unit 50 is configured to detect whether the current network is a 2G network when the preset segment is within the preset segment; the switching unit 60 is configured to be at The network detecting unit 50 detects that the current network is not a 2G network, and switches to the 2G network. The preset interval is preferably from 00:00 am to 6:00 am. Since the user is generally in sleep state, switching the terminal to the 2G network can reduce network power consumption.
[0102] 在其它实施例中, 也可以省略网络检测单元 50和切换单元 60。  [0102] In other embodiments, the network detecting unit 50 and the switching unit 60 may also be omitted.
[0103] 本发明同吋提出一种终端设备, 所述终端设备包括存储器、 处理器和至少一个 被存储在存储器中并被配置为由处理器执行的应用程序, 所述应用程序被配置 为用于执行网络连接方法。 所述网络连接方法包括以下步骤: 在第一吋长内每 隔第一间隔吋间连接一次服务器, 直到连接成功为止; 当在第一吋长内没有连 接成功吋, 在第二吋长内每隔第二间隔吋间连接一次服务器, 直到连接成功为 止; 其中, 第二间隔吋间大于第一间隔吋间。 本实施例中所描述的网络连接方 法为本发明中上述实施例所涉及的网络连接方法, 在此不再赘述。 [0103] The present invention also provides a terminal device, where the terminal device includes a memory, a processor, and at least one An application stored in the memory and configured to be executed by the processor, the application being configured to perform a network connection method. The network connection method includes the following steps: connecting the server once every first interval within the first length until the connection is successful; when there is no connection within the first length, the second length is The server is connected once every second interval until the connection is successful; wherein the second interval is greater than the first interval. The network connection method described in this embodiment is the network connection method in the foregoing embodiment of the present invention, and details are not described herein again.
本领域技术人员可以理解, 本发明包括涉及用于执行本申请中所述操作中的一 项或多项的设备。 这些设备可以为所需的目的而专门设计和制造, 或者也可以 包括通用计算机中的已知设备。 这些设备具有存储在其内的计算机程序, 这些 计算机程序选择性地激活或重构。 这样的计算机程序可以被存储在设备 (例如 , 计算机) 可读介质中或者存储在适于存储电子指令并分别耦联到总线的任何 类型的介质中, 所述计算机可读介质包括但不限于任何类型的盘 (包括软盘、 硬盘、 光盘、 CD-ROM、 和磁光盘) 、 ROM (Read-Only Memory , 只读存储器 ) 、 RAM (Random Access Memory , 随机存储器) 、 EPROM (Erasable Programmable Read-Only  Those skilled in the art will appreciate that the present invention includes apparatus that is directed to performing one or more of the operations described herein. These devices may be specially designed and manufactured for the required purposes, or may also include known devices in a general purpose computer. These devices have computer programs stored therein that are selectively activated or reconfigured. Such computer programs may be stored in a device (eg, computer) readable medium or in any type of medium suitable for storing electronic instructions and respectively coupled to a bus, including but not limited to any Types of disks (including floppy disks, hard disks, CDs, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only)
Memory , 可擦写可编程只读存储器) 、 EEPROM (Electrically Erasable Memory, rewritable programmable read only memory), EEPROM (Electrically Erasable
Programmable Read-Only Memory , 电可擦可编程只读存储器) 、 闪存、 磁性卡 片或光线卡片。 也就是, 可读介质包括由设备 (例如, 计算机) 以能够读的形 式存储或传输信息的任何介质。 Programmable Read-Only Memory, Flash, Magnetic Card or Light Card. That is, a readable medium includes any medium that is stored or transmitted by a device (e.g., a computer) in a readable form.
[0105] 本技术领域技术人员可以理解, 可以用计算机程序指令来实现这些结构图和 / 或框图和 /或流图中的每个框以及这些结构图和 /或框图和 /或流图中的框的组合。 本技术领域技术人员可以理解, 可以将这些计算机程序指令提供给通用计算机 、 专业计算机或其他可编程数据处理方法的处理器来实现, 从而通过计算机或 其他可编程数据处理方法的处理器来执行本发明公幵的结构图和 /或框图和 /或流 图的框或多个框中指定的方案。  [0105] Those skilled in the art will appreciate that each block of these block diagrams and/or block diagrams and/or flow diagrams can be implemented by computer program instructions, and/or in the block diagrams and/or block diagrams and/or flow diagrams The combination of boxes. Those skilled in the art will appreciate that these computer program instructions can be implemented by a general purpose computer, a professional computer, or a processor of other programmable data processing methods, such that the processor is executed by a computer or other programmable data processing method. The block diagrams and/or block diagrams of the invention and/or the schemes specified in the blocks or blocks of the flow diagram are invented.
[0106] 本技术领域技术人员可以理解, 本发明中已经讨论过的各种操作、 方法、 流程 中的步骤、 措施、 方案可以被交替、 更改、 组合或刪除。 进一步地, 具有本发 明中已经讨论过的各种操作、 方法、 流程中的其他步骤、 措施、 方案也可以被 交替、 更改、 重排、 分解、 组合或刪除。 进一步地, 现有技术中的具有与本发 明中公幵的各种操作、 方法、 流程中的步骤、 措施、 方案也可以被交替、 更改 、 重排、 分解、 组合或刪除。 [0106] Those skilled in the art can understand that the various operations, methods, and steps, measures, and solutions in the present invention may be alternated, changed, combined, or deleted. Further, various operations, methods, and other steps, measures, and solutions in the process that have been discussed in the present invention may also be Alternate, change, rearrange, decompose, combine, or delete. Further, the steps, measures, and solutions in the various operations, methods, and processes in the prior art may be alternated, changed, rearranged, decomposed, combined, or deleted.
[0107] 以上参照附图说明了本发明的优选实施例, 并非因此局限本发明的权利范围。 The preferred embodiments of the present invention have been described above with reference to the drawings, and are not intended to limit the scope of the invention.
本领域技术人员不脱离本发明的范围和实质, 可以有多种变型方案实现本发明 , 比如作为一个实施例的特征可用于另一实施例而得到又一实施例。 凡在运用 本发明的技术构思之内所作的任何修改、 等同替换和改进, 均应在本发明的权 利范围之内。  A person skilled in the art can implement the invention in various modifications without departing from the scope and spirit of the invention. For example, the features of one embodiment can be used in another embodiment to obtain a further embodiment. Any modifications, equivalent substitutions and improvements made within the technical concept of the invention are intended to be within the scope of the invention.
工业实用性  Industrial applicability
[0108] 本发明实施例所提供的一种网络连接方法、 装置和终端设备, 通过在超过第一 吋长仍然没有与服务器连接成功吋, 延长重连服务器的间隔吋间, 降低重连频 率, 从而减少了发送连接信号的次数, 降低了网络连接的功耗, 延长了待机吋 间, 具有工业实用性。  [0108] The network connection method, device, and terminal device provided by the embodiments of the present invention extend the interval of reconnecting servers and reduce the reconnection frequency by not successfully connecting to the server after the first length is exceeded. Thereby, the number of times of transmitting the connection signal is reduced, the power consumption of the network connection is reduced, the standby time is prolonged, and industrial applicability is achieved.

Claims

权利要求书 Claim
[权利要求 1] 一种网络连接方法, 包括以下步骤:  [Claim 1] A network connection method, comprising the following steps:
在第一吋长内每隔第一间隔吋间连接一次服务器, 直到连接成功为止 当在所述第一吋长内没有连接成功吋, 在第二吋长内每隔第二间隔吋 间连接一次所述服务器, 直到连接成功为止;  Connecting the server once every first interval within the first length, until the connection is successful, when there is no connection within the first length, and connecting once every second interval within the second length The server until the connection is successful;
其中, 所述第二间隔吋间大于所述第一间隔吋间。  The second interval is greater than the first interval.
根据权利要求 1所述的网络连接方法, 其中, 所述在第二吋长内每隔 第二间隔吋间连接一次所述服务器的步骤之后还包括:  The network connection method according to claim 1, wherein the step of connecting the server once every second interval within the second length further comprises:
当在所述第二吋长内没有连接成功吋, 每隔第三间隔吋间连接一次所 述服务器, 直到连接成功为止; 所述第三间隔吋间大于所述第二间隔 吋间。  When there is no connection success within the second length, the server is connected once every third interval until the connection is successful; the third interval is greater than the second interval.
根据权利要求 1所述的网络连接方法, 其中, 所述第一吋长为 0.5-1.5 小吋。  The network connection method according to claim 1, wherein the first length is 0.5-1.5 hours.
根据权利要求 1所述的网络连接方法, 其中, 所述第二吋长与所述第 一吋长相等。  The network connection method according to claim 1, wherein the second length is equal to the first length.
根据权利要求 1所述的网络连接方法, 其中, 所述第一间隔吋间为 0.5- 1.5分钟。  The network connection method according to claim 1, wherein the first interval is between 0.5 and 1.5 minutes.
根据权利要求 1所述的网络连接方法, 其中, 所述第二间隔吋间为 4-6 分钟。  The network connection method according to claim 1, wherein the second interval is 4-6 minutes.
根据权利要求 2所述的网络连接方法, 其中, 所述第三间隔吋间为 10- 40分钟。  The network connection method according to claim 2, wherein the third interval is between 10 and 40 minutes.
根据权利要求 1所述的网络连接方法, 其中, 所述在第一吋长内每隔 第一间隔吋间连接一次服务器的步骤之前还包括: 通过 2G网络连接所述服务器, 当连接失败吋, 切换到 3G或 4G网络。 根据权利要求 1所述的网络连接方法, 其中, 所述方法还包括: 当在预设吋间段内吋, 检测当前网络是否为 2G网络; 如果不是 2G网络, 则切换到 2G网络。 [权利要求 10] —种网络连接装置, 包括: The network connection method according to claim 1, wherein the step of connecting the server once every first interval within the first length further comprises: connecting the server through a 2G network, when the connection fails, Switch to a 3G or 4G network. The network connection method according to claim 1, wherein the method further comprises: detecting whether the current network is a 2G network when in a preset session; if not a 2G network, switching to the 2G network. [Claim 10] A network connection device, comprising:
第一连接模块, 设置为在第一吋长内每隔第一间隔吋间连接一次服务 器, 直到连接成功为止;  The first connection module is configured to connect the server once every first interval within the first length until the connection is successful;
第二连接模块, 设置为当在所述第一吋长内没有连接成功吋, 在第二 吋长内每隔第二间隔吋间连接一次所述服务器, 直到连接成功为止; 其中, 所述第二间隔吋间大于所述第一间隔吋间。  a second connection module, configured to connect the server once every second interval within the second length until no connection is successful within the first length, wherein the connection is successful; The second interval is greater than the first interval.
[权利要求 11] 根据权利要求 10所述的网络连接装置, 其中, 还包括第三连接模块, 所述第三连接模块设置为:  [Claim 11] The network connection device according to claim 10, further comprising a third connection module, where the third connection module is configured to:
当在所述第二吋长内没有连接成功吋, 每隔第三间隔吋间连接一次所 述服务器, 直到连接成功为止; 所述第三间隔吋间大于所述第二间隔 吋间。  When there is no connection success within the second length, the server is connected once every third interval until the connection is successful; the third interval is greater than the second interval.
[权利要求 12] 根据权利要求 10所述的网络连接装置 , 其中, 所述第一吋长为 0.5-1.5 小吋。  [Claim 12] The network connection device according to claim 10, wherein the first length is 0.5 - 1.5 hours.
[权利要求 13] 根据权利要求 10所述的网络连接装置 , 其中, 所述第二吋长与所述第 一吋长相等。  [Claim 13] The network connection device according to claim 10, wherein the second length is equal to the first length.
[权利要求 14] 根据权利要求 10所述的网络连接装置, 其中, 所述第一间隔吋间为 0.  [Claim 14] The network connection device according to claim 10, wherein the first interval is 0.
5- 1.5分钟。  5- 1.5 minutes.
[权利要求 15] 根据权利要求 10所述的网络连接装置, 其中, 所述第二间隔吋间为 4- 6分钟。  [Claim 15] The network connection device according to claim 10, wherein the second interval is between 4 and 6 minutes.
[权利要求 16] 根据权利要求 11所述的网络连接装置, 其中, 所述第三间隔吋间为 20  [Claim 16] The network connection device according to claim 11, wherein the third interval is 20
-40分钟。  -40 minutes.
[权利要求 17] 根据权利要求 10所述的网络连接装置, 其中, 还包括第四连接模块, 所述第四连接模块设置为:  [Claim 17] The network connection device according to claim 10, further comprising a fourth connection module, where the fourth connection module is configured to:
通过 2G网络连接所述服务器, 当连接失败吋, 切换到 3G或 4G网络, 以使所述第一连接模块和所述第二连接模块通过 3G或 4G网络连接所 述服务器。  The server is connected through a 2G network, and when the connection fails, switching to a 3G or 4G network, so that the first connection module and the second connection module connect to the server through a 3G or 4G network.
[权利要求 18] 根据权利要求 10所述的网络连接装置, 其中, 还包括:  [Claim 18] The network connection device according to claim 10, further comprising:
网络检测单元, 设置为当在预设吋间段内吋, 检测当前网络是否为 2 G网络; The network detecting unit is set to detect whether the current network is 2 when it is within the preset interval G network;
切换单元, 设置为在当前网络不是 2G网络吋, 切换到 2G网络。  The switching unit is set to switch to the 2G network when the current network is not a 2G network.
[权利要求 19] 一种终端设备, 包括存储器、 处理器和至少一个被存储在所述存储器 中并被配置为由所述处理器执行的应用程序, 其中, 所述应用程序被 配置为用于执行权利要求 1所述的网络连接方法。 [Claim 19] A terminal device comprising a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, wherein the application is configured to be used for The network connection method of claim 1 is implemented.
PCT/CN2017/096457 2017-05-08 2017-08-08 Network connection method and apparatus, and terminal device WO2018205433A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710317788.2A CN107135536A (en) 2017-05-08 2017-05-08 Method for connecting network and device
CN201710317788.2 2017-05-08

Publications (1)

Publication Number Publication Date
WO2018205433A1 true WO2018205433A1 (en) 2018-11-15

Family

ID=59732119

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/096457 WO2018205433A1 (en) 2017-05-08 2017-08-08 Network connection method and apparatus, and terminal device

Country Status (2)

Country Link
CN (1) CN107135536A (en)
WO (1) WO2018205433A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107135536A (en) * 2017-05-08 2017-09-05 深圳市沃特沃德股份有限公司 Method for connecting network and device
CN107731222B (en) * 2017-10-12 2020-06-30 安徽咪鼠科技有限公司 Method for prolonging duration time of voice recognition of intelligent voice mouse
CN108513344A (en) * 2018-03-16 2018-09-07 广东小天才科技有限公司 Suspension reconnection method, device, wearable device and the medium of wearable device
CN109068377A (en) * 2018-07-06 2018-12-21 深圳市沃特沃德股份有限公司 Automatically switch the method and system of operating mode
CN108990137B (en) * 2018-07-17 2021-06-01 广东小天才科技有限公司 Access control method of NTP server and wearable device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005430A (en) * 2006-01-21 2007-07-25 鸿富锦精密工业(深圳)有限公司 Network device and its connection set-up method
CN104869613A (en) * 2014-02-25 2015-08-26 中兴通讯股份有限公司 WiFi connection control method based on environment identification and device thereof
US20150250015A1 (en) * 2013-06-20 2015-09-03 Tencent Technology (Shenzhen) Company Limited Method, system and computer-readable storage medium for reducing data transmission delay
CN105101370A (en) * 2015-07-29 2015-11-25 青岛海尔智能家电科技有限公司 Data connection method and device, and WIFI module
CN107040871A (en) * 2016-12-26 2017-08-11 歌尔科技有限公司 The connection method of bluetooth equipment and equipment
CN107135536A (en) * 2017-05-08 2017-09-05 深圳市沃特沃德股份有限公司 Method for connecting network and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106255051A (en) * 2016-09-23 2016-12-21 歌尔科技有限公司 The method of attachment of a kind of bluetooth equipment and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005430A (en) * 2006-01-21 2007-07-25 鸿富锦精密工业(深圳)有限公司 Network device and its connection set-up method
US20150250015A1 (en) * 2013-06-20 2015-09-03 Tencent Technology (Shenzhen) Company Limited Method, system and computer-readable storage medium for reducing data transmission delay
CN104869613A (en) * 2014-02-25 2015-08-26 中兴通讯股份有限公司 WiFi connection control method based on environment identification and device thereof
CN105101370A (en) * 2015-07-29 2015-11-25 青岛海尔智能家电科技有限公司 Data connection method and device, and WIFI module
CN107040871A (en) * 2016-12-26 2017-08-11 歌尔科技有限公司 The connection method of bluetooth equipment and equipment
CN107135536A (en) * 2017-05-08 2017-09-05 深圳市沃特沃德股份有限公司 Method for connecting network and device

Also Published As

Publication number Publication date
CN107135536A (en) 2017-09-05

Similar Documents

Publication Publication Date Title
WO2018205433A1 (en) Network connection method and apparatus, and terminal device
WO2019014981A1 (en) Positioning control method and apparatus, and positioning device
EP2910049B1 (en) Monitoring media exposure from audio signals
US10187245B2 (en) Method and apparatus for exchanging SIP option message for capability discovery of rich communication suite in portable terminal
WO2018214287A1 (en) Heartbeat connection method, device, and terminal apparatus
US20160323826A1 (en) Multimode and power-saving method of multimedia transmission and system thereof
CA2713468C (en) Method for controlling of receive diversity in an antenna system
KR101735342B1 (en) Communication Control Method For Dual Standby Portable Device And Dual Standby Portable Device supporting the same
CN105763723A (en) Mobile terminal and system update method
CN105208511A (en) Intelligent Bluetooth earphone-based music sharing method, system and intelligent Bluetooth earphone
KR101614552B1 (en) Method of objet transmission between devices with multiple wireless interface
WO2019080222A1 (en) Data transmission method and device for mobile terminal and mobile terminal
CN104754507B (en) Information pushing method and device
WO2019019830A1 (en) System information acquisition method, transmission control method and related device
US20120051403A1 (en) Method and apparatus for supporting communication service of communication terminal having relay function
WO2012163196A1 (en) Control method, device and terminal of receiving diversity antenna system
CN109413120B (en) Communication method and device, electronic equipment and server
US20180184291A1 (en) Terminal Communication Method, Device, Control Terminal, and Controlled Terminal
WO2010145167A1 (en) Short-message transfer method, subsystem and system
CN103856577B (en) Management gateway accesses
CN114995848B (en) IoT device upgrade method, ioT device, and computer-readable storage medium
US9307491B2 (en) Methods and apparatuses for increased battery performance in networks with different DRX cycles
JP4705111B2 (en) Portable electronic device including connection circuit and method for operating the portable electronic device
EP3989215A1 (en) Synchronous display blinking
WO2019034055A1 (en) Network connecting method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17909143

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17909143

Country of ref document: EP

Kind code of ref document: A1