[go: up one dir, main page]

CN117295136A - Equipment control method and device and network access equipment - Google Patents

Equipment control method and device and network access equipment Download PDF

Info

Publication number
CN117295136A
CN117295136A CN202310452140.1A CN202310452140A CN117295136A CN 117295136 A CN117295136 A CN 117295136A CN 202310452140 A CN202310452140 A CN 202310452140A CN 117295136 A CN117295136 A CN 117295136A
Authority
CN
China
Prior art keywords
relay mode
network access
access device
relay
network
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202310452140.1A
Other languages
Chinese (zh)
Inventor
黄东
杨亚兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Hangzhou Douku Software Technology Co Ltd
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 Hangzhou Douku Software Technology Co Ltd filed Critical Hangzhou Douku Software Technology Co Ltd
Priority to CN202310452140.1A priority Critical patent/CN117295136A/en
Publication of CN117295136A publication Critical patent/CN117295136A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • H04W84/22Self-organising networks, e.g. ad-hoc networks or sensor networks with access to wired networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a device control method, a device and network access equipment. The method comprises the following steps: under the condition that the first network access equipment relays the network provided by the second network access equipment through a first relay mode, acquiring communication performance information corresponding to the second relay mode; and determining whether to switch the relay mode of the first network access equipment from the first relay mode to the second relay mode according to the communication performance information corresponding to the second relay mode. Therefore, under the condition that the first network access device relays the network provided by the second network access device based on the first relay mode, the first network access device can acquire the communication performance information of other alternative relay modes (second relay modes) in real time, so as to determine whether to switch the currently used relay modes according to the communication performance information of the alternative relay modes, and improve the flexibility of relay mode control.

Description

设备控制方法、装置以及网络接入设备Equipment control method, device and network access equipment

技术领域Technical field

本申请涉及计算机技术领域,更具体地,涉及一种设备控制方法、装置以及网络接入设备。The present application relates to the field of computer technology, and more specifically, to an equipment control method, device and network access equipment.

背景技术Background technique

网络接入设备可以为接入的设备提供网络服务。但是,网络接入设备所提供的网络覆盖范围是有限的。作为一种方式,可以通过在与互联网直接建立连接的网络接入设备上连接中继设备,以实现扩大网络接入设备所提供的网络的覆盖范围。但是,相关的中继设备的中继接入方式的控制还不够灵活。Network access equipment can provide network services to connected devices. However, the network coverage provided by network access equipment is limited. As a method, a relay device can be connected to a network access device that is directly connected to the Internet to expand the coverage of the network provided by the network access device. However, the control of the relay access mode of the relevant relay equipment is not flexible enough.

发明内容Contents of the invention

鉴于上述问题,本申请提出了一种设备控制方法、装置以及网络接入设备,以改善上述问题。In view of the above problems, this application proposes a device control method, device and network access equipment to improve the above problems.

第一方面,本申请提供了一种设备控制方法,应用于第一网络接入设备,所述方法包括:在所述第一网络接入设备通过第一中继方式对第二网络接入设备提供的网络进行中继的情况下,获取第二中继方式对应的通信性能信息;根据所述第二中继方式对应的通信性能信息,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。In a first aspect, this application provides a device control method, applied to a first network access device. The method includes: using a first relay mode on the first network access device to control a second network access device. When the provided network performs relay, obtain communication performance information corresponding to the second relay mode; determine whether to relay the first network access device according to the communication performance information corresponding to the second relay mode. The mode is switched from the first relay mode to the second relay mode.

第二方面,本申请提供了一种设备控制装置,运行于第一网络接入设备,所述装置包括:通信性能获取单元,用于在所述第一网络接入设备通过第一中继方式对第二网络接入设备提供的网络进行中继的情况下,获取第二中继方式对应的通信性能信息;中继方式控制单元,用于根据所述第二中继方式对应的通信性能信息,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。In a second aspect, the present application provides a device control device running on a first network access device. The device includes: a communication performance acquisition unit configured to control the first network access device through a first relay mode. When relaying the network provided by the second network access device, obtain the communication performance information corresponding to the second relay mode; the relay mode control unit is configured to obtain the communication performance information corresponding to the second relay mode according to the second relay mode. , determine whether to switch the relay mode of the first network access device from the first relay mode to the second relay mode.

第三方面,本申请提供了一种网络接入设备,包括一个或多个处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行以实现上述的方法。In a third aspect, the present application provides a network access device, including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors Execute the above method.

第四方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码被处理器运行时执行上述的方法。In a fourth aspect, the present application provides a computer-readable storage medium having program code stored in the computer-readable storage medium, wherein the above method is executed when the program code is run by a processor.

本申请提供的一种设备控制方法、装置以及网络接入设备,在所述第一网络接入设备通过第一中继方式对第二网络接入设备提供的网络进行中继的情况下,获取第二中继方式对应的通信性能信息,进而,根据所述第二中继方式对应的通信性能信息,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。从而通过上述方式使得第一网络接入设备可以在已经基于第一中继方式对第二网络接入设备提供的网络进行中继的情况下,可以实时获取其他备选的中继方式(第二中继方式)的通信性能信息,以用于根据备选的中继方式的通信性能信息来确定是否对当前所使用的中继方式进行切换,以提升中继方式控制的灵活性,也有利于实时选取通信性能更好的中继方式对第二网络设备提供的网络进行中继。This application provides a device control method, device and network access device. When the first network access device relays the network provided by the second network access device through the first relay method, the communication performance information corresponding to the second relay mode, and further, determine whether to change the relay mode of the first network access device to the first relay mode according to the communication performance information corresponding to the second relay mode. Switch to the second relay mode. Therefore, through the above method, the first network access device can obtain other alternative relay modes (the second relay mode) in real time when it has relayed the network provided by the second network access device based on the first relay mode. The communication performance information of the relay mode) is used to determine whether to switch the currently used relay mode based on the communication performance information of the alternative relay mode, so as to improve the flexibility of relay mode control and is also beneficial to Select a relay method with better communication performance in real time to relay the network provided by the second network device.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.

图1示出了本申请实施例提出的一种应用场景的示意图;Figure 1 shows a schematic diagram of an application scenario proposed by the embodiment of the present application;

图2示出了本申请实施例提出的一种设备控制方法的流程图;Figure 2 shows a flow chart of a device control method proposed by the embodiment of the present application;

图3示出了本申请实施例提出的一种设备控制方法的流程图;Figure 3 shows a flow chart of a device control method proposed by the embodiment of the present application;

图4示出了本申请实施例提出的一种设备控制方法的流程图;Figure 4 shows a flow chart of a device control method proposed by the embodiment of the present application;

图5示出了本申请实施例提出的一种设备控制装置的结构框图;Figure 5 shows a structural block diagram of an equipment control device proposed in the embodiment of the present application;

图6示出了本申请实时中的用于执行根据本申请实施例的设备控制方法的网络接入设备的结构框图;Figure 6 shows a structural block diagram of a network access device used to execute a device control method according to an embodiment of the present application in real time;

图7示出了本申请实时中的用于保存或者携带实现根据本申请实施例的设备控制方法的程序代码的存储单元。Figure 7 shows a storage unit used to save or carry the program code that implements the device control method according to the embodiment of the present application in real time.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.

随着技术的发展,网络接入设备可以为用户终端提供接入网络的服务。在网络接入设备连接到网络后,与网络接入设备建立有连接的用户终端,则可以通过网络接入设备对该网络进行访问。例如,在网络接入设备可接入到互联网的情况下,连接到该网络接入设备的用户终端则可以通过该网络接入设备访问互联网,进而用户终端可以对互联网中的资源进行访问,或者与其他也接入到互联网中的用户进行通信。With the development of technology, network access equipment can provide network access services for user terminals. After the network access device is connected to the network, a user terminal connected to the network access device is established, and the network can be accessed through the network access device. For example, when a network access device can access the Internet, a user terminal connected to the network access device can access the Internet through the network access device, and then the user terminal can access resources on the Internet, or Communicate with other users who are also connected to the Internet.

其中,网络接入设备可以有多种的接入到网络的方式。例如网络接入设备可以通过有线接入方式连接到网络,还可以通过无线接入方式连接到网络。但是,网络接入设备所提供的网络覆盖范围是有限的。作为一种方式,可以通过在与互联网直接建立连接的网络接入设备上连接中继设备,以实现扩大网络接入设备所提供的网络的覆盖范围。但是,相关的中继设备的中继接入方式的控制还不够灵活。Among them, the network access device can have multiple ways of accessing the network. For example, the network access device can be connected to the network through wired access, and can also be connected to the network through wireless access. However, the network coverage provided by network access equipment is limited. As a method, a relay device can be connected to a network access device that is directly connected to the Internet to expand the coverage of the network provided by the network access device. However, the control of the relay access mode of the relevant relay equipment is not flexible enough.

因此,发明人提出了本申请中的设备控制方法、装置以及网络接入设备,在所述第一网络接入设备通过第一中继方式对第二网络接入设备提供的网络进行中继的情况下,获取第二中继方式对应的通信性能信息,进而,根据所述第二中继方式对应的通信性能信息,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。从而通过上述方式使得第一网络接入设备可以在已经基于第一中继方式对第二网络接入设备提供的网络进行中继的情况下,可以实时获取其他备选的中继方式(第二中继方式)的通信性能信息,以用于根据备选的中继方式的通信性能信息来确定是否对当前所使用的中继方式进行切换,以提升中继方式控制的灵活性,也有利于实时选取通信性能更好的中继方式对第二网络设备提供的网络进行中继。Therefore, the inventor proposes the device control method, device and network access device in this application, in which the first network access device relays the network provided by the second network access device through the first relay mode. In this case, the communication performance information corresponding to the second relay mode is obtained, and further, based on the communication performance information corresponding to the second relay mode, it is determined whether to replace the relay mode of the first network access device with the third relay mode. A relay mode is switched to the second relay mode. Therefore, through the above method, the first network access device can obtain other alternative relay modes (the second relay mode) in real time when it has relayed the network provided by the second network access device based on the first relay mode. The communication performance information of the relay mode) is used to determine whether to switch the currently used relay mode based on the communication performance information of the alternative relay mode, so as to improve the flexibility of relay mode control and is also beneficial to Select a relay method with better communication performance in real time to relay the network provided by the second network device.

下面先对本申请实施例提供的一种示例性的应用场景进行介绍。An exemplary application scenario provided by the embodiment of this application is first introduced below.

如图1所示,在图1所示的场景中包括有网络接入设备20、网络接入设备21以及网络接入设备22,还包括有用户终端30。其中,网络接入设备20为直接与网络10(例如,互联网或者公网)进行连接的设备,网络接入设备21以及网络接入设备22则分别与网络接入设备20进行连接,以对网络接入设备20所提供的网络进行中继。其中,网络接入设备20所提供的网络可以理解为基于网络接入设备20所构建的无线接入网络。在这种情况下,接入到基于网络接入设备20所构建的无线接入网络的用户终端则可以通过网络截图设备20而对网络10进行访问。As shown in Figure 1, the scene shown in Figure 1 includes a network access device 20, a network access device 21, a network access device 22, and a user terminal 30. Among them, the network access device 20 is a device directly connected to the network 10 (for example, the Internet or a public network). The network access device 21 and the network access device 22 are respectively connected to the network access device 20 to access the network. The network provided by the access device 20 is relayed. The network provided by the network access device 20 can be understood as a wireless access network constructed based on the network access device 20 . In this case, the user terminal that accesses the wireless access network built based on the network access device 20 can access the network 10 through the network screenshot device 20 .

其中,网络接入设备21对网络接入设备20所提供的网络进行中继可以理解为通过网络接入设备21对基于网络接入设备20所构建的无线接入网络的覆盖范围进行扩展。或者,可以理解为由网络接入设备21以及网络接入设备20共同来构建无线接入网络。在这种情况下,无论是通过网络接入设备21,还是通过网络接入设备20接入到无线接入网络,均可以实现通过网络接入设备20来对网络10进行访问。类似的,网络接入设备21以及网络接入设备22则分别与网络接入设备20进行连接,以对网络接入设备20所提供的网络进行中继,则可以理解为由网络接入设备21以及网络接入设备22对无线接入网络的覆盖范围进行扩展。The relaying of the network provided by the network access device 20 by the network access device 21 can be understood as extending the coverage of the wireless access network built based on the network access device 20 through the network access device 21 . Alternatively, it can be understood that the network access device 21 and the network access device 20 jointly construct a wireless access network. In this case, whether the wireless access network is accessed through the network access device 21 or the network access device 20 , the network 10 can be accessed through the network access device 20 . Similarly, the network access device 21 and the network access device 22 are respectively connected to the network access device 20 to relay the network provided by the network access device 20, which can be understood as the network access device 21 And the network access device 22 extends the coverage of the wireless access network.

在本申请实施例中,网络接入设备21以及网络接入设备22均可以通过有线中继方式或者无线中继方式对网络接入设备20所提供的网络进行中继。其中,有线中继方式包括通过双绞线、同轴电缆或者光纤电缆进行中继。无线中继方式包括通过指定频段的无线信号进行中继。该指定频段可以包括5GHz或者2.4GHz。In the embodiment of the present application, both the network access device 21 and the network access device 22 can relay the network provided by the network access device 20 through a wired relay mode or a wireless relay mode. Among them, wired relay methods include relaying through twisted pairs, coaxial cables or optical fiber cables. The wireless relay method includes relaying through wireless signals in designated frequency bands. The designated frequency band may include 5GHz or 2.4GHz.

需要说明的是,在本申请实施例中,网络接入设备可以为一种CPE(CustomerPremises Equipment)设备,也可以为路由器。另外,网络接入设备在基于无线接入方式或者优先接入方式接入到网络的过程中,所使用的接入协议可以为动态主机配置协议DHCP(Dynamic Host Configuration Protocol),也可以为基于以太网的点对点通讯协议PPPoE(Point to Point Protocol over Ethernet)。再者,可以与网络接入设备建立连接的用户终端可以有多个,且在本申请实施例中,用户终端具体的类型不做具体限定。例如,用户终端可以包括智能手机、平板电脑、智能音箱、智能手表等。It should be noted that in this embodiment of the present application, the network access device may be a CPE (Customer Premises Equipment) device or a router. In addition, when the network access device is connected to the network based on the wireless access method or the priority access method, the access protocol used can be the Dynamic Host Configuration Protocol (DHCP), or it can be Ethernet-based. PPPoE (Point to Point Protocol over Ethernet), the point-to-point communication protocol of the Internet. Furthermore, there may be multiple user terminals that can establish connections with the network access device, and in this embodiment of the present application, the specific type of user terminal is not specifically limited. For example, user terminals may include smartphones, tablets, smart speakers, smart watches, etc.

需要说明的是,图1中的网络接入设备21或者网络接入设备22可以作为本申请实施例中的第一网络接入设备,网络接入设备20可以作为本申请实施例中的第二网络接入设备。It should be noted that the network access device 21 or the network access device 22 in Figure 1 can be used as the first network access device in the embodiment of the present application, and the network access device 20 can be used as the second network access device in the embodiment of the present application. Network access equipment.

下面将结合附图具体描述本申请的各实施例。Each embodiment of the present application will be described in detail below with reference to the accompanying drawings.

请参阅图2,本申请实施例提供的一种设备控制方法,应用于第一网络接入设备,方法包括:Please refer to Figure 2. A device control method provided by an embodiment of the present application is applied to a first network access device. The method includes:

S110:在所述第一网络接入设备通过第一中继方式对第二网络接入设备提供的网络进行中继的情况下,获取第二中继方式对应的通信性能信息。S110: When the first network access device relays the network provided by the second network access device through the first relay mode, obtain communication performance information corresponding to the second relay mode.

其中,第二网络接入设备为直接与所要访问的网络(例如,公网或者互联网)进行连接的网络接入设备。在第二网络接入设备进行工作的情况下,可以提供无线接入网络以供用户终端连接,进而用户终端在连接到该无线接入网络的情况下,可通过第二网络接入设备访问互联网或者公网。第一网络设备在对第二网络接入设备提供的无线接入网络进行中继的情况下,则使得连接到第一网络接入设备的用户终端,也可以通过第二网络接入设备访问互联网或者公网。Wherein, the second network access device is a network access device directly connected to the network to be accessed (for example, a public network or the Internet). When the second network access device is working, a wireless access network can be provided for the user terminal to connect to, and then the user terminal can access the Internet through the second network access device when connected to the wireless access network. Or public network. When the first network device relays the wireless access network provided by the second network access device, the user terminal connected to the first network access device can also access the Internet through the second network access device. Or public network.

在本申请实施例中,第一网络接入设备可以通过多种中继方式对第二网络接入设备提供的网络进行中继。例如,第一网络接入设备可以通过有线中继方式对第二网络接入设备提供的网络进行中继,或者,第一网络接入设备可以通过无线中继方式对第二网络接入设备提供的网络进行中继。作为一种方式,其中的第一中继方式可以为有线中继方式,第二中继方式可以为无线中继方式。作为另外一种方式,其中的第一中继方式可以为无线中继方式,第二中继方式可以为有线中继方式。In this embodiment of the present application, the first network access device can relay the network provided by the second network access device through multiple relay methods. For example, the first network access device can relay the network provided by the second network access device through wired relay, or the first network access device can provide the network provided by the second network access device through wireless relay. network for relaying. As a method, the first relay method may be a wired relay method, and the second relay method may be a wireless relay method. As another method, the first relay method may be a wireless relay method, and the second relay method may be a wired relay method.

在本申请实施例中,通信性能信息为表征第二中继方式通信性能的信息。该通信性能可包括数据传输速率或者数据传输稳定性等。In this embodiment of the present application, the communication performance information is information characterizing the communication performance of the second relay mode. The communication performance may include data transmission rate or data transmission stability, etc.

S120:根据所述第二中继方式对应的通信性能信息,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。S120: Determine whether to switch the relay mode of the first network access device from the first relay mode to the second relay mode according to the communication performance information corresponding to the second relay mode.

需要说明的是,第一网络设备的中继方式可以理解为对第二网络接入设备提供的网络进行中继的方式。第一网络设备对应的多种中继方式都可以通过建立相应的连接,以用于实现相应的中继能力。例如,对于有线中继方式,第一网络接入设备需要与第二网络接入设备建立有线连接,进而通过该有线连接来实现相应的中继能力。再例如,对于无线中继方式,第一网络接入设备需要与第二网络接入设备建立无线连接,进而通过该无线连接来实现相应的中继能力。对于其中所建立的无线连接或者有线连接,对应的通信性能有可能会动态进行变换的。例如,有线连接所采用的通信线路的类型不同的情况下,所能提供的数据传输稳定性和数据传输速率是会有所区别的。再例如,在第一网络接入设备和第二网络接入设备所处的通信环境不同的情况下,第一网络接入设备与第二网络接入设备所协商出的数据传输速率也是会有所不同的。It should be noted that the relay mode of the first network device can be understood as a mode of relaying the network provided by the second network access device. Various relay modes corresponding to the first network device can be used to achieve corresponding relay capabilities by establishing corresponding connections. For example, for the wired relay mode, the first network access device needs to establish a wired connection with the second network access device, and then realize the corresponding relay capability through the wired connection. For another example, for the wireless relay mode, the first network access device needs to establish a wireless connection with the second network access device, and then realize the corresponding relay capability through the wireless connection. For the wireless connection or wired connection established, the corresponding communication performance may be dynamically transformed. For example, different types of communication lines used in wired connections will provide different data transmission stability and data transmission rates. For another example, when the first network access device and the second network access device are in different communication environments, the data transmission rate negotiated by the first network access device and the second network access device will also be different. The difference.

所以,在本申请实施例中可以参考第二中继方式对应的通信性能信息,以确定是否需要对当前所使用的第一中继方式进行切换。可选的,可以只参考第二中继方式对应的通信性能信息来确定是否需要将第一网络接入设备的中继方式由第一中继方式切换为所述第二中继方式。或者,可以结合第二中继方式对应的通信性能信息以及第一中继方式对应的通信性能信息,来确定是否需要将第一网络接入设备的中继方式由第一中继方式切换为所述第二中继方式。Therefore, in this embodiment of the present application, you can refer to the communication performance information corresponding to the second relay mode to determine whether it is necessary to switch to the currently used first relay mode. Optionally, only the communication performance information corresponding to the second relay mode may be referred to determine whether it is necessary to switch the relay mode of the first network access device from the first relay mode to the second relay mode. Alternatively, the communication performance information corresponding to the second relay mode and the communication performance information corresponding to the first relay mode may be combined to determine whether it is necessary to switch the relay mode of the first network access device from the first relay mode to the other relay mode. Describe the second relay method.

在进行中继方式切换时,可以不用断开被换掉的中继方式对应的连接,而是可以通过逻辑控制的方式使得第一网络接入设备进行中继方式的切换。再者,每种中继方式都可以对应有各自的通信接口。在这种情况下,对于所切换掉的中继方式对应的通信接口,可以配置为处于阻塞(blocking)状态,以避免进入环路状态引发广播风暴。示例性的,若第一中继方式为有线中继方式,且有线中继方式对应的通信接口为有线网口,第二中继方式为无线中继方式,且无线中继方式对应的通信接口为无线桥接口,若确定将第一网络接设备的中继方式由第一中继方式切换为第二中继方式,则可以同步使得有线网口处于阻塞状态。其中,第一网络接入设备可以通过STP(Spanning Tree Protocol,生成树协议)协议进行通信接口状态的配置。例如,通过STP协议将有线网口的优先级降低,使得无线桥接口的优先级高于有线网口的优先级,以实现使得有线网口处于阻塞状态。When switching the relay mode, it is not necessary to disconnect the connection corresponding to the switched relay mode. Instead, the first network access device can be switched to the relay mode through logical control. Furthermore, each relay method can correspond to its own communication interface. In this case, the communication interface corresponding to the switched relay mode can be configured to be in a blocking state to avoid entering a loop state and causing a broadcast storm. For example, if the first relay mode is a wired relay mode, and the communication interface corresponding to the wired relay mode is a wired network port, the second relay mode is a wireless relay mode, and the communication interface corresponding to the wireless relay mode It is a wireless bridge interface. If it is determined to switch the relay mode of the first network connection device from the first relay mode to the second relay mode, the wired network port can be synchronously placed in a blocked state. Wherein, the first network access device can configure the communication interface status through STP (Spanning Tree Protocol, Spanning Tree Protocol) protocol. For example, the priority of the wired network port is lowered through the STP protocol, so that the priority of the wireless bridge interface is higher than the priority of the wired network port, so that the wired network port is blocked.

本实施例提供的一种设备控制方法,在所述第一网络接入设备通过第一中继方式对第二网络接入设备提供的网络进行中继的情况下,获取第二中继方式对应的通信性能信息,进而,根据所述第二中继方式对应的通信性能信息,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。从而通过上述方式使得第一网络接入设备可以在已经基于第一中继方式对第二网络接入设备提供的网络进行中继的情况下,可以实时获取其他备选的中继方式(第二中继方式)的通信性能信息,以用于根据备选的中继方式的通信性能信息来确定是否对当前所使用的中继方式进行切换,以提升中继方式控制的灵活性,也有利于实时选取通信性能更好的中继方式对第二网络设备提供的网络进行中继。This embodiment provides a device control method. When the first network access device relays the network provided by the second network access device through the first relay mode, the second relay mode corresponding to the device is obtained. communication performance information, and further, determine whether to switch the relay mode of the first network access device from the first relay mode to the second relay mode according to the communication performance information corresponding to the second relay mode. Relay mode. Therefore, through the above method, the first network access device can obtain other alternative relay modes (the second relay mode) in real time when it has relayed the network provided by the second network access device based on the first relay mode. The communication performance information of the relay mode) is used to determine whether to switch the currently used relay mode based on the communication performance information of the alternative relay mode, so as to improve the flexibility of relay mode control and is also beneficial to Select a relay method with better communication performance in real time to relay the network provided by the second network device.

请参阅图3,本申请实施例提供的一种设备控制方法,应用于第一网络接入设备,方法包括:Please refer to Figure 3. A device control method provided by an embodiment of the present application is applied to a first network access device. The method includes:

S210:在所述第一网络接入设备通过第一中继方式对第二网络接入设备提供的网络进行中继的情况下,获取第二中继方式对应的通信性能信息。S210: When the first network access device relays the network provided by the second network access device through the first relay mode, obtain communication performance information corresponding to the second relay mode.

S220:将所述第二中继方式对应的通信性能信息与所述第一中继方式的通信性能信息进行比对。S220: Compare the communication performance information corresponding to the second relay mode with the communication performance information corresponding to the first relay mode.

S230:基于所述比对的结果,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。S230: Based on the comparison result, determine whether to switch the relay mode of the first network access device from the first relay mode to the second relay mode.

作为一种方式,所述通信性能信息包括数据传输速率。在这种方式下,若所述第二中继方式的数据传输速率高于所述第一中继方式的数据传输速率,将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。需要说明的是,在数据传输速率越高的情况下,第一网络接入设备和第二网络接入设备之间的数据可以能够更加高效的进行传输,进而也使得连接到第一网络接入设备的用户终端中的业务数据可以更快的被传输到目的地,对应的,互联网中其他终端或者设备所传输而来的业务数据,也可以更快的传输给连接到第一网络接入设备的用户终端。因此,在第二中继方式的数据传输速率高于第一中继方式的数据传输速率的情况下,将第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式,有利于使得连接到第一网络接入设备的用户终端可以能够进行更加高效的业务数据传输,或者能够保持较高效率的业务数据传输。As one approach, the communication performance information includes data transmission rate. In this way, if the data transmission rate of the second relay mode is higher than the data transmission rate of the first relay mode, the relay mode of the first network access device is replaced by the first relay mode. The relay mode is switched to the second relay mode. It should be noted that when the data transmission rate is higher, data between the first network access device and the second network access device can be transmitted more efficiently, which in turn makes the connection to the first network access device more efficient. The service data in the user terminal of the device can be transmitted to the destination faster. Correspondingly, the service data transmitted from other terminals or devices in the Internet can also be transmitted to the first network access device faster. user terminal. Therefore, when the data transmission rate of the second relay mode is higher than the data transmission rate of the first relay mode, the relay mode of the first network access device is switched from the first relay mode to the The second relay mode is beneficial to enable the user terminal connected to the first network access device to perform more efficient service data transmission, or to maintain higher efficiency service data transmission.

需要说明的是,无线中继方式会使用无线连接来进行中继。但是无线连接是属于半双工的通信方式。因此,无线连接会有回程影响。进而会造成即使无线中继方式的数据传输速率和有线中继方式的数据传输速率相同,无线中继方式实际的数据传输性能也会低于有线中继方式的数据传输性能。在这种情况下,可选的,所述第一中继方式包括有线中继方式,所述第二中继方式包括无线中继方式。若所述无线中继方式的数据传输速率与指定数值的乘积,高于所述有线中继方式的数据传输速率,将所述第一网络接入设备的中继方式由所述有线中继方式切换为所述无线中继方式,所述指定数值大于0且不大于1。It should be noted that the wireless relay method uses wireless connections for relaying. However, wireless connection is a half-duplex communication method. Therefore, wireless connections have backhaul implications. This will cause that even if the data transmission rate of the wireless relay method is the same as the data transmission rate of the wired relay method, the actual data transmission performance of the wireless relay method will be lower than the data transmission performance of the wired relay method. In this case, optionally, the first relay mode includes a wired relay mode, and the second relay mode includes a wireless relay mode. If the product of the data transmission rate of the wireless relay mode and the specified value is higher than the data transmission rate of the wired relay mode, change the relay mode of the first network access device to the wired relay mode. Switch to the wireless relay mode, and the specified value is greater than 0 and not greater than 1.

其中,通过将无线中继方式的数据传输速率与指定数值的乘积与述有线中继方式的数据传输速率相比,有利于使得在无线中继方式的数据传输速率高于有线中继方式的数据传输速率的情况下,再触发进行中继方式的切换,进而有利于避免因为中继方式的切换而造成连接到第一网络接入设备的用户终端的网络体验下降。Among them, by comparing the product of the data transmission rate of the wireless relay mode and the specified value with the data transmission rate of the wired relay mode, it is beneficial to make the data transmission rate of the wireless relay mode higher than that of the wired relay mode. When the transmission rate is high, the switching of the relay mode is triggered again, which is helpful to avoid the degradation of the network experience of the user terminal connected to the first network access device due to the switching of the relay mode.

在本申请实施例中,该指定数值可以由开发人员预先配置,也可以由第一网络接入设备的用户根据自己的需求进行配置。或者,也可以由第一网络接入设备根据实际情况进行动态的调整。In this embodiment of the present application, the specified value can be pre-configured by the developer, or can be configured by the user of the first network access device according to his or her own needs. Alternatively, the first network access device may also dynamically adjust according to actual conditions.

作为一种方式,第一网络接入设备的用户可以在中继方式配置界面中,对第一网络接入设备所采用中继方式的优先级进行配置。例如,在中继方式配置界面中可以提供有有线中继方式优先以及无线中继方式优先这两个选项。其中,有线中继方式优先对应的指定数值相对更低,无线中继方式优先对应的指定数值相对更高。例如,有线中继方式优先对应指定数值可以为0到0.5,无线中继方式优先对应指定数值可以在0.5到1。在这种方式下,则可以根据用户从中继方式配置界面中所进行的选择来对指定数值进行改变。As a method, the user of the first network access device can configure the priority of the relay mode adopted by the first network access device in the relay mode configuration interface. For example, the relay mode configuration interface can provide two options: wired relay mode priority and wireless relay mode priority. Among them, the designated value corresponding to the wired relay mode priority is relatively lower, and the designated value corresponding to the wireless relay mode priority is relatively higher. For example, the specified value corresponding to the priority of the wired relay mode can be 0 to 0.5, and the specified value corresponding to the priority of the wireless relay mode can be 0.5 to 1. In this mode, the specified value can be changed according to the user's selection from the relay mode configuration interface.

作为另一种方式,第一网络接入设备可以根据无线中继方式对应的数据传输速率的波动情况来确定该指定数值。需要说明的是,无线中继方式因为是依托于所建立的无线连接进行数据传输,进而无线中继方式的稳定性会受所处的通信环境的影响,那么在通信环境较为复杂的情况下,就可能会使得无线中继方式的的数据传输效率会有较大的波动。在这种方式下,第一网络接入设备可以对指定时间段内无线中继方式对应的数据传输速率的变化情况,来动态调整指定数值。As another way, the first network access device may determine the designated value according to the fluctuation of the data transmission rate corresponding to the wireless relay mode. It should be noted that the wireless relay method relies on the established wireless connection for data transmission, and the stability of the wireless relay method will be affected by the communication environment. When the communication environment is relatively complex, This may cause large fluctuations in the data transmission efficiency of wireless relay methods. In this way, the first network access device can dynamically adjust the specified value according to changes in the data transmission rate corresponding to the wireless relay mode within the specified time period.

可选的,第一网络接入设备可以获取指定时间段内无线中继方式对应的数据传输速率的变化次数,若该变化次数大于次数阈值,则可以将指定数值配置有相对较低的数值,若该变化次数不大于次数阈值,则可以将指定数值配置有相对较高的数值。需要说明的是,若指定时间段内无线中继方式对应的数据传输速率的变化次数大于次数阈值,则说明当前无线中继方式所依托的无线连接稳定性不高,若将中继方式切换为无线中继方式,则可能会造成用户终端的业务传输不够稳定,进而可以将指定数值配置得相对更低。其中,若在将指定数值配置得相对更低的情况下,无线中继方式的数据传输速率在乘以指定数值后依然可以高于有线中继方式对应的数据传输速率,则说明无线中继方式的数据传输速率可能是在较高的范围内进行波动,在这种情况下将第一网络接入设备的中继方式切换为了无线中继方式,则依然可以使得连接到第一网络接入设备的用户终端可以有更好的进行业务数据传输。Optionally, the first network access device can obtain the number of changes in the data transmission rate corresponding to the wireless relay mode within the specified time period. If the number of changes is greater than the number threshold, the specified value can be configured with a relatively low value, If the number of changes is not greater than the number threshold, the specified value can be configured with a relatively high value. It should be noted that if the number of changes in the data transmission rate corresponding to the wireless relay mode within a specified time period is greater than the number threshold, it means that the stability of the wireless connection on which the current wireless relay mode relies is not high. If the relay mode is switched to The wireless relay method may cause the service transmission of the user terminal to be unstable, so the specified value can be configured relatively lower. Among them, if the data transmission rate of the wireless relay mode can still be higher than the corresponding data transmission rate of the wired relay mode after multiplying by the specified value when the specified value is configured relatively lower, it means that the wireless relay mode The data transmission rate may fluctuate in a relatively high range. In this case, switching the relay mode of the first network access device to the wireless relay mode can still connect to the first network access device. User terminals can better transmit business data.

作为另外一种方式,所述通信性能信息包括在指定历史时间段内断开的次数。在这种方式下,若所述第二中继方式在指定历史时间段内断开的次数,少于所述第一中继方式在指定历史时间段内的断开次数,将所述第一网络接入设备的中继方式由第一中继方式切换为所述第二中继方式。As another way, the communication performance information includes the number of disconnections within a specified historical period. In this way, if the number of disconnections of the second relay mode within the specified historical time period is less than the number of disconnections of the first relay mode within the specified historical time period, the first relay mode will be disconnected. The relay mode of the network access device is switched from the first relay mode to the second relay mode.

需要说明的是,如前述内容介绍可知,在本申请实施例中,第一网络接入设备既可以只依赖于第二中继方式的通信性能信息确定是否要将第一网络接入设备的中继方式由第一中继方式切换为第二中继方式,还可以结合第一中继方式的通信性能信息以及第二中继方式的通信性能信息,来确定是否要将第一网络接入设备的中继方式由第一中继方式切换为第二中继方式。在这种方式下表,电子设备可以根据实际情况,来确定具体所采用的检测方式。It should be noted that, as can be seen from the foregoing description, in the embodiment of the present application, the first network access device can only rely on the communication performance information of the second relay mode to determine whether to use the central link of the first network access device. The relay mode is switched from the first relay mode to the second relay mode. The communication performance information of the first relay mode and the communication performance information of the second relay mode can also be combined to determine whether to connect the first network to the device. The relay mode is switched from the first relay mode to the second relay mode. In this way, the electronic equipment can determine the specific detection method according to the actual situation.

可选的,在一些情况下,用户可能更倾向于使用某一种中继方式,例如,用户更倾向于使用无线中继方式,则可以将更倾向于使用某一种中继方式作为指定中继方式。在这种情况下,若检测到第二中继方式为指定中继方式,则可以只根据第二中继方式对应的通信性能信息,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。例如,通信性能信息为数据传输速率为例,在这种情况下,若检测到第二中继方式为指定中继方式,且检测到第二中继方式的数据传输速率大于速率阈值,就将第一网络接入设备的中继方式由第一中继方式切换为第二中继方式。Optionally, in some cases, the user may be more inclined to use a certain relay method. For example, if the user is more inclined to use the wireless relay method, the user may be more inclined to use a certain relay method as the designated medium. Follow the way. In this case, if it is detected that the second relay mode is the designated relay mode, it can be determined whether to use the relay mode of the first network access device based only on the communication performance information corresponding to the second relay mode. Switch from the first relay mode to the second relay mode. For example, the communication performance information is a data transmission rate. In this case, if it is detected that the second relay mode is a designated relay mode, and it is detected that the data transmission rate of the second relay mode is greater than the rate threshold, the The relay mode of the first network access device is switched from the first relay mode to the second relay mode.

若检测到第二中继方式为不为指定中继方式,则可以结合第一中继方式的通信性能信息以及第二中继方式的通信性能信息,来确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。If it is detected that the second relay mode is not a designated relay mode, the communication performance information of the first relay mode and the communication performance information of the second relay mode may be combined to determine whether to access the first network. The relay mode of the device is switched from the first relay mode to the second relay mode.

本实施例提供的一种设备控制方法,从而通过上述方式使得第一网络接入设备可以在已经基于第一中继方式对第二网络接入设备提供的网络进行中继的情况下,可以实时获取其他备选的中继方式(第二中继方式)的通信性能信息,以用于根据备选的中继方式的通信性能信息来确定是否对当前所使用的中继方式进行切换,以提升中继方式控制的灵活性,也有利于实时选取通信性能更好的中继方式对第二网络设备提供的网络进行中继。并且,在本实施例中还会获取第一中继方式对应的通信性能信息,进而以结合第一中继方式以及第二中继方式的通信性能信息共同确定是否需要对当前的中继方式进行切换,以提升进行中继方式切换的准确性。This embodiment provides a device control method, so that through the above method, the first network access device can relay the network provided by the second network access device in real time based on the first relay mode. Obtain communication performance information of other alternative relay modes (second relay mode) to determine whether to switch the currently used relay mode based on the communication performance information of the alternative relay modes to improve The flexibility of relay mode control is also conducive to real-time selection of a relay mode with better communication performance to relay the network provided by the second network device. Moreover, in this embodiment, the communication performance information corresponding to the first relay mode is also obtained, and then the communication performance information of the first relay mode and the second relay mode are combined to determine whether the current relay mode needs to be modified. Switch to improve the accuracy of relay mode switching.

请参阅图4,本申请实施例提供的一种设备控制方法,应用于第一网络接入设备,方法包括:Please refer to Figure 4. A device control method provided by an embodiment of the present application is applied to a first network access device. The method includes:

S310:在所述第一网络接入设备通过有线中继方式对第二网络接入设备提供的网络进行中继的情况下,获取基于所述第一网络接入设备所处的通信环境与所述第二网络接入设备协商得到无线中继方式对应的数据传输速率。S310: In the case where the first network access device relays the network provided by the second network access device through a wired relay method, obtain the communication environment and location based on the first network access device. The second network access device negotiates to obtain the data transmission rate corresponding to the wireless relay mode.

S320:根据无线中继方式对应的数据传输速率,确定是否将所述第一网络接入设备的中继方式由有线中继方式切换为无线中继方式。S320: Determine whether to switch the relay mode of the first network access device from the wired relay mode to the wireless relay mode according to the data transmission rate corresponding to the wireless relay mode.

其中,若确定将所述第一网络接入设备的中继方式由所述有线中继方式切换为所述无线中继方式,使用预先与所述第二网络接入设备建立的无线连接对第二网络接入设备提供的网络进行中继。Wherein, if it is determined to switch the relay mode of the first network access device from the wired relay mode to the wireless relay mode, use the wireless connection previously established with the second network access device to pair the third network access device with the wireless relay mode. Two network access devices provide the network for relaying.

若将所述第一网络接入设备的中继方式由所述有线中继方式切换为所述无线中继方式,使得所述有线中继方式所对应的数据传输接口处于阻塞状态。If the relay mode of the first network access device is switched from the wired relay mode to the wireless relay mode, the data transmission interface corresponding to the wired relay mode is in a blocked state.

本实施例提供的一种设备控制方法,从而通过上述方式使得第一网络接入设备可以在已经基于有线中继方式对第二网络接入设备提供的网络进行中继的情况下,可以实时获取其他备选的中继方式(无线中继方式)的通信性能信息,以用于根据备选的无线中继方式的通信性能信息来确定是否对当前所使用的有线中继方式进行切换,以提升中继方式控制的灵活性,也有利于实时选取通信性能更好的中继方式(有线中继方式或者无线中继方式)对第二网络设备提供的网络进行中继。This embodiment provides a device control method, so that through the above method, the first network access device can obtain the network in real time when it has relayed the network provided by the second network access device based on the wired relay method. Communication performance information of other alternative relay methods (wireless relay methods) is used to determine whether to switch to the currently used wired relay method based on the communication performance information of the alternative wireless relay methods to improve The flexibility of relay mode control is also conducive to real-time selection of a relay mode with better communication performance (wired relay mode or wireless relay mode) to relay the network provided by the second network device.

在一种实施方式中,在第一网络接入设备通过第一中继方式对第二网络接入设备提供的网络进行中继的情况下,也可以先对第一中继方式进行检测,在检测到第一中继方式为有线中继方式的情况下(则说明第二中继方式为无线中继方式),再触发获取第二中继方式对应的通信性能信息。从而可以使得第一网络接入设备可以更大概率的使用无线接入的方式进行中继。In one implementation, when the first network access device relays the network provided by the second network access device through the first relay mode, the first relay mode may also be detected first, and then When it is detected that the first relay mode is a wired relay mode (it means that the second relay mode is a wireless relay mode), acquisition of communication performance information corresponding to the second relay mode is triggered. As a result, the first network access device can use wireless access to perform relay with a greater probability.

在另一种实施方式中,在第一网络接入设备通过第一中继方式对第二网络接入设备提供的网络进行中继的情况下,也可以先对第一中继方式进行检测,在检测到第一中继方式为无线中继方式的情况下(则说明第二中继方式为有线中继方式),再触发获取第二中继方式对应的通信性能信息。从而可以使得第一网络接入设备可以更大概率的使用有线接入的方式进行中继。In another implementation, when the first network access device relays the network provided by the second network access device through the first relay mode, the first relay mode may also be detected first, When it is detected that the first relay mode is a wireless relay mode (it means that the second relay mode is a wired relay mode), acquisition of communication performance information corresponding to the second relay mode is triggered again. As a result, the first network access device can use wired access to perform relay with a greater probability.

需要说明的是,第二中继方式对应的通信性能信息可以会有所波动,为了能够更加准确的确定是否需要进行中继方式的切换,可以基于指定检测周期连续多次获取第二中继方式对应的通信性能信息,并根据多次获取到的第二中继方式对应的通信性能信息,来确定是否需要将第一网络接入设备的中继方式由第一中继方式切换为所述第二中继方式。It should be noted that the communication performance information corresponding to the second relay mode may fluctuate. In order to more accurately determine whether the relay mode needs to be switched, the second relay mode can be obtained multiple times based on the specified detection period. Corresponding communication performance information, and based on the communication performance information corresponding to the second relay mode obtained multiple times, determine whether it is necessary to switch the relay mode of the first network access device from the first relay mode to the third relay mode. Two relay modes.

可选的,第一网络接入设备可以获取连接到第一网络接入设备的用户终端所运行的业务,基于业务确定指定检测周期的长度。需要说明的是,连接到第一网络接入设备的用户终端可以运行的业务可以有多种,且不同的业务对通信的时效性需求可能是有所不同的。其中,通信的时效性可以理解为对业务数据及时被进行传输的需求。例如,用户终端可以运行游戏业务、信息搜索业务或者音视频播放业务等。其中,游戏业务对通信时效性的需求可能就相对较高,而音视频播放业务和信息搜索业务对通信时效性的需求可能就相对较低。Optionally, the first network access device may obtain services run by the user terminal connected to the first network access device, and determine the length of the specified detection period based on the services. It should be noted that the user terminal connected to the first network access device may run multiple services, and different services may have different timeliness requirements for communication. Among them, the timeliness of communication can be understood as the need for business data to be transmitted in a timely manner. For example, the user terminal can run game services, information search services, or audio and video playback services. Among them, the gaming business may have a relatively high demand for communication timeliness, while the audio and video playback business and information search business may have a relatively low demand for communication timeliness.

再者,可以连接到第一网络接入设备的用户终端的类型可以有多种,且不同的用户终端所执行的业务也会有所不同。进而,第一网络接入设备根据用户终端所运行的业务来确定指定检测周期,可以使得所确定的指定检测周期可以更加贴合当前的实际需求。例如,若用户终端所运行的业务对通信时效性要求高,则可以将指定检测周期设置得相对较短,以便第一网络接入设备可以更加及时的在当前所使用的接入方式出现故障时,自动切换到另外的接入方式。若用户终端所运行的业务对通信时效性要求不高,则可以将指定检测周期设置得相对较长,进而使得第一网络接入设备既可以相对较为及时的进行接入方式的切换又能够降低功耗。Furthermore, there may be multiple types of user terminals that can be connected to the first network access device, and different user terminals may perform different services. Furthermore, the first network access device determines the designated detection period according to the service run by the user terminal, which can make the determined designated detection period more suitable for current actual needs. For example, if the service run by the user terminal has high communication timeliness requirements, the designated detection period can be set relatively short, so that the first network access device can detect a failure in the currently used access method in a more timely manner. , automatically switches to another access method. If the service run by the user terminal does not have high communication timeliness requirements, the designated detection period can be set to be relatively long, so that the first network access device can switch the access mode relatively promptly and reduce the cost of communication. power consumption.

作为一种方式,在第一网络接入设备中可以对应存储有业务与指定检测周期的对应关系。进而,在获取到业务后,可以通过查询该对应关系来确定所要使用的指定检测周期。示例性的,业务与指定检测周期的对应关系可以包括:业务1对应指定检测周期P1、业务2对应指定检测周期P2、业务3对应指定检测周期P3。若获取到用户终端中所运行的业务为业务3,则第一网络接入设备可以将指定检测周期配置为指定检测周期P3。As a method, the first network access device may store a corresponding relationship between the service and the specified detection period. Furthermore, after obtaining the service, the specified detection period to be used can be determined by querying the corresponding relationship. For example, the corresponding relationship between services and designated detection periods may include: service 1 corresponds to the designated detection period P1, service 2 corresponds to the designated detection period P2, and service 3 corresponds to the designated detection period P3. If it is obtained that the service running in the user terminal is service 3, the first network access device may configure the designated detection period as the designated detection period P3.

另外,连接到第一网络接入设备的用户终端中可能会同步运行有多个业务。例如,连接到第一网络接入设备的用户终端在分屏显示视频程序界面和游戏程序界面。再者,连接到第一网络接入设备的用户终端可能有多个,且多个用户终端各自运行的业务不同。例如,连接到第一网络接入设备的用户终端可以包括有电视机以及游戏主机。进而,第一网络接入设备获取到的由用户终端所运行的业务会有多个。可选的,若业务有多个,则获取多个业务的优先级,基于优先级最高的业务确定指定检测周期的长度。其中,第一网络接入设备可以根据优先级最高的业务对通信时效性的要求,来确定指定检测周期的长度。示例性的,与第一网络接入设备建立有连接的用户终端中,一个用户终端运行的业务为业务W1,另一个用户终端中运行有业务W2和业务W3,进而第一网络接入设备可以获取到的用户终端所运行的业务包括业务W1、业务W2以及业务W3。第一网络接入设备在获取到业务W1、业务W2以及业务W3后,可以比对业务W1、业务W2以及业务W3的优先级,若确定业务W2的优先级最高,则可以根据业务W2配置指定检测周期。In addition, multiple services may be running simultaneously in the user terminal connected to the first network access device. For example, the user terminal connected to the first network access device displays the video program interface and the game program interface in split screens. Furthermore, there may be multiple user terminals connected to the first network access device, and the multiple user terminals each run different services. For example, the user terminal connected to the first network access device may include a television and a game console. Furthermore, the first network access device may acquire multiple services executed by the user terminal. Optionally, if there are multiple services, obtain the priorities of the multiple services, and determine the length of the specified detection period based on the service with the highest priority. Wherein, the first network access device may determine the length of the designated detection period based on the communication timeliness requirements of the highest priority service. For example, among the user terminals that are connected to the first network access device, the service run by one user terminal is service W1, and the service W2 and service W3 are run by the other user terminal, and then the first network access device can The acquired services run by the user terminal include service W1, service W2 and service W3. After obtaining service W1, service W2 and service W3, the first network access device can compare the priorities of service W1, service W2 and service W3. If it is determined that service W2 has the highest priority, it can specify the configuration according to service W2. detection cycle.

请参阅图5,本申请实施例提供的一种设备控制装置400,运行于第一网络接入设备,所述装置400包括:Please refer to Figure 5. An embodiment of the present application provides a device control device 400 that runs on the first network access device. The device 400 includes:

通信性能获取单元410,用于在所述第一网络接入设备通过第一中继方式对第二网络接入设备提供的网络进行中继的情况下,获取第二中继方式对应的通信性能信息。The communication performance acquisition unit 410 is configured to acquire the communication performance corresponding to the second relay mode when the first network access device relays the network provided by the second network access device through the first relay mode. information.

中继方式控制单元420,用于根据所述第二中继方式对应的通信性能信息,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。The relay mode control unit 420 is configured to determine whether to switch the relay mode of the first network access device from the first relay mode to the relay mode according to the communication performance information corresponding to the second relay mode. Second relay mode.

作为一种方式,中继方式控制单元420,具体用于将所述第二中继方式对应的通信性能信息与所述第一中继方式的通信性能信息进行比对;基于所述比对的结果,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。As a method, the relay mode control unit 420 is specifically configured to compare the communication performance information corresponding to the second relay mode with the communication performance information corresponding to the first relay mode; based on the comparison As a result, it is determined whether to switch the relay mode of the first network access device from the first relay mode to the second relay mode.

作为一种方式,所述通信性能信息包括数据传输速率。中继方式控制单元420,具体用于若所述第二中继方式的数据传输速率高于所述第一中继方式的数据传输速率,将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。As one approach, the communication performance information includes data transmission rate. The relay mode control unit 420 is specifically configured to change the relay mode of the first network access device to The first relay mode is switched to the second relay mode.

可选的,所述第一中继方式包括有线中继方式,所述第二中继方式包括无线中继方式。中继方式控制单元420,具体用于若所述无线中继方式的数据传输速率与指定数值的乘积,高于所述有线中继方式的数据传输速率,将所述第一网络接入设备的中继方式由所述有线中继方式切换为所述无线中继方式,所述指定数值大于0且不大于1。Optionally, the first relay mode includes a wired relay mode, and the second relay mode includes a wireless relay mode. The relay mode control unit 420 is specifically configured to change the data transmission rate of the first network access device if the product of the data transmission rate of the wireless relay mode and the specified value is higher than the data transmission rate of the wired relay mode. The relay mode is switched from the wired relay mode to the wireless relay mode, and the specified value is greater than 0 and not greater than 1.

作为一种方式,所述通信性能信息包括在指定历史时间段内断开的次数。中继方式控制单元420,具体用于若所述第二中继方式在指定历史时间段内断开的次数,少于所述第一中继方式在指定历史时间段内的断开次数,将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。As one way, the communication performance information includes the number of disconnections within a specified historical period. The relay mode control unit 420 is specifically configured to: if the number of disconnections of the second relay mode within the specified historical time period is less than the number of disconnections of the first relay mode within the specified historical time period, the relay mode control unit 420 will The relay mode of the first network access device is switched from the first relay mode to the second relay mode.

作为一种方式,通信性能获取单元410,具体用于获取基于所述第一网络接入设备所处的通信环境与所述第二网络接入设备协商得到所述数据传输速率。As a method, the communication performance obtaining unit 410 is specifically configured to obtain the data transmission rate obtained through negotiation with the second network access device based on the communication environment in which the first network access device is located.

作为一种方式,中继方式控制单元420,用于根据若确定将所述第一网络接入设备的中继方式由所述有线中继方式切换为所述无线中继方式,使用预先与所述第二网络接入设备建立的无线连接对第二网络接入设备提供的网络进行中继。中继方式控制单元420,还用于若将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式,使得所述第一中继方式所对应的数据传输接口处于阻塞状态。As a method, the relay mode control unit 420 is configured to switch the relay mode of the first network access device from the wired relay mode to the wireless relay mode, using the preset method with the The wireless connection established by the second network access device relays the network provided by the second network access device. The relay mode control unit 420 is also configured to switch the relay mode of the first network access device from the first relay mode to the second relay mode, so that the first relay mode The corresponding data transmission interface is in a blocked state.

本实施例提供的一种设备控制装置,使得第一网络接入设备可以在已经基于第一中继方式对第二网络接入设备提供的网络进行中继的情况下,可以实时获取其他备选的中继方式(第二中继方式)的通信性能信息,以用于根据备选的中继方式的通信性能信息来确定是否对当前所使用的中继方式进行切换,以提升中继方式控制的灵活性,也有利于实时选取通信性能更好的中继方式对第二网络设备提供的网络进行中继。This embodiment provides a device control device that enables the first network access device to obtain other alternatives in real time when it has relayed the network provided by the second network access device based on the first relay method. The communication performance information of the relay mode (the second relay mode) is used to determine whether to switch the currently used relay mode according to the communication performance information of the alternative relay mode to improve the relay mode control. The flexibility is also conducive to real-time selection of a relay method with better communication performance to relay the network provided by the second network device.

下面将结合图6对本申请提供的一种网络接入设备进行说明。A network access device provided by this application will be described below with reference to FIG. 6 .

请参阅图6,基于上述的设备控制方法、装置,本申请实施例还提供的另一种可以执行前述设备控制方法的网络接入设备2000。网络接入设备2000包括相互耦合的一个或多个(图中仅示出一个)处理器202、存储器204、网络模块206、传感器模块208以及音频采集装置210。其中,该存储器204中存储有可以执行前述实施例中内容的程序,而处理器202可以执行该存储器204中存储的程序。Please refer to Figure 6. Based on the above device control method and device, embodiments of the present application also provide another network access device 2000 that can execute the foregoing device control method. The network access device 2000 includes one or more (only one is shown in the figure) processors 202, a memory 204, a network module 206, a sensor module 208 and an audio collection device 210 that are coupled to each other. The memory 204 stores programs that can execute the content in the foregoing embodiments, and the processor 202 can execute the programs stored in the memory 204 .

其中,处理器202可以包括一个或者多个处理核。处理器202利用各种接口和线路连接整个网络接入设备2000内的各个部分,通过运行或执行存储在存储器204内的指令、程序、代码集或指令集,以及调用存储在存储器204内的数据,执行网络接入设备2000的各种功能和处理数据。可选地,处理器202可以采用数字信号处理(Digital SignalProcessing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器202可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics ProcessingUnit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器202中,单独通过一块通信芯片进行实现。The processor 202 may include one or more processing cores. The processor 202 uses various interfaces and lines to connect various parts of the entire network access device 2000, by running or executing instructions, programs, code sets or instruction sets stored in the memory 204, and calling data stored in the memory 204. , perform various functions of the network access device 2000 and process data. Optionally, the processor 202 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in hardware form. The processor 202 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the display content; and the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 202 and may be implemented solely through a communication chip.

存储器204可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器204可用于存储指令、程序、代码、代码集或指令集。存储器204可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。The memory 204 may include random access memory (RAM) or read-only memory (Read-Only Memory). Memory 204 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 204 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing each of the following method embodiments, etc.

所述网络模块206用于实现网络接入设备2000与其他设备之间的信息交互,例如,传输设备控制指令、操纵请求指令以及状态信息获取指令等。而当网络接入设备2000具体为不同的设备时,其对应的网络模块206可能会有不同。The network module 206 is used to implement information interaction between the network access device 2000 and other devices, for example, transmitting device control instructions, manipulation request instructions, status information acquisition instructions, etc. When the network access device 2000 is a different device, its corresponding network module 206 may be different.

传感器模块208可以包括至少一种传感器。具体地,传感器模块208可包括但并不限于:光传感器、运动传感器、压力传感器、红外热传感器、距离传感器、加速度传感器、以及其他传感器。Sensor module 208 may include at least one sensor. Specifically, the sensor module 208 may include, but is not limited to: light sensors, motion sensors, pressure sensors, infrared heat sensors, distance sensors, acceleration sensors, and other sensors.

其中,压力传感器可以检测由按压在网络接入设备2000产生的压力的传感器。即,压力传感器检测由用户和网络接入设备之间的接触或按压产生的压力,例如由用户的耳朵与移动终端之间的接触或按压产生的压力。因此,压力传感器可以用来确定在用户与网络接入设备2000之间是否发生了接触或者按压,以及压力的大小。The pressure sensor may be a sensor that detects pressure generated by pressing on the network access device 2000 . That is, the pressure sensor detects pressure generated by contact or pressing between the user and the network access device, for example, pressure generated by contact or pressing between the user's ear and the mobile terminal. Therefore, the pressure sensor can be used to determine whether contact or pressure occurs between the user and the network access device 2000, as well as the amount of pressure.

其中,加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别网络接入设备2000姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。另外,网络接入设备2000还可配置陀螺仪、气压计、湿度计、温度计等其他传感器,在此不再赘述。Among them, the acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications that identify the posture of the network access device 2000 (such as horizontal and vertical screen switching, related games, Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc. In addition, the network access device 2000 can also be configured with other sensors such as a gyroscope, barometer, hygrometer, and thermometer, which will not be described again here.

音频采集装置210,用于进行音频信号采集。可选的,音频采集装置210包括有多个音频采集器件。该音频采集器件可以为麦克风。例如,在一种方式中,音频采集装置210可以包括两个麦克风,在这种方式中,其中一个麦克风可以对应有一个模数转换器,另一个麦克风可以对应有两个不同模拟增益的模数转换器。在另一种方式中,音频采集装置210可以包括有三个麦克风。在这种方式下,其中两个麦克风(例如,主麦克风和副麦克风)可以各自对应有一个模数转换器,另一个麦克风(例如,摄像头麦克风)可以对应有两个不同模拟增益的模数转换器。Audio collection device 210 is used to collect audio signals. Optionally, the audio collection device 210 includes multiple audio collection devices. The audio collection device can be a microphone. For example, in one manner, the audio collection device 210 may include two microphones. In this manner, one microphone may correspond to an analog-to-digital converter, and the other microphone may correspond to an analog-to-digital converter with two different analog gains. converter. In another manner, the audio collection device 210 may include three microphones. In this way, two of the microphones (for example, the main microphone and the secondary microphone) can each have one analog-to-digital converter, and the other microphone (for example, the camera microphone) can have two analog-to-digital converters with different analog gains. device.

作为一种方式,网络接入设备2000的网络模块为射频模块,该射频模块用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。所述射频模块可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。例如,该射频模块可以通过发送或者接收的电磁波与外部设备进行信息交互,进而接收外部设备所发送的音频信号。As a method, the network module of the network access device 2000 is a radio frequency module. The radio frequency module is used to receive and send electromagnetic waves, realize mutual conversion of electromagnetic waves and electrical signals, and thereby communicate with the communication network or other devices. The radio frequency module may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memories, and the like. For example, the radio frequency module can interact with external devices through transmitted or received electromagnetic waves, and then receive audio signals sent by external devices.

再者,网络接入设备2000还可以包括有图像采集器件以进行图像采集。例如,可以通过该图像采集器件拍摄视频、静态图片或者动态图片。Furthermore, the network access device 2000 may also include an image acquisition device for image acquisition. For example, videos, still pictures or dynamic pictures can be captured through the image acquisition device.

请参考图7,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 7 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code is stored in the computer-readable medium 800, and the program code can be called by the processor to execute the method described in the above method embodiment.

计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。Computer-readable storage medium 800 may be electronic memory such as flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes non-transitory computer-readable storage medium. The computer-readable storage medium 800 has storage space for program code 810 that performs any method steps in the above-described methods. These program codes can be read from or written into one or more computer program products. Program code 810 may, for example, be compressed in a suitable form.

本申请提供的一种设备控制方法、装置以及网络接入设备,在所述第一网络接入设备通过第一中继方式对第二网络接入设备提供的网络进行中继的情况下,获取第二中继方式对应的通信性能信息,进而,根据所述第二中继方式对应的通信性能信息,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。从而通过上述方式使得第一网络接入设备可以在已经基于第一中继方式对第二网络接入设备提供的网络进行中继的情况下,可以实时获取其他备选的中继方式(第二中继方式)的通信性能信息,以用于根据备选的中继方式的通信性能信息来确定是否对当前所使用的中继方式进行切换,以提升中继方式控制的灵活性,也有利于实时选取通信性能更好的中继方式对第二网络设备提供的网络进行中继。This application provides a device control method, device and network access device. When the first network access device relays the network provided by the second network access device through the first relay method, the communication performance information corresponding to the second relay mode, and further, determine whether to change the relay mode of the first network access device to the first relay mode according to the communication performance information corresponding to the second relay mode. Switch to the second relay mode. Therefore, through the above method, the first network access device can obtain other alternative relay modes (the second relay mode) in real time when it has relayed the network provided by the second network access device based on the first relay mode. The communication performance information of the relay mode) is used to determine whether to switch the currently used relay mode based on the communication performance information of the alternative relay mode, so as to improve the flexibility of relay mode control and is also beneficial to Select a relay method with better communication performance in real time to relay the network provided by the second network device.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent substitutions are made to some of the technical features; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions in the embodiments of the present application.

Claims (12)

1.一种设备控制方法,其特征在于,应用于第一网络接入设备,所述方法包括:1. A device control method, characterized in that it is applied to a first network access device, and the method includes: 在所述第一网络接入设备通过第一中继方式对第二网络接入设备提供的网络进行中继的情况下,获取第二中继方式对应的通信性能信息;When the first network access device relays the network provided by the second network access device through the first relay mode, obtain communication performance information corresponding to the second relay mode; 根据所述第二中继方式对应的通信性能信息,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。According to the communication performance information corresponding to the second relay mode, it is determined whether to switch the relay mode of the first network access device from the first relay mode to the second relay mode. 2.根据权利要求1所述的方法,其特征在于,所述根据所述第二中继方式对应的通信性能信息,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式,包括:2. The method according to claim 1, characterized in that, determining whether to use the relay mode of the first network access device by the third relay mode according to the communication performance information corresponding to the second relay mode. Switching a relay mode to the second relay mode includes: 将所述第二中继方式对应的通信性能信息与所述第一中继方式的通信性能信息进行比对;Compare the communication performance information corresponding to the second relay mode with the communication performance information corresponding to the first relay mode; 基于所述比对的结果,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。Based on the comparison result, it is determined whether to switch the relay mode of the first network access device from the first relay mode to the second relay mode. 3.根据权利要求2所述的方法,其特征在于,所述通信性能信息包括数据传输速率;所述基于所述比对的结果,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式,包括:3. The method according to claim 2, wherein the communication performance information includes a data transmission rate; and based on the comparison result, it is determined whether to use the relay mode of the first network access device. Switching from the first relay mode to the second relay mode includes: 若所述第二中继方式的数据传输速率高于所述第一中继方式的数据传输速率,将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。If the data transmission rate of the second relay mode is higher than the data transmission rate of the first relay mode, switch the relay mode of the first network access device from the first relay mode to the Describe the second relay method. 4.根据权利要求3所述的方法,其特征在于,所述第一中继方式包括有线中继方式,所述第二中继方式包括无线中继方式,所述若所述第二中继方式的数据传输速率高于所述第一中继方式的数据传输速率,将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式,包括:4. The method according to claim 3, wherein the first relay mode includes a wired relay mode, the second relay mode includes a wireless relay mode, and if the second relay mode The data transmission rate of the mode is higher than the data transmission rate of the first relay mode, and the relay mode of the first network access device is switched from the first relay mode to the second relay mode, include: 若所述无线中继方式的数据传输速率与指定数值的乘积,高于所述有线中继方式的数据传输速率,将所述第一网络接入设备的中继方式由所述有线中继方式切换为所述无线中继方式,所述指定数值大于0且不大于1。If the product of the data transmission rate of the wireless relay mode and the specified value is higher than the data transmission rate of the wired relay mode, change the relay mode of the first network access device to the wired relay mode. Switch to the wireless relay mode, and the specified value is greater than 0 and not greater than 1. 5.根据权利要求2所述的方法,其特征在于,所述通信性能信息包括在指定历史时间段内断开的次数;所述基于所述比对的结果,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式,包括:5. The method according to claim 2, wherein the communication performance information includes the number of disconnections within a specified historical period; and based on the comparison result, it is determined whether the first network Switching the relay mode of the access device from the first relay mode to the second relay mode includes: 若所述第二中继方式在指定历史时间段内断开的次数,少于所述第一中继方式在指定历史时间段内的断开次数,将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。If the number of disconnections of the second relay mode within the specified historical time period is less than the number of disconnections of the first relay mode within the specified historical time period, the center of the first network access device will be The relay mode is switched from the first relay mode to the second relay mode. 6.根据权利要求1所述的方法,其特征在于,所述第一中继方式包括有线中继方式,所述第二中继方式包括无线中继方式。6. The method according to claim 1, wherein the first relay mode includes a wired relay mode, and the second relay mode includes a wireless relay mode. 7.根据权利要求6所述的方法,其特征在于,所述通信性能信息包括数据传输速率,所述获取第二中继方式对应的通信性能信息,包括:7. The method according to claim 6, wherein the communication performance information includes a data transmission rate, and the obtaining the communication performance information corresponding to the second relay mode includes: 获取基于所述第一网络接入设备所处的通信环境与所述第二网络接入设备协商得到所述数据传输速率。Obtaining the data transmission rate through negotiation with the second network access device based on the communication environment in which the first network access device is located. 8.根据权利要求6所述的方法,其特征在于,所述方法还包括:8. The method according to claim 6, characterized in that, the method further comprises: 若确定将所述第一网络接入设备的中继方式由所述有线中继方式切换为所述无线中继方式,使用预先与所述第二网络接入设备建立的无线连接对第二网络接入设备提供的网络进行中继。If it is determined to switch the relay mode of the first network access device from the wired relay mode to the wireless relay mode, use the wireless connection previously established with the second network access device to communicate with the second network. Access the network provided by the device for relaying. 9.根据权利要求1所述的方法,其特征在于,所述方法还包括:9. The method according to claim 1, characterized in that, the method further comprises: 若将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式,使得所述第一中继方式所对应的数据传输接口处于阻塞状态。If the relay mode of the first network access device is switched from the first relay mode to the second relay mode, the data transmission interface corresponding to the first relay mode is in a blocked state. 10.一种设备控制装置,其特征在于,运行于第一网络接入设备,所述装置包括:10. A device control device, characterized in that it runs on the first network access device, and the device includes: 通信性能获取单元,用于在所述第一网络接入设备通过第一中继方式对第二网络接入设备提供的网络进行中继的情况下,获取第二中继方式对应的通信性能信息;A communication performance acquisition unit configured to obtain communication performance information corresponding to the second relay mode when the first network access device relays the network provided by the second network access device through the first relay mode. ; 中继方式控制单元,用于根据所述第二中继方式对应的通信性能信息,确定是否将所述第一网络接入设备的中继方式由所述第一中继方式切换为所述第二中继方式。A relay mode control unit configured to determine whether to switch the relay mode of the first network access device from the first relay mode to the third relay mode according to the communication performance information corresponding to the second relay mode. Two relay modes. 11.一种网络接入设备,其特征在于,包括一个或多个处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行权利要求1-9任一所述的方法。11. A network access device, characterized in that it includes one or more processors and a memory; one or more programs are stored in the memory and configured to execute rights by the one or more processors. The method described in any one of claims 1-9. 12.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码被处理器运行时执行权利要求1-9任一所述的方法。12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores program code, wherein when the program code is run by a processor, the method of any one of claims 1-9 is executed. method.
CN202310452140.1A 2023-04-21 2023-04-21 Equipment control method and device and network access equipment Pending CN117295136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310452140.1A CN117295136A (en) 2023-04-21 2023-04-21 Equipment control method and device and network access equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310452140.1A CN117295136A (en) 2023-04-21 2023-04-21 Equipment control method and device and network access equipment

Publications (1)

Publication Number Publication Date
CN117295136A true CN117295136A (en) 2023-12-26

Family

ID=89243262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310452140.1A Pending CN117295136A (en) 2023-04-21 2023-04-21 Equipment control method and device and network access equipment

Country Status (1)

Country Link
CN (1) CN117295136A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119652885A (en) * 2024-12-09 2025-03-18 南京致融电气科技有限公司 An integrated DC microgrid stable operation information transmission method and docking device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119652885A (en) * 2024-12-09 2025-03-18 南京致融电气科技有限公司 An integrated DC microgrid stable operation information transmission method and docking device

Similar Documents

Publication Publication Date Title
US20250007969A1 (en) Communication Protocol Switching Method, Apparatus, and System
US20180014063A1 (en) Method and Apparatus for Accessing a Terminal Device Camera to a Target Device
CN113872712B (en) Communication processing method, device, electronic equipment and storage medium
CN108377157B (en) Control method and device of Wi-Fi antenna
CN110602683B (en) Bluetooth control method, device, mobile terminal and storage medium
CN109274407A (en) Data transmission method, device, electronic device, and storage medium
CN111294857A (en) Intelligent display screen, control method, storage medium and electronic equipment
CN109640379B (en) Link aggregation implementation method and related product
CN108513347A (en) A kind of data transmission method and electronic equipment
CN114629932A (en) Collaboration method between electronic devices and electronic device
US12284407B2 (en) Electronic device for transmitting and receiving media stream and operation method therefor
CN117295136A (en) Equipment control method and device and network access equipment
CN109298846B (en) Audio transmission method, device, electronic device and storage medium
CN111277972B (en) A method for determining QoS parameters of a direct communication interface and related equipment
CN118139210B (en) Method, device and system for connecting router
CN115866569A (en) Device control method, device, electronic device and storage medium
CN115297356A (en) Equipment interaction method, system and device
CN114501582A (en) Wi-Fi connection method, device, terminal and wireless access point
KR100638439B1 (en) Data communication method using clustering of mobile communication terminal and system implementing the same
US20230069718A1 (en) Data Communication Method and Related Apparatus
CN110896567A (en) Data transmission method and device based on WIFI
CN110248375B (en) Communication method and wireless access point
CN118349208A (en) Method, device and electronic device for determining circulation target
CN116232793A (en) Device control method, device and network device
CN117319968A (en) Equipment connection method and device, audio playing equipment and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20250415

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Country or region after: China

Address before: 311100 room 1001, building 9, Xixi bafangcheng, Wuchang Street, Yuhang District, Hangzhou City, Zhejiang Province

Applicant before: Hangzhou douku Software Technology Co.,Ltd.

Country or region before: China