CN112040220A - MPS key detection method, device and equipment of MoCA node and storage medium - Google Patents

MPS key detection method, device and equipment of MoCA node and storage medium Download PDF

Info

Publication number
CN112040220A
CN112040220A CN202010748804.5A CN202010748804A CN112040220A CN 112040220 A CN112040220 A CN 112040220A CN 202010748804 A CN202010748804 A CN 202010748804A CN 112040220 A CN112040220 A CN 112040220A
Authority
CN
China
Prior art keywords
moca node
detected
moca
node
bit value
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.)
Granted
Application number
CN202010748804.5A
Other languages
Chinese (zh)
Other versions
CN112040220B (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.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN202010748804.5A priority Critical patent/CN112040220B/en
Publication of CN112040220A publication Critical patent/CN112040220A/en
Application granted granted Critical
Publication of CN112040220B publication Critical patent/CN112040220B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/10Adaptations for transmission by electrical cable

Abstract

The invention is applicable to the technical field of networks and provides a method, a device, equipment and a storage medium for MPS key detection of a MoCA node. The method comprises the steps of setting a working mode of a to-be-detected MoCA node as a network security protection mode according to an MPS key detection request, reading a flag bit value in a security mode register on the to-be-detected MoCA node and a flag bit value in an opposite connection state register on the to-be-detected MoCA node when the MPS key of the to-be-detected MoCA node and the MPS key of an accompanied detection MoCA node are monitored to be pressed down, judging whether the flag bit value in the security mode register and the flag bit value in the opposite connection state register meet preset detection rules or not, and confirming that the MPS key function of the to-be-detected MoCA node is normal when the flag bit value in the security mode register and the flag bit value in the opposite connection state register meet the preset detection rules, so that the automation of the MPS key function detection of the MoCA node is.

Description

MPS key detection method, device and equipment of MoCA node and storage medium
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method, an apparatus, a device, and a storage medium for detecting mps (Multimedia over Coax Alliance) keys of a MoCA node.
Background
The method is characterized in that a new function of MPS (MoCA Protected setup) is added to the security of the node provided with the MoCA in the MoCA specification, the function simplifies the setting process of adding a new MoCA node into the MoCA network, the new MoCA node can be added into the MoCA network by an MPS key on the new MoCA node, and meanwhile, each node in the MoCA network shares a specific key to play a role in protecting the node in the MoCA network, so that the MPS improves the security of the MoCA network to a certain extent.
In the prior art, when a new MoCA node is added into an existing MoCA network, the MPS key of the MoCA node needs to be pressed within 2 minutes, otherwise, the operation needs to be performed again after the time is exceeded, and if the MPS key of the MoCA node is pressed within 2 minutes, the new MoCA node is automatically matched to realize the butt-joint function and is accessed into the existing MoCA network. For the first networking, the private protection function needs to be started, the MPS key of the node needs to be pressed within 2 minutes when the MoCA node is connected in a butt-joint mode, and when the MoCA node monitors that the MPS key is pressed, a key is automatically matched to complete the butt-joint.
However, the above operation method is only suitable for the operation of the end user, and the MPS key test process in the mass production of MoCA nodes is not considered in the prior art, and if the MPS key is tested according to a normally used method in the production test and is judged by manual observation, the MPS key detection step has no uniform and controllable standard, and the time consumption is too long, and misjudgment is easy to occur.
Disclosure of Invention
The invention aims to provide an MPS key detection method, device, equipment and storage medium of a MoCA node, aiming at solving the problems that the MPS key detection of the MoCA node in batch production has no uniform and controllable standard, consumes too long time and is easy to misjudge in the prior art.
In one aspect, the present invention provides a MPS key detecting method of a MoCA node, including the following steps:
receiving a detection request for detecting an MPS key of a to-be-detected MoCA node, and setting the working mode of the to-be-detected MoCA node as a network security protection mode according to the MPS key detection request;
respectively monitoring whether an MPS key of the MoCA node to be detected and an MPS key of an accompanied MoCA node connected with the MoCA node to be detected through a cable television cable are pressed down, and reading a flag bit value in a safety mode register on the MoCA node to be detected and a flag bit value in an opposite connection state register on the MoCA node to be detected when the MPS key of the MoCA node to be detected and the MPS key of the accompanied MoCA node to be detected are monitored to be pressed down;
judging whether the flag bit value in the safe mode register and the flag bit value in the butt-joint state register meet a preset detection rule or not;
and when the flag value in the safety mode register and the flag value in the butt joint state register are judged to accord with a preset detection rule, confirming that the MPS key function of the MoCA node to be detected is normal.
Preferably, before the step of receiving a detection request for detecting a MoCA node MPS key to be detected, the method further includes:
when the fact that the accompanied and tested MoCA node is started is detected, setting the working mode of the accompanied and tested MoCA node as a network security protection mode according to preset configuration information, and detecting whether the accompanied and tested MoCA node is connected with the MoCA node to be tested through a cable television cable;
and when the to-be-detected MoCA node connected with the testing accompanying MoCA node through the cable television cable is detected, controlling the testing accompanying MoCA node to send the MPS key detection request to the to-be-detected MoCA node.
Preferably, the step of respectively monitoring whether the MPS key of the MoCA node to be tested and the MPS key of the co-test MoCA node connected to the MoCA node to be tested through the cable are pressed, and reading the flag bit value in the security mode register on the MoCA node to be tested and the flag bit value in the register in the peer-to-peer state when the MPS key of the MoCA node to be tested and the MPS key of the co-test MoCA node to be tested are pressed includes:
and detecting whether the MPS keys of the accompany-testing MoCA node and the MoCA node to be tested are pressed down, and when detecting that the MPS keys of the accompany-testing MoCA node and the MoCA node to be tested are pressed down within the preset time, carrying out butt joint on the accompany-testing MoCA node and the MoCA node to be tested.
Further preferably, the step of determining whether the flag bit value in the secure mode register and the flag bit value in the concatenated status register meet a preset detection rule includes:
when the flag bit value in the pairing state register indicates successful pairing and the flag bit value in the security mode register indicates that a network security protection mode is started, judging that the flag bit value in the security mode register and the flag bit value in the pairing state register conform to a preset detection rule;
and when the flag bit value in the pairing state register indicates pairing loss and the flag bit value in the security mode register indicates that the network security protection mode is closed, judging that the flag bit value in the security mode register and the flag bit value in the pairing state register do not accord with a preset detection rule.
Preferably, when it is monitored that the MPS key of the MoCA node to be tested and the MPS key of the test-accompanying MoCA node are pressed, the method further includes:
connecting the accompanied MoCA node and the MoCA node to be detected with the same intelligent terminal, and reading a mark bit value in a safety mode register on the MoCA node to be detected and a mark bit value in an opposite connection state register on the MoCA node to be detected through the intelligent terminal;
judging whether the flag bit value in the safe mode register and the flag bit value in the butt-joint state register meet a preset detection rule or not;
and when the flag value in the safety mode register and the flag value in the butt joint state register are judged to accord with a preset detection rule, outputting that the MPS key function of the MoCA node to be detected is normal in the MoCA node detection interface of the intelligent terminal, and when the flag value in the safety mode register and the flag value in the butt joint state register are judged not to accord with the preset detection rule, outputting that the MPS key function of the MoCA node to be detected is abnormal in the MoCA node detection interface of the intelligent terminal.
In another aspect, the present invention further provides an MPS key detecting apparatus of a MoCA node, where the apparatus includes the following units:
the system comprises a mode setting unit, a mode judging unit and a mode judging unit, wherein the mode setting unit is used for receiving a detection request for detecting an MPS key of a to-be-detected MoCA node and setting the working mode of the to-be-detected MoCA node as a network safety protection mode according to the MPS key detection request;
the flag bit reading unit is used for respectively monitoring whether an MPS key of the MoCA node to be detected and an MPS key of an accompanied MoCA node connected with the MoCA node to be detected through a cable television cable are pressed down, and reading a flag bit value in a security mode register on the MoCA node to be detected and a flag bit value in a register in a butt-joint state on the MoCA node to be detected when the MPS key of the MoCA node to be detected and the MPS key of the accompanied MoCA node to be detected are pressed down;
the condition judgment unit is used for judging whether the flag bit value in the safety mode register and the flag bit value in the butt joint state register meet a preset detection rule or not;
and the result setting unit is used for confirming that the MPS key function of the MoCA node to be detected is normal when the flag bit value in the safety mode register and the flag bit value in the butt joint state register are judged to accord with the preset detection rule.
Preferably, the apparatus further comprises:
the node detection unit is used for setting the working mode of the accompanied and tested MoCA node as a network security protection mode according to preset configuration information when the accompanied and tested MoCA node is detected to be started, and detecting whether the to-be-tested MoCA node connected with the accompanied and tested MoCA node through a cable television cable exists or not;
and the request sending unit is used for controlling the testing accompanying MoCA node to send the MPS key detection request to the MoCA node to be detected when the MoCA node to be detected connected with the testing accompanying MoCA node through a cable television cable is detected.
Preferably, the apparatus further comprises:
and the connection operation unit is used for detecting whether the MPS keys of the accompanied and measured MoCA node and the MoCA node to be measured are pressed down or not, and when the MPS keys of the accompanied and measured MoCA node and the MoCA node to be measured are pressed down within the preset time, the accompanied and measured MoCA node and the MoCA node to be measured are connected.
In another aspect, the present invention further provides an MPS key detecting apparatus of a MoCA node, comprising a memory, a processor and a computer program stored in the memory and operable on the processor, the processor implementing the steps of the method according to any one of claims 1 to 5 when executing the computer program.
In another aspect, the invention also provides a computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
After receiving a detection request for detecting the MPS key of the MoCA node to be detected, setting the working mode of the MoCA node to be tested as a network safety protection mode, respectively monitoring whether an MPS key of the MoCA node to be tested and an MPS key of an accompanied MoCA node connected with the MoCA node to be tested through a cable television cable are pressed down, when the MPS key of the to-be-tested MoCA node and the MPS key of the accompanied-to-be-tested MoCA node are pressed, reading a flag bit value in a safety mode register on the MoCA node to be detected and a flag bit value in a peer-to-peer status register on the MoCA node to be detected, judging whether the flag bit value in the safety mode register and the flag bit value in the peer-to-peer status register meet a preset detection rule or not, when the function accords with the preset detection rule, the MPS key function of the MoCA node to be detected is confirmed to be normal, therefore, the automation of the function detection of the MPS key of the MoCA node is realized, and the accuracy of the function detection of the MPS key is improved.
Drawings
Fig. 1 is a flowchart illustrating an implementation of an MPS key detecting method of a MoCA node according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an MPS key detecting apparatus of a MoCA node according to a second embodiment of the present invention; and
fig. 3 is an MPS key detecting apparatus intention of a MoCA node according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The following detailed description of specific implementations of the present invention is provided in conjunction with specific embodiments:
the first embodiment is as follows:
fig. 1 shows an implementation flow of an MPS key detecting method of a MoCA node according to a first embodiment of the present invention, and for convenience of description, only a part related to the first embodiment of the present invention is shown, where the method includes:
in step S101, a detection request for detecting an MPS key of the MoCA node to be detected is received, and a working mode of the MoCA node to be detected is set as a network security protection mode according to the MPS key detection request.
The invention is suitable for the MoCA node, in particular to the MoCA node provided with the MPS key so as to detect whether the MPS key function of the MoCA node is normal. In the embodiment of the invention, a to-be-tested MoCA node and an accompanying MoCA node are needed, the to-be-tested MoCA node and the accompanying MoCA node are both provided with an MPS key, and the to-be-tested MoCA node and the accompanying MoCA node can be a circuit board provided with a cable interface of a cable television or a MoCA device provided with a cable interface of the cable television.
Preferably, before a detection request for detecting an MPS key of the MoCA node to be detected is received, whether the detection accompanied MoCA node is started or not is detected, when the detection accompanied MoCA node is detected to be started, the working mode of the detection accompanied MoCA node is set to be a network security protection mode according to preset configuration information, whether the MoCA node to be detected connected with the detection accompanied MoCA node through a cable television cable exists or not is detected, when the MoCA node to be detected connected with the detection accompanied MoCA node through the cable television cable exists, the detection accompanied MoCA node is controlled to send an MPS key detection request to the MoCA node to be detected, when the MoCA node to be detected not connected with the detection accompanied MoCA node through the cable television cable exists, whether the MoCA node to be detected connected with the detection accompanied MoCA node through the cable television cable exists or not is continuously detected, and therefore the detection accompanied MoCA node is always in the network security protection mode after the MoCA node is started. And after setting the working mode of the accompanied and tested MoCA node as a network security protection mode according to preset configuration information, further monitoring whether the MoCA node to be tested is connected with the accompanied and tested MoCA node in real time, wherein the preset configuration information comprises instruction information to be set as the network security protection mode and cable television cable interface monitoring instruction information.
The MPS key detection request comprises setting instructions for detecting MoCA node authentication information, working mode detection information and network security protection mode to be detected, further preferably, when the detection assisting MoCA node is controlled to send the MPS key detection request to the MoCA node to be detected, the detection assisting MoCA node sends the authentication information to the MoCA node to be detected, if a response signal of the MoCA node to be detected is received within a preset authentication time (for example, 5s), whether the MoCA node to be detected is in the network security protection mode is detected, if the detection detecting MoCA node to be detected is in the network security protection mode, the setting instructions of the network security protection mode are not sent, if the detection detecting MoCA node to be detected is not in the network security protection mode is detected, the setting instructions of the network security protection mode are sent to the MoCA node to be detected, if the response signal of the MoCA node to be detected is not received within the preset authentication time (for example, 5s), and setting the MoCA node to be tested as a blacklist, and sending prompt information through sound and light, so that before the co-testing MoCA node and the MoCA node to be tested are connected, the identity information verification and the working mode of the MoCA node to be tested are confirmed.
When the working mode of the to-be-tested MoCA node is set to be the network security protection mode according to the MPS key detection request, preferably, flag bit data is written into the security mode register on the to-be-tested MoCA node to directly set the working mode of the to-be-tested MoCA node, for example, the flag bit data 0x1 is written into the security mode register 0x1059 on the to-be-tested MoCA node, at this time, the network security protection mode of the MoCA node is started, so that the working mode of the to-be-tested MoCA node is conveniently and quickly set by writing the flag bit data into the operation security mode register. Further, for example, the flag bit data 0x0 may be written into the security mode register 0x1059 on the MoCA node under test, and the network security protection mode is turned off.
In step S102, whether the MPS key of the MoCA node to be tested and the MPS key of the co-test MoCA node connected to the MoCA node to be tested through the cable are pressed is monitored, and when the MPS key of the MoCA node to be tested and the MPS key of the co-test MoCA node are monitored, the flag bit value in the security mode register on the MoCA node to be tested and the flag bit value in the peer-to-peer status register on the MoCA node to be tested are read.
In the embodiment of the invention, when respectively monitoring whether the MPS key of the to-be-tested MoCA node and the MPS key of the testing accompanying MoCA node connected with the to-be-tested MoCA node through the cable television cable are pressed, preferably, when the MPS keys of the testing accompanying MoCA node and the to-be-tested MoCA node are detected to be pressed within a preset time, the testing accompanying MoCA node and the to-be-tested MoCA node are connected, and the preset time can be set according to actual needs, so that a user can conveniently execute the operation of connecting the testing accompanying MoCA node and the to-be-tested MoCA node. Further preferably, when the accompany-testing MoCA node and the MoCA node to be tested are connected in an aligned mode, an LED lamp is respectively arranged on the accompany-testing MoCA node and the MoCA node to be tested, so that a user can conveniently know the state of the connected state of the accompany-testing MoCA node and the MoCA node to be tested, for example, when the LEDs on the accompany-testing MoCA node and the MoCA node to be tested are not lighted, the MoCA node and the MoCA node to be tested are not connected in an aligned mode, when the LEDs on the accompany-testing MoCA node and the MoCA node to be tested are detected to flicker, the MoCA node and the MoCA node to be tested start to be connected in an aligned mode, when the LEDs on the accompany-testing MoCA node and the MoCA node to be tested are detected to be lighted, the MoCA node and the MoCA node to be tested are successfully connected, and when the LEDs on the accompany-testing MoCA node are not lighted, the LEDs on the MoCA node to be tested are flickered, the MoCA.
In step S103, it is determined whether the flag bit value in the security mode register and the flag bit value in the connection status register meet a preset detection rule.
In the embodiment of the present invention, when determining whether the flag bit value in the security mode register and the flag bit value in the connection status register meet the preset detection rule, preferably, the preset detection rule includes: a. when the flag bit value in the connection state register indicates that the connection is successful and the flag bit value in the security mode register indicates that the network security protection mode is started, judging that the flag bit value in the security mode register and the flag bit value in the connection state register meet a preset detection rule; b. when the flag bit value in the connection state register indicates connection failure and the flag bit value in the security mode register indicates that the network security protection mode is closed, judging that the flag bit value in the security mode register and the flag bit value in the connection state register do not accord with a preset detection rule; c. when the flag bit value in the connection state register indicates that the connection is successful and the flag bit value in the security mode register indicates that the network security protection mode is closed, judging that the flag bit value in the security mode register and the flag bit value in the connection state register do not accord with a preset detection rule; d. and when the flag bit value in the pairing state register indicates linkage failure and the flag bit value in the security mode register indicates that the network security protection mode is started, judging that the flag bit value in the security mode register and the flag bit value in the pairing state register do not accord with a preset detection rule, and thus accurately judging and confirming the state of the MPS key function of the MoCA node to be detected.
In step S104, when it is determined that the flag value in the security mode register and the flag value in the connection status register meet the preset detection rule, it is determined that the MPS key of the MoCA node to be detected is normal in function.
In the embodiment of the invention, when the function of the MPS key of the MoCA node to be tested is determined to be normal, the LEDs on the MoCA node and the MoCA node to be tested are preferably set to be long and bright to indicate that the connection between the MoCA node and the MoCA node to be tested is successful, so that the function of the MPS key of the MoCA node to be tested is determined to be normal.
Preferably, when the MPS key of the MoCA node to be detected and the MPS key of the co-detected MoCA node are pressed, the co-detected MoCA node and the MoCA node to be detected are connected with the same intelligent terminal, the flag bit value in the safety mode register on the MoCA node to be detected and the flag bit value in the opposite connection state register on the MoCA node to be detected are read through the intelligent terminal, whether the flag bit value in the safety mode register and the flag bit value in the opposite connection state register meet the preset detection rule or not is judged, when the flag bit value in the safety mode register and the flag bit value in the opposite connection state register meet the preset detection rule, the MPS key function of the MoCA node to be detected is output in the detection interface of the MoCA node of the intelligent terminal, and when the flag bit value in the safety mode register and the flag bit value in the opposite connection state register are judged not to meet the preset detection rule, and outputting the MPS key function abnormity of the MoCA node to be detected in the MoCA node detection interface of the intelligent terminal, so that a user can conveniently manage the MPS key detection result of the MoCA node.
In the embodiment of the invention, the working mode of the to-be-detected MoCA node is set as the network security protection mode according to the MPS key detection request, when the MPS key of the to-be-detected MoCA node and the MPS key of the accompanied detection MoCA node are monitored to be pressed down, the flag bit value in the security mode register on the to-be-detected MoCA node and the flag bit value in the opposite connection state register on the to-be-detected MoCA node are read, whether the flag bit value in the security mode register and the flag bit value in the opposite connection state register meet the preset detection rule or not is judged, and when the preset detection rule is met, the MPS key function of the to-be-detected MoCA node is confirmed to be normal, so that a uniform and controllable detection standard is provided for the MPS key detection of the MoCA node, the MPS key function detection automation is realized, and.
Example two:
fig. 2 shows a structure of an MPS key detecting apparatus of a MoCA node according to a second embodiment of the present invention, and for convenience of illustration, only the relevant parts of the second embodiment of the present invention are shown, where the MPS key detecting apparatus includes:
and the node detection unit 21 is used for setting the working mode of the accompanied and tested MoCA node to be a network security protection mode according to preset configuration information when the accompanied and tested MoCA node is detected to be started, and detecting whether the to-be-tested MoCA node connected with the accompanied and tested MoCA node through a cable television cable exists.
And the request sending unit 22 is configured to control the test-accompanied MoCA node to send the MPS key detection request to the MoCA node to be detected when the test-accompanied MoCA node is detected to be connected to the MoCA node to be detected through a cable television cable.
And the mode setting unit 23 is configured to receive a detection request for detecting an MPS key of the MoCA node to be detected, and set a working mode of the MoCA node to be detected as a network security protection mode according to the MPS key detection request.
And the flag bit reading unit 24 is configured to monitor whether the MPS key of the MoCA node to be detected and the MPS key of the accompanied MoCA node connected to the MoCA node to be detected through the cable television cable are pressed, and when the MPS key of the MoCA node to be detected and the MPS key of the accompanied MoCA node to be detected are pressed, read a flag bit value in the security mode register on the MoCA node to be detected and a flag bit value in the opposite connection state register on the MoCA node to be detected.
And a condition determining unit 25, configured to determine whether the flag bit value in the security mode register and the flag bit value in the connection status register meet a preset detection rule.
And the result setting unit 26 is configured to determine that the MPS key function of the MoCA node to be detected is normal when the flag value in the security mode register and the flag value in the connection status register are determined to meet the preset detection rule.
Preferably, the flag bit reading unit 24 further includes:
and the connection operation unit 241 is used for detecting whether the MPS keys of the accompanied and measured MoCA node and the MoCA node to be measured are pressed down or not, and when the MPS keys of the accompanied and measured MoCA node and the MoCA node to be measured are pressed down within the preset time, the accompanied and measured MoCA node and the MoCA node to be measured are connected.
In the embodiment of the present invention, each unit of the MPS key detecting apparatus may be implemented by corresponding hardware or software unit, and each unit may be an independent software or hardware unit, or may be integrated into a software or hardware unit, which is not limited herein.
Example three:
fig. 3 shows a structure of MPS key detecting apparatus of MoCA node according to a third embodiment of the present invention, and for convenience of illustration, only the relevant parts of the third embodiment of the present invention are shown, and the details are as follows:
MPS key detection apparatus 3 of an embodiment of the present invention comprises a processor 30, a memory 31, and a computer program 32 stored in memory 31 and operable on processor 30. The processor 30, when executing the computer program 32, implements the steps in the above-described knowledge-graph completion method embodiments, such as steps S101-S104 shown in fig. 1. Alternatively, the processor 30, when executing the computer program 32, implements the functions of the units in the above-described device embodiments, such as the functions of the units 21 to 26 shown in fig. 2.
Example four:
in an embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, implements the steps in the above-described method embodiments, e.g., steps S101 to S104 shown in fig. 1. Alternatively, the computer program may be adapted to perform the functions of the units of the above-described apparatus embodiments, such as the functions of the units 21 to 26 shown in fig. 2, when executed by the processor.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A MPS key detection method of a MoCA node is characterized by comprising the following steps:
receiving a detection request for detecting an MPS key of a to-be-detected MoCA node, and setting the working mode of the to-be-detected MoCA node as a network security protection mode according to the MPS key detection request;
respectively monitoring whether an MPS key of the MoCA node to be detected and an MPS key of an accompanied MoCA node connected with the MoCA node to be detected through a cable television cable are pressed down, and reading a flag bit value in a safety mode register on the MoCA node to be detected and a flag bit value in an opposite connection state register on the MoCA node to be detected when the MPS key of the MoCA node to be detected and the MPS key of the accompanied MoCA node to be detected are monitored to be pressed down;
judging whether the flag bit value in the safe mode register and the flag bit value in the butt-joint state register meet a preset detection rule or not;
and when the flag value in the safety mode register and the flag value in the butt joint state register are judged to accord with a preset detection rule, confirming that the MPS key function of the MoCA node to be detected is normal.
2. The method according to claim 1, wherein before the step of receiving a detection request for detecting a MoCA node MPS key under test, the method further comprises:
when the fact that the accompanied and tested MoCA node is started is detected, setting the working mode of the accompanied and tested MoCA node as a network security protection mode according to preset configuration information, and detecting whether the accompanied and tested MoCA node is connected with the MoCA node to be tested through a cable television cable;
and when the to-be-detected MoCA node connected with the testing accompanying MoCA node through the cable television cable is detected, controlling the testing accompanying MoCA node to send the MPS key detection request to the to-be-detected MoCA node.
3. The detecting method according to claim 1, wherein the step of respectively monitoring whether the MPS key of the MoCA node to be detected and the MPS key of the co-detected MoCA node connected to the MoCA node to be detected through the cable are pressed, and when the MPS key of the MoCA node to be detected and the MPS key of the co-detected MoCA node are monitored to be pressed, reading a flag bit value in the security mode register on the MoCA node to be detected and a flag bit value in the peer-to-peer status register on the MoCA node to be detected comprises:
and detecting whether the MPS keys of the accompany-testing MoCA node and the MoCA node to be tested are pressed down, and when detecting that the MPS keys of the accompany-testing MoCA node and the MoCA node to be tested are pressed down within the preset time, carrying out butt joint on the accompany-testing MoCA node and the MoCA node to be tested.
4. The method according to claim 3, wherein the step of determining whether the flag value in the security mode register and the flag value in the link status register satisfy a predetermined detection rule comprises:
when the flag bit value in the pairing state register indicates successful pairing and the flag bit value in the security mode register indicates that a network security protection mode is started, judging that the flag bit value in the security mode register and the flag bit value in the pairing state register conform to a preset detection rule;
and when the flag bit value in the pairing state register indicates pairing loss and the flag bit value in the security mode register indicates that the network security protection mode is closed, judging that the flag bit value in the security mode register and the flag bit value in the pairing state register do not accord with a preset detection rule.
5. The detection method according to claim 1, wherein when it is monitored that the MPS key of the MoCA node to be detected and the MPS key of the test-accompanying MoCA node are pressed, the method further comprises:
connecting the accompanied MoCA node and the MoCA node to be detected with the same intelligent terminal, and reading a mark bit value in a safety mode register on the MoCA node to be detected and a mark bit value in an opposite connection state register on the MoCA node to be detected through the intelligent terminal;
judging whether the flag bit value in the safe mode register and the flag bit value in the butt-joint state register meet a preset detection rule or not;
and when the flag value in the safety mode register and the flag value in the butt joint state register are judged to accord with a preset detection rule, outputting that the MPS key function of the MoCA node to be detected is normal in the MoCA node detection interface of the intelligent terminal, and when the flag value in the safety mode register and the flag value in the butt joint state register are judged not to accord with the preset detection rule, outputting that the MPS key function of the MoCA node to be detected is abnormal in the MoCA node detection interface of the intelligent terminal.
6. An MPS key detection apparatus of MoCA node, comprising:
the system comprises a mode setting unit, a mode judging unit and a mode judging unit, wherein the mode setting unit is used for receiving a detection request for detecting an MPS key of a to-be-detected MoCA node and setting the working mode of the to-be-detected MoCA node as a network safety protection mode according to the MPS key detection request;
the flag bit reading unit is used for respectively monitoring whether an MPS key of the MoCA node to be detected and an MPS key of an accompanied MoCA node connected with the MoCA node to be detected through a cable television cable are pressed down, and reading a flag bit value in a security mode register on the MoCA node to be detected and a flag bit value in a register in a butt-joint state on the MoCA node to be detected when the MPS key of the MoCA node to be detected and the MPS key of the accompanied MoCA node to be detected are pressed down;
the condition judgment unit is used for judging whether the flag bit value in the safety mode register and the flag bit value in the butt joint state register meet a preset detection rule or not;
and the result setting unit is used for confirming that the MPS key function of the MoCA node to be detected is normal when the flag bit value in the safety mode register and the flag bit value in the butt joint state register are judged to accord with the preset detection rule.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the node detection unit is used for setting the working mode of the accompanied and tested MoCA node as a network security protection mode according to preset configuration information when the accompanied and tested MoCA node is detected to be started, and detecting whether the to-be-tested MoCA node connected with the accompanied and tested MoCA node through a cable television cable exists or not;
and the request sending unit is used for controlling the testing accompanying MoCA node to send the MPS key detection request to the MoCA node to be detected when the MoCA node to be detected connected with the testing accompanying MoCA node through a cable television cable is detected.
8. The apparatus of claim 6, wherein the apparatus further comprises:
and the connection operation unit is used for detecting whether the MPS keys of the accompanied and measured MoCA node and the MoCA node to be measured are pressed down or not, and when the MPS keys of the accompanied and measured MoCA node and the MoCA node to be measured are pressed down within the preset time, the accompanied and measured MoCA node and the MoCA node to be measured are connected.
9. MPS key detection device of a MoCA node, comprising a memory, a processor and a computer program stored in said memory and being executable on said processor, characterized in that said processor realizes the steps of the method according to any of claims 1 to 5 when executing said computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN202010748804.5A 2020-07-30 2020-07-30 MPS key detection method, device and equipment of MoCA node and storage medium Active CN112040220B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010748804.5A CN112040220B (en) 2020-07-30 2020-07-30 MPS key detection method, device and equipment of MoCA node and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010748804.5A CN112040220B (en) 2020-07-30 2020-07-30 MPS key detection method, device and equipment of MoCA node and storage medium

Publications (2)

Publication Number Publication Date
CN112040220A true CN112040220A (en) 2020-12-04
CN112040220B CN112040220B (en) 2022-04-19

Family

ID=73583583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010748804.5A Active CN112040220B (en) 2020-07-30 2020-07-30 MPS key detection method, device and equipment of MoCA node and storage medium

Country Status (1)

Country Link
CN (1) CN112040220B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090059933A1 (en) * 2007-08-28 2009-03-05 Tellabs Vienna, Inc. Validating customer in-home network connectivity using moca bridge mode
US20110274029A1 (en) * 2010-05-10 2011-11-10 Comcast Cable Communications, Llc Wireless Range Extender
CN103796204A (en) * 2012-11-02 2014-05-14 国基电子(上海)有限公司 System and method for using button to set wireless local-area network
US20150229473A1 (en) * 2014-02-10 2015-08-13 Broadcom Corporation Push button configuration pairing
US20160080128A1 (en) * 2014-09-17 2016-03-17 Maxlinear, Inc. METHOD AND APPARATUS FOR MoCA NETWORK WITH PROTECTED SET-UP
CN107943529A (en) * 2017-10-20 2018-04-20 广州视源电子科技股份有限公司 Device pairing method, apparatus, readable storage medium storing program for executing and interactive intelligence equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090059933A1 (en) * 2007-08-28 2009-03-05 Tellabs Vienna, Inc. Validating customer in-home network connectivity using moca bridge mode
US20110274029A1 (en) * 2010-05-10 2011-11-10 Comcast Cable Communications, Llc Wireless Range Extender
CN103796204A (en) * 2012-11-02 2014-05-14 国基电子(上海)有限公司 System and method for using button to set wireless local-area network
US20150229473A1 (en) * 2014-02-10 2015-08-13 Broadcom Corporation Push button configuration pairing
US20160080128A1 (en) * 2014-09-17 2016-03-17 Maxlinear, Inc. METHOD AND APPARATUS FOR MoCA NETWORK WITH PROTECTED SET-UP
CN107943529A (en) * 2017-10-20 2018-04-20 广州视源电子科技股份有限公司 Device pairing method, apparatus, readable storage medium storing program for executing and interactive intelligence equipment

Also Published As

Publication number Publication date
CN112040220B (en) 2022-04-19

Similar Documents

Publication Publication Date Title
CN109660502A (en) Detection method, device, equipment and the storage medium of abnormal behaviour
US20150264080A1 (en) Testing Integrity of Property Data of a Device Using a Testing Device
CN110838953B (en) Test method, test system, electronic equipment and storage medium
CN110896366B (en) Network card function testing method and device of multi-network card equipment and storage medium
CN109218407B (en) Code management and control method based on log monitoring technology and terminal equipment
CN110824982A (en) ECU remote debugging method, server and storage medium
KR20180109642A (en) Apparatus for estimating and monitoring communication security of vehicle-network
CN103607281A (en) Safety device unlocking method and system
CN111541647A (en) Security detection method and device, storage medium and computer equipment
KR20100066815A (en) Automated test device for remote terminal unit
KR101781135B1 (en) Apparatus for estimating and monitoring communication security of vehicle-network
CN112040220B (en) MPS key detection method, device and equipment of MoCA node and storage medium
JP7086169B2 (en) Charging device test system and method
CN101527636B (en) Platform recognition and management method suitable to ternary-equally recognizing credible network connecting architecture
CN111181808A (en) Method and system for testing BMC IP access control
KR102311786B1 (en) Apparatus and method for enhancing security of distribution automation system
US20180059179A1 (en) Automatic control system and automatic instrument searching method for the same
CN115150300A (en) Management system and method for vehicle safety attack and defense
CN108880670B (en) MPI noise generator, method and device for detecting MPI noise problem
CN106940647B (en) Code management method and device
CN111106979B (en) Method and equipment for switch threshold alarm test
CN113438225A (en) Vehicle-mounted terminal vulnerability detection method, system, equipment and storage medium
CN112564825A (en) Method, device, equipment and system for detecting functions of Bluetooth equipment
RU2490807C2 (en) System for monitoring cable connections using reflectometer
CN106909489B (en) Method and device for testing EventLog state

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