WO2016184049A1 - 一种网口插入的检测方法、装置及终端、存储介质 - Google Patents
一种网口插入的检测方法、装置及终端、存储介质 Download PDFInfo
- Publication number
- WO2016184049A1 WO2016184049A1 PCT/CN2015/094198 CN2015094198W WO2016184049A1 WO 2016184049 A1 WO2016184049 A1 WO 2016184049A1 CN 2015094198 W CN2015094198 W CN 2015094198W WO 2016184049 A1 WO2016184049 A1 WO 2016184049A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- network port
- network
- pin
- state
- detecting
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
- G06F11/267—Reconfiguring circuits for testing, e.g. LSSD, partitioning
Definitions
- the present invention relates to a mobile communication technology, and in particular, to a method, an apparatus, a terminal, and a storage medium for detecting a network port insertion.
- the latest user-friendly interface (UFI) product has integrated the network port.
- standby current loss is an important performance indicator of a product. It is related to the success or failure of a product.
- the products with traditional integrated network port functions use power input mode for power supply, and there is no handheld device for power saving function of network port.
- the stringent requirements of the equipment, the minimum standby current of the network port function module should be above 10MA, and the standby current of the handheld device is generally far less than 3mA, which poses a great challenge to the endurance of the product.
- an embodiment of the present invention provides a method, an apparatus, a terminal, and a storage medium for detecting a network port insertion.
- the generated terminal signal is sent to the processor to notify the processor that a network cable is inserted into the network port.
- the device includes: a first pin, a second pin, a first elastic piece connected to the first pin, and a second elastic piece connected to the second pin;
- triggering the device in the network port to change from the first state to the second state including:
- the first elastic piece in the network port is triggered to be in contact with the second elastic piece, so that the first pin is connected to the second pin.
- generating an interrupt signal when the device in the network port changes from the first state to the second state, generating an interrupt signal includes:
- An interrupt signal is generated when the first pin in the network port is connected to the second pin.
- the detecting unit is configured to trigger, when the network cable is inserted into the network port, the device in the network port to change from the first state to the second state;
- a generating unit configured to generate an interrupt signal when the device in the network port changes from the first state to the second state
- the sending unit is configured to send the generated terminal signal to the processor to notify the processor that the network cable is inserted into the network port.
- the device includes: a first pin, a second pin, a first elastic piece connected to the first pin, and a second elastic piece connected to the second pin;
- the detecting unit is further configured to trigger the first elastic piece in the network port to contact the second elastic piece when the network cable is inserted into the network port, so that the first pin is connected to the second pin.
- the generating unit is further configured to generate an interrupt signal when the first pin in the network port is connected to the second pin.
- the terminal provided by the embodiment of the present invention includes: a detecting device, a processor, and a network for inserting a network port Functional module; among them,
- the detecting device inserted in the network port is configured to trigger a device in the network port to change from a first state to a second state when the network cable is inserted into the network port; and when the device in the network port changes from the first state to the second state a state, generating an interrupt signal; transmitting the generated terminal signal to the processor to notify the processor that a network cable is inserted into the network port;
- the processor is configured to: after receiving the notification that the network cable is inserted into the network port, control the network function module to be in an open state; and when the component in the network port is in the first state, the control network function module is in a closed state;
- the network function module is configured to perform data transmission with the network cable through the network port when the network function is in an open state.
- the device includes: a first pin, a second pin, a first elastic piece connected to the first pin, and a second elastic piece connected to the second pin;
- the detecting device for inserting the network port includes: a detecting unit configured to trigger the first elastic piece in the network port to contact the second elastic piece when the network cable is inserted into the network port, so that the first pin and the second lead The feet are connected.
- the detecting device for inserting the network port includes: a generating unit configured to generate an interrupt signal when the first pin of the network port is connected to the second pin.
- the detecting device for inserting the network port includes: a sending unit, configured to send the generated terminal signal to the processor, to notify the processor that a network cable is inserted into the network port.
- the storage medium provided by the embodiment of the present invention stores a computer program configured to perform the foregoing method for detecting network port insertion.
- the network port is implemented through a crystal plug (RJ45) interface, and the newly added device in the network port can be realized by, but not limited to, two pins and a spring piece respectively connected to the two pins.
- the device in the network port is triggered to send changes. Generate an interrupt signal.
- the generated terminal signal is sent to the processor (CPU) to notify the processor that the network cable is inserted into the network port, so that the network port function module is in the working state.
- the technical solution of the embodiment of the present invention can completely shut down the network function module in a state where the network cable is not inserted into the network port, and directly compares with the technology that the existing physical layer (PHY) uses the polling manner to detect the network port insertion.
- the standby current of the network port is reduced to nearly 0 mA (only leakage current can be neglected), and the purpose of power saving is achieved. Therefore, the terminal has longer battery life and better user experience.
- FIG. 1 is a schematic flowchart of a method for detecting a network port insertion according to an embodiment of the present invention
- FIG. 2 is a schematic diagram of a pin in a network port according to an embodiment of the present invention.
- FIG. 3 is a perspective view of a network port according to an embodiment of the present invention.
- FIG. 4 is a schematic diagram 1 of a terminal signal circuit according to an embodiment of the present invention.
- FIG. 5 is a second schematic diagram of a terminal signal circuit according to an embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of a device for detecting a network port insertion according to an embodiment of the present invention.
- FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
- FIG. 1 is a schematic flowchart of a method for detecting a network port insertion according to an embodiment of the present invention. As shown in FIG. 1 , the method for detecting a network port insertion includes the following steps:
- Step 101 When the network cable is inserted into the network port, triggering the device in the network port to change from the first state to the second state.
- the network cable refers to a network plug and a connection line.
- the network port can be an RJ45 interface, and the general RJ45 interface has eight pins (Pin), which are called the first leg, the second leg, ..., the first 8 feet.
- a device is newly added to the RJ45 interface, and the device includes: a first pin, a second pin, a first elastic piece connected to the first pin, and a second elastic piece connected to the second pin.
- an embodiment of the present invention adds two new pins, called PinA and PinB, to the RJ45 interface.
- PinA extends a metal shrapnel structure called shrapnel A;
- PinB extends a metal shrapnel structure called shrapnel B.
- the first elastic piece in the network port is triggered to be in contact with the second elastic piece, and the first pin is connected to the second pin.
- the elastic piece A is pressed, so that the contact state of the elastic piece A and the elastic piece B changes.
- the newly added device in the network port in the embodiment of the present invention is not limited to the above manner, and may be other implementation manners, for example, two new pieces are newly added in the network port, and the newly added two pieces are respectively connected with the remaining eight in the network port.
- the unused pins of the pins are connected.
- the two springs in the trigger network port are in contact, so that the two pins are connected.
- the embodiment of the present invention may not only be connected to the two pins through the elastic piece, but also may be through other switching devices, such as a snap-in card slot.
- Step 102 Generate an interrupt signal when the device in the network port changes from the first state to the second state.
- a circuit is designed between two pins in the device, and is carried on a printed circuit board (PCB).
- PCB printed circuit board
- the device in the network port changes from the first state to the second state, that is, when the first pin of the network port is connected to the second pin, between the first pin and the second pin
- the circuit generates an interrupt signal
- the elastic piece A and the elastic piece B when the network cable is inserted into the network port, the elastic piece A and the elastic piece B are in contact with each other, and the PinA and the PinB are connected; when the network cable is not inserted into the network opening, the elastic piece A and the elastic piece B are separated, and the PinA and the PinB are not connected.
- the practical application is not limited to this. It can also be designed to contact the elastic piece A and the elastic piece B. PinA and PinB are not connected.
- the elastic piece A and the elastic piece B are separated, PinA and PinB. Connected.
- two pins PinA and PinB are added to a common network port; two shrapnels are added to the inner side wall of the network port to communicate with PinA and PinB, and the shrapnel name is the shrapnel A and the shrapnel B.
- the elastic piece A and the elastic piece B are pressed into contact, and after the network cable is pulled out, the elastic piece A is restored, and the elastic piece A and the elastic piece B are disconnected. Thereby, the on-off state of PinA and PinB before and after the insertion of the network cable is changed.
- a high level interrupt signal can be generated through PinA and PinB, and a low level interrupt signal can also be generated.
- Step 103 Send the generated terminal signal to the processor to notify the processor that a network cable is inserted into the network port.
- PinA and PinB respectively represent two Pins added to RJ45, PinA passes through a pull-down resistor to ground (GND) and is connected to the interrupt pin of the processor; PinB is connected to the power supply (VCC) when the network cable is not inserted into the network.
- VCC power supply
- the port is connected, PinA and PinB are not connected, and the interrupt pin level of the processor is low.
- the network cable is plugged into the network port, PinA and PinB are connected together, and the interrupt pin level of the processor becomes high level, thereby notifying The processor has a network cable inserted into the network port.
- PinA and PinB respectively represent two Pins added to RJ45, PinA is pulled up to the power supply (VCC) through a resistor, and is connected to the processor interrupt pin, PinB is directly connected to the ground (GND), when the network cable is not inserted into the network.
- VCC power supply
- GND ground
- the level of the processor interrupt pin is high.
- the interrupt pin of the processor becomes low level, thereby notifying The processor has a network cable inserted into the network port.
- the processor controls the network function module to be in an open state; when the component in the network port is in the first state, and the PinA and the PinB are not connected, the control network function module is in the Turn off the state to save power, extend battery life and enhance the user experience.
- FIG. 6 is a schematic structural diagram of a device for detecting a network port insertion according to an embodiment of the present invention, as shown in FIG. 6 As shown, the device includes:
- the detecting unit 61 is configured to trigger, when the network cable is inserted into the network port, the device in the network port to change from the first state to the second state;
- the generating unit 62 is configured to generate an interrupt signal when the device in the network port changes from the first state to the second state;
- the sending unit 63 is configured to send the generated terminal signal to the processor to notify the processor that the network cable is inserted into the network port.
- the device includes: a first pin, a second pin, a first elastic piece connected to the first pin, and a second elastic piece connected to the second pin;
- the detecting unit 61 is further configured to trigger the first elastic piece in the network port to contact the second elastic piece when the network cable is inserted into the network port, so that the first pin is connected to the second pin.
- the generating unit 62 is further configured to generate an interrupt signal when the first pin in the network port is connected to the second pin.
- each unit in the detecting device for inserting the network port shown in FIG. 6 can be understood by referring to the related description of the detecting method for inserting the network port.
- each module in the detecting device inserted into the network port may be a central processing unit (CPU), or a digital signal processor (DSP), or a programmable gate array (FPGA, Field- Programmable Gate Array) implementation.
- CPU central processing unit
- DSP digital signal processor
- FPGA Field- Programmable Gate Array
- FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in FIG. 7, the terminal includes: a detecting device 71 for inserting a network port, a processor 72, and a network function module 73.
- the detecting device 71 of the network port is configured to trigger the device in the network port to change from the first state to the second state when the network cable is inserted into the network port; when the device in the network port changes from the first state to the first state In the second state, an interrupt signal is generated; the generated terminal signal is sent to the processor 72 to notify the processor 72 that a network cable is inserted into the network port;
- the processor 72 is configured to: after receiving the notification that the network cable is inserted into the network port, control the network function module 73 to be in an open state; when the component in the network port is in the first state, the control network function module 73 is in the Disabled;
- the network function module 73 is configured to perform data transmission with the network cable through the network port when the network function is in an open state.
- the device includes: a first pin, a second pin, a first elastic piece connected to the first pin, and a second elastic piece connected to the second pin;
- the detecting device 71 of the network port includes: a detecting unit (not shown) configured to trigger the first elastic piece in the network port to contact the second elastic piece when the network cable is inserted into the network port, so that the The first pin is connected to the second pin.
- the detecting device 71 for inserting the network port includes: a generating unit (not shown) configured to generate an interrupt when the first pin of the network port is connected to the second pin signal.
- the detecting device 71 for inserting the network port includes: a sending unit (not shown) configured to send the generated terminal signal to the processor 72 to notify the processor 72 A network cable is inserted into the network port.
- the network port insertion detecting device when the network port insertion detecting device is implemented in the form of a software function module and sold or used as a separate product, it may also be stored in a computer readable storage medium.
- the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
- a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes: a U disk, a mobile hard disk, and a read only memory (ROM, Read Only Memory), a disk or a disc, and other media that can store program code.
- ROM Read Only Memory
- a disk or a disc and other media that can store program code.
- the embodiment of the present invention further provides a storage medium, wherein a computer program is stored, and the computer program is used to execute the method for detecting network port insertion in the embodiment of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
- Details Of Connecting Devices For Male And Female Coupling (AREA)
Abstract
本发明公开了一种网口插入的检测方法、装置及终端、存储介质,所述方法包括:当网线插入网口时,触发所述网口中的器件由第一状态变化至第二状态;当所述网口中的器件由第一状态变化至第二状态时,生成中断信号;向处理器发送所生成的终端信号,以向所述处理器通知有网线插入网口。
Description
本发明涉及移动通信技术,尤其涉及一种网口插入的检测方法、装置及终端、存储介质。
随着移动通信技术的发展,网口这一在传统交换机,笔记本电脑,家用路由器上的通用接口正在向手持式移动终端产品迈进,例如最新的用户方便接口(UFI)类产品已经集成了网口功能。在手持产品中,待机电流损耗是产品的一个重要性能指标,关系到一个产品的成败,传统集成网口功能的产品,其供电均采用电源输入的方式,对网口功能的省电没有手持类设备的严苛要求,网口功能模块待机电流最小也要在10MA以上,和手持式设备待机电流一般小于3mA的要求相差甚远,给产品的续航能力造成极大的挑战。
面对越来越多集成网口功能的手持类设备,迫切需要解决网口功能模块待机时功耗大的问题。
发明内容
为解决上述技术问题,本发明实施例提供了一种网口插入的检测方法、装置及终端、存储介质。
本发明实施例提供的网口插入的检测方法包括:
当网线插入网口时,触发所述网口中的器件由第一状态变化至第二状态;
当所述网口中的器件由第一状态变化至第二状态时,生成中断信号;
向处理器发送所生成的终端信号,以向所述处理器通知有网线插入网口。
本发明实施例中,所述器件包括:第一引脚、第二引脚、与第一引脚相连的第一弹片、与第二引脚相连的第二弹片;
所述当网线插入网口时,触发所述网口中的器件由第一状态变化至第二状态,包括:
当网线插入网口时,触发所述网口中的第一弹片与第二弹片相接触,而使得所述第一引脚与第二引脚相连接。
本发明实施例中,所述当所述网口中的器件由第一状态变化至第二状态时,生成中断信号,包括:
当所述网口中的第一引脚与第二引脚相连接时,生成中断信号。
本发明实施例提供的网口插入的检测装置包括:
检测单元,配置为当网线插入网口时,触发所述网口中的器件由第一状态变化至第二状态;
生成单元,配置为当所述网口中的器件由第一状态变化至第二状态时,生成中断信号;
发送单元,配置为向处理器发送所生成的终端信号,以向所述处理器通知有网线插入网口。
本发明实施例中,所述器件包括:第一引脚、第二引脚、与第一引脚相连的第一弹片、与第二引脚相连的第二弹片;
所述检测单元,还配置为当网线插入网口时,触发所述网口中的第一弹片与第二弹片相接触,而使得所述第一引脚与第二引脚相连接。
本发明实施例中,所述生成单元,还配置为当所述网口中的第一引脚与第二引脚相连接时,生成中断信号。
本发明实施例提供的终端包括:网口插入的检测装置、处理器、网络
功能模块;其中,
所述网口插入的检测装置,配置为当网线插入网口时,触发所述网口中的器件由第一状态变化至第二状态;当所述网口中的器件由第一状态变化至第二状态时,生成中断信号;向所述处理器发送所生成的终端信号,以向所述处理器通知有网线插入网口;
所述处理器,配置为当接收到有网线插入网口的通知后,控制所述网络功能模块处开启状态;当所述网口中的元件处于第一状态时,控制网络功能模块处于关闭状态;
所述网络功能模块,配置为当处于开启状态时,通过所述网口与所述网线进行数据的传输。
本发明实施例中,所述器件包括:第一引脚、第二引脚、与第一引脚相连的第一弹片、与第二引脚相连的第二弹片;
所述网口插入的检测装置包括:检测单元,配置为当网线插入网口时,触发所述网口中的第一弹片与第二弹片相接触,而使得所述第一引脚与第二引脚相连接。
本发明实施例中,所述网口插入的检测装置包括:生成单元,配置为当所述网口中的第一引脚与第二引脚相连接时,生成中断信号。
本发明实施例中,所述网口插入的检测装置包括:发送单元,配置为向所述处理器发送所生成的终端信号,以向所述处理器通知有网线插入网口。
本发明实施例提供的存储介质中存储有计算机程序,所述计算机程序配置为执行前述的网口插入的检测方法。
本发明实施例的技术方案中,网口通过水晶插头(RJ45)接口实现,网口中新增加的器件可以但不局限于通过两个引脚以及与两个引脚分别相连的弹片实现。当网线插入网口时,会触发网口中的器件发送变化,从而
生成中断信号。将生成的终端信号发送给处理器(CPU),以向处理器通知有网线插入网口,从而唤醒网口功能模块处于工作状态。本发明实施例的技术方案,可以在网线未插入网口的状态下,将网络功能模块完全关掉,与现有物理层(PHY)采用轮询的方式检测网口插入的技术相比,直接将网口的待机电流降低到接近0mA(仅存在漏电流,可忽略),达到了省电的目的。从而使终端的续航能力更长,用户体验更好。
图1为本发明实施例的网口插入的检测方法的流程示意图;
图2为本发明实施例的网口中的引脚示意图;
图3为本发明实施例的网口立体示意图;
图4为本发明实施例的终端信号电路示意图一;
图5为本发明实施例的终端信号电路示意图二;
图6为本发明实施例的网口插入的检测装置的结构组成示意图;
图7为本发明实施例的终端的结构组成示意图。
为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明实施例。
图1为本发明实施例的网口插入的检测方法的流程示意图,如图1所示,所述网口插入的检测方法包括以下步骤:
步骤101:当网线插入网口时,触发所述网口中的器件由第一状态变化至第二状态。
本发明实施例中,网线是指网络插头和连接线。网口可以是RJ45接口,一般的RJ45接口具有八个引脚(Pin),分别称为第1脚、第2脚、…、第
8脚。本发明实施例在RJ45接口中新增加一个器件,该器件包括:第一引脚、第二引脚、与第一引脚相连的第一弹片、与第二引脚相连的第二弹片。
具体地,参照图2,本发明实施例在RJ45接口中新增加两个引脚,称为PinA和PinB。PinA延伸出1个金属弹片结构件,称为弹片A;PinB延伸出1个金属弹片结构件,称为弹片B。
本发明实施例中,当网线插入网口时,触发所述网口中的第一弹片与第二弹片相接触,而使得所述第一引脚与第二引脚相连接。具体地,当网线插入网口时,会触压弹片A,使得弹片A与弹片B的接触状态发生变化。
当然,本发明实施例中在网口中新增加的器件不局限于上述方式,还可以是其他实现方式,例如,在网口中新增加两个弹片,新增加的两个弹片分别与网口中其余八个引脚中的未使用的引脚相连,当网线插入网口时,触发网口中的两个弹片相接触,从而使得两个引脚相连。
并且,本发明实施例也可以不仅限于通过弹片实现两个引脚的相连,还可以通过其他开关器件,例如卡扣卡槽。
步骤102:当所述网口中的器件由第一状态变化至第二状态时,生成中断信号。
本发明实施例中,器件中的两个引脚之间设计有电路,承载在印制电路板(PCB,Printed Circuit Board)上。
当所述网口中的器件由第一状态变化至第二状态时,即当所述网口中的第一引脚与第二引脚相连接时,通过第一引脚与第二引脚之间的电路,生成中断信号。
本发明实施例中,网线插入时网口时,弹片A和弹片B相接触,PinA和PinB相连接;网线未插入网口时,弹片A和弹片B相分离,PinA和PinB未连接。实际应用不限于此,也可以设计为弹片A和弹片B相接触,PinA和PinB未连接;网线未插入网口时,弹片A和弹片B相分离,PinA和PinB
相连接。
参照图3,本发明实施例中,在常用的网口上增加2个引脚PinA和PinB;网口内部侧壁增加2个弹片分别和PinA和PinB连通,定义弹片名称为弹片A和弹片B,当网线插入网口后,会挤压弹片A和弹片B接触,网线拔出后,弹片A会恢复,弹片A和弹片B断开。从而实现PinA和PinB在网线插入前后的通断状态改变。
本发明实施例中,可以通过PinA和PinB产生高电平中断信号,也可以产生低电平中断信号。
步骤103:向处理器发送所生成的终端信号,以向所述处理器通知有网线插入网口。
参照图4,PinA和PinB分别代表RJ45上增加的2个Pin,PinA通过一个下拉电阻到地(GND),并连接到处理器的中断脚;PinB连接到电源(VCC),当网线未插入网口时,PinA和PinB不连通,处理器的中断脚电平为低电平,当网线插入网口,导致PinA和PinB连接在一起,处理器的中断脚电平变为高电平,从而通知处理器有网线插入网口。
参照图5,PinA和PinB分别代表RJ45上增加的2个Pin,PinA通过电阻上拉到电源(VCC),并连接到处理器中断脚,PinB直接连接到地(GND),当网线未插入网口时,PinA和PinB不连通,处理器中断脚的电平为高电平,当网线插入网口,导致PinA和PinB触碰在一起时,处理器的中断脚变为低电平,从而通知处理器有网线插入网口。
本发明实施例中,处理器接收到有网线插入网口的通知后,控制网络功能模块处开启状态;当网口中的元件处于第一状态,及PinA与PinB未连接时,控制网络功能模块处于关闭状态,从而节省功耗,延长续航时间,提升用户体验。
图6为本发明实施例的网口插入的检测装置的结构组成示意图,如图6
所示,所述装置包括:
检测单元61,配置为当网线插入网口时,触发所述网口中的器件由第一状态变化至第二状态;
生成单元62,配置为当所述网口中的器件由第一状态变化至第二状态时,生成中断信号;
发送单元63,配置为向处理器发送所生成的终端信号,以向所述处理器通知有网线插入网口。
本发明实施例中,所述器件包括:第一引脚、第二引脚、与第一引脚相连的第一弹片、与第二引脚相连的第二弹片;
所述检测单元61,还配置为当网线插入网口时,触发所述网口中的第一弹片与第二弹片相接触,而使得所述第一引脚与第二引脚相连接。
本发明实施例中,所述生成单元62,还配置为当所述网口中的第一引脚与第二引脚相连接时,生成中断信号。
本领域技术人员应当理解,图6所示的网口插入的检测装置中的各单元的实现功能可参照前述网口插入的检测方法的相关描述而理解。
实际应用中,所述网口插入的检测装置中各个模块可由中央处理器(CPU,Central Processing Unit)、或数字信号处理器(DSP,Digital Signal Processor)、或可编程门阵列(FPGA,Field-Programmable Gate Array)实现。
图7为本发明实施例的终端的结构组成示意图,如图7所示,所述终端包括:网口插入的检测装置71、处理器72、网络功能模块73;其中,
所述网口插入的检测装置71,配置为当网线插入网口时,触发所述网口中的器件由第一状态变化至第二状态;当所述网口中的器件由第一状态变化至第二状态时,生成中断信号;向所述处理器72发送所生成的终端信号,以向所述处理器72通知有网线插入网口;
所述处理器72,配置为当接收到有网线插入网口的通知后,控制所述网络功能模块73处开启状态;当所述网口中的元件处于第一状态时,控制网络功能模块73处于关闭状态;
所述网络功能模块73,配置为当处于开启状态时,通过所述网口与所述网线进行数据的传输。
本发明实施例中,所述器件包括:第一引脚、第二引脚、与第一引脚相连的第一弹片、与第二引脚相连的第二弹片;
所述网口插入的检测装置71包括:检测单元(图中未示出),配置为当网线插入网口时,触发所述网口中的第一弹片与第二弹片相接触,而使得所述第一引脚与第二引脚相连接。
本发明实施例中,所述网口插入的检测装置71包括:生成单元(图中未示出),配置为当所述网口中的第一引脚与第二引脚相连接时,生成中断信号。
本发明实施例中,所述网口插入的检测装置71包括:发送单元(图中未示出),配置为向所述处理器72发送所生成的终端信号,以向所述处理器72通知有网线插入网口。
本领域技术人员应当理解,图7所示的终端中的各器件的实现功能可参照前述网口插入的检测方法的相关描述而理解。
本发明实施例上述网口插入的检测装置如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,
Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。
相应地,本发明实施例还提供一种存储介质,其中存储有计算机程序,该计算机程序用于执行本发明实施例的网口插入的检测方法。
以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围,如不同的实现结构。因此,本发明的保护范围应以权力要求书的保护范围为准。
Claims (11)
- 一种网口插入的检测方法,所述方法包括:当网线插入网口时,触发所述网口中的器件由第一状态变化至第二状态;当所述网口中的器件由第一状态变化至第二状态时,生成中断信号;向处理器发送所生成的终端信号,以向所述处理器通知有网线插入网口。
- 根据权利要求1所述的网口插入的检测方法,其中,所述器件包括:第一引脚、第二引脚、与第一引脚相连的第一弹片、与第二引脚相连的第二弹片;所述当网线插入网口时,触发所述网口中的器件由第一状态变化至第二状态,包括:当网线插入网口时,触发所述网口中的第一弹片与第二弹片相接触,而使得所述第一引脚与第二引脚相连接。
- 根据权利要求2所述的网口插入的检测方法,其中,所述当所述网口中的器件由第一状态变化至第二状态时,生成中断信号,包括:当所述网口中的第一引脚与第二引脚相连接时,生成中断信号。
- 一种网口插入的检测装置,所述装置包括:检测单元,配置为当网线插入网口时,触发所述网口中的器件由第一状态变化至第二状态;生成单元,配置为当所述网口中的器件由第一状态变化至第二状态时,生成中断信号;发送单元,配置为向处理器发送所生成的终端信号,以向所述处理器通知有网线插入网口。
- 根据权利要求4所述的网口插入的检测装置,其中,所述器件包括: 第一引脚、第二引脚、与第一引脚相连的第一弹片、与第二引脚相连的第二弹片;所述检测单元,还配置为当网线插入网口时,触发所述网口中的第一弹片与第二弹片相接触,而使得所述第一引脚与第二引脚相连接。
- 根据权利要求5所述的网口插入的检测装置,其中,所述生成单元,还配置为当所述网口中的第一引脚与第二引脚相连接时,生成中断信号。
- 一种终端,所述终端包括:网口插入的检测装置、处理器、网络功能模块;其中,所述网口插入的检测装置,配置为当网线插入网口时,触发所述网口中的器件由第一状态变化至第二状态;当所述网口中的器件由第一状态变化至第二状态时,生成中断信号;向所述处理器发送所生成的终端信号,以向所述处理器通知有网线插入网口;所述处理器,配置为当接收到有网线插入网口的通知后,控制所述网络功能模块处开启状态;当所述网口中的元件处于第一状态时,控制网络功能模块处于关闭状态;所述网络功能模块,配置为当处于开启状态时,通过所述网口与所述网线进行数据的传输。
- 根据权利要求7所述的终端,其中,所述器件包括:第一引脚、第二引脚、与第一引脚相连的第一弹片、与第二引脚相连的第二弹片;所述网口插入的检测装置包括:检测单元,配置为当网线插入网口时,触发所述网口中的第一弹片与第二弹片相接触,而使得所述第一引脚与第二引脚相连接。
- 根据权利要求8所述的终端,其中,所述网口插入的检测装置包括:生成单元,配置为当所述网口中的第一引脚与第二引脚相连接时,生成中断信号。
- 根据权利要求7至9任一项所述的终端,其中,所述网口插入的检测装置包括:发送单元,配置为向所述处理器发送所生成的终端信号,以向所述处理器通知有网线插入网口。
- 一种存储介质,所述存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行权利要求1-3任一项所述的网口插入的检测方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510258030.7 | 2015-05-19 | ||
| CN201510258030.7A CN106294057B (zh) | 2015-05-19 | 2015-05-19 | 一种网口插入的检测方法、装置及终端 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016184049A1 true WO2016184049A1 (zh) | 2016-11-24 |
Family
ID=57319264
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/094198 Ceased WO2016184049A1 (zh) | 2015-05-19 | 2015-11-10 | 一种网口插入的检测方法、装置及终端、存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106294057B (zh) |
| WO (1) | WO2016184049A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115865743A (zh) * | 2022-11-22 | 2023-03-28 | 四川天邑康和通信股份有限公司 | 一种实现融合型机顶盒网络连通性检测的装置及方法 |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106792181A (zh) * | 2017-02-14 | 2017-05-31 | 广州视源电子科技股份有限公司 | 一种用于智能电视的待机唤醒方法及装置 |
| CN108632084A (zh) * | 2018-03-30 | 2018-10-09 | 天津麒麟信息技术有限公司 | 一种基于飞腾处理器内置gmac网络控制器的网口状态更新方法 |
| CN112134774B (zh) * | 2020-09-22 | 2022-04-22 | Oppo广东移动通信有限公司 | 客户前置设备、客户前置设备的通信控制方法及存储介质 |
| CN112860399B (zh) * | 2021-02-03 | 2022-03-25 | 科东(广州)软件科技有限公司 | 工业服务器的网口状态检测方法、装置、设备及存储介质 |
| CN113471773A (zh) * | 2021-05-28 | 2021-10-01 | 山东英信计算机技术有限公司 | 一种rj45插座装置、服务器及网络切换方法 |
| CN118282898B (zh) * | 2024-05-07 | 2025-04-18 | 青岛珞宾通信有限公司 | 一种网线插入检测方法 |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1764891A (zh) * | 2003-03-24 | 2006-04-26 | 索尼株式会社 | 网络连接的管理方法及电子装置 |
| CN203422433U (zh) * | 2013-08-21 | 2014-02-05 | 深圳创景技术有限公司 | 网线插入的检测接口结构 |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN202256562U (zh) * | 2011-09-29 | 2012-05-30 | 宁波意欧迅网络通信有限公司 | 网线的检测装置 |
-
2015
- 2015-05-19 CN CN201510258030.7A patent/CN106294057B/zh active Active
- 2015-11-10 WO PCT/CN2015/094198 patent/WO2016184049A1/zh not_active Ceased
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1764891A (zh) * | 2003-03-24 | 2006-04-26 | 索尼株式会社 | 网络连接的管理方法及电子装置 |
| CN203422433U (zh) * | 2013-08-21 | 2014-02-05 | 深圳创景技术有限公司 | 网线插入的检测接口结构 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115865743A (zh) * | 2022-11-22 | 2023-03-28 | 四川天邑康和通信股份有限公司 | 一种实现融合型机顶盒网络连通性检测的装置及方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106294057A (zh) | 2017-01-04 |
| CN106294057B (zh) | 2019-10-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2016184049A1 (zh) | 一种网口插入的检测方法、装置及终端、存储介质 | |
| US9298236B2 (en) | Multi-stage power adapter configured to provide a first power level upon initial connection of the power adapter to the host device and a second power level thereafter upon notification from the host device to the power adapter | |
| EP2942716A1 (en) | Sim card hot-plug guard and sim card on-site shutdown swipe-card method, and terminal | |
| EP3361582B1 (en) | Usb type-c plug and cable | |
| CN106471697A (zh) | 控制充电的方法、装置、电源适配器和移动终端 | |
| CN107786223B (zh) | 防止sim卡烧卡的方法、装置和计算机设备 | |
| CN106649010A (zh) | 一种终端设备测试方法及终端设备 | |
| CN109271273A (zh) | 一种通讯异常恢复的方法、异常恢复设备及存储介质 | |
| CN109560581B (zh) | 充电处理方法、充电处理电路、电子设备及存储介质 | |
| CN106451400B (zh) | 一种保护电路和供电方法 | |
| CN105825153A (zh) | 一种移动终端保护方法及装置 | |
| CN106055455B (zh) | 一种按键的防干扰方法及装置 | |
| CN108958811A (zh) | 一种关机方法、装置、设备及计算机可读存储介质 | |
| CN107613126A (zh) | Uart与usb复用电路以及移动终端 | |
| CN112526898B (zh) | 一种串口线插拔检测电路和嵌入式设备 | |
| CN108512561A (zh) | 一种卡托弹出机构、卡托弹出方法及移动终端 | |
| CN106534288A (zh) | 一种数据传输方法及移动终端 | |
| CN104285454B (zh) | 无线连接的切换方法,无线终端及其系统 | |
| CN106066819A (zh) | 一种备份信息的方法及装置 | |
| CN103049347A (zh) | 死机监测和复位装置 | |
| CN106776228B (zh) | 一种移动终端的安全保护方法和移动终端 | |
| CN110046108A (zh) | Usb外设控制装置、系统及其控制方法 | |
| CN105098854B (zh) | 充电方法与电子装置 | |
| CN107577567B (zh) | 主板测试电路及相关产品 | |
| CN107436659A (zh) | 移动终端及其管理方法、计算机可读存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15892425 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 15892425 Country of ref document: EP Kind code of ref document: A1 |