[go: up one dir, main page]

CN112134774B - Customer premises equipment, communication control method for customer premises equipment, and storage medium - Google Patents

Customer premises equipment, communication control method for customer premises equipment, and storage medium Download PDF

Info

Publication number
CN112134774B
CN112134774B CN202011003122.8A CN202011003122A CN112134774B CN 112134774 B CN112134774 B CN 112134774B CN 202011003122 A CN202011003122 A CN 202011003122A CN 112134774 B CN112134774 B CN 112134774B
Authority
CN
China
Prior art keywords
mode
communication bus
use state
network interface
state
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.)
Active
Application number
CN202011003122.8A
Other languages
Chinese (zh)
Other versions
CN112134774A (en
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
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011003122.8A priority Critical patent/CN112134774B/en
Publication of CN112134774A publication Critical patent/CN112134774A/en
Application granted granted Critical
Publication of CN112134774B publication Critical patent/CN112134774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Telephone Function (AREA)

Abstract

本申请实施例公开了一种客户前置设备、客户前置设备的通信控制方法及存储介质,该客户前置设备包括:通信总线、网络接口和处理器,处理器分别与所述通信总线和所述网络接口连接,所述处理器用于:获取所述网络接口的使用状态;根据所述网络接口的使用状态,控制所述通信总线的使用状态。本申请以软件设计替代硬件设计的方式,动态控制通信总线的使用状态,可以降低通信总线在通信过程中产生的干扰,降低系统功耗,进而提升软件的性能。

Figure 202011003122

The embodiment of the present application discloses a customer premises equipment, a communication control method and a storage medium for the customer premises equipment. The customer premises equipment includes: a communication bus, a network interface, and a processor, and the processor is connected to the communication bus and the processor, respectively. The network interface is connected, and the processor is configured to: acquire the use state of the network interface; and control the use state of the communication bus according to the use state of the network interface. In the present application, the software design replaces the hardware design to dynamically control the use state of the communication bus, which can reduce the interference generated by the communication bus during the communication process, reduce the power consumption of the system, and further improve the performance of the software.

Figure 202011003122

Description

客户前置设备、客户前置设备的通信控制方法及存储介质Customer premises equipment, communication control method for customer premises equipment, and storage medium

技术领域technical field

本申请涉及电子技术领域,尤其涉及一种客户前置设备、客户前置设备的通信控制方法及存储介质。The present application relates to the field of electronic technologies, and in particular, to a customer premises equipment, a communication control method for the customer premises equipment, and a storage medium.

背景技术Background technique

CPE(Customer Premise Equipment,客户前置设备)是一种接收移动信号,并以无线WIFI信号转发出来的移动信号接入设备。RGMII(Reduced Gigabit Media IndependentInterface,吉比特介质独立接口)作为处理器和交换芯片的上行通信总线。相关技术中,在处理器端将RGMII使能处于常开状态,这种设计会增大系统功耗。CPE (Customer Premise Equipment) is a mobile signal access device that receives mobile signals and forwards them with wireless WIFI signals. RGMII (Reduced Gigabit Media Independent Interface, Gigabit Media Independent Interface) is used as the upstream communication bus of the processor and the switch chip. In the related art, the RGMII is enabled in a normally-on state on the processor side, and this design will increase the power consumption of the system.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种客户前置设备、客户前置设备的通信控制方法及存储介质,可以降低通信总线在通信过程中产生的干扰,降低系统功耗,进而提升软件的性能。Embodiments of the present application provide a customer premises equipment, a communication control method for the customer premises equipment, and a storage medium, which can reduce interference generated by a communication bus during a communication process, reduce system power consumption, and further improve software performance.

第一方面,本申请实施例提供一种客户前置设备,其包括:In a first aspect, an embodiment of the present application provides a customer front-end device, which includes:

通信总线;communication bus;

网络接口;Network Interface;

处理器,所述处理器分别与所述通信总线和所述网络接口连接,所述处理器用于:a processor, which is respectively connected to the communication bus and the network interface, and the processor is used for:

获取所述网络接口的使用状态;obtain the usage status of the network interface;

根据所述网络接口的使用状态,控制所述通信总线的使用状态。The use state of the communication bus is controlled according to the use state of the network interface.

第二方面,本申请实施例还提供客户前置设备的通信控制方法,所述客户前置设备包括通信总线和网络接口,所述方法包括:In a second aspect, the embodiments of the present application also provide a communication control method for customer front-end equipment, where the customer front-end equipment includes a communication bus and a network interface, and the method includes:

获取所述网络接口的使用状态;obtain the usage status of the network interface;

根据所述网络接口的使用状态,控制所述通信总线的使用状态。The use state of the communication bus is controlled according to the use state of the network interface.

第三方面,本申请实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行本申请实施例提供的客户前置设备的通信控制方法。In a third aspect, embodiments of the present application provide a storage medium on which a computer program is stored, and when the computer program is executed on a computer, causes the computer to execute the communication control of the customer premises equipment provided by the embodiments of the present application method.

本申请实施例中,客户前置设备包括:通信总线、网络接口和处理器,处理器分别与所述通信总线和所述网络接口连接,所述处理器用于:获取所述网络接口的使用状态;根据所述网络接口的使用状态,控制所述通信总线的使用状态。本申请以软件设计替代硬件设计的方式,动态控制通信总线的使用状态,可以降低通信总线在通信过程中产生的干扰,降低系统功耗,进而提升软件的性能。In the embodiment of the present application, the customer front-end equipment includes: a communication bus, a network interface, and a processor, the processor is respectively connected to the communication bus and the network interface, and the processor is used for: acquiring the usage status of the network interface ; Control the use state of the communication bus according to the use state of the network interface. In the present application, the software design replaces the hardware design to dynamically control the use state of the communication bus, which can reduce the interference generated by the communication bus during the communication process, reduce the power consumption of the system, and further improve the performance of the software.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. 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 from these drawings without creative effort.

图1是本申请实施例提供的客户前置设备的第一种结构框图。FIG. 1 is a first structural block diagram of a customer front-end device provided by an embodiment of the present application.

图2是本申请实施例提供的客户前置设备的第二种结构框图。FIG. 2 is a second structural block diagram of the customer premises equipment provided by the embodiment of the present application.

图3是本申请实施例提供的客户前置设备的通信控制方法的第一种流程示意图。FIG. 3 is a first schematic flowchart of a communication control method for a customer premises equipment provided by an embodiment of the present application.

图4是本申请实施例提供的客户前置设备的通信控制方法的第二种流程示意图。FIG. 4 is a second schematic flowchart of a communication control method for a customer premises equipment provided by an embodiment of the present application.

图5是本申请实施例提供的客户前置设备的第三种结构框图。FIG. 5 is a third structural block diagram of the customer premises equipment provided by the embodiment of the present application.

具体实施方式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 a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of this application.

本申请实施例提供一种客户前置设备。该客户前置设备可以为CPE设备,CPE设备用于实现网络接入功能,将运营商公司WAN(Wide Area Network,广域网)转换到用户家庭局域网LAN(Local Area Network,局域网)。按当前的互联网宽带接入方式,可分为光纤接入、数字电话线路接入、有线电视线接入以及移动接入等。CPE设备是一种接收移动信号,并以无线WIFI信号转发出来的移动信号接入设备,是一种将高速4G或者5G信号转换成WIFI信号的设备,能够支持多个电子设备同时上网。The embodiment of the present application provides a customer pre-installation device. The customer front-end device may be a CPE device, and the CPE device is used to implement a network access function and convert a WAN (Wide Area Network, wide area network) of an operator company to a user's home local area network (LAN, Local Area Network, local area network). According to the current Internet broadband access methods, it can be divided into optical fiber access, digital telephone line access, cable TV line access and mobile access. A CPE device is a mobile signal access device that receives mobile signals and forwards them with wireless WIFI signals. It is a device that converts high-speed 4G or 5G signals into WIFI signals, and can support multiple electronic devices to surf the Internet at the same time.

请参阅图1,图1是本申请实施例提供的客户前置设备的第一种结构框图。该客户前置设备10可以包括通信总线11、网络接口12、处理器13、存储器14。Please refer to FIG. 1 . FIG. 1 is a first structural block diagram of a customer premise device provided by an embodiment of the present application. The customer premises equipment 10 may include a communication bus 11 , a network interface 12 , a processor 13 , and a memory 14 .

其中,通信总线11是客户前置设备10中各通信功能部件实现数据传输的公共通信干线,是由导线组成的传输线束,通信总线11是一种内部结构,是处理器13、内存等器件传递信息的公用通道。Among them, the communication bus 11 is the common communication trunk line for the communication functional components in the customer front-end equipment 10 to realize data transmission, and is a transmission harness composed of wires. public channel of information.

比如,在客户前置设备10中将RGMII作为处理器13和交换芯片的上行通信总线。其中,可以为交换芯片在上行与处理器13连接,并连接该通信总线11。RGMII采用四位数据接口,工作时钟为125MHz,在上升沿和下降沿同时传输数据,传输速率可达1000Mbps(Millionbits per second,是一种传输速率单位,每秒传输的比特数量),采用RGMII的目的能够降低电路成本,使使用RGMII接口的器件的引脚数从25个减少到14个。For example, in the customer premises equipment 10, the RGMII is used as the upstream communication bus of the processor 13 and the switch chip. Wherein, the switch chip can be connected to the processor 13 in the upstream, and connected to the communication bus 11 . RGMII adopts a four-bit data interface, the working clock is 125MHz, and the data is transmitted on the rising and falling edges at the same time, and the transmission rate can reach 1000Mbps (Millionbits per second, which is a transmission rate unit, the number of bits transmitted per second). The purpose is to reduce the circuit cost and reduce the pin count of devices using the RGMII interface from 25 to 14.

其中,网络接口12可以用于连接网线以实现客户前置设备10的宽带上网连接。网络接口12可以与交换芯片的下行连接,在交换芯片的下行位置可以设置一个或多个网络接口12,也就是说,通过不同的网络接口12可以使客户前置设备10连接不同运营商的宽带网络或者是连接同一运营商的宽带网络的不同分支。Wherein, the network interface 12 can be used for connecting a network cable to realize the broadband Internet connection of the customer premises equipment 10 . The network interface 12 can be connected to the downlink of the switch chip, and one or more network interfaces 12 can be set at the downlink position of the switch chip, that is to say, the customer front-end equipment 10 can be connected to the broadband of different operators through different network interfaces 12 A network or a different branch of a broadband network connected to the same operator.

可以理解的是,客户前置设备10中网络接口12电连接于交换芯片的下行位置,交换芯片的上行位置电连接于处理器13,处理器13电连接于上行通信总线,即通信总线11。因此,通过检测网络接口12的使用状态可以进一步检测到通信总线11的使用状态。It can be understood that the network interface 12 in the customer premise equipment 10 is electrically connected to the downstream position of the switching chip, the upstream position of the switching chip is electrically connected to the processor 13 , and the processor 13 is electrically connected to the upstream communication bus, namely the communication bus 11 . Therefore, the usage state of the communication bus 11 can be further detected by detecting the usage state of the network interface 12 .

具体地,请继续参阅图1,处理器13可用来处理客户前置设备10的各种操作,处理器13和存储器14可以集成在电路板上,处理器13分别与通信总线11、网络接口12及存储器14电连接。Specifically, please continue to refer to FIG. 1 , the processor 13 can be used to process various operations of the customer premises equipment 10, the processor 13 and the memory 14 can be integrated on the circuit board, and the processor 13 is respectively connected to the communication bus 11 and the network interface 12. and is electrically connected to the memory 14 .

处理器13是客户前置设备10的控制中心,利用各种接口和线路连接整个客户前置设备10的各个部分,通过运行或加载存储在存储器14内的计算机程序,以及调用存储在存储器14内的数据,执行客户前置设备10的各种功能并处理出局,从而对客户前置设备10进行整体监控。The processor 13 is the control center of the customer front-end equipment 10, and uses various interfaces and lines to connect various parts of the entire customer-end front-end equipment 10, by running or loading the computer program stored in the memory 14, and calling the computer program stored in the memory 14. data, perform various functions of the customer front-end equipment 10 and process outgoing calls, so as to monitor the customer front-end equipment 10 as a whole.

该处理器13可以获取网络接口的使用状态;根据网络接口的使用状态,控制通信总线的使用状态。The processor 13 can acquire the use state of the network interface; and control the use state of the communication bus according to the use state of the network interface.

需要理解的是,相关技术中,在处理器13端将通信总线使能处于常开状态,但由于通信总线11的特性会对125MHz的通信频段造成通信干扰,并且在通信总线11处于打开状态时,会相应占用许多系统的资源,比如内存资源,中断资源,存储资源等等。在本实施例中,为减少通信总线11造成的干扰,通过网络接口12的使用状态,控制通信总线11的使用状态,在不需要使用通信总线11时将其关闭,避免对通信造成干扰,并且在通信总线11处于关闭状态时会相应减少对系统资源的占用,使客户前置设备20中的其他软件性能提升。It should be understood that, in the related art, the communication bus is enabled to be in a normally open state at the processor 13 side, but due to the characteristics of the communication bus 11, it will cause communication interference in the communication frequency band of 125 MHz, and when the communication bus 11 is in the open state , it will occupy many system resources, such as memory resources, interrupt resources, storage resources and so on. In this embodiment, in order to reduce the interference caused by the communication bus 11, the use state of the communication bus 11 is controlled through the use state of the network interface 12, and the communication bus 11 is turned off when it is not needed to avoid interference to communication, and When the communication bus 11 is in a closed state, the occupation of system resources will be correspondingly reduced, so that the performance of other software in the customer premise equipment 20 is improved.

其中,网络接口12的使用状态可以包括插入状态和拔出状态,通信总线11的使用状态可以包括打开状态和关闭状态。当网络接口12的使用状态处于插入状态时,处理器13控制通信总线11使能打开,以使通信总线11的使用状态处于打开状态;当网络接口12的使用状态处于拔出状态时,控制通信总线11使能关闭,以使通信总线11的使用状态处于关闭状态。其中,通信总线11使能打开或关闭是处理器13发出的控制信号,该控制信号包括输入和输出,输入代表允许信号,即使能打开;输出代表拒绝信号,即使能关闭。Wherein, the use state of the network interface 12 may include an inserted state and an unplugged state, and the use state of the communication bus 11 may include an open state and a closed state. When the use state of the network interface 12 is in the plug-in state, the processor 13 controls the communication bus 11 to be turned on, so that the use state of the communication bus 11 is in the open state; when the use state of the network interface 12 is in the unplugged state, it controls the communication The bus 11 is enabled to close, so that the use state of the communication bus 11 is in the closed state. Among them, the communication bus 11 can be turned on or off is a control signal sent by the processor 13, the control signal includes input and output, the input represents the permission signal, that is, it can be turned on;

在一些实施例中,处理器13获取到的网络接口12的使用状态是基于网络接口12两端电平值是否发生变化得到的。其中,网络接口12具有初始电平值,处理器13获取网络接口12的当前电平值;判断当前电平值与初始电平值是否相同;若相同,则确定网络接口的使用状态处于拔出状态;若不相同,则确定网络接口的使用状态处于插入状态。In some embodiments, the usage status of the network interface 12 obtained by the processor 13 is obtained based on whether the level values at both ends of the network interface 12 change. Wherein, the network interface 12 has an initial level value, and the processor 13 obtains the current level value of the network interface 12; judges whether the current level value is the same as the initial level value; state; if not, it is determined that the use state of the network interface is in the plugged state.

可以理解的是,若当前电平值与初始电平值相同的话,说明网络接口12两端的电平值未发生变化,即网络接口12并未被网线插入,处于拔出状态;若当前电平值与初始电平值不相同的话,说明网络接口12两端的电平值发生了变化,即网络接口12插入了网线,处于插入状态。由此,可以根据网络接口12的使用状态,进一步检测出通信总线11的使用状态。It can be understood that, if the current level value is the same as the initial level value, it means that the level values at both ends of the network interface 12 have not changed, that is, the network interface 12 is not plugged in by the network cable and is in the unplugged state; If the value is different from the initial level value, it means that the level value at both ends of the network interface 12 has changed, that is, the network interface 12 is in an inserted state with a network cable inserted. Thereby, the use state of the communication bus 11 can be further detected based on the use state of the network interface 12 .

请参阅图2,图2是本申请实施例提供的客户前置设备的第二种结构框图。该客户前置设备20可以包括通信总线21、处理器22、存储器23、SIM卡接口24以及网络接口25。Please refer to FIG. 2. FIG. 2 is a second structural block diagram of the customer premises equipment provided by the embodiment of the present application. The customer premises equipment 20 may include a communication bus 21 , a processor 22 , a memory 23 , a SIM card interface 24 and a network interface 25 .

其中,客户前置设备20上可以设置SIM卡接口24和网络接口25,以实现该客户前置设备20的不同网络模式。因此,可以通过业务逻辑判断客户前置设备20使用的网络模式是有线网络服务还是无线网络服务。其中,有线网络服务需通过网线连接网络接口25,无线网络服务需将SIM卡插入SIM卡接口24以获取移动数据网络。Wherein, the SIM card interface 24 and the network interface 25 may be provided on the customer front-end device 20 to realize different network modes of the customer-end device 20 . Therefore, whether the network mode used by the customer premises equipment 20 is a wired network service or a wireless network service can be determined through business logic. The wired network service needs to be connected to the network interface 25 through a network cable, and the wireless network service needs to insert the SIM card into the SIM card interface 24 to obtain the mobile data network.

该客户前置设备20的网络模式包括第一模式和第二模式,可以将通过SIM卡接口24得到的网络模式为第一模式,将通过网络接口25得到的网络模式为第二模式。处理器22可以获取客户前置设备20的当前网络模式;当当前网络模式为第一模式时,控制通信总线21使能关闭,以使通信总线21的使用状态处于关闭状态;当当前网络模式为第二模式时,控制通信总线21使能打开,以使通信总线21的使用状态处于打开状态。The network mode of the customer premises equipment 20 includes a first mode and a second mode, the network mode obtained through the SIM card interface 24 may be the first mode, and the network mode obtained through the network interface 25 may be the second mode. The processor 22 can obtain the current network mode of the customer front-end device 20; when the current network mode is the first mode, the control communication bus 21 is enabled to be closed, so that the use state of the communication bus 21 is in the closed state; when the current network mode is In the second mode, the communication bus 21 is controlled to be turned on, so that the use state of the communication bus 21 is in the open state.

具体地,可以通过获取当前网络模式下客户前置设备20生成的数据的类型来判断当前网络模式的类型。比如说,客户前置设备20生成的数据类型为通过5G或4G网络产生的数据,就说明当前的网络模式为第一模式;客户前置设备20生成的数据类型为通过宽带网络产生的数据,就说明当前的网络模式为第二模式。Specifically, the type of the current network mode can be determined by acquiring the type of data generated by the customer premises equipment 20 in the current network mode. For example, if the type of data generated by the customer front-end equipment 20 is data generated through a 5G or 4G network, it means that the current network mode is the first mode; the type of data generated by the customer-end equipment 20 is data generated through a broadband network, It means that the current network mode is the second mode.

因此,当当前网络模式为第一模式时,说明客户前置设备20通过5G或4G网络产生数据,此时网络接口25处于拔出状态,进而控制通信总线21使能关闭,使通信总线21处于关闭状态;当当前网络模式为第二模式时,说明客户前置设备20通过宽带网络产生数据,此时网络接口25处于插入状态,进而控制通信总线21使能打开,使通信总线21处于打开状态。Therefore, when the current network mode is the first mode, it means that the customer front-end device 20 generates data through the 5G or 4G network. At this time, the network interface 25 is in the unplugged state, and then the communication bus 21 is controlled to be enabled and closed, so that the communication bus 21 is in the state of being pulled out. Closed state; when the current network mode is the second mode, it means that the customer front-end equipment 20 generates data through the broadband network, and the network interface 25 is in the plug-in state at this time, and then the communication bus 21 is controlled to be turned on, so that the communication bus 21 is in the open state .

需要说明的是,上述通过客户前置设备20的不同网络模式控制通信总线21的使用状态,可以在当前网络模式不需要通信总线21工作时,将该通信总线21使能关闭,避免对通信造成干扰。It should be noted that the above-mentioned control of the use state of the communication bus 21 through different network modes of the customer front-end device 20 can enable and close the communication bus 21 when the current network mode does not require the communication bus 21 to work, so as to avoid causing communication problems. interference.

在一些实施例中,客户前置设备20可以处于第一模式和第二模式同时工作的状态,也就是该客户前置设备20所产生的数据包括5G或4G网络和宽带网络同时产生的数据,为了进一步实现对通信总线21使用状态的控制,可采取以下方式。In some embodiments, the customer premises equipment 20 may be in a state in which the first mode and the second mode work simultaneously, that is, the data generated by the customer premises equipment 20 includes data simultaneously generated by the 5G or 4G network and the broadband network, In order to further realize the control of the use state of the communication bus 21, the following methods can be adopted.

在一些实施例中,当获取到的当前网络模式为第一模式和第二模式同时进行时,分别获取预设时间内客户前置设备在第一模式下生成的第一数据和在第二模式下生成的第二数据;比较第一数据和第二数据的大小;当第一数据大于第二数据,则控制通信总线使能关闭,以使通信总线的使用状态处于关闭状态;当第一数据小于第二数据,则控制通信总线使能打开,以使通信总线的使用状态处于打开状态。In some embodiments, when the acquired current network mode is that the first mode and the second mode are performed simultaneously, the first data generated by the customer front-end equipment in the first mode and the second mode are respectively acquired within a preset time. compare the size of the first data and the second data; when the first data is greater than the second data, then control the communication bus to enable and close, so that the use state of the communication bus is in a closed state; when the first data If it is less than the second data, control the communication bus enable to open, so that the use state of the communication bus is in the open state.

比如,预设时间可以设置为1分钟,在1分钟内该客户前置设备20产生的总数据大小为1000M,该总数据包括第一数据和第二数据。其中,第一数据为800M,第二数据为200M,由于第一数据大于第二数据,则说明该客户前置设备20通过5G或4G网络产生的数据800M大于通过宽带网络产生的数据200M。可以理解的是,该客户前置设备20所产生数据的网络模式更倾向于第一模式,因此,可以控制通信接口25处于拔出状态,进而控制通信总线21使能关闭,以使通信总线21处于关闭状态。同理,若第一数据小于第二数据,则可以将该客户前置设备20的网络模式更倾向于第二模式,使通信总线21处于打开状态。For example, the preset time may be set to 1 minute, and the total data size generated by the customer front-end device 20 in 1 minute is 1000M, and the total data includes the first data and the second data. Wherein, the first data is 800M and the second data is 200M. Since the first data is larger than the second data, it means that the data 800M generated by the customer premises equipment 20 through the 5G or 4G network is greater than the data 200M generated through the broadband network. It can be understood that the network mode of the data generated by the customer premise equipment 20 is more inclined to the first mode. Therefore, the communication interface 25 can be controlled to be in the unplugged state, and then the communication bus 21 can be controlled to be turned off, so that the communication bus 21 is closed. Similarly, if the first data is smaller than the second data, the network mode of the customer premises equipment 20 may be more inclined to the second mode, so that the communication bus 21 is in an open state.

在一些实施例中,如果第一数据与第二数据的大小相等或相差的数值小于预设阈值,则可以将该通信总线21处于打开状态,以使该客户前置设备20同时在第一模式和第二模式的网络模式下进行工作。其中,预设阈值的大小可以根据不同客户前置设备20进行相应的设定,在此不作具体限定。In some embodiments, if the size of the first data and the second data are equal or differ by a value smaller than a preset threshold, the communication bus 21 may be in an open state, so that the customer premises equipment 20 is in the first mode at the same time and the second mode to work in the network mode. The size of the preset threshold may be set according to different customer front-end devices 20 , which is not specifically limited here.

由上可知,本实施例中,客户前置设备包括:通信总线、网络接口和处理器,处理器分别与通信总线和网络接口连接,所述处理器用于:获取所述网络接口的使用状态;根据所述网络接口的使用状态,控制所述通信总线的使用状态。通过以软件设计替代硬件设计的方式,动态控制通信总线的使用状态,可以降低通信总线在通信过程中产生的干扰,降低系统功耗,进而提升软件的性能。As can be seen from the above, in this embodiment, the customer front-end equipment includes: a communication bus, a network interface and a processor, the processor is respectively connected to the communication bus and the network interface, and the processor is used for: acquiring the use state of the network interface; The use state of the communication bus is controlled according to the use state of the network interface. By replacing hardware design with software design, the use state of the communication bus can be dynamically controlled, which can reduce the interference generated by the communication bus during the communication process, reduce system power consumption, and improve software performance.

本申请实施例还提供了一种客户前置设备的通信控制方法,请参阅图3,图3是本申请实施例提供的客户前置设备的通信控制方法的第一种流程示意图。处理器可以通过调用存储器中存储的计算机程序,以执行该客户前置设备的通信控制方法,该客户前置设备的通信控制方法可以包括以下步骤:An embodiment of the present application also provides a communication control method for a customer premises equipment. Please refer to FIG. 3 . FIG. 3 is a first schematic flowchart of the communication control method for a customer premises equipment provided by an embodiment of the application. The processor may execute the communication control method of the customer premises equipment by calling the computer program stored in the memory, and the communication control method of the customer premises equipment may include the following steps:

101,获取网络接口的使用状态。101. Obtain the usage status of the network interface.

相关技术中,在处理器端将通信总线使能处于常开状态,但由于通信总线的特性会对125MHz的通信频段造成通信干扰,并且在通信总线处于打开状态时,会相应占用许多系统的资源,比如内存资源,中断资源,存储资源等等。在本实施例中,为减少通信总线造成的干扰,通过网络接口的使用状态,控制通信总线的使用状态,在不需要使用通信总线时将其关闭,避免对通信造成干扰,并且在通信总线处于关闭状态时会相应减少对系统资源的占用,使客户前置设备中的其他软件性能提升。In the related art, the communication bus is enabled in the normally open state on the processor side, but due to the characteristics of the communication bus, it will cause communication interference in the communication frequency band of 125MHz, and when the communication bus is in the open state, it will occupy a lot of system resources accordingly. , such as memory resources, interrupt resources, storage resources, etc. In this embodiment, in order to reduce the interference caused by the communication bus, the use state of the communication bus is controlled through the use state of the network interface, and the communication bus is turned off when it is not needed to avoid interference to the communication, and when the communication bus is in the In the closed state, the occupation of system resources will be correspondingly reduced, and the performance of other software in the customer's pre-installed equipment will be improved.

其中,网络接口可以用于连接网络以实现客户前置设备的宽带上网连接。网络接口可以与交换芯片的下行连接,在交换芯片的下行位置可以设置一个或多个网络接口,也就是说,通过不同的网络接口可以使客户前置设备连接不同运营商的宽带网络或者是连接同一运营商的宽带网络的不同分支。Wherein, the network interface can be used to connect the network to realize the broadband Internet connection of the customer premise equipment. The network interface can be connected to the downlink of the switching chip, and one or more network interfaces can be set at the downlink position of the switching chip. Different branches of the same operator's broadband network.

其中,网络接口的使用状态包括插入状态和拔出状态。The use state of the network interface includes a plugged-in state and an unplugged state.

102,根据网络接口的使用状态,控制通信总线的使用状态。102. Control the use state of the communication bus according to the use state of the network interface.

由于客户前置设备中网络接口电连接于交换芯片的下行位置,交换芯片的上行位置电连接于处理器,处理器电连接于上行通信总线,即通信总线。因此,通过检测网络接口的使用状态可以进一步检测到通信总线的使用状态。Because the network interface in the customer front-end equipment is electrically connected to the downstream position of the switching chip, the upstream position of the switching chip is electrically connected to the processor, and the processor is electrically connected to the upstream communication bus, ie, the communication bus. Therefore, the usage state of the communication bus can be further detected by detecting the usage state of the network interface.

其中,通信总线的使用状态包括打开状态和关闭状态。Among them, the use state of the communication bus includes an open state and a closed state.

当网络接口的使用状态处于插入状态时,控制通信总线使能打开,以使通信总线的使用状态处于打开状态;当网络接口的使用状态处于拔出状态时,控制通信总线使能关闭,以使通信总线的使用状态处于关闭状态。其中,通信总线使能打开或关闭是处理器发出的控制信号,该控制信号包括输入和输出,输入代表允许信号,即使能打开;输出代表拒绝信号,即使能关闭。When the use state of the network interface is in the plug-in state, the control communication bus enable is turned on, so that the use state of the communication bus is in the open state; when the use state of the network interface is in the unplugged state, the control communication bus enable is turned off to enable The usage status of the communication bus is off. Among them, the communication bus enable to open or close is a control signal sent by the processor, the control signal includes input and output, the input represents an allow signal, that is, it can be opened; the output represents a rejection signal, that is, it can be closed.

在一些实施例中,获取到的网络接口的使用状态是基于网络接口两端电平值是否发生变化得到的。其中,网络接口具有初始电平值,获取网络接口的当前电平值;判断当前电平值与初始电平值是否相同;若相同,则确定网络接口的使用状态处于拔出状态;若不相同,则确定网络接口的使用状态处于插入状态。In some embodiments, the acquired usage state of the network interface is obtained based on whether the level values at both ends of the network interface have changed. Among them, the network interface has an initial level value, and the current level value of the network interface is obtained; it is judged whether the current level value is the same as the initial level value; , it is determined that the use state of the network interface is in the plugged state.

由上可知,本实施例通过获取所述网络接口的使用状态;根据所述网络接口的使用状态,控制所述通信总线的使用状态。通过以软件设计替代硬件设计的方式,动态控制通信总线的使用状态,可以降低通信总线在通信过程中产生的干扰,降低系统功耗,进而提升软件的性能。It can be seen from the above that in this embodiment, the use state of the network interface is obtained; and the use state of the communication bus is controlled according to the use state of the network interface. By replacing hardware design with software design, the use state of the communication bus can be dynamically controlled, which can reduce the interference generated by the communication bus during the communication process, reduce system power consumption, and improve software performance.

请参阅图4,图4是本申请实施例提供的客户前置设备的通信控制方法的第二种流程示意图。其中,该客户前置设备可以为CPE设备。具体步骤可以包括:Please refer to FIG. 4 . FIG. 4 is a second schematic flowchart of a communication control method for a customer premise device provided by an embodiment of the present application. Wherein, the customer front-end device may be a CPE device. Specific steps can include:

201,获取CPE设备的当前网络模式。201. Obtain the current network mode of the CPE device.

其中,该CPE设备上可以设置SIM卡接口和网络接口,以实现该CPE设备的不同网络模式。因此,可以通过业务逻辑判断CPE设备使用的网络模式是有线网络服务还是无线网络服务。其中,有线网络服务需通过网线连接网络接口,无线网络服务需将SIM卡插入SIM卡接口以获取移动数据网络。Wherein, a SIM card interface and a network interface may be set on the CPE device to implement different network modes of the CPE device. Therefore, it can be judged by business logic whether the network mode used by the CPE device is a wired network service or a wireless network service. Among them, the wired network service needs to be connected to the network interface through a network cable, and the wireless network service needs to insert the SIM card into the SIM card interface to obtain the mobile data network.

其中,网络类型可以包括第一模式和第二模式。通过获取当前网络模式下CPE设备生成的数据的类型来判断当前网络模式的类型。比如说,CPE设备生成的数据类型为通过5G或4G网络产生的数据,就说明当前的网络模式为第一模式;CPE设备生成的数据类型为通过宽带网络产生的数据,就说明当前的网络模式为第二模式。Wherein, the network type may include a first mode and a second mode. The type of the current network mode is determined by acquiring the type of data generated by the CPE device in the current network mode. For example, if the type of data generated by the CPE device is data generated through a 5G or 4G network, it means the current network mode is the first mode; if the type of data generated by the CPE device is data generated through a broadband network, it means the current network mode for the second mode.

202,当前网络模式为第一模式,在第一模式下控制通信总线。202. The current network mode is the first mode, and the communication bus is controlled in the first mode.

其中,通过SIM卡接口得到的网络模式为第一模式。当当前网络模式为第一模式时,控制通信总线使能关闭,以使通信总线的使用状态处于关闭状态。The network mode obtained through the SIM card interface is the first mode. When the current network mode is the first mode, the communication bus is controlled to be turned off, so that the use state of the communication bus is in the off state.

具体地,当当前网络模式为第一模式时,说明CPE设备通过5G或4G网络产生数据,此时网络接口处于拔出状态,进而控制通信总线使能关闭,使通信总线处于关闭状态。Specifically, when the current network mode is the first mode, it means that the CPE device generates data through the 5G or 4G network. At this time, the network interface is in the unplugged state, and then the communication bus is controlled to be enabled and closed, so that the communication bus is in the closed state.

203,当前网络模式为第二模式,在第二模式下控制通信总线。203. The current network mode is the second mode, and the communication bus is controlled in the second mode.

其中,通过网络接口得到的网络模式为第二模式。当当前网络模式为第二模式时,控制通信总线使能打开,以使通信总线的使用状态处于打开状态。The network mode obtained through the network interface is the second mode. When the current network mode is the second mode, the communication bus enable is controlled to be turned on, so that the use state of the communication bus is turned on.

具体地,当当前网络模式为第二模式时,说明CPE设备通过宽带网络产生数据,此时网络接口处于插入状态,进而控制通信总线使能打开,使通信总线处于打开状态。Specifically, when the current network mode is the second mode, it means that the CPE device generates data through the broadband network, and the network interface is in the plug-in state at this time, and then the communication bus is controlled to be enabled and turned on, so that the communication bus is in the open state.

204,当前网络模式为第一模式和第二模式,在第一模式和第二模式下控制通信总线。204. The current network mode is the first mode and the second mode, and the communication bus is controlled in the first mode and the second mode.

CPE设备处于第一模式和第二模式同时工作的状态,即CPE设备所陈胜的数据包括5G或4G网络和宽带网络同时产生的数据。The CPE device is in the state of working in the first mode and the second mode at the same time, that is, the data generated by the CPE device includes the data generated by the 5G or 4G network and the broadband network at the same time.

具体地,当获取到的当前网络模式为第一模式和第二模式同时进行时,分别获取预设时间内客户前置设备在第一模式下生成的第一数据和在第二模式下生成的第二数据;比较第一数据和第二数据的大小;当第一数据大于第二数据,则控制通信总线使能关闭,以使通信总线的使用状态处于关闭状态;当第一数据小于第二数据,则控制通信总线使能打开,以使通信总线的使用状态处于打开状态。Specifically, when the acquired current network mode is that the first mode and the second mode are performed simultaneously, respectively acquire the first data generated by the customer front-end device in the first mode and the data generated in the second mode within a preset time. second data; compare the size of the first data and the second data; when the first data is greater than the second data, then control the communication bus to enable and close, so that the use state of the communication bus is in a closed state; when the first data is smaller than the second data data, control the communication bus enable to open, so that the use state of the communication bus is in the open state.

比如,预设时间可以设置为1分钟,在1分钟内该客户前置设备20产生的总数据大小为1000M,该总数据包括第一数据和第二数据。其中,第一数据为800M,第二数据为200M,由于第一数据大于第二数据,则说明该客户前置设备20通过5G或4G网络产生的数据800M大于通过宽带网络产生的数据200M。可以理解的是,该客户前置设备20所产生数据的网络模式更倾向于第一模式,因此,可以控制通信接口25处于拔出状态,进而控制通信总线21使能关闭,以使通信总线21处于关闭状态。同理,若第一数据小于第二数据,则可以将该客户前置设备20的网络模式更倾向于第二模式,使通信总线21处于打开状态。For example, the preset time may be set to 1 minute, and the total data size generated by the customer front-end device 20 in 1 minute is 1000M, and the total data includes the first data and the second data. Wherein, the first data is 800M and the second data is 200M. Since the first data is larger than the second data, it means that the data 800M generated by the customer premises equipment 20 through the 5G or 4G network is greater than the data 200M generated through the broadband network. It can be understood that the network mode of the data generated by the customer premise equipment 20 is more inclined to the first mode. Therefore, the communication interface 25 can be controlled to be in the unplugged state, and then the communication bus 21 can be controlled to be turned off, so that the communication bus 21 is closed. Similarly, if the first data is smaller than the second data, the network mode of the customer premises equipment 20 may be more inclined to the second mode, so that the communication bus 21 is in an open state.

在一些实施例中,如果第一数据与第二数据的大小相等或相差的数值小于预设阈值,则可以将该通信总线21处于打开状态,以使该客户前置设备20同时在第一模式和第二模式的网络模式下进行工作。其中,预设阈值的大小可以根据不同客户前置设备20进行相应的设定,在此不作具体限定。In some embodiments, if the size of the first data and the second data are equal or differ by a value smaller than a preset threshold, the communication bus 21 may be in an open state, so that the customer premises equipment 20 is in the first mode at the same time and the second mode to work in the network mode. The size of the preset threshold may be set according to different customer front-end devices 20 , which is not specifically limited here.

综上所述,通过CPE设备的不同网络模式控制通信总线21的使用状态,可以在当前网络模式不需要通信总线工作时,将该通信总线使能关闭,避免对通信造成干扰。To sum up, by controlling the use state of the communication bus 21 through different network modes of the CPE device, when the current network mode does not require the communication bus to work, the communication bus can be enabled and disabled to avoid interference to communication.

由上可知,本实施例通过获取CPE设备的当前网络模式,在当前网络模式为第一模式、当前网络模式为第二模式以及当前网络模式为第一模式和第二模式时,分别采取不同的控制方式动态控制通信总线的使用状态,可以降低通信总线在通信过程中产生的干扰。It can be seen from the above that in this embodiment, by acquiring the current network mode of the CPE device, when the current network mode is the first mode, the current network mode is the second mode, and the current network mode is the first mode and the second mode, different methods are adopted respectively. The control mode dynamically controls the use state of the communication bus, which can reduce the interference generated by the communication bus during the communication process.

请参阅图5,图5是本申请实施例提供的客户前置设备的第三种结构框图。该客户前置设备30可以包括:通信总线31、处理器32、存储器33、网络接口34、天线结构35以及SIM卡接口36。其中,处理器32分别与通信总线31、存储器33、网络接口34、天线结构35以及SIM卡接口36电性连接。Please refer to FIG. 5 . FIG. 5 is a third structural block diagram of the customer premises equipment provided by the embodiment of the present application. The customer premises equipment 30 may include a communication bus 31 , a processor 32 , a memory 33 , a network interface 34 , an antenna structure 35 and a SIM card interface 36 . The processor 32 is electrically connected to the communication bus 31 , the memory 33 , the network interface 34 , the antenna structure 35 and the SIM card interface 36 respectively.

存储器33可用于存储软件程序以及模块,处理器32通过运行存储在存储器33的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器33可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序等;存储数据区可存储根据电子设备的使用所创建的数据等。The memory 33 can be used to store software programs and modules, and the processor 32 executes various functional applications and data processing by running the computer programs and modules stored in the memory 33 . The memory 33 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, and the like.

此外,存储器33可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器33还可以包括存储器控制器,以提供处理器32对存储器33的访问。Additionally, memory 33 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, memory 33 may also include a memory controller to provide processor 32 access to memory 33 .

通信总线31是客户前置设备30中各通信功能部件实现数据传输的公共通信干线,是由导线组成的传输线束,通信总线31是一种内部结构,是处理器32、内存等器件传递信息的公用通道。The communication bus 31 is a common communication trunk line for data transmission by various communication functional components in the customer front-end equipment 30, and is a transmission harness composed of wires. public channel.

网络接口34可以用于连接网线以实现客户前置设备30的宽带上网连接,实现客户前置设备30的有线网络服务。The network interface 34 can be used to connect a network cable to realize broadband Internet connection of the customer premises equipment 30 and implement wired network services of the customer premises equipment 30 .

SIM卡接口36可以通过具有5G或4G网络的SIM卡插入以获取移动数据网络,以实现客户前置设备30的无线网络服务。The SIM card interface 36 can be inserted through a SIM card with a 5G or 4G network to obtain a mobile data network, so as to realize the wireless network service of the customer premises equipment 30 .

天线结构35可以具有一个、两个或多个,每一天线结构可以分别用于接收和/或发射不同频段的信号,比如,第一天线结构用于接收和/或发射4G信号,第二天线结构用于接收和/或发射5G信号,第三天线结构用于接收和/或发射WIFI信号,第四天线结构用于接收和/或发射GPS信号等等。The antenna structure 35 may have one, two or more, and each antenna structure may be used for receiving and/or transmitting signals of different frequency bands, for example, the first antenna structure is used for receiving and/or transmitting 4G signals, and the second antenna structure is used for receiving and/or transmitting 4G signals. The structure is used to receive and/or transmit 5G signals, the third antenna structure is used to receive and/or transmit WIFI signals, the fourth antenna structure is used to receive and/or transmit GPS signals, and so on.

本申请实施例还提供了一种计算机可读的存储介质,该存储介质存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行上述任一实施例提供的客户前置设备的通信控制方法。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the storage medium, and when the computer program is executed on a computer, the computer is made to execute the client pre-installation provided by any of the foregoing embodiments. The communication control method of the device.

在一些实施例中,当上述计算机程序在计算机上运行时,该计算机执行如下步骤:In some embodiments, when the above computer program is run on a computer, the computer performs the following steps:

获取所述网络接口的使用状态;obtain the usage status of the network interface;

根据所述网络接口的使用状态,控制所述通信总线的使用状态。The use state of the communication bus is controlled according to the use state of the network interface.

以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not described herein again.

其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。Wherein, the storage medium may include: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.

由于该存储介质中所存储的指令,可以执行本申请实施例所提供的任一种客户前置设备的通信控制方法中的步骤,因此,可以实现本申请实施例所提供的任一种客户前置设备的通信控制方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Because the instructions stored in the storage medium can execute the steps in any of the communication control methods of the customer premises equipment provided by the embodiments of the present application, any one of the customer front-end equipment provided by the embodiments of the present application can be implemented. For the beneficial effects that can be achieved by the communication control method of the device, refer to the foregoing embodiments for details, and details are not repeated here.

需要说明的是,对本申请实施例的客户前置设备的通信控制方法而言,本领域普通测试人员可以理解实现本申请实施例的客户前置设备的通信控制方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,该计算机程序可存储于一计算机可读取存储介质中,如存储在客户前置设备的存储器中,并被该客户前置设备内的至少一个处理器执行,在执行过程中可包括如客户前置设备的通信控制方法的实施例的流程。It should be noted that, for the communication control method of the customer premises equipment according to the embodiment of the present application, ordinary testers in the art can understand all or part of the process of realizing the communication control method of the customer premises equipment according to the embodiment of the present application. This is accomplished by controlling the associated hardware by a computer program, which can be stored in a computer-readable storage medium, such as in the memory of a customer premise, and which is executed by at least one processor in the customer premise. Execution, the execution process may include the flow of the embodiment of the communication control method for the customer premise equipment.

以上对本申请实施例所提供的客户前置设备及其通信控制方法进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The customer premises equipment and the communication control method thereof provided by the embodiments of the present application have been introduced in detail above. The principles and implementations of the present application are described herein using specific examples, and the descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; meanwhile, for those skilled in the art, according to the Thoughts, there will be changes in specific embodiments and application scopes. To sum up, the contents of this specification should not be construed as limitations on the present application.

Claims (5)

1.一种客户前置设备,其特征在于,包括:1. a customer front-end equipment, is characterized in that, comprises: 通信总线;communication bus; 网络接口;Network Interface; SIM卡接口;SIM card interface; 处理器,所述处理器分别与所述通信总线和所述网络接口连接,所述处理器用于:a processor, which is respectively connected to the communication bus and the network interface, and the processor is used for: 获取所述网络接口的使用状态、所述SIM卡接口的使用状态以及所述客户前置设备的当前网络模式,所述客户前置设备的网络模式包括第一模式和第二模式;Acquiring the use state of the network interface, the use state of the SIM card interface and the current network mode of the customer premises equipment, the network modes of the customer premises equipment include a first mode and a second mode; 当所述网络接口的使用状态处于插入状态,且所述SIM卡接口处于拔出状态时,所述当前网络模式为所述第二模式,则控制所述通信总线使能打开,以使所述通信总线的使用状态处于打开状态;When the use state of the network interface is in the inserted state and the SIM card interface is in the pulled out state, and the current network mode is the second mode, the communication bus is controlled to be enabled and turned on, so that the The use state of the communication bus is open; 当所述网络接口的使用状态处于拔出状态,且所述SIM卡接口处于插入状态时,所述当前网络模式为所述第一模式,则控制所述通信总线使能关闭,以使所述通信总线的使用状态处于关闭状态;When the use state of the network interface is in the unplugged state and the SIM card interface is in the inserted state, and the current network mode is the first mode, the communication bus is controlled to be enabled and disabled, so that the The use state of the communication bus is closed; 当所述网络接口的使用状态和所述SIM卡接口均处于插入状态时,所述当前网络模式为所述第一模式和所述第二模式同时进行,则分别获取预设时间内所述客户前置设备在所述第一模式下生成的第一数据和在所述第二模式下生成的第二数据;When both the use state of the network interface and the SIM card interface are in the inserted state, and the current network mode is that the first mode and the second mode are performed simultaneously, then the customer is acquired within a preset time respectively. the first data generated by the front-end device in the first mode and the second data generated in the second mode; 比较所述第一数据和所述第二数据的大小;comparing the sizes of the first data and the second data; 当所述第一数据大于所述第二数据,则控制所述通信总线使能关闭,以使所述通信总线的使用状态处于关闭状态;When the first data is greater than the second data, controlling the communication bus to enable and close, so that the use state of the communication bus is in a closed state; 当所述第一数据小于所述第二数据,则控制所述通信总线使能打开,以使所述通信总线的使用状态处于打开状态。When the first data is smaller than the second data, the communication bus is controlled to be enabled and turned on, so that the use state of the communication bus is turned on. 2.根据权利要求1所述的客户前置设备,其特征在于,所述网络接口具有初始电平值,所述处理器还用于:2. The customer premises equipment according to claim 1, wherein the network interface has an initial level value, and the processor is further used for: 获取所述网络接口的当前电平值;Obtain the current level value of the network interface; 判断所述当前电平值与所述初始电平值是否相同;Determine whether the current level value is the same as the initial level value; 若相同,则确定所述网络接口的使用状态处于拔出状态;If they are the same, it is determined that the use state of the network interface is in the unplugged state; 若不相同,则确定所述网络接口的使用状态处于插入状态。If not, it is determined that the use state of the network interface is in the plugged state. 3.一种客户前置设备的通信控制方法,其特征在于,所述客户前置设备包括通信总线、网络接口和SIM卡接口,所述方法包括:3. a communication control method of customer front-end equipment, is characterized in that, described customer front-end equipment comprises communication bus, network interface and SIM card interface, and described method comprises: 获取所述网络接口的使用状态、所述SIM卡接口的使用状态以及所述客户前置设备的当前网络模式,所述客户前置设备的网络模式包括第一模式和第二模式;Acquiring the use state of the network interface, the use state of the SIM card interface and the current network mode of the customer premises equipment, the network modes of the customer premises equipment include a first mode and a second mode; 当所述网络接口的使用状态处于插入状态,且所述SIM卡接口处于拔出状态时,所述当前网络模式为所述第二模式,则控制所述通信总线使能打开,以使所述通信总线的使用状态处于打开状态;When the use state of the network interface is in the inserted state and the SIM card interface is in the pulled out state, and the current network mode is the second mode, the communication bus is controlled to be enabled and turned on, so that the The use state of the communication bus is open; 当所述网络接口的使用状态处于拔出状态,且所述SIM卡接口处于插入状态时,所述当前网络模式为所述第一模式,则控制所述通信总线使能关闭,以使所述通信总线的使用状态处于关闭状态;When the use state of the network interface is in the unplugged state and the SIM card interface is in the inserted state, and the current network mode is the first mode, the communication bus is controlled to be enabled and disabled, so that the The use state of the communication bus is closed; 当所述网络接口的使用状态和所述SIM卡接口均处于插入状态时,所述当前网络模式为所述第一模式和所述第二模式同时进行,则分别获取预设时间内所述客户前置设备在所述第一模式下生成的第一数据和在所述第二模式下生成的第二数据;When both the use state of the network interface and the SIM card interface are in the inserted state, and the current network mode is that the first mode and the second mode are performed simultaneously, then the customer is acquired within a preset time respectively. the first data generated by the front-end device in the first mode and the second data generated in the second mode; 比较所述第一数据和所述第二数据的大小;comparing the sizes of the first data and the second data; 当所述第一数据大于所述第二数据,则控制所述通信总线使能关闭,以使所述通信总线的使用状态处于关闭状态;When the first data is greater than the second data, controlling the communication bus to enable and close, so that the use state of the communication bus is in a closed state; 当所述第一数据小于所述第二数据,则控制所述通信总线使能打开,以使所述通信总线的使用状态处于打开状态。When the first data is smaller than the second data, the communication bus is controlled to be enabled and turned on, so that the use state of the communication bus is turned on. 4.根据权利要求3所述的客户前置设备的通信控制方法,其特征在于,所述网络接口具有初始电平值,所述获取所述网络接口的使用状态,包括:4. The communication control method for customer premises equipment according to claim 3, wherein the network interface has an initial level value, and the acquiring the use state of the network interface comprises: 获取所述网络接口的当前电平值;Obtain the current level value of the network interface; 判断所述当前电平值与所述初始电平值是否相同;Determine whether the current level value is the same as the initial level value; 若相同,则确定所述网络接口的使用状态处于拔出状态;If they are the same, it is determined that the use state of the network interface is in the unplugged state; 若不相同,则确定所述网络接口的使用状态处于插入状态。If not, it is determined that the use state of the network interface is in the plugged state. 5.一种计算机可读的存储介质,其上存储有计算机程序,其特征在于,当所述计算机程序在计算机上执行时,使得所述计算机执行如权利要求3或4所述的客户前置设备的通信控制方法。5. A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed on a computer, the computer is made to execute the client pre-installation as claimed in claim 3 or 4 The communication control method of the device.
CN202011003122.8A 2020-09-22 2020-09-22 Customer premises equipment, communication control method for customer premises equipment, and storage medium Active CN112134774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011003122.8A CN112134774B (en) 2020-09-22 2020-09-22 Customer premises equipment, communication control method for customer premises equipment, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011003122.8A CN112134774B (en) 2020-09-22 2020-09-22 Customer premises equipment, communication control method for customer premises equipment, and storage medium

Publications (2)

Publication Number Publication Date
CN112134774A CN112134774A (en) 2020-12-25
CN112134774B true CN112134774B (en) 2022-04-22

Family

ID=73842426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011003122.8A Active CN112134774B (en) 2020-09-22 2020-09-22 Customer premises equipment, communication control method for customer premises equipment, and storage medium

Country Status (1)

Country Link
CN (1) CN112134774B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116208981B (en) * 2023-01-06 2024-02-23 广州通则康威科技股份有限公司 CPE network optimization method and system
CN118612807B (en) * 2024-08-08 2024-12-13 天翼物联科技有限公司 Network cutting method, device, equipment and medium based on self-adaptive data model

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5764896A (en) * 1996-06-28 1998-06-09 Compaq Computer Corporation Method and system for reducing transfer latency when transferring data from a network to a computer system
EP0944232A2 (en) * 1998-03-20 1999-09-22 Lucent Technologies Inc. Customer premises equipment with reduced power consumption
CN2503673Y (en) * 2001-08-13 2002-07-31 深圳市奥维搏科技有限公司 Ethernet conversion equipment
CN101873679A (en) * 2009-04-23 2010-10-27 瑞昱半导体股份有限公司 Methods and apparatuses of network system with power saving functions
CN202396001U (en) * 2011-12-23 2012-08-22 浙江清华长三角研究院 Wireless network data exchanging card
EP3021558A1 (en) * 2013-07-10 2016-05-18 ZTE Corporation Switching method for network interfaces, access device and computer storage medium
CN208433957U (en) * 2018-07-27 2019-01-25 中船电子科技有限公司 Public network access device

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100477656C (en) * 2005-01-25 2009-04-08 杭州华三通信技术有限公司 Method for Realizing Hot Plugging of Network Interface Board
CN101888314A (en) * 2009-05-11 2010-11-17 智微科技股份有限公司 Network control circuit
CN201557128U (en) * 2009-12-16 2010-08-18 哈尔滨侨航通信设备有限公司 A hardware platform for cluster system interconnection
CN102567238B (en) * 2010-12-13 2015-12-16 联想(北京)有限公司 Interface switching control method, portable terminal device, portable mobile equipment and input equipment
JP2013141170A (en) * 2012-01-06 2013-07-18 Ricoh Co Ltd Communication device
US20130262623A1 (en) * 2012-03-31 2013-10-03 David Hardy Nall Method and apparatus for providing services to clients of static or dynamic hardware.
CN102664766B (en) * 2012-04-12 2016-06-01 Tcl王牌电器(惠州)有限公司 The detecting device of the network port and detection method
CN203313203U (en) * 2013-03-28 2013-11-27 上海斐讯数据通信技术有限公司 Intelligent power-saving router
CN203422433U (en) * 2013-08-21 2014-02-05 深圳创景技术有限公司 Detection interface structure of network cable insertion
CN106294057B (en) * 2015-05-19 2019-10-22 深圳市中兴微电子技术有限公司 Method, device and terminal for detecting network port insertion
TWI631468B (en) * 2017-11-07 2018-08-01 和碩聯合科技股份有限公司 Bonding area impedance detection method and system thereof
CN110610107A (en) * 2018-06-14 2019-12-24 北京众享比特科技有限公司 Network interface, interface device, physical intrusion prevention method, device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5764896A (en) * 1996-06-28 1998-06-09 Compaq Computer Corporation Method and system for reducing transfer latency when transferring data from a network to a computer system
EP0944232A2 (en) * 1998-03-20 1999-09-22 Lucent Technologies Inc. Customer premises equipment with reduced power consumption
CN2503673Y (en) * 2001-08-13 2002-07-31 深圳市奥维搏科技有限公司 Ethernet conversion equipment
CN101873679A (en) * 2009-04-23 2010-10-27 瑞昱半导体股份有限公司 Methods and apparatuses of network system with power saving functions
CN202396001U (en) * 2011-12-23 2012-08-22 浙江清华长三角研究院 Wireless network data exchanging card
EP3021558A1 (en) * 2013-07-10 2016-05-18 ZTE Corporation Switching method for network interfaces, access device and computer storage medium
CN208433957U (en) * 2018-07-27 2019-01-25 中船电子科技有限公司 Public network access device

Also Published As

Publication number Publication date
CN112134774A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
US5960036A (en) Apparatus and method for auto-configuring a communication system
CN215897719U (en) A SIM card switching device and electronic equipment
US8601145B2 (en) Inter-processor communication link with manageability port
CN112134774B (en) Customer premises equipment, communication control method for customer premises equipment, and storage medium
WO2015095215A1 (en) Integrated connector for universal power over ethernet
CN108141370B (en) bus system
EP4152170B1 (en) Equalization training method, apparatus, and system
US10592382B2 (en) Advanced communication computer with dedicated network adaptor processor for sending secure communications across networks
CN110350934A (en) Multi-card terminal and its communication means, computer equipment
US20170329737A1 (en) Two-wire line-multiplexed uart to four-wire high-speed uart bridging with integrated flow control
CN108337095A (en) G.fast SFP modules
US20170118031A1 (en) Apparatus and method for supplying power
CN207926615U (en) Dispatch desk and dispatch system
CN110417559B (en) Ethernet power supply equipment and detection method
US11140023B2 (en) Trace network used as a configuration network
US10637993B1 (en) High-bandwidth home network over phone line
CN113934661B (en) Electronic equipment, control method, device and medium
CN102821444B (en) Automatic power consumption control method and system
CN105915286B (en) Data distribution method and current divider
EP3850799A1 (en) Traffic splitting device
CN103347575B (en) Method, related device and system for processing crosstalk cancelling on port line of access device
US20080101479A1 (en) Method and system for automatic cat cable configuration
WO2021168706A1 (en) Method for determining transmission mode for power line communication and related device
EP3270518B1 (en) Time division duplexing receiver with constant impedance for a broadband line terminal with asynchronous transmission
CN108259679A (en) A kind of call guard method, device, terminal and storage medium

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
GR01 Patent grant
GR01 Patent grant